templatemigratableto

package
v0.20241023.1122425 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := templatemigratableto.NewTemplateMigratableToClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TemplateMigratableToClient.CreateTemplateMigratableTo

ctx := context.TODO()
id := templatemigratableto.NewDeviceManagementTemplateID("deviceManagementTemplateId")

payload := templatemigratableto.DeviceManagementTemplate{
	// ...
}


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

Example Usage: TemplateMigratableToClient.CreateTemplateMigratableToInstance

ctx := context.TODO()
id := templatemigratableto.NewDeviceManagementTemplateIdMigratableToID("deviceManagementTemplateId", "deviceManagementTemplateId1")

payload := templatemigratableto.CreateTemplateMigratableToInstanceRequest{
	// ...
}


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

Example Usage: TemplateMigratableToClient.DeleteTemplateMigratableTo

ctx := context.TODO()
id := templatemigratableto.NewDeviceManagementTemplateIdMigratableToID("deviceManagementTemplateId", "deviceManagementTemplateId1")

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

Example Usage: TemplateMigratableToClient.GetTemplateMigratableTo

ctx := context.TODO()
id := templatemigratableto.NewDeviceManagementTemplateIdMigratableToID("deviceManagementTemplateId", "deviceManagementTemplateId1")

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

Example Usage: TemplateMigratableToClient.GetTemplateMigratableToCount

ctx := context.TODO()
id := templatemigratableto.NewDeviceManagementTemplateID("deviceManagementTemplateId")

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

Example Usage: TemplateMigratableToClient.ListTemplateMigratableToImportOffice365DeviceConfigurationPolicies

ctx := context.TODO()
id := templatemigratableto.NewDeviceManagementTemplateID("deviceManagementTemplateId")

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

Example Usage: TemplateMigratableToClient.ListTemplateMigratableTos

ctx := context.TODO()
id := templatemigratableto.NewDeviceManagementTemplateID("deviceManagementTemplateId")

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

Example Usage: TemplateMigratableToClient.UpdateTemplateMigratableTo

ctx := context.TODO()
id := templatemigratableto.NewDeviceManagementTemplateIdMigratableToID("deviceManagementTemplateId", "deviceManagementTemplateId1")

payload := templatemigratableto.DeviceManagementTemplate{
	// ...
}


read, err := client.UpdateTemplateMigratableTo(ctx, id, payload, templatemigratableto.DefaultUpdateTemplateMigratableToOperationOptions())
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 CreateTemplateMigratableToInstanceOperationOptions

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

func DefaultCreateTemplateMigratableToInstanceOperationOptions

func DefaultCreateTemplateMigratableToInstanceOperationOptions() CreateTemplateMigratableToInstanceOperationOptions

func (CreateTemplateMigratableToInstanceOperationOptions) ToHeaders

func (CreateTemplateMigratableToInstanceOperationOptions) ToOData

func (CreateTemplateMigratableToInstanceOperationOptions) ToQuery

type CreateTemplateMigratableToInstanceOperationResponse

type CreateTemplateMigratableToInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementIntent
}

type CreateTemplateMigratableToInstanceRequest

type CreateTemplateMigratableToInstanceRequest struct {
	Description     nullable.Type[string]                   `json:"description,omitempty"`
	DisplayName     nullable.Type[string]                   `json:"displayName,omitempty"`
	RoleScopeTagIds *[]string                               `json:"roleScopeTagIds,omitempty"`
	SettingsDelta   *[]beta.DeviceManagementSettingInstance `json:"settingsDelta,omitempty"`
}

type CreateTemplateMigratableToOperationOptions

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

func DefaultCreateTemplateMigratableToOperationOptions

func DefaultCreateTemplateMigratableToOperationOptions() CreateTemplateMigratableToOperationOptions

func (CreateTemplateMigratableToOperationOptions) ToHeaders

func (CreateTemplateMigratableToOperationOptions) ToOData

func (CreateTemplateMigratableToOperationOptions) ToQuery

type CreateTemplateMigratableToOperationResponse

type CreateTemplateMigratableToOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DeviceManagementTemplate
}

type DeleteTemplateMigratableToOperationOptions

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

func DefaultDeleteTemplateMigratableToOperationOptions

func DefaultDeleteTemplateMigratableToOperationOptions() DeleteTemplateMigratableToOperationOptions

func (DeleteTemplateMigratableToOperationOptions) ToHeaders

func (DeleteTemplateMigratableToOperationOptions) ToOData

func (DeleteTemplateMigratableToOperationOptions) ToQuery

type DeleteTemplateMigratableToOperationResponse

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

type DeviceManagementIntentOperationPredicate

type DeviceManagementIntentOperationPredicate struct {
}

func (DeviceManagementIntentOperationPredicate) Matches

type DeviceManagementTemplateOperationPredicate

type DeviceManagementTemplateOperationPredicate struct {
}

