configurationpolicy

package
v0.20241126.2320 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := configurationpolicy.NewConfigurationPolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ConfigurationPolicyClient.AssignConfigurationPolicies

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

payload := configurationpolicy.AssignConfigurationPoliciesRequest{
	// ...
}


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

Example Usage: ConfigurationPolicyClient.ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTarget

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

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

Example Usage: ConfigurationPolicyClient.CreateConfigurationPolicy

ctx := context.TODO()

payload := configurationpolicy.DeviceManagementConfigurationPolicy{
	// ...
}


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

Example Usage: ConfigurationPolicyClient.CreateConfigurationPolicyCopy

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

payload := configurationpolicy.CreateConfigurationPolicyCopyRequest{
	// ...
}


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

Example Usage: ConfigurationPolicyClient.CreateConfigurationPolicyReorder

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

payload := configurationpolicy.CreateConfigurationPolicyReorderRequest{
	// ...
}


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

Example Usage: ConfigurationPolicyClient.CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTarget

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

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

Example Usage: ConfigurationPolicyClient.DeleteConfigurationPolicy

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

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

Example Usage: ConfigurationPolicyClient.GetConfigurationPoliciesCount

ctx := context.TODO()


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

Example Usage: ConfigurationPolicyClient.GetConfigurationPolicy

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

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

Example Usage: ConfigurationPolicyClient.ListConfigurationPolicies

ctx := context.TODO()


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

Example Usage: ConfigurationPolicyClient.SetConfigurationPolicyEnrollmentTimeDeviceMembershipTarget

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

payload := configurationpolicy.SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetRequest{
	// ...
}


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

Example Usage: ConfigurationPolicyClient.UpdateConfigurationPolicy

ctx := context.TODO()
id := configurationpolicy.NewDeviceManagementConfigurationPolicyID("deviceManagementConfigurationPolicyId")

payload := configurationpolicy.DeviceManagementConfigurationPolicy{
	// ...
}


read, err := client.UpdateConfigurationPolicy(ctx, id, payload, configurationpolicy.DefaultUpdateConfigurationPolicyOperationOptions())
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 AssignConfigurationPoliciesCompleteResult

type AssignConfigurationPoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementConfigurationPolicyAssignment
}

type AssignConfigurationPoliciesCustomPager

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

type AssignConfigurationPoliciesOperationOptions

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

func DefaultAssignConfigurationPoliciesOperationOptions

func DefaultAssignConfigurationPoliciesOperationOptions() AssignConfigurationPoliciesOperationOptions

func (AssignConfigurationPoliciesOperationOptions) ToHeaders

func (AssignConfigurationPoliciesOperationOptions) ToOData

func (AssignConfigurationPoliciesOperationOptions) ToQuery

type AssignConfigurationPoliciesOperationResponse

type AssignConfigurationPoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementConfigurationPolicyAssignment
}

type AssignConfigurationPoliciesRequest

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

type ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationOptions

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

func (ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationOptions) ToHeaders

func (ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationOptions) ToOData

func (ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationOptions) ToQuery

type ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationResponse

type ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetResult
}

type ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetResult

type ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTargetResult struct {
	Value *bool `json:"value,omitempty"`
}

type ConfigurationPolicyClient

type ConfigurationPolicyClient struct {
	Client *msgraph.Client
}

func NewConfigurationPolicyClientWithBaseURI

func NewConfigurationPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationPolicyClient, error)

func (ConfigurationPolicyClient) AssignConfigurationPolicies

AssignConfigurationPolicies - Invoke action assign

func (ConfigurationPolicyClient) AssignConfigurationPoliciesComplete

AssignConfigurationPoliciesComplete retrieves all the results into a single object

func (ConfigurationPolicyClient) AssignConfigurationPoliciesCompleteMatchingPredicate

AssignConfigurationPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ConfigurationPolicyClient) ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTarget

ClearConfigurationPolicyEnrollmentTimeDeviceMembershipTarget - Invoke action clearEnrollmentTimeDeviceMembershipTarget

func (ConfigurationPolicyClient) CreateConfigurationPolicy

CreateConfigurationPolicy - Create new navigation property to configurationPolicies for deviceManagement

func (ConfigurationPolicyClient) CreateConfigurationPolicyCopy

CreateConfigurationPolicyCopy - Invoke action createCopy

func (ConfigurationPolicyClient) CreateConfigurationPolicyReorder

CreateConfigurationPolicyReorder - Invoke action reorder

func (ConfigurationPolicyClient) CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTarget

CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTarget - Invoke action retrieveEnrollmentTimeDeviceMembershipTarget

func (ConfigurationPolicyClient) DeleteConfigurationPolicy

DeleteConfigurationPolicy - Delete navigation property configurationPolicies for deviceManagement

func (ConfigurationPolicyClient) GetConfigurationPoliciesCount

GetConfigurationPoliciesCount - Get the number of the resource

func (ConfigurationPolicyClient) GetConfigurationPolicy

GetConfigurationPolicy - Get configurationPolicies from deviceManagement. List of all Configuration policies

func (ConfigurationPolicyClient) ListConfigurationPolicies

ListConfigurationPolicies - Get configurationPolicies from deviceManagement. List of all Configuration policies

func (ConfigurationPolicyClient) ListConfigurationPoliciesComplete

ListConfigurationPoliciesComplete retrieves all the results into a single object

func (ConfigurationPolicyClient) ListConfigurationPoliciesCompleteMatchingPredicate

ListConfigurationPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ConfigurationPolicyClient) SetConfigurationPolicyEnrollmentTimeDeviceMembershipTarget

SetConfigurationPolicyEnrollmentTimeDeviceMembershipTarget - Invoke action setEnrollmentTimeDeviceMembershipTarget

func (ConfigurationPolicyClient) UpdateConfigurationPolicy

UpdateConfigurationPolicy - Update the navigation property configurationPolicies in deviceManagement

type CreateConfigurationPolicyCopyOperationOptions

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

func DefaultCreateConfigurationPolicyCopyOperationOptions

func DefaultCreateConfigurationPolicyCopyOperationOptions() CreateConfigurationPolicyCopyOperationOptions

func (CreateConfigurationPolicyCopyOperationOptions) ToHeaders

func (CreateConfigurationPolicyCopyOperationOptions) ToOData

func (CreateConfigurationPolicyCopyOperationOptions) ToQuery

type CreateConfigurationPolicyCopyOperationResponse

type CreateConfigurationPolicyCopyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementConfigurationPolicy
}

type CreateConfigurationPolicyCopyRequest

type CreateConfigurationPolicyCopyRequest struct {
	Description nullable.Type[string] `json:"description,omitempty"`
	DisplayName nullable.Type[string] `json:"displayName,omitempty"`
}

type CreateConfigurationPolicyOperationOptions

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

func DefaultCreateConfigurationPolicyOperationOptions

func DefaultCreateConfigurationPolicyOperationOptions() CreateConfigurationPolicyOperationOptions

func (CreateConfigurationPolicyOperationOptions) ToHeaders

func (CreateConfigurationPolicyOperationOptions) ToOData

func (CreateConfigurationPolicyOperationOptions) ToQuery

type CreateConfigurationPolicyOperationResponse

type CreateConfigurationPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementConfigurationPolicy
}

type CreateConfigurationPolicyReorderOperationOptions

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

func DefaultCreateConfigurationPolicyReorderOperationOptions

func DefaultCreateConfigurationPolicyReorderOperationOptions() CreateConfigurationPolicyReorderOperationOptions

func (CreateConfigurationPolicyReorderOperationOptions) ToHeaders

func (CreateConfigurationPolicyReorderOperationOptions) ToOData

func (CreateConfigurationPolicyReorderOperationOptions) ToQuery

type CreateConfigurationPolicyReorderOperationResponse

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

type CreateConfigurationPolicyReorderRequest

type CreateConfigurationPolicyReorderRequest struct {
	Priority *int64 `json:"priority,omitempty"`
}

type CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTargetOperationOptions

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

func (CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTargetOperationOptions) ToHeaders

func (CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTargetOperationOptions) ToOData

func (CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTargetOperationOptions) ToQuery

type CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTargetOperationResponse

type CreateConfigurationPolicyRetrieveEnrollmentTimeDeviceMembershipTargetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.EnrollmentTimeDeviceMembershipTargetResult
}

type DeleteConfigurationPolicyOperationOptions

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

func DefaultDeleteConfigurationPolicyOperationOptions

func DefaultDeleteConfigurationPolicyOperationOptions() DeleteConfigurationPolicyOperationOptions

func (DeleteConfigurationPolicyOperationOptions) ToHeaders

func (DeleteConfigurationPolicyOperationOptions) ToOData

func (DeleteConfigurationPolicyOperationOptions) ToQuery

type DeleteConfigurationPolicyOperationResponse

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

type DeviceManagementConfigurationPolicyAssignmentOperationPredicate

type DeviceManagementConfigurationPolicyAssignmentOperationPredicate struct {
}

func (DeviceManagementConfigurationPolicyAssignmentOperationPredicate) Matches

type DeviceManagementConfigurationPolicyOperationPredicate

type DeviceManagementConfigurationPolicyOperationPredicate struct {
}

func (DeviceManagementConfigurationPolicyOperationPredicate) Matches

type GetConfigurationPoliciesCountOperationOptions

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

func DefaultGetConfigurationPoliciesCountOperationOptions

func DefaultGetConfigurationPoliciesCountOperationOptions() GetConfigurationPoliciesCountOperationOptions

func (GetConfigurationPoliciesCountOperationOptions) ToHeaders

func (GetConfigurationPoliciesCountOperationOptions) ToOData

func (GetConfigurationPoliciesCountOperationOptions) ToQuery

type GetConfigurationPoliciesCountOperationResponse

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

type GetConfigurationPolicyOperationOptions

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

func DefaultGetConfigurationPolicyOperationOptions

func DefaultGetConfigurationPolicyOperationOptions() GetConfigurationPolicyOperationOptions

func (GetConfigurationPolicyOperationOptions) ToHeaders

func (GetConfigurationPolicyOperationOptions) ToOData

func (GetConfigurationPolicyOperationOptions) ToQuery

type GetConfigurationPolicyOperationResponse

type GetConfigurationPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementConfigurationPolicy
}

type ListConfigurationPoliciesCompleteResult

type ListConfigurationPoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementConfigurationPolicy
}

type ListConfigurationPoliciesCustomPager

type ListConfigurationPoliciesCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListConfigurationPoliciesCustomPager) NextPageLink() *odata.Link

type ListConfigurationPoliciesOperationOptions

type ListConfigurationPoliciesOperationOptions 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 DefaultListConfigurationPoliciesOperationOptions

func DefaultListConfigurationPoliciesOperationOptions() ListConfigurationPoliciesOperationOptions

func (ListConfigurationPoliciesOperationOptions) ToHeaders

func (ListConfigurationPoliciesOperationOptions) ToOData

func (ListConfigurationPoliciesOperationOptions) ToQuery

type ListConfigurationPoliciesOperationResponse

type ListConfigurationPoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementConfigurationPolicy
}

type SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationOptions

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

func (SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationOptions) ToHeaders

func (SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationOptions) ToOData

func (SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationOptions) ToQuery

type SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationResponse

type SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.EnrollmentTimeDeviceMembershipTargetResult
}

type SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetRequest

type SetConfigurationPolicyEnrollmentTimeDeviceMembershipTargetRequest struct {
	EnrollmentTimeDeviceMembershipTargets *[]beta.EnrollmentTimeDeviceMembershipTarget `json:"enrollmentTimeDeviceMembershipTargets,omitempty"`
}

type UpdateConfigurationPolicyOperationOptions

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

func DefaultUpdateConfigurationPolicyOperationOptions

func DefaultUpdateConfigurationPolicyOperationOptions() UpdateConfigurationPolicyOperationOptions

func (UpdateConfigurationPolicyOperationOptions) ToHeaders

func (UpdateConfigurationPolicyOperationOptions) ToOData

func (UpdateConfigurationPolicyOperationOptions) ToQuery

type UpdateConfigurationPolicyOperationResponse

type UpdateConfigurationPolicyOperationResponse 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