windowsqualityupdateprofile

package
v0.20241111.1164443 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

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

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 (AssignWindowsQualityUpdateProfileOperationOptions) ToOData

func (AssignWindowsQualityUpdateProfileOperationOptions) ToQuery

type AssignWindowsQualityUpdateProfileOperationResponse

type AssignWindowsQualityUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

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 (CreateWindowsQualityUpdateProfileOperationOptions) ToOData

func (CreateWindowsQualityUpdateProfileOperationOptions) ToQuery

type CreateWindowsQualityUpdateProfileOperationResponse

type CreateWindowsQualityUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.WindowsQualityUpdateProfile
}

type DeleteWindowsQualityUpdateProfileOperationOptions

type DeleteWindowsQualityUpdateProfileOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteWindowsQualityUpdateProfileOperationOptions

func DefaultDeleteWindowsQualityUpdateProfileOperationOptions() DeleteWindowsQualityUpdateProfileOperationOptions

func (DeleteWindowsQualityUpdateProfileOperationOptions) ToHeaders

func (DeleteWindowsQualityUpdateProfileOperationOptions) ToOData

func (DeleteWindowsQualityUpdateProfileOperationOptions) ToQuery

type DeleteWindowsQualityUpdateProfileOperationResponse

type DeleteWindowsQualityUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

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 (GetWindowsQualityUpdateProfileOperationOptions) ToOData

func (GetWindowsQualityUpdateProfileOperationOptions) ToQuery

type GetWindowsQualityUpdateProfileOperationResponse

type GetWindowsQualityUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.WindowsQualityUpdateProfile
}

type GetWindowsQualityUpdateProfilesCountOperationOptions

type GetWindowsQualityUpdateProfilesCountOperationOptions struct {
	Filter    *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Search    *string
}

func DefaultGetWindowsQualityUpdateProfilesCountOperationOptions

func DefaultGetWindowsQualityUpdateProfilesCountOperationOptions() GetWindowsQualityUpdateProfilesCountOperationOptions

func (GetWindowsQualityUpdateProfilesCountOperationOptions) ToHeaders

func (GetWindowsQualityUpdateProfilesCountOperationOptions) ToOData

func (GetWindowsQualityUpdateProfilesCountOperationOptions) ToQuery

type GetWindowsQualityUpdateProfilesCountOperationResponse

type GetWindowsQualityUpdateProfilesCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type ListWindowsQualityUpdateProfilesCompleteResult

type ListWindowsQualityUpdateProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.WindowsQualityUpdateProfile
}

type ListWindowsQualityUpdateProfilesCustomPager

type ListWindowsQualityUpdateProfilesCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

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 (ListWindowsQualityUpdateProfilesOperationOptions) ToOData

func (ListWindowsQualityUpdateProfilesOperationOptions) ToQuery

type ListWindowsQualityUpdateProfilesOperationResponse

type ListWindowsQualityUpdateProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.WindowsQualityUpdateProfile
}

type UpdateWindowsQualityUpdateProfileOperationOptions

type UpdateWindowsQualityUpdateProfileOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateWindowsQualityUpdateProfileOperationOptions

func DefaultUpdateWindowsQualityUpdateProfileOperationOptions() UpdateWindowsQualityUpdateProfileOperationOptions

func (UpdateWindowsQualityUpdateProfileOperationOptions) ToHeaders

func (UpdateWindowsQualityUpdateProfileOperationOptions) ToOData

func (UpdateWindowsQualityUpdateProfileOperationOptions) ToQuery

type UpdateWindowsQualityUpdateProfileOperationResponse

type UpdateWindowsQualityUpdateProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type WindowsQualityUpdateProfileClient

type WindowsQualityUpdateProfileClient struct {
	Client *msgraph.Client
}

func NewWindowsQualityUpdateProfileClientWithBaseURI

func NewWindowsQualityUpdateProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*WindowsQualityUpdateProfileClient, error)

func (WindowsQualityUpdateProfileClient) AssignWindowsQualityUpdateProfile

AssignWindowsQualityUpdateProfile - Invoke action assign

func (WindowsQualityUpdateProfileClient) CreateWindowsQualityUpdateProfile

CreateWindowsQualityUpdateProfile - Create new navigation property to windowsQualityUpdateProfiles for deviceManagement

func (WindowsQualityUpdateProfileClient) DeleteWindowsQualityUpdateProfile

DeleteWindowsQualityUpdateProfile - Delete navigation property windowsQualityUpdateProfiles for deviceManagement

func (WindowsQualityUpdateProfileClient) GetWindowsQualityUpdateProfile

GetWindowsQualityUpdateProfile - Get windowsQualityUpdateProfiles from deviceManagement. A collection of windows quality update profiles

func (WindowsQualityUpdateProfileClient) GetWindowsQualityUpdateProfilesCount

GetWindowsQualityUpdateProfilesCount - Get the number of the resource

func (WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfiles

ListWindowsQualityUpdateProfiles - Get windowsQualityUpdateProfiles from deviceManagement. A collection of windows quality update profiles

func (WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfilesComplete

ListWindowsQualityUpdateProfilesComplete retrieves all the results into a single object

func (WindowsQualityUpdateProfileClient) ListWindowsQualityUpdateProfilesCompleteMatchingPredicate

ListWindowsQualityUpdateProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WindowsQualityUpdateProfileClient) UpdateWindowsQualityUpdateProfile

UpdateWindowsQualityUpdateProfile - Update the navigation property windowsQualityUpdateProfiles in deviceManagement

type WindowsQualityUpdateProfileOperationPredicate

type WindowsQualityUpdateProfileOperationPredicate struct {
}

func (WindowsQualityUpdateProfileOperationPredicate) Matches

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL