windowsautopilotdeploymentprofile

package
v0.20250114.1063937 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MPL-2.0 Imports: 9 Imported by: 1

README

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

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

Client Initialization

client := windowsautopilotdeploymentprofile.NewWindowsAutopilotDeploymentProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: WindowsAutopilotDeploymentProfileClient.AssignWindowsAutopilotDeploymentProfile

ctx := context.TODO()
id := windowsautopilotdeploymentprofile.NewDeviceManagementWindowsAutopilotDeploymentProfileID("windowsAutopilotDeploymentProfileId")

payload := windowsautopilotdeploymentprofile.AssignWindowsAutopilotDeploymentProfileRequest{
	// ...
}


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

Example Usage: WindowsAutopilotDeploymentProfileClient.CreateWindowsAutopilotDeploymentProfile

ctx := context.TODO()

payload := windowsautopilotdeploymentprofile.WindowsAutopilotDeploymentProfile{
	// ...
}


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

Example Usage: WindowsAutopilotDeploymentProfileClient.DeleteWindowsAutopilotDeploymentProfile

ctx := context.TODO()
id := windowsautopilotdeploymentprofile.NewDeviceManagementWindowsAutopilotDeploymentProfileID("windowsAutopilotDeploymentProfileId")

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

Example Usage: WindowsAutopilotDeploymentProfileClient.GetWindowsAutopilotDeploymentProfile

ctx := context.TODO()
id := windowsautopilotdeploymentprofile.NewDeviceManagementWindowsAutopilotDeploymentProfileID("windowsAutopilotDeploymentProfileId")

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

Example Usage: WindowsAutopilotDeploymentProfileClient.GetWindowsAutopilotDeploymentProfilesCount

ctx := context.TODO()


read, err := client.GetWindowsAutopilotDeploymentProfilesCount(ctx, windowsautopilotdeploymentprofile.DefaultGetWindowsAutopilotDeploymentProfilesCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}
ctx := context.TODO()

payload := windowsautopilotdeploymentprofile.ListWindowsAutopilotDeploymentProfileHasPayloadLinksRequest{
	// ...
}


// alternatively `client.ListWindowsAutopilotDeploymentProfileHasPayloadLinks(ctx, payload, windowsautopilotdeploymentprofile.DefaultListWindowsAutopilotDeploymentProfileHasPayloadLinksOperationOptions())` can be used to do batched pagination
items, err := client.ListWindowsAutopilotDeploymentProfileHasPayloadLinksComplete(ctx, payload, windowsautopilotdeploymentprofile.DefaultListWindowsAutopilotDeploymentProfileHasPayloadLinksOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: WindowsAutopilotDeploymentProfileClient.ListWindowsAutopilotDeploymentProfiles

ctx := context.TODO()


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

Example Usage: WindowsAutopilotDeploymentProfileClient.UpdateWindowsAutopilotDeploymentProfile

ctx := context.TODO()
id := windowsautopilotdeploymentprofile.NewDeviceManagementWindowsAutopilotDeploymentProfileID("windowsAutopilotDeploymentProfileId")

payload := windowsautopilotdeploymentprofile.WindowsAutopilotDeploymentProfile{
	// ...
}


read, err := client.UpdateWindowsAutopilotDeploymentProfile(ctx, id, payload, windowsautopilotdeploymentprofile.DefaultUpdateWindowsAutopilotDeploymentProfileOperationOptions())
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 AssignWindowsAutopilotDeploymentProfileOperationOptions

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

func (AssignWindowsAutopilotDeploymentProfileOperationOptions) ToHeaders

func (AssignWindowsAutopilotDeploymentProfileOperationOptions) ToOData

func (AssignWindowsAutopilotDeploymentProfileOperationOptions) ToQuery

type AssignWindowsAutopilotDeploymentProfileOperationResponse

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

type AssignWindowsAutopilotDeploymentProfileRequest

type AssignWindowsAutopilotDeploymentProfileRequest struct {
	DeviceIds *[]string `json:"deviceIds,omitempty"`
}

type CreateWindowsAutopilotDeploymentProfileOperationOptions

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

func (CreateWindowsAutopilotDeploymentProfileOperationOptions) ToHeaders

func (CreateWindowsAutopilotDeploymentProfileOperationOptions) ToOData

func (CreateWindowsAutopilotDeploymentProfileOperationOptions) ToQuery

type CreateWindowsAutopilotDeploymentProfileOperationResponse

type CreateWindowsAutopilotDeploymentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.WindowsAutopilotDeploymentProfile
}