func (DeviceManagementTemplateOperationPredicate) Matches

type GetTemplateMigratableToCountOperationOptions

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

func DefaultGetTemplateMigratableToCountOperationOptions

func DefaultGetTemplateMigratableToCountOperationOptions() GetTemplateMigratableToCountOperationOptions

func (GetTemplateMigratableToCountOperationOptions) ToHeaders

func (GetTemplateMigratableToCountOperationOptions) ToOData

func (GetTemplateMigratableToCountOperationOptions) ToQuery

type GetTemplateMigratableToCountOperationResponse

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

type GetTemplateMigratableToOperationOptions

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

func DefaultGetTemplateMigratableToOperationOptions

func DefaultGetTemplateMigratableToOperationOptions() GetTemplateMigratableToOperationOptions

func (GetTemplateMigratableToOperationOptions) ToHeaders

func (GetTemplateMigratableToOperationOptions) ToOData

func (GetTemplateMigratableToOperationOptions) ToQuery

type GetTemplateMigratableToOperationResponse

type GetTemplateMigratableToOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DeviceManagementTemplate
}

type ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesCompleteResult

type ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementIntent
}

type ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesCustomPager

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

type ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesOperationOptions

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

func (ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesOperationOptions) ToHeaders

func (ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesOperationOptions) ToOData

func (ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesOperationOptions) ToQuery

type ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesOperationResponse

type ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementIntent
}

type ListTemplateMigratableTosCompleteResult

type ListTemplateMigratableTosCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementTemplate
}

type ListTemplateMigratableTosCustomPager

type ListTemplateMigratableTosCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListTemplateMigratableTosCustomPager) NextPageLink() *odata.Link

type ListTemplateMigratableTosOperationOptions

type ListTemplateMigratableTosOperationOptions 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 DefaultListTemplateMigratableTosOperationOptions

func DefaultListTemplateMigratableTosOperationOptions() ListTemplateMigratableTosOperationOptions

func (ListTemplateMigratableTosOperationOptions) ToHeaders

func (ListTemplateMigratableTosOperationOptions) ToOData

func (ListTemplateMigratableTosOperationOptions) ToQuery

type ListTemplateMigratableTosOperationResponse

type ListTemplateMigratableTosOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementTemplate
}

type TemplateMigratableToClient

type TemplateMigratableToClient struct {
	Client *msgraph.Client
}

func NewTemplateMigratableToClientWithBaseURI

func NewTemplateMigratableToClientWithBaseURI(sdkApi sdkEnv.Api) (*TemplateMigratableToClient, error)

func (TemplateMigratableToClient) CreateTemplateMigratableTo

CreateTemplateMigratableTo - Create new navigation property to migratableTo for deviceManagement

func (TemplateMigratableToClient) CreateTemplateMigratableToInstance

CreateTemplateMigratableToInstance - Invoke action createInstance

func (TemplateMigratableToClient) DeleteTemplateMigratableTo

DeleteTemplateMigratableTo - Delete navigation property migratableTo for deviceManagement

func (TemplateMigratableToClient) GetTemplateMigratableTo

GetTemplateMigratableTo - Get migratableTo from deviceManagement. Collection of templates this template can migrate to

func (TemplateMigratableToClient) GetTemplateMigratableToCount

GetTemplateMigratableToCount - Get the number of the resource

func (TemplateMigratableToClient) ListTemplateMigratableToImportOffice365DeviceConfigurationPolicies

ListTemplateMigratableToImportOffice365DeviceConfigurationPolicies - Invoke action importOffice365DeviceConfigurationPolicies

func (TemplateMigratableToClient) ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesComplete

ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesComplete retrieves all the results into a single object

func (TemplateMigratableToClient) ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesCompleteMatchingPredicate

ListTemplateMigratableToImportOffice365DeviceConfigurationPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TemplateMigratableToClient) ListTemplateMigratableTos

ListTemplateMigratableTos - Get migratableTo from deviceManagement. Collection of templates this template can migrate to

func (TemplateMigratableToClient) ListTemplateMigratableTosComplete

ListTemplateMigratableTosComplete retrieves all the results into a single object

func (TemplateMigratableToClient) ListTemplateMigratableTosCompleteMatchingPredicate

ListTemplateMigratableTosCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TemplateMigratableToClient) UpdateTemplateMigratableTo

UpdateTemplateMigratableTo - Update the navigation property migratableTo in deviceManagement

type UpdateTemplateMigratableToOperationOptions

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

func DefaultUpdateTemplateMigratableToOperationOptions

func DefaultUpdateTemplateMigratableToOperationOptions() UpdateTemplateMigratableToOperationOptions

func (UpdateTemplateMigratableToOperationOptions) ToHeaders

func (UpdateTemplateMigratableToOperationOptions) ToOData

func (UpdateTemplateMigratableToOperationOptions) ToQuery

type UpdateTemplateMigratableToOperationResponse

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