deviceenrollmentconfiguration

package
v0.20240923.1151247 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/deviceenrollmentconfiguration Documentation

The deviceenrollmentconfiguration SDK allows for interaction with Microsoft Graph users (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/users/beta/deviceenrollmentconfiguration"

Client Initialization

client := deviceenrollmentconfiguration.NewDeviceEnrollmentConfigurationClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceEnrollmentConfigurationClient.AssignDeviceEnrollmentConfiguration

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserIdDeviceEnrollmentConfigurationID("userId", "deviceEnrollmentConfigurationId")

payload := deviceenrollmentconfiguration.AssignDeviceEnrollmentConfigurationRequest{
	// ...
}


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

Example Usage: DeviceEnrollmentConfigurationClient.CreateDeviceEnrollmentConfiguration

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserID("userId")

payload := deviceenrollmentconfiguration.DeviceEnrollmentConfiguration{
	// ...
}


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

Example Usage: DeviceEnrollmentConfigurationClient.CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfiguration

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserID("userId")

payload := deviceenrollmentconfiguration.CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfigurationRequest{
	// ...
}


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

Example Usage: DeviceEnrollmentConfigurationClient.DeleteDeviceEnrollmentConfiguration

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserIdDeviceEnrollmentConfigurationID("userId", "deviceEnrollmentConfigurationId")

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

Example Usage: DeviceEnrollmentConfigurationClient.GetDeviceEnrollmentConfiguration

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserIdDeviceEnrollmentConfigurationID("userId", "deviceEnrollmentConfigurationId")

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

Example Usage: DeviceEnrollmentConfigurationClient.GetDeviceEnrollmentConfigurationsCount

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserID("userId")

read, err := client.GetDeviceEnrollmentConfigurationsCount(ctx, id, deviceenrollmentconfiguration.DefaultGetDeviceEnrollmentConfigurationsCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}
ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserID("userId")

payload := deviceenrollmentconfiguration.ListDeviceEnrollmentConfigurationHasPayloadLinksRequest{
	// ...
}


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

Example Usage: DeviceEnrollmentConfigurationClient.ListDeviceEnrollmentConfigurations

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserID("userId")

// alternatively `client.ListDeviceEnrollmentConfigurations(ctx, id, deviceenrollmentconfiguration.DefaultListDeviceEnrollmentConfigurationsOperationOptions())` can be used to do batched pagination
items, err := client.ListDeviceEnrollmentConfigurationsComplete(ctx, id, deviceenrollmentconfiguration.DefaultListDeviceEnrollmentConfigurationsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: DeviceEnrollmentConfigurationClient.SetDeviceEnrollmentConfigurationPriority

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserIdDeviceEnrollmentConfigurationID("userId", "deviceEnrollmentConfigurationId")

payload := deviceenrollmentconfiguration.SetDeviceEnrollmentConfigurationPriorityRequest{
	// ...
}


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

Example Usage: DeviceEnrollmentConfigurationClient.UpdateDeviceEnrollmentConfiguration

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewUserIdDeviceEnrollmentConfigurationID("userId", "deviceEnrollmentConfigurationId")

payload := deviceenrollmentconfiguration.DeviceEnrollmentConfiguration{
	// ...
}


read, err := client.UpdateDeviceEnrollmentConfiguration(ctx, id, payload, deviceenrollmentconfiguration.DefaultUpdateDeviceEnrollmentConfigurationOperationOptions())
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 AssignDeviceEnrollmentConfigurationOperationOptions

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

func DefaultAssignDeviceEnrollmentConfigurationOperationOptions

func DefaultAssignDeviceEnrollmentConfigurationOperationOptions() AssignDeviceEnrollmentConfigurationOperationOptions

func (AssignDeviceEnrollmentConfigurationOperationOptions) ToHeaders

func (AssignDeviceEnrollmentConfigurationOperationOptions) ToOData

func (AssignDeviceEnrollmentConfigurationOperationOptions) ToQuery

type AssignDeviceEnrollmentConfigurationOperationResponse

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

type AssignDeviceEnrollmentConfigurationRequest

type AssignDeviceEnrollmentConfigurationRequest struct {
	EnrollmentConfigurationAssignments *[]beta.EnrollmentConfigurationAssignment `json:"enrollmentConfigurationAssignments,omitempty"`
}

type CreateDeviceEnrollmentConfigurationOperationOptions

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

func DefaultCreateDeviceEnrollmentConfigurationOperationOptions

func DefaultCreateDeviceEnrollmentConfigurationOperationOptions() CreateDeviceEnrollmentConfigurationOperationOptions

func (CreateDeviceEnrollmentConfigurationOperationOptions) ToHeaders

func (CreateDeviceEnrollmentConfigurationOperationOptions) ToOData

func (CreateDeviceEnrollmentConfigurationOperationOptions) ToQuery

type CreateDeviceEnrollmentConfigurationOperationResponse

type CreateDeviceEnrollmentConfigurationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DeviceEnrollmentConfiguration
}

type CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfigurationOperationOptions

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

func (CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfigurationOperationOptions) ToHeaders

func (CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfigurationOperationOptions) ToOData

func (CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfigurationOperationOptions) ToQuery

type CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfigurationOperationResponse

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

type CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfigurationRequest

type CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfigurationRequest struct {
	DeviceEnrollmentNotificationConfigurations *[]beta.DeviceEnrollmentConfiguration `json:"deviceEnrollmentNotificationConfigurations,omitempty"`
}

type DeleteDeviceEnrollmentConfigurationOperationOptions

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

func DefaultDeleteDeviceEnrollmentConfigurationOperationOptions

func DefaultDeleteDeviceEnrollmentConfigurationOperationOptions() DeleteDeviceEnrollmentConfigurationOperationOptions

func (DeleteDeviceEnrollmentConfigurationOperationOptions) ToHeaders

func (DeleteDeviceEnrollmentConfigurationOperationOptions) ToOData

func (DeleteDeviceEnrollmentConfigurationOperationOptions) ToQuery

type DeleteDeviceEnrollmentConfigurationOperationResponse

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

type DeviceEnrollmentConfigurationClient

type DeviceEnrollmentConfigurationClient struct {
	Client *msgraph.Client
}

func NewDeviceEnrollmentConfigurationClientWithBaseURI

func NewDeviceEnrollmentConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceEnrollmentConfigurationClient, error)

