README
¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/beta/windowsqualityupdateprofile
Documentation
The windowsqualityupdateprofile
SDK allows for interaction with Microsoft Graph devicemanagement
(API Version beta
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/beta/windowsqualityupdateprofile"
Client Initialization
client := windowsqualityupdateprofile.NewWindowsQualityUpdateProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: WindowsQualityUpdateProfileClient.AssignWindowsQualityUpdateProfile
ctx := context.TODO()
id := windowsqualityupdateprofile.NewDeviceManagementWindowsQualityUpdateProfileID("windowsQualityUpdateProfileId")
payload := windowsqualityupdateprofile.AssignWindowsQualityUpdateProfileRequest{
// ...
}
read, err := client.AssignWindowsQualityUpdateProfile(ctx, id, payload, windowsqualityupdateprofile.DefaultAssignWindowsQualityUpdateProfileOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: WindowsQualityUpdateProfileClient.CreateWindowsQualityUpdateProfile
ctx := context.TODO()
payload := windowsqualityupdateprofile.WindowsQualityUpdateProfile{
// ...
}
read, err := client.CreateWindowsQualityUpdateProfile(ctx, payload, windowsqualityupdateprofile.DefaultCreateWindowsQualityUpdateProfileOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: WindowsQualityUpdateProfileClient.DeleteWindowsQualityUpdateProfile
ctx := context.TODO()
id := windowsqualityupdateprofile.NewDeviceManagementWindowsQualityUpdateProfileID("windowsQualityUpdateProfileId")
read, err := client.DeleteWindowsQualityUpdateProfile(ctx, id, windowsqualityupdateprofile.DefaultDeleteWindowsQualityUpdateProfileOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: WindowsQualityUpdateProfileClient.GetWindowsQualityUpdateProfile
ctx := context.TODO()
id := windowsqualityupdateprofile.NewDeviceManagementWindowsQualityUpdateProfileID("windowsQualityUpdateProfileId")
read, err := client.GetWindowsQualityUpdateProfile(ctx, id, windowsqualityupdateprofile.DefaultGetWindowsQualityUpdateProfileOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: WindowsQualityUpdateProfileClient.GetWindowsQualityUpdateProfilesCount
ctx := context.TODO()
read, err := client.GetWindowsQualityUpdateProfilesCount(ctx, windowsqualityupdateprofile.DefaultGetWindowsQualityUpdateProfilesCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: WindowsQualityUpdateProfileClient.ListWindowsQualityUpdateProfiles
ctx := context.TODO()
// alternatively `client.ListWindowsQualityUpdateProfiles(ctx, windowsqualityupdateprofile.DefaultListWindowsQualityUpdateProfilesOperationOptions())` can be used to do batched pagination
items, err := client.ListWindowsQualityUpdateProfilesComplete(ctx, windowsqualityupdateprofile.DefaultListWindowsQualityUpdateProfilesOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: WindowsQualityUpdateProfileClient.UpdateWindowsQualityUpdateProfile
ctx := context.TODO()
id := windowsqualityupdateprofile.NewDeviceManagementWindowsQualityUpdateProfileID("windowsQualityUpdateProfileId")
payload := windowsqualityupdateprofile.WindowsQualityUpdateProfile{
// ...
}
read, err := client.UpdateWindowsQualityUpdateProfile(ctx, id, payload, windowsqualityupdateprofile.DefaultUpdateWindowsQualityUpdateProfileOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation
¶
Index ¶
- type AssignWindowsQualityUpdateProfileOperationOptions
- type AssignWindowsQualityUpdateProfileOperationResponse
- type AssignWindowsQualityUpdateProfileRequest
- type CreateWindowsQualityUpdateProfileOperationOptions
- type CreateWindowsQualityUpdateProfileOperationResponse
- type DeleteWindowsQualityUpdateProfileOperationOptions
- type DeleteWindowsQualityUpdateProfileOperationResponse
- type GetWindowsQualityUpdateProfileOperationOptions
- type GetWindowsQualityUpdateProfileOperationResponse
- type GetWindowsQualityUpdateProfilesCountOperationOptions
- type GetWindowsQualityUpdateProfilesCountOperationResponse
- type ListWindowsQualityUpdateProfilesCompleteResult
- type ListWindowsQualityUpdateProfilesCustomPager
- type ListWindowsQualityUpdateProfilesOperationOptions
- type ListWindowsQualityUpdateProfilesOperationResponse
- type UpdateWindowsQualityUpdateProfileOperationOptions
- type UpdateWindowsQualityUpdateProfileOperationResponse
- type WindowsQualityUpdateProfileClient
- func (c WindowsQualityUpdateProfileClient) AssignWindowsQualityUpdateProfile(ctx context.Context, id beta.DeviceManagementWindowsQualityUpdateProfileId, ...) (result AssignWindowsQualityUpdateProfileOperationResponse, err error)
- func (c WindowsQualityUpdateProfileClient) CreateWindowsQualityUpdateProfile(ctx context.Context, input beta.WindowsQualityUpdateProfile, ...) (result CreateWindowsQualityUpdateProfileOperationResponse, err error)
- func (c WindowsQualityUpdateProfileClient) DeleteWindowsQualityUpdateProfile(ctx context.Context, id beta.DeviceManagementWindowsQualityUpdateProfileId, ...) (result DeleteWindowsQualityUpdateProfileOperationResponse, err error)
- func (c WindowsQualityUpdateProfileClient) GetWindowsQualityUpdateProfile(ctx context.Context, id beta.DeviceManagementWindowsQualityUpdateProfileId, ...) (result GetWindowsQualityUpdateProfileOperationResponse, err error)
- func (c WindowsQualityUpdateProfileClient) GetWindowsQualityUpdateProfilesCount(ctx context.Context, ...) (result GetWindowsQualityUpdateProfilesCountOperationResponse, err error)
- func (c WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfiles(ctx context.Context, options ListWindowsQualityUpdateProfilesOperationOptions) (result ListWindowsQualityUpdateProfilesOperationResponse, err error)
- func (c WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfilesComplete(ctx context.Context, options ListWindowsQualityUpdateProfilesOperationOptions) (ListWindowsQualityUpdateProfilesCompleteResult, error)
- func (c WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfilesCompleteMatchingPredicate(ctx context.Context, options ListWindowsQualityUpdateProfilesOperationOptions, ...) (result ListWindowsQualityUpdateProfilesCompleteResult, err error)
- func (c WindowsQualityUpdateProfileClient) UpdateWindowsQualityUpdateProfile(ctx context.Context, id beta.DeviceManagementWindowsQualityUpdateProfileId, ...) (result UpdateWindowsQualityUpdateProfileOperationResponse, err error)
- type WindowsQualityUpdateProfileOperationPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignWindowsQualityUpdateProfileOperationOptions ¶
type AssignWindowsQualityUpdateProfileOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultAssignWindowsQualityUpdateProfileOperationOptions ¶
func DefaultAssignWindowsQualityUpdateProfileOperationOptions() AssignWindowsQualityUpdateProfileOperationOptions
func (AssignWindowsQualityUpdateProfileOperationOptions) ToHeaders ¶
func (o AssignWindowsQualityUpdateProfileOperationOptions) ToHeaders() *client.Headers
func (AssignWindowsQualityUpdateProfileOperationOptions) ToOData ¶
func (o AssignWindowsQualityUpdateProfileOperationOptions) ToOData() *odata.Query
func (AssignWindowsQualityUpdateProfileOperationOptions) ToQuery ¶
func (o AssignWindowsQualityUpdateProfileOperationOptions) ToQuery() *client.QueryParams
type AssignWindowsQualityUpdateProfileRequest ¶
type AssignWindowsQualityUpdateProfileRequest struct {
Assignments *[]beta.WindowsQualityUpdateProfileAssignment `json:"assignments,omitempty"`
}
type CreateWindowsQualityUpdateProfileOperationOptions ¶
type CreateWindowsQualityUpdateProfileOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateWindowsQualityUpdateProfileOperationOptions ¶
func DefaultCreateWindowsQualityUpdateProfileOperationOptions() CreateWindowsQualityUpdateProfileOperationOptions
func (CreateWindowsQualityUpdateProfileOperationOptions) ToHeaders ¶
func (o CreateWindowsQualityUpdateProfileOperationOptions) ToHeaders() *client.Headers
func (CreateWindowsQualityUpdateProfileOperationOptions) ToOData ¶
func (o CreateWindowsQualityUpdateProfileOperationOptions) ToOData() *odata.Query
func (CreateWindowsQualityUpdateProfileOperationOptions) ToQuery ¶
func (o CreateWindowsQualityUpdateProfileOperationOptions) ToQuery() *client.QueryParams
type DeleteWindowsQualityUpdateProfileOperationOptions ¶
type DeleteWindowsQualityUpdateProfileOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteWindowsQualityUpdateProfileOperationOptions ¶
func DefaultDeleteWindowsQualityUpdateProfileOperationOptions() DeleteWindowsQualityUpdateProfileOperationOptions
func (DeleteWindowsQualityUpdateProfileOperationOptions) ToHeaders ¶
func (o DeleteWindowsQualityUpdateProfileOperationOptions) ToHeaders() *client.Headers
func (DeleteWindowsQualityUpdateProfileOperationOptions) ToOData ¶
func (o DeleteWindowsQualityUpdateProfileOperationOptions) ToOData() *odata.Query
func (DeleteWindowsQualityUpdateProfileOperationOptions) ToQuery ¶
func (o DeleteWindowsQualityUpdateProfileOperationOptions) ToQuery() *client.QueryParams
type GetWindowsQualityUpdateProfileOperationOptions ¶
type GetWindowsQualityUpdateProfileOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetWindowsQualityUpdateProfileOperationOptions ¶
func DefaultGetWindowsQualityUpdateProfileOperationOptions() GetWindowsQualityUpdateProfileOperationOptions
func (GetWindowsQualityUpdateProfileOperationOptions) ToHeaders ¶
func (o GetWindowsQualityUpdateProfileOperationOptions) ToHeaders() *client.Headers
func (GetWindowsQualityUpdateProfileOperationOptions) ToOData ¶
func (o GetWindowsQualityUpdateProfileOperationOptions) ToOData() *odata.Query
func (GetWindowsQualityUpdateProfileOperationOptions) ToQuery ¶
func (o GetWindowsQualityUpdateProfileOperationOptions) ToQuery() *client.QueryParams
type GetWindowsQualityUpdateProfilesCountOperationOptions ¶
type GetWindowsQualityUpdateProfilesCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetWindowsQualityUpdateProfilesCountOperationOptions ¶
func DefaultGetWindowsQualityUpdateProfilesCountOperationOptions() GetWindowsQualityUpdateProfilesCountOperationOptions
func (GetWindowsQualityUpdateProfilesCountOperationOptions) ToHeaders ¶
func (o GetWindowsQualityUpdateProfilesCountOperationOptions) ToHeaders() *client.Headers
func (GetWindowsQualityUpdateProfilesCountOperationOptions) ToOData ¶
func (o GetWindowsQualityUpdateProfilesCountOperationOptions) ToOData() *odata.Query
func (GetWindowsQualityUpdateProfilesCountOperationOptions) ToQuery ¶
func (o GetWindowsQualityUpdateProfilesCountOperationOptions) ToQuery() *client.QueryParams
type ListWindowsQualityUpdateProfilesCompleteResult ¶
type ListWindowsQualityUpdateProfilesCompleteResult struct { LatestHttpResponse *http.Response Items []beta.WindowsQualityUpdateProfile }
type ListWindowsQualityUpdateProfilesCustomPager ¶
type ListWindowsQualityUpdateProfilesCustomPager struct {
NextLink *odata.Link `json:"@odata.nextLink"`
}
func (*ListWindowsQualityUpdateProfilesCustomPager) NextPageLink ¶
func (p *ListWindowsQualityUpdateProfilesCustomPager) NextPageLink() *odata.Link
type ListWindowsQualityUpdateProfilesOperationOptions ¶
type ListWindowsQualityUpdateProfilesOperationOptions struct { Count *bool Expand *odata.Expand Filter *string Metadata *odata.Metadata OrderBy *odata.OrderBy RetryFunc client.RequestRetryFunc Search *string Select *[]string Skip *int64 Top *int64 }
func DefaultListWindowsQualityUpdateProfilesOperationOptions ¶
func DefaultListWindowsQualityUpdateProfilesOperationOptions() ListWindowsQualityUpdateProfilesOperationOptions
func (ListWindowsQualityUpdateProfilesOperationOptions) ToHeaders ¶
func (o ListWindowsQualityUpdateProfilesOperationOptions) ToHeaders() *client.Headers
func (ListWindowsQualityUpdateProfilesOperationOptions) ToOData ¶
func (o ListWindowsQualityUpdateProfilesOperationOptions) ToOData() *odata.Query
func (ListWindowsQualityUpdateProfilesOperationOptions) ToQuery ¶
func (o ListWindowsQualityUpdateProfilesOperationOptions) ToQuery() *client.QueryParams
type UpdateWindowsQualityUpdateProfileOperationOptions ¶
type UpdateWindowsQualityUpdateProfileOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateWindowsQualityUpdateProfileOperationOptions ¶
func DefaultUpdateWindowsQualityUpdateProfileOperationOptions() UpdateWindowsQualityUpdateProfileOperationOptions
func (UpdateWindowsQualityUpdateProfileOperationOptions) ToHeaders ¶
func (o UpdateWindowsQualityUpdateProfileOperationOptions) ToHeaders() *client.Headers
func (UpdateWindowsQualityUpdateProfileOperationOptions) ToOData ¶
func (o UpdateWindowsQualityUpdateProfileOperationOptions) ToOData() *odata.Query
func (UpdateWindowsQualityUpdateProfileOperationOptions) ToQuery ¶
func (o UpdateWindowsQualityUpdateProfileOperationOptions) ToQuery() *client.QueryParams
type WindowsQualityUpdateProfileClient ¶
func NewWindowsQualityUpdateProfileClientWithBaseURI ¶
func NewWindowsQualityUpdateProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*WindowsQualityUpdateProfileClient, error)
func (WindowsQualityUpdateProfileClient) AssignWindowsQualityUpdateProfile ¶
func (c WindowsQualityUpdateProfileClient) AssignWindowsQualityUpdateProfile(ctx context.Context, id beta.DeviceManagementWindowsQualityUpdateProfileId, input AssignWindowsQualityUpdateProfileRequest, options AssignWindowsQualityUpdateProfileOperationOptions) (result AssignWindowsQualityUpdateProfileOperationResponse, err error)
AssignWindowsQualityUpdateProfile - Invoke action assign
func (WindowsQualityUpdateProfileClient) CreateWindowsQualityUpdateProfile ¶
func (c WindowsQualityUpdateProfileClient) CreateWindowsQualityUpdateProfile(ctx context.Context, input beta.WindowsQualityUpdateProfile, options CreateWindowsQualityUpdateProfileOperationOptions) (result CreateWindowsQualityUpdateProfileOperationResponse, err error)
CreateWindowsQualityUpdateProfile - Create new navigation property to windowsQualityUpdateProfiles for deviceManagement
func (WindowsQualityUpdateProfileClient) DeleteWindowsQualityUpdateProfile ¶
func (c WindowsQualityUpdateProfileClient) DeleteWindowsQualityUpdateProfile(ctx context.Context, id beta.DeviceManagementWindowsQualityUpdateProfileId, options DeleteWindowsQualityUpdateProfileOperationOptions) (result DeleteWindowsQualityUpdateProfileOperationResponse, err error)
DeleteWindowsQualityUpdateProfile - Delete navigation property windowsQualityUpdateProfiles for deviceManagement
func (WindowsQualityUpdateProfileClient) GetWindowsQualityUpdateProfile ¶
func (c WindowsQualityUpdateProfileClient) GetWindowsQualityUpdateProfile(ctx context.Context, id beta.DeviceManagementWindowsQualityUpdateProfileId, options GetWindowsQualityUpdateProfileOperationOptions) (result GetWindowsQualityUpdateProfileOperationResponse, err error)
GetWindowsQualityUpdateProfile - Get windowsQualityUpdateProfiles from deviceManagement. A collection of windows quality update profiles
func (WindowsQualityUpdateProfileClient) GetWindowsQualityUpdateProfilesCount ¶
func (c WindowsQualityUpdateProfileClient) GetWindowsQualityUpdateProfilesCount(ctx context.Context, options GetWindowsQualityUpdateProfilesCountOperationOptions) (result GetWindowsQualityUpdateProfilesCountOperationResponse, err error)
GetWindowsQualityUpdateProfilesCount - Get the number of the resource
func (WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfiles ¶
func (c WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfiles(ctx context.Context, options ListWindowsQualityUpdateProfilesOperationOptions) (result ListWindowsQualityUpdateProfilesOperationResponse, err error)
ListWindowsQualityUpdateProfiles - Get windowsQualityUpdateProfiles from deviceManagement. A collection of windows quality update profiles
func (WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfilesComplete ¶
func (c WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfilesComplete(ctx context.Context, options ListWindowsQualityUpdateProfilesOperationOptions) (ListWindowsQualityUpdateProfilesCompleteResult, error)
ListWindowsQualityUpdateProfilesComplete retrieves all the results into a single object
func (WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfilesCompleteMatchingPredicate ¶
func (c WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfilesCompleteMatchingPredicate(ctx context.Context, options ListWindowsQualityUpdateProfilesOperationOptions, predicate WindowsQualityUpdateProfileOperationPredicate) (result ListWindowsQualityUpdateProfilesCompleteResult, err error)
ListWindowsQualityUpdateProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (WindowsQualityUpdateProfileClient) UpdateWindowsQualityUpdateProfile ¶
func (c WindowsQualityUpdateProfileClient) UpdateWindowsQualityUpdateProfile(ctx context.Context, id beta.DeviceManagementWindowsQualityUpdateProfileId, input beta.WindowsQualityUpdateProfile, options UpdateWindowsQualityUpdateProfileOperationOptions) (result UpdateWindowsQualityUpdateProfileOperationResponse, err error)
UpdateWindowsQualityUpdateProfile - Update the navigation property windowsQualityUpdateProfiles in deviceManagement
type WindowsQualityUpdateProfileOperationPredicate ¶
type WindowsQualityUpdateProfileOperationPredicate struct { }
func (WindowsQualityUpdateProfileOperationPredicate) Matches ¶
func (p WindowsQualityUpdateProfileOperationPredicate) Matches(input beta.WindowsQualityUpdateProfile) bool
Source Files
¶
- client.go
- method_assignwindowsqualityupdateprofile.go
- method_createwindowsqualityupdateprofile.go
- method_deletewindowsqualityupdateprofile.go
- method_getwindowsqualityupdateprofile.go
- method_getwindowsqualityupdateprofilescount.go
- method_listwindowsqualityupdateprofiles.go
- method_updatewindowsqualityupdateprofile.go
- model_assignwindowsqualityupdateprofilerequest.go
- predicates.go
- version.go