grouppolicyconfiguration

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/grouppolicyconfiguration Documentation

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

Client Initialization

client := grouppolicyconfiguration.NewGroupPolicyConfigurationClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: GroupPolicyConfigurationClient.AssignGroupPolicyConfigurations

ctx := context.TODO()
id := grouppolicyconfiguration.NewDeviceManagementGroupPolicyConfigurationID("groupPolicyConfigurationId")

payload := grouppolicyconfiguration.AssignGroupPolicyConfigurationsRequest{
	// ...
}


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

Example Usage: GroupPolicyConfigurationClient.CreateGroupPolicyConfiguration

ctx := context.TODO()

payload := grouppolicyconfiguration.GroupPolicyConfiguration{
	// ...
}


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

Example Usage: GroupPolicyConfigurationClient.DeleteGroupPolicyConfiguration

ctx := context.TODO()
id := grouppolicyconfiguration.NewDeviceManagementGroupPolicyConfigurationID("groupPolicyConfigurationId")

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

Example Usage: GroupPolicyConfigurationClient.GetGroupPolicyConfiguration

ctx := context.TODO()
id := grouppolicyconfiguration.NewDeviceManagementGroupPolicyConfigurationID("groupPolicyConfigurationId")

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

Example Usage: GroupPolicyConfigurationClient.GetGroupPolicyConfigurationsCount

ctx := context.TODO()


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

Example Usage: GroupPolicyConfigurationClient.ListGroupPolicyConfigurations

ctx := context.TODO()


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

Example Usage: GroupPolicyConfigurationClient.UpdateGroupPolicyConfiguration

ctx := context.TODO()
id := grouppolicyconfiguration.NewDeviceManagementGroupPolicyConfigurationID("groupPolicyConfigurationId")

payload := grouppolicyconfiguration.GroupPolicyConfiguration{
	// ...
}


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

Example Usage: GroupPolicyConfigurationClient.UpdateGroupPolicyConfigurationDefinitionValues

ctx := context.TODO()
id := grouppolicyconfiguration.NewDeviceManagementGroupPolicyConfigurationID("groupPolicyConfigurationId")

payload := grouppolicyconfiguration.UpdateGroupPolicyConfigurationDefinitionValuesRequest{
	// ...
}


read, err := client.UpdateGroupPolicyConfigurationDefinitionValues(ctx, id, payload, grouppolicyconfiguration.DefaultUpdateGroupPolicyConfigurationDefinitionValuesOperationOptions())
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 AssignGroupPolicyConfigurationsCompleteResult

type AssignGroupPolicyConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.GroupPolicyConfigurationAssignment
}

type AssignGroupPolicyConfigurationsCustomPager

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

type AssignGroupPolicyConfigurationsOperationOptions

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

func DefaultAssignGroupPolicyConfigurationsOperationOptions

func DefaultAssignGroupPolicyConfigurationsOperationOptions() AssignGroupPolicyConfigurationsOperationOptions

func (AssignGroupPolicyConfigurationsOperationOptions) ToHeaders

func (AssignGroupPolicyConfigurationsOperationOptions) ToOData

func (AssignGroupPolicyConfigurationsOperationOptions) ToQuery

type AssignGroupPolicyConfigurationsOperationResponse

type AssignGroupPolicyConfigurationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.GroupPolicyConfigurationAssignment
}

type AssignGroupPolicyConfigurationsRequest

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

type CreateGroupPolicyConfigurationOperationOptions

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

func DefaultCreateGroupPolicyConfigurationOperationOptions

func DefaultCreateGroupPolicyConfigurationOperationOptions() CreateGroupPolicyConfigurationOperationOptions

func (CreateGroupPolicyConfigurationOperationOptions) ToHeaders

func (CreateGroupPolicyConfigurationOperationOptions) ToOData

func (CreateGroupPolicyConfigurationOperationOptions) ToQuery

type CreateGroupPolicyConfigurationOperationResponse

type CreateGroupPolicyConfigurationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.GroupPolicyConfiguration
}

type DeleteGroupPolicyConfigurationOperationOptions

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

func DefaultDeleteGroupPolicyConfigurationOperationOptions

func DefaultDeleteGroupPolicyConfigurationOperationOptions() DeleteGroupPolicyConfigurationOperationOptions

func (DeleteGroupPolicyConfigurationOperationOptions) ToHeaders

func (DeleteGroupPolicyConfigurationOperationOptions) ToOData

func (DeleteGroupPolicyConfigurationOperationOptions) ToQuery

type DeleteGroupPolicyConfigurationOperationResponse

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

type GetGroupPolicyConfigurationOperationOptions

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

func DefaultGetGroupPolicyConfigurationOperationOptions

func DefaultGetGroupPolicyConfigurationOperationOptions() GetGroupPolicyConfigurationOperationOptions

func (GetGroupPolicyConfigurationOperationOptions) ToHeaders

func (GetGroupPolicyConfigurationOperationOptions) ToOData

func (GetGroupPolicyConfigurationOperationOptions) ToQuery

type GetGroupPolicyConfigurationOperationResponse

type GetGroupPolicyConfigurationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.GroupPolicyConfiguration
}

type GetGroupPolicyConfigurationsCountOperationOptions

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

func DefaultGetGroupPolicyConfigurationsCountOperationOptions

func DefaultGetGroupPolicyConfigurationsCountOperationOptions() GetGroupPolicyConfigurationsCountOperationOptions

