devicecompliancepolicy

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/stable/devicecompliancepolicy Documentation

The devicecompliancepolicy SDK allows for interaction with Microsoft Graph devicemanagement (API Version stable).

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/stable/devicecompliancepolicy"

Client Initialization

client := devicecompliancepolicy.NewDeviceCompliancePolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceCompliancePolicyClient.AssignDeviceCompliancePolicies

ctx := context.TODO()
id := devicecompliancepolicy.NewDeviceManagementDeviceCompliancePolicyID("deviceCompliancePolicyId")

payload := devicecompliancepolicy.AssignDeviceCompliancePoliciesRequest{
	// ...
}


// alternatively `client.AssignDeviceCompliancePolicies(ctx, id, payload, devicecompliancepolicy.DefaultAssignDeviceCompliancePoliciesOperationOptions())` can be used to do batched pagination
items, err := client.AssignDeviceCompliancePoliciesComplete(ctx, id, payload, devicecompliancepolicy.DefaultAssignDeviceCompliancePoliciesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: DeviceCompliancePolicyClient.CreateDeviceCompliancePolicy

ctx := context.TODO()

payload := devicecompliancepolicy.DeviceCompliancePolicy{
	// ...
}


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

Example Usage: DeviceCompliancePolicyClient.CreateDeviceCompliancePolicyScheduleActionsForRule

ctx := context.TODO()
id := devicecompliancepolicy.NewDeviceManagementDeviceCompliancePolicyID("deviceCompliancePolicyId")

payload := devicecompliancepolicy.CreateDeviceCompliancePolicyScheduleActionsForRuleRequest{
	// ...
}


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

Example Usage: DeviceCompliancePolicyClient.DeleteDeviceCompliancePolicy

ctx := context.TODO()
id := devicecompliancepolicy.NewDeviceManagementDeviceCompliancePolicyID("deviceCompliancePolicyId")

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

Example Usage: DeviceCompliancePolicyClient.GetDeviceCompliancePoliciesCount

ctx := context.TODO()


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

Example Usage: DeviceCompliancePolicyClient.GetDeviceCompliancePolicy

ctx := context.TODO()
id := devicecompliancepolicy.NewDeviceManagementDeviceCompliancePolicyID("deviceCompliancePolicyId")

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

Example Usage: DeviceCompliancePolicyClient.ListDeviceCompliancePolicies

ctx := context.TODO()


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

Example Usage: DeviceCompliancePolicyClient.UpdateDeviceCompliancePolicy

ctx := context.TODO()
id := devicecompliancepolicy.NewDeviceManagementDeviceCompliancePolicyID("deviceCompliancePolicyId")

payload := devicecompliancepolicy.DeviceCompliancePolicy{
	// ...
}


read, err := client.UpdateDeviceCompliancePolicy(ctx, id, payload, devicecompliancepolicy.DefaultUpdateDeviceCompliancePolicyOperationOptions())
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 AssignDeviceCompliancePoliciesCompleteResult

type AssignDeviceCompliancePoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.DeviceCompliancePolicyAssignment
}

type AssignDeviceCompliancePoliciesCustomPager

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

type AssignDeviceCompliancePoliciesOperationOptions

type AssignDeviceCompliancePoliciesOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultAssignDeviceCompliancePoliciesOperationOptions

func DefaultAssignDeviceCompliancePoliciesOperationOptions() AssignDeviceCompliancePoliciesOperationOptions

func (AssignDeviceCompliancePoliciesOperationOptions) ToHeaders

func (AssignDeviceCompliancePoliciesOperationOptions) ToOData

func (AssignDeviceCompliancePoliciesOperationOptions) ToQuery

type AssignDeviceCompliancePoliciesOperationResponse

type AssignDeviceCompliancePoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.DeviceCompliancePolicyAssignment
}

type AssignDeviceCompliancePoliciesRequest

type AssignDeviceCompliancePoliciesRequest struct {
	Assignments *[]stable.DeviceCompliancePolicyAssignment `json:"assignments,omitempty"`
}

type CreateDeviceCompliancePolicyOperationOptions

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

func DefaultCreateDeviceCompliancePolicyOperationOptions

func DefaultCreateDeviceCompliancePolicyOperationOptions() CreateDeviceCompliancePolicyOperationOptions

func (CreateDeviceCompliancePolicyOperationOptions) ToHeaders

func (CreateDeviceCompliancePolicyOperationOptions) ToOData

func (CreateDeviceCompliancePolicyOperationOptions) ToQuery

type CreateDeviceCompliancePolicyOperationResponse

type CreateDeviceCompliancePolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.DeviceCompliancePolicy
}

type CreateDeviceCompliancePolicyScheduleActionsForRuleOperationOptions

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

func (CreateDeviceCompliancePolicyScheduleActionsForRuleOperationOptions) ToHeaders

func (CreateDeviceCompliancePolicyScheduleActionsForRuleOperationOptions) ToOData

func (CreateDeviceCompliancePolicyScheduleActionsForRuleOperationOptions) ToQuery

type CreateDeviceCompliancePolicyScheduleActionsForRuleOperationResponse

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

type CreateDeviceCompliancePolicyScheduleActionsForRuleRequest

type CreateDeviceCompliancePolicyScheduleActionsForRuleRequest struct {
	DeviceComplianceScheduledActionForRules *[]stable.DeviceComplianceScheduledActionForRule `json:"deviceComplianceScheduledActionForRules,omitempty"`
}

type DeleteDeviceCompliancePolicyOperationOptions

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

func DefaultDeleteDeviceCompliancePolicyOperationOptions

func DefaultDeleteDeviceCompliancePolicyOperationOptions() DeleteDeviceCompliancePolicyOperationOptions

func (DeleteDeviceCompliancePolicyOperationOptions) ToHeaders

func (DeleteDeviceCompliancePolicyOperationOptions) ToOData

func (DeleteDeviceCompliancePolicyOperationOptions) ToQuery

type DeleteDeviceCompliancePolicyOperationResponse

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

type DeviceCompliancePolicyAssignmentOperationPredicate

type DeviceCompliancePolicyAssignmentOperationPredicate struct {
}

func (DeviceCompliancePolicyAssignmentOperationPredicate) Matches

type DeviceCompliancePolicyClient

type DeviceCompliancePolicyClient struct {
	Client *msgraph.Client
}

func NewDeviceCompliancePolicyClientWithBaseURI

func NewDeviceCompliancePolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceCompliancePolicyClient, error)

func (DeviceCompliancePolicyClient) AssignDeviceCompliancePolicies

AssignDeviceCompliancePolicies - Invoke action assign. Not yet documented

func (DeviceCompliancePolicyClient) AssignDeviceCompliancePoliciesComplete

AssignDeviceCompliancePoliciesComplete retrieves all the results into a single object

func (DeviceCompliancePolicyClient) AssignDeviceCompliancePoliciesCompleteMatchingPredicate

AssignDeviceCompliancePoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceCompliancePolicyClient) CreateDeviceCompliancePolicy

CreateDeviceCompliancePolicy - Create androidWorkProfileCompliancePolicy. Create a new androidWorkProfileCompliancePolicy object.

func (DeviceCompliancePolicyClient) CreateDeviceCompliancePolicyScheduleActionsForRule

CreateDeviceCompliancePolicyScheduleActionsForRule - Invoke action scheduleActionsForRules. Not yet documented

func (DeviceCompliancePolicyClient) DeleteDeviceCompliancePolicy

DeleteDeviceCompliancePolicy - Delete androidWorkProfileCompliancePolicy. Deletes a androidWorkProfileCompliancePolicy.

func (DeviceCompliancePolicyClient) GetDeviceCompliancePoliciesCount

