windowsautopilotdeviceidentity

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := windowsautopilotdeviceidentity.NewWindowsAutopilotDeviceIdentityClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: WindowsAutopilotDeviceIdentityClient.AssignWindowsAutopilotDeviceIdentityUserToDevice

ctx := context.TODO()
id := windowsautopilotdeviceidentity.NewDeviceManagementWindowsAutopilotDeviceIdentityID("windowsAutopilotDeviceIdentityId")

payload := windowsautopilotdeviceidentity.AssignWindowsAutopilotDeviceIdentityUserToDeviceRequest{
	// ...
}


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

Example Usage: WindowsAutopilotDeviceIdentityClient.CreateWindowsAutopilotDeviceIdentity

ctx := context.TODO()

payload := windowsautopilotdeviceidentity.WindowsAutopilotDeviceIdentity{
	// ...
}


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

Example Usage: WindowsAutopilotDeviceIdentityClient.CreateWindowsAutopilotDeviceIdentityUnassignUserFromDevice

ctx := context.TODO()
id := windowsautopilotdeviceidentity.NewDeviceManagementWindowsAutopilotDeviceIdentityID("windowsAutopilotDeviceIdentityId")

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

Example Usage: WindowsAutopilotDeviceIdentityClient.DeleteWindowsAutopilotDeviceIdentity

ctx := context.TODO()
id := windowsautopilotdeviceidentity.NewDeviceManagementWindowsAutopilotDeviceIdentityID("windowsAutopilotDeviceIdentityId")

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

Example Usage: WindowsAutopilotDeviceIdentityClient.GetWindowsAutopilotDeviceIdentitiesCount

ctx := context.TODO()


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

Example Usage: WindowsAutopilotDeviceIdentityClient.GetWindowsAutopilotDeviceIdentity

ctx := context.TODO()
id := windowsautopilotdeviceidentity.NewDeviceManagementWindowsAutopilotDeviceIdentityID("windowsAutopilotDeviceIdentityId")

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

Example Usage: WindowsAutopilotDeviceIdentityClient.ListWindowsAutopilotDeviceIdentities

ctx := context.TODO()


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

Example Usage: WindowsAutopilotDeviceIdentityClient.UpdateWindowsAutopilotDeviceIdentity

ctx := context.TODO()
id := windowsautopilotdeviceidentity.NewDeviceManagementWindowsAutopilotDeviceIdentityID("windowsAutopilotDeviceIdentityId")

payload := windowsautopilotdeviceidentity.WindowsAutopilotDeviceIdentity{
	// ...
}


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

Example Usage: WindowsAutopilotDeviceIdentityClient.UpdateWindowsAutopilotDeviceIdentityDeviceProperties

ctx := context.TODO()
id := windowsautopilotdeviceidentity.NewDeviceManagementWindowsAutopilotDeviceIdentityID("windowsAutopilotDeviceIdentityId")

payload := windowsautopilotdeviceidentity.UpdateWindowsAutopilotDeviceIdentityDevicePropertiesRequest{
	// ...
}


read, err := client.UpdateWindowsAutopilotDeviceIdentityDeviceProperties(ctx, id, payload, windowsautopilotdeviceidentity.DefaultUpdateWindowsAutopilotDeviceIdentityDevicePropertiesOperationOptions())
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 AssignWindowsAutopilotDeviceIdentityUserToDeviceOperationOptions

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

func (AssignWindowsAutopilotDeviceIdentityUserToDeviceOperationOptions) ToHeaders

func (AssignWindowsAutopilotDeviceIdentityUserToDeviceOperationOptions) ToOData

func (AssignWindowsAutopilotDeviceIdentityUserToDeviceOperationOptions) ToQuery

type AssignWindowsAutopilotDeviceIdentityUserToDeviceOperationResponse

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

type AssignWindowsAutopilotDeviceIdentityUserToDeviceRequest

type AssignWindowsAutopilotDeviceIdentityUserToDeviceRequest struct {
	AddressableUserName nullable.Type[string] `json:"addressableUserName,omitempty"`
	UserPrincipalName   nullable.Type[string] `json:"userPrincipalName,omitempty"`
}

type CreateWindowsAutopilotDeviceIdentityOperationOptions

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

func DefaultCreateWindowsAutopilotDeviceIdentityOperationOptions

func DefaultCreateWindowsAutopilotDeviceIdentityOperationOptions() CreateWindowsAutopilotDeviceIdentityOperationOptions

func (CreateWindowsAutopilotDeviceIdentityOperationOptions) ToHeaders