func (GetGroupPolicyConfigurationsCountOperationOptions) ToHeaders

func (GetGroupPolicyConfigurationsCountOperationOptions) ToOData

func (GetGroupPolicyConfigurationsCountOperationOptions) ToQuery

type GetGroupPolicyConfigurationsCountOperationResponse

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

type GroupPolicyConfigurationAssignmentOperationPredicate

type GroupPolicyConfigurationAssignmentOperationPredicate struct {
}

func (GroupPolicyConfigurationAssignmentOperationPredicate) Matches

type GroupPolicyConfigurationClient

type GroupPolicyConfigurationClient struct {
	Client *msgraph.Client
}

func NewGroupPolicyConfigurationClientWithBaseURI

func NewGroupPolicyConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*GroupPolicyConfigurationClient, error)

func (GroupPolicyConfigurationClient) AssignGroupPolicyConfigurations

AssignGroupPolicyConfigurations - Invoke action assign

func (GroupPolicyConfigurationClient) AssignGroupPolicyConfigurationsComplete

AssignGroupPolicyConfigurationsComplete retrieves all the results into a single object

func (GroupPolicyConfigurationClient) AssignGroupPolicyConfigurationsCompleteMatchingPredicate

AssignGroupPolicyConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (GroupPolicyConfigurationClient) CreateGroupPolicyConfiguration

CreateGroupPolicyConfiguration - Create new navigation property to groupPolicyConfigurations for deviceManagement

func (GroupPolicyConfigurationClient) DeleteGroupPolicyConfiguration

DeleteGroupPolicyConfiguration - Delete navigation property groupPolicyConfigurations for deviceManagement

func (GroupPolicyConfigurationClient) GetGroupPolicyConfiguration

GetGroupPolicyConfiguration - Get groupPolicyConfigurations from deviceManagement. The group policy configurations created by this account.

func (GroupPolicyConfigurationClient) GetGroupPolicyConfigurationsCount

GetGroupPolicyConfigurationsCount - Get the number of the resource

func (GroupPolicyConfigurationClient) ListGroupPolicyConfigurations

ListGroupPolicyConfigurations - Get groupPolicyConfigurations from deviceManagement. The group policy configurations created by this account.

func (GroupPolicyConfigurationClient) ListGroupPolicyConfigurationsComplete

ListGroupPolicyConfigurationsComplete retrieves all the results into a single object

func (GroupPolicyConfigurationClient) ListGroupPolicyConfigurationsCompleteMatchingPredicate

ListGroupPolicyConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (GroupPolicyConfigurationClient) UpdateGroupPolicyConfiguration

UpdateGroupPolicyConfiguration - Update the navigation property groupPolicyConfigurations in deviceManagement

func (GroupPolicyConfigurationClient) UpdateGroupPolicyConfigurationDefinitionValues

UpdateGroupPolicyConfigurationDefinitionValues - Invoke action updateDefinitionValues

type GroupPolicyConfigurationOperationPredicate

type GroupPolicyConfigurationOperationPredicate struct {
}

func (GroupPolicyConfigurationOperationPredicate) Matches

type ListGroupPolicyConfigurationsCompleteResult

type ListGroupPolicyConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.GroupPolicyConfiguration
}

type ListGroupPolicyConfigurationsCustomPager

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

type ListGroupPolicyConfigurationsOperationOptions

type ListGroupPolicyConfigurationsOperationOptions 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 DefaultListGroupPolicyConfigurationsOperationOptions

func DefaultListGroupPolicyConfigurationsOperationOptions() ListGroupPolicyConfigurationsOperationOptions

func (ListGroupPolicyConfigurationsOperationOptions) ToHeaders

func (ListGroupPolicyConfigurationsOperationOptions) ToOData

func (ListGroupPolicyConfigurationsOperationOptions) ToQuery

type ListGroupPolicyConfigurationsOperationResponse

type ListGroupPolicyConfigurationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.GroupPolicyConfiguration
}

type UpdateGroupPolicyConfigurationDefinitionValuesOperationOptions

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

func (UpdateGroupPolicyConfigurationDefinitionValuesOperationOptions) ToHeaders

func (UpdateGroupPolicyConfigurationDefinitionValuesOperationOptions) ToOData

func (UpdateGroupPolicyConfigurationDefinitionValuesOperationOptions) ToQuery

type UpdateGroupPolicyConfigurationDefinitionValuesOperationResponse

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

type UpdateGroupPolicyConfigurationDefinitionValuesRequest

type UpdateGroupPolicyConfigurationDefinitionValuesRequest struct {
	Added      *[]beta.GroupPolicyDefinitionValue `json:"added,omitempty"`
	DeletedIds *[]string                          `json:"deletedIds,omitempty"`
	Updated    *[]beta.GroupPolicyDefinitionValue `json:"updated,omitempty"`
}

type UpdateGroupPolicyConfigurationOperationOptions

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

func DefaultUpdateGroupPolicyConfigurationOperationOptions

func DefaultUpdateGroupPolicyConfigurationOperationOptions() UpdateGroupPolicyConfigurationOperationOptions

func (UpdateGroupPolicyConfigurationOperationOptions) ToHeaders

func (UpdateGroupPolicyConfigurationOperationOptions) ToOData

func (UpdateGroupPolicyConfigurationOperationOptions) ToQuery

type UpdateGroupPolicyConfigurationOperationResponse

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