GetDeviceCompliancePoliciesCount - Get the number of the resource

func (DeviceCompliancePolicyClient) GetDeviceCompliancePolicy

GetDeviceCompliancePolicy - Get deviceCompliancePolicy. Read properties and relationships of the deviceCompliancePolicy object.

func (DeviceCompliancePolicyClient) ListDeviceCompliancePolicies

ListDeviceCompliancePolicies - List windows10MobileCompliancePolicies. List properties and relationships of the windows10MobileCompliancePolicy objects.

func (DeviceCompliancePolicyClient) ListDeviceCompliancePoliciesComplete

ListDeviceCompliancePoliciesComplete retrieves all the results into a single object

func (DeviceCompliancePolicyClient) ListDeviceCompliancePoliciesCompleteMatchingPredicate

ListDeviceCompliancePoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceCompliancePolicyClient) UpdateDeviceCompliancePolicy

UpdateDeviceCompliancePolicy - Update windows10MobileCompliancePolicy. Update the properties of a windows10MobileCompliancePolicy object.

type DeviceCompliancePolicyOperationPredicate

type DeviceCompliancePolicyOperationPredicate struct {
}

func (DeviceCompliancePolicyOperationPredicate) Matches

type GetDeviceCompliancePoliciesCountOperationOptions

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

func DefaultGetDeviceCompliancePoliciesCountOperationOptions

func DefaultGetDeviceCompliancePoliciesCountOperationOptions() GetDeviceCompliancePoliciesCountOperationOptions

func (GetDeviceCompliancePoliciesCountOperationOptions) ToHeaders

func (GetDeviceCompliancePoliciesCountOperationOptions) ToOData

func (GetDeviceCompliancePoliciesCountOperationOptions) ToQuery

type GetDeviceCompliancePoliciesCountOperationResponse

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

type GetDeviceCompliancePolicyOperationOptions

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

func DefaultGetDeviceCompliancePolicyOperationOptions

func DefaultGetDeviceCompliancePolicyOperationOptions() GetDeviceCompliancePolicyOperationOptions

func (GetDeviceCompliancePolicyOperationOptions) ToHeaders

func (GetDeviceCompliancePolicyOperationOptions) ToOData

func (GetDeviceCompliancePolicyOperationOptions) ToQuery

type GetDeviceCompliancePolicyOperationResponse

type GetDeviceCompliancePolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.DeviceCompliancePolicy
}

type ListDeviceCompliancePoliciesCompleteResult

type ListDeviceCompliancePoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.DeviceCompliancePolicy
}

type ListDeviceCompliancePoliciesCustomPager

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

type ListDeviceCompliancePoliciesOperationOptions

type ListDeviceCompliancePoliciesOperationOptions 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 DefaultListDeviceCompliancePoliciesOperationOptions

func DefaultListDeviceCompliancePoliciesOperationOptions() ListDeviceCompliancePoliciesOperationOptions

func (ListDeviceCompliancePoliciesOperationOptions) ToHeaders

func (ListDeviceCompliancePoliciesOperationOptions) ToOData

func (ListDeviceCompliancePoliciesOperationOptions) ToQuery

type ListDeviceCompliancePoliciesOperationResponse

type ListDeviceCompliancePoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.DeviceCompliancePolicy
}

type UpdateDeviceCompliancePolicyOperationOptions

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

func DefaultUpdateDeviceCompliancePolicyOperationOptions

func DefaultUpdateDeviceCompliancePolicyOperationOptions() UpdateDeviceCompliancePolicyOperationOptions

func (UpdateDeviceCompliancePolicyOperationOptions) ToHeaders

func (UpdateDeviceCompliancePolicyOperationOptions) ToOData

func (UpdateDeviceCompliancePolicyOperationOptions) ToQuery

type UpdateDeviceCompliancePolicyOperationResponse

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

Jump to

Keyboard shortcuts

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