func (CreateWindowsAutopilotDeviceIdentityOperationOptions) ToOData

func (CreateWindowsAutopilotDeviceIdentityOperationOptions) ToQuery

type CreateWindowsAutopilotDeviceIdentityOperationResponse

type CreateWindowsAutopilotDeviceIdentityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.WindowsAutopilotDeviceIdentity
}

type CreateWindowsAutopilotDeviceIdentityUnassignUserFromDeviceOperationOptions

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

func (CreateWindowsAutopilotDeviceIdentityUnassignUserFromDeviceOperationOptions) ToHeaders

func (CreateWindowsAutopilotDeviceIdentityUnassignUserFromDeviceOperationOptions) ToOData

func (CreateWindowsAutopilotDeviceIdentityUnassignUserFromDeviceOperationOptions) ToQuery

type CreateWindowsAutopilotDeviceIdentityUnassignUserFromDeviceOperationResponse

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

type DeleteWindowsAutopilotDeviceIdentityOperationOptions

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

func DefaultDeleteWindowsAutopilotDeviceIdentityOperationOptions

func DefaultDeleteWindowsAutopilotDeviceIdentityOperationOptions() DeleteWindowsAutopilotDeviceIdentityOperationOptions

func (DeleteWindowsAutopilotDeviceIdentityOperationOptions) ToHeaders

func (DeleteWindowsAutopilotDeviceIdentityOperationOptions) ToOData

func (DeleteWindowsAutopilotDeviceIdentityOperationOptions) ToQuery

type DeleteWindowsAutopilotDeviceIdentityOperationResponse

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

type GetWindowsAutopilotDeviceIdentitiesCountOperationOptions

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

func (GetWindowsAutopilotDeviceIdentitiesCountOperationOptions) ToHeaders

func (GetWindowsAutopilotDeviceIdentitiesCountOperationOptions) ToOData

func (GetWindowsAutopilotDeviceIdentitiesCountOperationOptions) ToQuery

type GetWindowsAutopilotDeviceIdentitiesCountOperationResponse

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

type GetWindowsAutopilotDeviceIdentityOperationOptions

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

func DefaultGetWindowsAutopilotDeviceIdentityOperationOptions

func DefaultGetWindowsAutopilotDeviceIdentityOperationOptions() GetWindowsAutopilotDeviceIdentityOperationOptions

func (GetWindowsAutopilotDeviceIdentityOperationOptions) ToHeaders

func (GetWindowsAutopilotDeviceIdentityOperationOptions) ToOData

func (GetWindowsAutopilotDeviceIdentityOperationOptions) ToQuery

type GetWindowsAutopilotDeviceIdentityOperationResponse

type GetWindowsAutopilotDeviceIdentityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.WindowsAutopilotDeviceIdentity
}

type ListWindowsAutopilotDeviceIdentitiesCompleteResult

type ListWindowsAutopilotDeviceIdentitiesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.WindowsAutopilotDeviceIdentity
}

type ListWindowsAutopilotDeviceIdentitiesCustomPager

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

type ListWindowsAutopilotDeviceIdentitiesOperationOptions

type ListWindowsAutopilotDeviceIdentitiesOperationOptions 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 DefaultListWindowsAutopilotDeviceIdentitiesOperationOptions

func DefaultListWindowsAutopilotDeviceIdentitiesOperationOptions() ListWindowsAutopilotDeviceIdentitiesOperationOptions

func (ListWindowsAutopilotDeviceIdentitiesOperationOptions) ToHeaders

func (ListWindowsAutopilotDeviceIdentitiesOperationOptions) ToOData

func (ListWindowsAutopilotDeviceIdentitiesOperationOptions) ToQuery

type ListWindowsAutopilotDeviceIdentitiesOperationResponse

type ListWindowsAutopilotDeviceIdentitiesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.WindowsAutopilotDeviceIdentity
}

type UpdateWindowsAutopilotDeviceIdentityDevicePropertiesOperationOptions

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

func (UpdateWindowsAutopilotDeviceIdentityDevicePropertiesOperationOptions) ToHeaders

func (UpdateWindowsAutopilotDeviceIdentityDevicePropertiesOperationOptions) ToOData

func (UpdateWindowsAutopilotDeviceIdentityDevicePropertiesOperationOptions) ToQuery

type UpdateWindowsAutopilotDeviceIdentityDevicePropertiesOperationResponse

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

type UpdateWindowsAutopilotDeviceIdentityDevicePropertiesRequest

