deviceenrollmentconfiguration

package
v0.20241126.1723 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/stable/deviceenrollmentconfiguration Documentation

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

Client Initialization

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

Example Usage: DeviceEnrollmentConfigurationClient.AssignDeviceEnrollmentConfiguration

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewDeviceManagementDeviceEnrollmentConfigurationID("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()

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


read, err := client.CreateDeviceEnrollmentConfiguration(ctx, 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.DeleteDeviceEnrollmentConfiguration

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewDeviceManagementDeviceEnrollmentConfigurationID("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.NewDeviceManagementDeviceEnrollmentConfigurationID("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()


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

Example Usage: DeviceEnrollmentConfigurationClient.ListDeviceEnrollmentConfigurations

ctx := context.TODO()


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

Example Usage: DeviceEnrollmentConfigurationClient.SetDeviceEnrollmentConfigurationPriority

ctx := context.TODO()
id := deviceenrollmentconfiguration.NewDeviceManagementDeviceEnrollmentConfigurationID("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.NewDeviceManagementDeviceEnrollmentConfigurationID("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 *[]stable.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        stable.DeviceEnrollmentConfiguration
}

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. Not yet documented

func (DeviceEnrollmentConfigurationClient) CreateDeviceEnrollmentConfiguration

CreateDeviceEnrollmentConfiguration - Create deviceEnrollmentWindowsHelloForBusinessConfiguration. Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object.

func (DeviceEnrollmentConfigurationClient) DeleteDeviceEnrollmentConfiguration

DeleteDeviceEnrollmentConfiguration - Delete deviceEnrollmentLimitConfiguration. Deletes a deviceEnrollmentLimitConfiguration.

func (DeviceEnrollmentConfigurationClient) GetDeviceEnrollmentConfiguration

GetDeviceEnrollmentConfiguration - Get deviceEnrollmentPlatformRestrictionsConfiguration. Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object.

func (DeviceEnrollmentConfigurationClient) GetDeviceEnrollmentConfigurationsCount

GetDeviceEnrollmentConfigurationsCount - Get the number of the resource

func (DeviceEnrollmentConfigurationClient) ListDeviceEnrollmentConfigurations

ListDeviceEnrollmentConfigurations - List deviceEnrollmentWindowsHelloForBusinessConfigurations. List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects.

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. Not yet documented

func (DeviceEnrollmentConfigurationClient) UpdateDeviceEnrollmentConfiguration

UpdateDeviceEnrollmentConfiguration - Update deviceEnrollmentLimitConfiguration. Update the properties of a deviceEnrollmentLimitConfiguration object.

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        stable.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 ListDeviceEnrollmentConfigurationsCompleteResult

type ListDeviceEnrollmentConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.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        *[]stable.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