type DeleteWindowsAutopilotDeploymentProfileOperationOptions

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

func (DeleteWindowsAutopilotDeploymentProfileOperationOptions) ToHeaders

func (DeleteWindowsAutopilotDeploymentProfileOperationOptions) ToOData

func (DeleteWindowsAutopilotDeploymentProfileOperationOptions) ToQuery

type DeleteWindowsAutopilotDeploymentProfileOperationResponse

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

type GetWindowsAutopilotDeploymentProfileOperationOptions

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

func DefaultGetWindowsAutopilotDeploymentProfileOperationOptions

func DefaultGetWindowsAutopilotDeploymentProfileOperationOptions() GetWindowsAutopilotDeploymentProfileOperationOptions

func (GetWindowsAutopilotDeploymentProfileOperationOptions) ToHeaders

func (GetWindowsAutopilotDeploymentProfileOperationOptions) ToOData

func (GetWindowsAutopilotDeploymentProfileOperationOptions) ToQuery

type GetWindowsAutopilotDeploymentProfileOperationResponse

type GetWindowsAutopilotDeploymentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.WindowsAutopilotDeploymentProfile
}

type GetWindowsAutopilotDeploymentProfilesCountOperationOptions

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

func (GetWindowsAutopilotDeploymentProfilesCountOperationOptions) ToHeaders

func (GetWindowsAutopilotDeploymentProfilesCountOperationOptions) ToOData

func (GetWindowsAutopilotDeploymentProfilesCountOperationOptions) ToQuery

type GetWindowsAutopilotDeploymentProfilesCountOperationResponse

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

type HasPayloadLinkResultItemOperationPredicate

type HasPayloadLinkResultItemOperationPredicate struct {
}

func (HasPayloadLinkResultItemOperationPredicate) Matches

type ListWindowsAutopilotDeploymentProfileHasPayloadLinksCompleteResult

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

type ListWindowsAutopilotDeploymentProfileHasPayloadLinksCustomPager

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

type ListWindowsAutopilotDeploymentProfileHasPayloadLinksOperationOptions

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

func (ListWindowsAutopilotDeploymentProfileHasPayloadLinksOperationOptions) ToHeaders

func (ListWindowsAutopilotDeploymentProfileHasPayloadLinksOperationOptions) ToOData

func (ListWindowsAutopilotDeploymentProfileHasPayloadLinksOperationOptions) ToQuery

type ListWindowsAutopilotDeploymentProfileHasPayloadLinksOperationResponse

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

type ListWindowsAutopilotDeploymentProfileHasPayloadLinksRequest

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

type ListWindowsAutopilotDeploymentProfilesCompleteResult

type ListWindowsAutopilotDeploymentProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.WindowsAutopilotDeploymentProfile
}

type ListWindowsAutopilotDeploymentProfilesCustomPager

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

type ListWindowsAutopilotDeploymentProfilesOperationOptions

type ListWindowsAutopilotDeploymentProfilesOperationOptions 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 DefaultListWindowsAutopilotDeploymentProfilesOperationOptions

func DefaultListWindowsAutopilotDeploymentProfilesOperationOptions() ListWindowsAutopilotDeploymentProfilesOperationOptions

func (ListWindowsAutopilotDeploymentProfilesOperationOptions) ToHeaders

func (ListWindowsAutopilotDeploymentProfilesOperationOptions) ToOData