func (DeviceEnrollmentConfigurationClient) AssignDeviceEnrollmentConfiguration

AssignDeviceEnrollmentConfiguration - Invoke action assign

func (DeviceEnrollmentConfigurationClient) CreateDeviceEnrollmentConfiguration

CreateDeviceEnrollmentConfiguration - Create new navigation property to deviceEnrollmentConfigurations for users

func (DeviceEnrollmentConfigurationClient) CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfiguration

CreateDeviceEnrollmentConfigurationsEnrollmentNotificationConfiguration - Invoke action createEnrollmentNotificationConfiguration

func (DeviceEnrollmentConfigurationClient) DeleteDeviceEnrollmentConfiguration

DeleteDeviceEnrollmentConfiguration - Delete navigation property deviceEnrollmentConfigurations for users

func (DeviceEnrollmentConfigurationClient) GetDeviceEnrollmentConfiguration

GetDeviceEnrollmentConfiguration - Get deviceEnrollmentConfigurations from users. Get enrollment configurations targeted to the user

func (DeviceEnrollmentConfigurationClient) GetDeviceEnrollmentConfigurationsCount

GetDeviceEnrollmentConfigurationsCount - Get the number of the resource

ListDeviceEnrollmentConfigurationHasPayloadLinks - Invoke action hasPayloadLinks

func (DeviceEnrollmentConfigurationClient) ListDeviceEnrollmentConfigurationHasPayloadLinksComplete

ListDeviceEnrollmentConfigurationHasPayloadLinksComplete retrieves all the results into a single object

func (DeviceEnrollmentConfigurationClient) ListDeviceEnrollmentConfigurationHasPayloadLinksCompleteMatchingPredicate

ListDeviceEnrollmentConfigurationHasPayloadLinksCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceEnrollmentConfigurationClient) ListDeviceEnrollmentConfigurations

ListDeviceEnrollmentConfigurations - Get deviceEnrollmentConfigurations from users. Get enrollment configurations targeted to the user

func (DeviceEnrollmentConfigurationClient) ListDeviceEnrollmentConfigurationsComplete

ListDeviceEnrollmentConfigurationsComplete retrieves all the results into a single object

func (DeviceEnrollmentConfigurationClient) ListDeviceEnrollmentConfigurationsCompleteMatchingPredicate

ListDeviceEnrollmentConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceEnrollmentConfigurationClient) SetDeviceEnrollmentConfigurationPriority

SetDeviceEnrollmentConfigurationPriority - Invoke action setPriority

func (DeviceEnrollmentConfigurationClient) UpdateDeviceEnrollmentConfiguration

UpdateDeviceEnrollmentConfiguration - Update the navigation property deviceEnrollmentConfigurations in users

type DeviceEnrollmentConfigurationOperationPredicate

type DeviceEnrollmentConfigurationOperationPredicate struct {
}

func (DeviceEnrollmentConfigurationOperationPredicate) Matches

type GetDeviceEnrollmentConfigurationOperationOptions

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

