windowsqualityupdatepolicy

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/beta/windowsqualityupdatepolicy Documentation

The windowsqualityupdatepolicy 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/windowsqualityupdatepolicy"

Client Initialization

client := windowsqualityupdatepolicy.NewWindowsQualityUpdatePolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: WindowsQualityUpdatePolicyClient.AssignWindowsQualityUpdatePolicy

ctx := context.TODO()
id := windowsqualityupdatepolicy.NewDeviceManagementWindowsQualityUpdatePolicyID("windowsQualityUpdatePolicyId")

payload := windowsqualityupdatepolicy.AssignWindowsQualityUpdatePolicyRequest{
	// ...
}


read, err := client.AssignWindowsQualityUpdatePolicy(ctx, id, payload, windowsqualityupdatepolicy.DefaultAssignWindowsQualityUpdatePolicyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: WindowsQualityUpdatePolicyClient.CreateWindowsQualityUpdatePolicy

ctx := context.TODO()

payload := windowsqualityupdatepolicy.WindowsQualityUpdatePolicy{
	// ...
}


read, err := client.CreateWindowsQualityUpdatePolicy(ctx, payload, windowsqualityupdatepolicy.DefaultCreateWindowsQualityUpdatePolicyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: WindowsQualityUpdatePolicyClient.DeleteWindowsQualityUpdatePolicy

ctx := context.TODO()
id := windowsqualityupdatepolicy.NewDeviceManagementWindowsQualityUpdatePolicyID("windowsQualityUpdatePolicyId")

read, err := client.DeleteWindowsQualityUpdatePolicy(ctx, id, windowsqualityupdatepolicy.DefaultDeleteWindowsQualityUpdatePolicyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: WindowsQualityUpdatePolicyClient.GetWindowsQualityUpdatePoliciesCount

ctx := context.TODO()


read, err := client.GetWindowsQualityUpdatePoliciesCount(ctx, windowsqualityupdatepolicy.DefaultGetWindowsQualityUpdatePoliciesCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: WindowsQualityUpdatePolicyClient.GetWindowsQualityUpdatePolicy

ctx := context.TODO()
id := windowsqualityupdatepolicy.NewDeviceManagementWindowsQualityUpdatePolicyID("windowsQualityUpdatePolicyId")

read, err := client.GetWindowsQualityUpdatePolicy(ctx, id, windowsqualityupdatepolicy.DefaultGetWindowsQualityUpdatePolicyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: WindowsQualityUpdatePolicyClient.ListWindowsQualityUpdatePolicies

ctx := context.TODO()


// alternatively `client.ListWindowsQualityUpdatePolicies(ctx, windowsqualityupdatepolicy.DefaultListWindowsQualityUpdatePoliciesOperationOptions())` can be used to do batched pagination
items, err := client.ListWindowsQualityUpdatePoliciesComplete(ctx, windowsqualityupdatepolicy.DefaultListWindowsQualityUpdatePoliciesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: WindowsQualityUpdatePolicyClient.UpdateWindowsQualityUpdatePolicy

ctx := context.TODO()
id := windowsqualityupdatepolicy.NewDeviceManagementWindowsQualityUpdatePolicyID("windowsQualityUpdatePolicyId")

payload := windowsqualityupdatepolicy.WindowsQualityUpdatePolicy{
	// ...
}


read, err := client.UpdateWindowsQualityUpdatePolicy(ctx, id, payload, windowsqualityupdatepolicy.DefaultUpdateWindowsQualityUpdatePolicyOperationOptions())
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 AssignWindowsQualityUpdatePolicyOperationOptions

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

func DefaultAssignWindowsQualityUpdatePolicyOperationOptions

func DefaultAssignWindowsQualityUpdatePolicyOperationOptions() AssignWindowsQualityUpdatePolicyOperationOptions

func (AssignWindowsQualityUpdatePolicyOperationOptions) ToHeaders

func (AssignWindowsQualityUpdatePolicyOperationOptions) ToOData

func (AssignWindowsQualityUpdatePolicyOperationOptions) ToQuery

type AssignWindowsQualityUpdatePolicyOperationResponse

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

type AssignWindowsQualityUpdatePolicyRequest

type AssignWindowsQualityUpdatePolicyRequest struct {
	Assignments *[]beta.WindowsQualityUpdatePolicyAssignment `json:"assignments,omitempty"`
}

type CreateWindowsQualityUpdatePolicyOperationOptions

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

func DefaultCreateWindowsQualityUpdatePolicyOperationOptions

func DefaultCreateWindowsQualityUpdatePolicyOperationOptions() CreateWindowsQualityUpdatePolicyOperationOptions

func (CreateWindowsQualityUpdatePolicyOperationOptions) ToHeaders

func (CreateWindowsQualityUpdatePolicyOperationOptions) ToOData

func (CreateWindowsQualityUpdatePolicyOperationOptions) ToQuery

type CreateWindowsQualityUpdatePolicyOperationResponse

type CreateWindowsQualityUpdatePolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.WindowsQualityUpdatePolicy
}

type DeleteWindowsQualityUpdatePolicyOperationOptions

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

func DefaultDeleteWindowsQualityUpdatePolicyOperationOptions

func DefaultDeleteWindowsQualityUpdatePolicyOperationOptions() DeleteWindowsQualityUpdatePolicyOperationOptions

func (DeleteWindowsQualityUpdatePolicyOperationOptions) ToHeaders

func (DeleteWindowsQualityUpdatePolicyOperationOptions) ToOData

func (DeleteWindowsQualityUpdatePolicyOperationOptions) ToQuery

type DeleteWindowsQualityUpdatePolicyOperationResponse

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

type GetWindowsQualityUpdatePoliciesCountOperationOptions

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

func DefaultGetWindowsQualityUpdatePoliciesCountOperationOptions

func DefaultGetWindowsQualityUpdatePoliciesCountOperationOptions() GetWindowsQualityUpdatePoliciesCountOperationOptions

func (GetWindowsQualityUpdatePoliciesCountOperationOptions) ToHeaders

func (GetWindowsQualityUpdatePoliciesCountOperationOptions) ToOData

func (GetWindowsQualityUpdatePoliciesCountOperationOptions) ToQuery

type GetWindowsQualityUpdatePoliciesCountOperationResponse

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

type GetWindowsQualityUpdatePolicyOperationOptions

type GetWindowsQualityUpdatePolicyOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetWindowsQualityUpdatePolicyOperationOptions

func DefaultGetWindowsQualityUpdatePolicyOperationOptions() GetWindowsQualityUpdatePolicyOperationOptions

func (GetWindowsQualityUpdatePolicyOperationOptions) ToHeaders

func (GetWindowsQualityUpdatePolicyOperationOptions) ToOData

func (GetWindowsQualityUpdatePolicyOperationOptions) ToQuery

type GetWindowsQualityUpdatePolicyOperationResponse

type GetWindowsQualityUpdatePolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.WindowsQualityUpdatePolicy
}

type ListWindowsQualityUpdatePoliciesCompleteResult

type ListWindowsQualityUpdatePoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.WindowsQualityUpdatePolicy
}

type ListWindowsQualityUpdatePoliciesCustomPager

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

type ListWindowsQualityUpdatePoliciesOperationOptions

type ListWindowsQualityUpdatePoliciesOperationOptions 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 DefaultListWindowsQualityUpdatePoliciesOperationOptions

func DefaultListWindowsQualityUpdatePoliciesOperationOptions() ListWindowsQualityUpdatePoliciesOperationOptions

func (ListWindowsQualityUpdatePoliciesOperationOptions) ToHeaders

func (ListWindowsQualityUpdatePoliciesOperationOptions) ToOData

func (ListWindowsQualityUpdatePoliciesOperationOptions) ToQuery

type ListWindowsQualityUpdatePoliciesOperationResponse

type ListWindowsQualityUpdatePoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.WindowsQualityUpdatePolicy
}

type UpdateWindowsQualityUpdatePolicyOperationOptions

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

func DefaultUpdateWindowsQualityUpdatePolicyOperationOptions

func DefaultUpdateWindowsQualityUpdatePolicyOperationOptions() UpdateWindowsQualityUpdatePolicyOperationOptions

func (UpdateWindowsQualityUpdatePolicyOperationOptions) ToHeaders

func (UpdateWindowsQualityUpdatePolicyOperationOptions) ToOData

func (UpdateWindowsQualityUpdatePolicyOperationOptions) ToQuery

type UpdateWindowsQualityUpdatePolicyOperationResponse

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

type WindowsQualityUpdatePolicyClient

type WindowsQualityUpdatePolicyClient struct {
	Client *msgraph.Client
}

func NewWindowsQualityUpdatePolicyClientWithBaseURI

func NewWindowsQualityUpdatePolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*WindowsQualityUpdatePolicyClient, error)

func (WindowsQualityUpdatePolicyClient) AssignWindowsQualityUpdatePolicy

AssignWindowsQualityUpdatePolicy - Invoke action assign

func (WindowsQualityUpdatePolicyClient) CreateWindowsQualityUpdatePolicy

CreateWindowsQualityUpdatePolicy - Create new navigation property to windowsQualityUpdatePolicies for deviceManagement

func (WindowsQualityUpdatePolicyClient) DeleteWindowsQualityUpdatePolicy

DeleteWindowsQualityUpdatePolicy - Delete navigation property windowsQualityUpdatePolicies for deviceManagement

func (WindowsQualityUpdatePolicyClient) GetWindowsQualityUpdatePoliciesCount

GetWindowsQualityUpdatePoliciesCount - Get the number of the resource

func (WindowsQualityUpdatePolicyClient) GetWindowsQualityUpdatePolicy

GetWindowsQualityUpdatePolicy - Get windowsQualityUpdatePolicies from deviceManagement. A collection of Windows quality update policies

func (WindowsQualityUpdatePolicyClient) ListWindowsQualityUpdatePolicies

ListWindowsQualityUpdatePolicies - Get windowsQualityUpdatePolicies from deviceManagement. A collection of Windows quality update policies

func (WindowsQualityUpdatePolicyClient) ListWindowsQualityUpdatePoliciesComplete

ListWindowsQualityUpdatePoliciesComplete retrieves all the results into a single object

func (WindowsQualityUpdatePolicyClient) ListWindowsQualityUpdatePoliciesCompleteMatchingPredicate

ListWindowsQualityUpdatePoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WindowsQualityUpdatePolicyClient) UpdateWindowsQualityUpdatePolicy

UpdateWindowsQualityUpdatePolicy - Update the navigation property windowsQualityUpdatePolicies in deviceManagement

type WindowsQualityUpdatePolicyOperationPredicate

type WindowsQualityUpdatePolicyOperationPredicate struct {
}

func (WindowsQualityUpdatePolicyOperationPredicate) Matches

Jump to

Keyboard shortcuts

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