func (ListWindowsAutopilotDeploymentProfilesOperationOptions) ToQuery

type ListWindowsAutopilotDeploymentProfilesOperationResponse

type ListWindowsAutopilotDeploymentProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.WindowsAutopilotDeploymentProfile
}

type UpdateWindowsAutopilotDeploymentProfileOperationOptions

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

func (UpdateWindowsAutopilotDeploymentProfileOperationOptions) ToHeaders

func (UpdateWindowsAutopilotDeploymentProfileOperationOptions) ToOData

func (UpdateWindowsAutopilotDeploymentProfileOperationOptions) ToQuery

type UpdateWindowsAutopilotDeploymentProfileOperationResponse

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

type WindowsAutopilotDeploymentProfileClient

type WindowsAutopilotDeploymentProfileClient struct {
	Client *msgraph.Client
}

func NewWindowsAutopilotDeploymentProfileClientWithBaseURI

func NewWindowsAutopilotDeploymentProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*WindowsAutopilotDeploymentProfileClient, error)

func (WindowsAutopilotDeploymentProfileClient) AssignWindowsAutopilotDeploymentProfile

AssignWindowsAutopilotDeploymentProfile - Invoke action assign

func (WindowsAutopilotDeploymentProfileClient) CreateWindowsAutopilotDeploymentProfile

CreateWindowsAutopilotDeploymentProfile - Create new navigation property to windowsAutopilotDeploymentProfiles for deviceManagement

func (WindowsAutopilotDeploymentProfileClient) DeleteWindowsAutopilotDeploymentProfile

DeleteWindowsAutopilotDeploymentProfile - Delete navigation property windowsAutopilotDeploymentProfiles for deviceManagement

func (WindowsAutopilotDeploymentProfileClient) GetWindowsAutopilotDeploymentProfile

GetWindowsAutopilotDeploymentProfile - Get windowsAutopilotDeploymentProfiles from deviceManagement. Windows auto pilot deployment profiles

func (WindowsAutopilotDeploymentProfileClient) GetWindowsAutopilotDeploymentProfilesCount

GetWindowsAutopilotDeploymentProfilesCount - Get the number of the resource

ListWindowsAutopilotDeploymentProfileHasPayloadLinks - Invoke action hasPayloadLinks

func (WindowsAutopilotDeploymentProfileClient) ListWindowsAutopilotDeploymentProfileHasPayloadLinksComplete

ListWindowsAutopilotDeploymentProfileHasPayloadLinksComplete retrieves all the results into a single object

func (WindowsAutopilotDeploymentProfileClient) ListWindowsAutopilotDeploymentProfileHasPayloadLinksCompleteMatchingPredicate

ListWindowsAutopilotDeploymentProfileHasPayloadLinksCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WindowsAutopilotDeploymentProfileClient) ListWindowsAutopilotDeploymentProfiles

ListWindowsAutopilotDeploymentProfiles - Get windowsAutopilotDeploymentProfiles from deviceManagement. Windows auto pilot deployment profiles

func (WindowsAutopilotDeploymentProfileClient) ListWindowsAutopilotDeploymentProfilesComplete

ListWindowsAutopilotDeploymentProfilesComplete retrieves all the results into a single object

func (WindowsAutopilotDeploymentProfileClient) ListWindowsAutopilotDeploymentProfilesCompleteMatchingPredicate

ListWindowsAutopilotDeploymentProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (WindowsAutopilotDeploymentProfileClient) UpdateWindowsAutopilotDeploymentProfile

UpdateWindowsAutopilotDeploymentProfile - Update the navigation property windowsAutopilotDeploymentProfiles in deviceManagement

type WindowsAutopilotDeploymentProfileOperationPredicate

type WindowsAutopilotDeploymentProfileOperationPredicate struct {
}

func (WindowsAutopilotDeploymentProfileOperationPredicate) Matches

Jump to

Keyboard shortcuts

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