func DefaultGetDeviceEnrollmentConfigurationOperationOptions

func DefaultGetDeviceEnrollmentConfigurationOperationOptions() GetDeviceEnrollmentConfigurationOperationOptions

func (GetDeviceEnrollmentConfigurationOperationOptions) ToHeaders

func (GetDeviceEnrollmentConfigurationOperationOptions) ToOData

func (GetDeviceEnrollmentConfigurationOperationOptions) ToQuery

type GetDeviceEnrollmentConfigurationOperationResponse

type GetDeviceEnrollmentConfigurationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DeviceEnrollmentConfiguration
}

type GetDeviceEnrollmentConfigurationsCountOperationOptions

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

func DefaultGetDeviceEnrollmentConfigurationsCountOperationOptions

func DefaultGetDeviceEnrollmentConfigurationsCountOperationOptions() GetDeviceEnrollmentConfigurationsCountOperationOptions

func (GetDeviceEnrollmentConfigurationsCountOperationOptions) ToHeaders

func (GetDeviceEnrollmentConfigurationsCountOperationOptions) ToOData

func (GetDeviceEnrollmentConfigurationsCountOperationOptions) ToQuery

type GetDeviceEnrollmentConfigurationsCountOperationResponse

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

type HasPayloadLinkResultItemOperationPredicate

type HasPayloadLinkResultItemOperationPredicate struct {
}

func (HasPayloadLinkResultItemOperationPredicate) Matches

type ListDeviceEnrollmentConfigurationHasPayloadLinksCompleteResult

type ListDeviceEnrollmentConfigurationHasPayloadLinksCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.HasPayloadLinkResultItem
}

type ListDeviceEnrollmentConfigurationHasPayloadLinksCustomPager

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

type ListDeviceEnrollmentConfigurationHasPayloadLinksOperationOptions

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

func (ListDeviceEnrollmentConfigurationHasPayloadLinksOperationOptions) ToHeaders

func (ListDeviceEnrollmentConfigurationHasPayloadLinksOperationOptions) ToOData

func (ListDeviceEnrollmentConfigurationHasPayloadLinksOperationOptions) ToQuery

type ListDeviceEnrollmentConfigurationHasPayloadLinksOperationResponse

type ListDeviceEnrollmentConfigurationHasPayloadLinksOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.HasPayloadLinkResultItem
}

type ListDeviceEnrollmentConfigurationHasPayloadLinksRequest

type ListDeviceEnrollmentConfigurationHasPayloadLinksRequest struct {
	PayloadIds *[]string `json:"payloadIds,omitempty"`
}

type ListDeviceEnrollmentConfigurationsCompleteResult

type ListDeviceEnrollmentConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceEnrollmentConfiguration
}

type ListDeviceEnrollmentConfigurationsCustomPager

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

type ListDeviceEnrollmentConfigurationsOperationOptions

type ListDeviceEnrollmentConfigurationsOperationOptions 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 DefaultListDeviceEnrollmentConfigurationsOperationOptions

func DefaultListDeviceEnrollmentConfigurationsOperationOptions() ListDeviceEnrollmentConfigurationsOperationOptions

func (ListDeviceEnrollmentConfigurationsOperationOptions) ToHeaders

func (ListDeviceEnrollmentConfigurationsOperationOptions) ToOData

func (ListDeviceEnrollmentConfigurationsOperationOptions) ToQuery

type ListDeviceEnrollmentConfigurationsOperationResponse

type ListDeviceEnrollmentConfigurationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceEnrollmentConfiguration
}

type SetDeviceEnrollmentConfigurationPriorityOperationOptions

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

func (SetDeviceEnrollmentConfigurationPriorityOperationOptions) ToHeaders

func (SetDeviceEnrollmentConfigurationPriorityOperationOptions) ToOData

func (SetDeviceEnrollmentConfigurationPriorityOperationOptions) ToQuery

type SetDeviceEnrollmentConfigurationPriorityOperationResponse

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

type SetDeviceEnrollmentConfigurationPriorityRequest

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

type UpdateDeviceEnrollmentConfigurationOperationOptions

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

func DefaultUpdateDeviceEnrollmentConfigurationOperationOptions

func DefaultUpdateDeviceEnrollmentConfigurationOperationOptions() UpdateDeviceEnrollmentConfigurationOperationOptions

func (UpdateDeviceEnrollmentConfigurationOperationOptions) ToHeaders

func (UpdateDeviceEnrollmentConfigurationOperationOptions) ToOData

func (UpdateDeviceEnrollmentConfigurationOperationOptions) ToQuery

type UpdateDeviceEnrollmentConfigurationOperationResponse

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