type UpdateWindowsAutopilotDeviceIdentityDevicePropertiesRequest struct {
	AddressableUserName nullable.Type[string] `json:"addressableUserName,omitempty"`
	DisplayName         nullable.Type[string] `json:"displayName,omitempty"`
	GroupTag            nullable.Type[string] `json:"groupTag,omitempty"`
	UserPrincipalName   nullable.Type[string] `json:"userPrincipalName,omitempty"`
}

type UpdateWindowsAutopilotDeviceIdentityOperationOptions

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

func DefaultUpdateWindowsAutopilotDeviceIdentityOperationOptions

func DefaultUpdateWindowsAutopilotDeviceIdentityOperationOptions() UpdateWindowsAutopilotDeviceIdentityOperationOptions

func (UpdateWindowsAutopilotDeviceIdentityOperationOptions) ToHeaders

func (UpdateWindowsAutopilotDeviceIdentityOperationOptions) ToOData

func (UpdateWindowsAutopilotDeviceIdentityOperationOptions) ToQuery

type UpdateWindowsAutopilotDeviceIdentityOperationResponse

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

type WindowsAutopilotDeviceIdentityClient

type WindowsAutopilotDeviceIdentityClient struct {
	Client *msgraph.Client
}

func NewWindowsAutopilotDeviceIdentityClientWithBaseURI

func NewWindowsAutopilotDeviceIdentityClientWithBaseURI(sdkApi sdkEnv.Api) (*WindowsAutopilotDeviceIdentityClient, error)

func (WindowsAutopilotDeviceIdentityClient) AssignWindowsAutopilotDeviceIdentityUserToDevice

AssignWindowsAutopilotDeviceIdentityUserToDevice - Invoke action assignUserToDevice. Assigns user to Autopilot devices.

func (WindowsAutopilotDeviceIdentityClient) CreateWindowsAutopilotDeviceIdentity

CreateWindowsAutopilotDeviceIdentity - Create windowsAutopilotDeviceIdentity. Create a new windowsAutopilotDeviceIdentity object.

func (WindowsAutopilotDeviceIdentityClient) CreateWindowsAutopilotDeviceIdentityUnassignUserFromDevice

CreateWindowsAutopilotDeviceIdentityUnassignUserFromDevice - Invoke action unassignUserFromDevice. Unassigns the user from an Autopilot device.

func (WindowsAutopilotDeviceIdentityClient) DeleteWindowsAutopilotDeviceIdentity

DeleteWindowsAutopilotDeviceIdentity - Delete windowsAutopilotDeviceIdentity. Deletes a windowsAutopilotDeviceIdentity.

func (WindowsAutopilotDeviceIdentityClient) GetWindowsAutopilotDeviceIdentitiesCount

GetWindowsAutopilotDeviceIdentitiesCount - Get the number of the resource

func (WindowsAutopilotDeviceIdentityClient) GetWindowsAutopilotDeviceIdentity

GetWindowsAutopilotDeviceIdentity - Get windowsAutopilotDeviceIdentity. Read properties and relationships of the windowsAutopilotDeviceIdentity object.

func (WindowsAutopilotDeviceIdentityClient) ListWindowsAutopilotDeviceIdentities

ListWindowsAutopilotDeviceIdentities - List windowsAutopilotDeviceIdentities. List properties and relationships of the windowsAutopilotDeviceIdentity objects.

func (WindowsAutopilotDeviceIdentityClient) ListWindowsAutopilotDeviceIdentitiesComplete

ListWindowsAutopilotDeviceIdentitiesComplete retrieves all the results into a single object

func (WindowsAutopilotDeviceIdentityClient) ListWindowsAutopilotDeviceIdentitiesCompleteMatchingPredicate

ListWindowsAutopilotDeviceIdentitiesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WindowsAutopilotDeviceIdentityClient) UpdateWindowsAutopilotDeviceIdentity

UpdateWindowsAutopilotDeviceIdentity - Update the navigation property windowsAutopilotDeviceIdentities in deviceManagement

func (WindowsAutopilotDeviceIdentityClient) UpdateWindowsAutopilotDeviceIdentityDeviceProperties

UpdateWindowsAutopilotDeviceIdentityDeviceProperties - Invoke action updateDeviceProperties. Updates properties on Autopilot devices.

type WindowsAutopilotDeviceIdentityOperationPredicate

type WindowsAutopilotDeviceIdentityOperationPredicate struct {
}

func (WindowsAutopilotDeviceIdentityOperationPredicate) Matches

Jump to

Keyboard shortcuts

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