deponboardingsetting

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := deponboardingsetting.NewDepOnboardingSettingClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DepOnboardingSettingClient.CreateDepOnboardingSetting

ctx := context.TODO()

payload := deponboardingsetting.DepOnboardingSetting{
	// ...
}


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

Example Usage: DepOnboardingSettingClient.CreateDepOnboardingSettingGenerateEncryptionPublicKey

ctx := context.TODO()
id := deponboardingsetting.NewDeviceManagementDepOnboardingSettingID("depOnboardingSettingId")

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

Example Usage: DepOnboardingSettingClient.CreateDepOnboardingSettingUploadDepToken

ctx := context.TODO()
id := deponboardingsetting.NewDeviceManagementDepOnboardingSettingID("depOnboardingSettingId")

payload := deponboardingsetting.CreateDepOnboardingSettingUploadDepTokenRequest{
	// ...
}


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

Example Usage: DepOnboardingSettingClient.DeleteDepOnboardingSetting

ctx := context.TODO()
id := deponboardingsetting.NewDeviceManagementDepOnboardingSettingID("depOnboardingSettingId")

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

Example Usage: DepOnboardingSettingClient.GetDepOnboardingSetting

ctx := context.TODO()
id := deponboardingsetting.NewDeviceManagementDepOnboardingSettingID("depOnboardingSettingId")

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

Example Usage: DepOnboardingSettingClient.GetDepOnboardingSettingsCount

ctx := context.TODO()


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

Example Usage: DepOnboardingSettingClient.ListDepOnboardingSettings

ctx := context.TODO()


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

Example Usage: DepOnboardingSettingClient.ShareDepOnboardingSettingForSchoolDataSyncService

ctx := context.TODO()
id := deponboardingsetting.NewDeviceManagementDepOnboardingSettingID("depOnboardingSettingId")

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

Example Usage: DepOnboardingSettingClient.SyncDepOnboardingSettingWithAppleDeviceEnrollmentProgram

ctx := context.TODO()
id := deponboardingsetting.NewDeviceManagementDepOnboardingSettingID("depOnboardingSettingId")

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

Example Usage: DepOnboardingSettingClient.UnshareDepOnboardingSettingForSchoolDataSyncService

ctx := context.TODO()
id := deponboardingsetting.NewDeviceManagementDepOnboardingSettingID("depOnboardingSettingId")

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

Example Usage: DepOnboardingSettingClient.UpdateDepOnboardingSetting

ctx := context.TODO()
id := deponboardingsetting.NewDeviceManagementDepOnboardingSettingID("depOnboardingSettingId")

payload := deponboardingsetting.DepOnboardingSetting{
	// ...
}


read, err := client.UpdateDepOnboardingSetting(ctx, id, payload, deponboardingsetting.DefaultUpdateDepOnboardingSettingOperationOptions())
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 CreateDepOnboardingSettingGenerateEncryptionPublicKeyOperationOptions

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

func (CreateDepOnboardingSettingGenerateEncryptionPublicKeyOperationOptions) ToHeaders

func (CreateDepOnboardingSettingGenerateEncryptionPublicKeyOperationOptions) ToOData

func (CreateDepOnboardingSettingGenerateEncryptionPublicKeyOperationOptions) ToQuery

type CreateDepOnboardingSettingGenerateEncryptionPublicKeyOperationResponse

type CreateDepOnboardingSettingGenerateEncryptionPublicKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CreateDepOnboardingSettingGenerateEncryptionPublicKeyResult
}

type CreateDepOnboardingSettingGenerateEncryptionPublicKeyResult

type CreateDepOnboardingSettingGenerateEncryptionPublicKeyResult struct {
	Value nullable.Type[string] `json:"value,omitempty"`
}

type CreateDepOnboardingSettingOperationOptions

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

func DefaultCreateDepOnboardingSettingOperationOptions

func DefaultCreateDepOnboardingSettingOperationOptions() CreateDepOnboardingSettingOperationOptions

func (CreateDepOnboardingSettingOperationOptions) ToHeaders

func (CreateDepOnboardingSettingOperationOptions) ToOData

func (CreateDepOnboardingSettingOperationOptions) ToQuery

type CreateDepOnboardingSettingOperationResponse

type CreateDepOnboardingSettingOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DepOnboardingSetting
}

type CreateDepOnboardingSettingUploadDepTokenOperationOptions

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

func (CreateDepOnboardingSettingUploadDepTokenOperationOptions) ToHeaders

func (CreateDepOnboardingSettingUploadDepTokenOperationOptions) ToOData

func (CreateDepOnboardingSettingUploadDepTokenOperationOptions) ToQuery

type CreateDepOnboardingSettingUploadDepTokenOperationResponse

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

type CreateDepOnboardingSettingUploadDepTokenRequest

type CreateDepOnboardingSettingUploadDepTokenRequest struct {
	AppleId  nullable.Type[string] `json:"appleId,omitempty"`
	DepToken nullable.Type[string] `json:"depToken,omitempty"`
}

type DeleteDepOnboardingSettingOperationOptions

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

func DefaultDeleteDepOnboardingSettingOperationOptions

func DefaultDeleteDepOnboardingSettingOperationOptions() DeleteDepOnboardingSettingOperationOptions

func (DeleteDepOnboardingSettingOperationOptions) ToHeaders

func (DeleteDepOnboardingSettingOperationOptions) ToOData

func (DeleteDepOnboardingSettingOperationOptions) ToQuery

type DeleteDepOnboardingSettingOperationResponse

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

type DepOnboardingSettingClient

type DepOnboardingSettingClient struct {
	Client *msgraph.Client
}

func NewDepOnboardingSettingClientWithBaseURI

func NewDepOnboardingSettingClientWithBaseURI(sdkApi sdkEnv.Api) (*DepOnboardingSettingClient, error)

func (DepOnboardingSettingClient) CreateDepOnboardingSetting

CreateDepOnboardingSetting - Create new navigation property to depOnboardingSettings for deviceManagement

func (DepOnboardingSettingClient) CreateDepOnboardingSettingGenerateEncryptionPublicKey

CreateDepOnboardingSettingGenerateEncryptionPublicKey - Invoke action generateEncryptionPublicKey. Generate a public key to use to encrypt the Apple device enrollment program token

func (DepOnboardingSettingClient) CreateDepOnboardingSettingUploadDepToken

CreateDepOnboardingSettingUploadDepToken - Invoke action uploadDepToken. Uploads a new Device Enrollment Program token

func (DepOnboardingSettingClient) DeleteDepOnboardingSetting

DeleteDepOnboardingSetting - Delete navigation property depOnboardingSettings for deviceManagement

func (DepOnboardingSettingClient) GetDepOnboardingSetting

GetDepOnboardingSetting - Get depOnboardingSettings from deviceManagement. This collections of multiple DEP tokens per-tenant.

func (DepOnboardingSettingClient) GetDepOnboardingSettingsCount

GetDepOnboardingSettingsCount - Get the number of the resource

func (DepOnboardingSettingClient) ListDepOnboardingSettings

ListDepOnboardingSettings - Get depOnboardingSettings from deviceManagement. This collections of multiple DEP tokens per-tenant.

func (DepOnboardingSettingClient) ListDepOnboardingSettingsComplete

ListDepOnboardingSettingsComplete retrieves all the results into a single object

func (DepOnboardingSettingClient) ListDepOnboardingSettingsCompleteMatchingPredicate

ListDepOnboardingSettingsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DepOnboardingSettingClient) ShareDepOnboardingSettingForSchoolDataSyncService

ShareDepOnboardingSettingForSchoolDataSyncService - Invoke action shareForSchoolDataSyncService

func (DepOnboardingSettingClient) SyncDepOnboardingSettingWithAppleDeviceEnrollmentProgram

SyncDepOnboardingSettingWithAppleDeviceEnrollmentProgram - Invoke action syncWithAppleDeviceEnrollmentProgram. Synchronizes between Apple Device Enrollment Program and Intune

func (DepOnboardingSettingClient) UnshareDepOnboardingSettingForSchoolDataSyncService

UnshareDepOnboardingSettingForSchoolDataSyncService - Invoke action unshareForSchoolDataSyncService

func (DepOnboardingSettingClient) UpdateDepOnboardingSetting

UpdateDepOnboardingSetting - Update the navigation property depOnboardingSettings in deviceManagement

type DepOnboardingSettingOperationPredicate

type DepOnboardingSettingOperationPredicate struct {
}

func (DepOnboardingSettingOperationPredicate) Matches

type GetDepOnboardingSettingOperationOptions

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

func DefaultGetDepOnboardingSettingOperationOptions

func DefaultGetDepOnboardingSettingOperationOptions() GetDepOnboardingSettingOperationOptions

func (GetDepOnboardingSettingOperationOptions) ToHeaders

func (GetDepOnboardingSettingOperationOptions) ToOData

func (GetDepOnboardingSettingOperationOptions) ToQuery

type GetDepOnboardingSettingOperationResponse

type GetDepOnboardingSettingOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DepOnboardingSetting
}

type GetDepOnboardingSettingsCountOperationOptions

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

func DefaultGetDepOnboardingSettingsCountOperationOptions

func DefaultGetDepOnboardingSettingsCountOperationOptions() GetDepOnboardingSettingsCountOperationOptions

func (GetDepOnboardingSettingsCountOperationOptions) ToHeaders

func (GetDepOnboardingSettingsCountOperationOptions) ToOData

func (GetDepOnboardingSettingsCountOperationOptions) ToQuery

type GetDepOnboardingSettingsCountOperationResponse

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

type ListDepOnboardingSettingsCompleteResult

type ListDepOnboardingSettingsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DepOnboardingSetting
}

type ListDepOnboardingSettingsCustomPager

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

type ListDepOnboardingSettingsOperationOptions

type ListDepOnboardingSettingsOperationOptions 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 DefaultListDepOnboardingSettingsOperationOptions

func DefaultListDepOnboardingSettingsOperationOptions() ListDepOnboardingSettingsOperationOptions

func (ListDepOnboardingSettingsOperationOptions) ToHeaders

func (ListDepOnboardingSettingsOperationOptions) ToOData

func (ListDepOnboardingSettingsOperationOptions) ToQuery

type ListDepOnboardingSettingsOperationResponse

type ListDepOnboardingSettingsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DepOnboardingSetting
}

type ShareDepOnboardingSettingForSchoolDataSyncServiceOperationOptions

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

func (ShareDepOnboardingSettingForSchoolDataSyncServiceOperationOptions) ToHeaders

func (ShareDepOnboardingSettingForSchoolDataSyncServiceOperationOptions) ToOData

func (ShareDepOnboardingSettingForSchoolDataSyncServiceOperationOptions) ToQuery

type ShareDepOnboardingSettingForSchoolDataSyncServiceOperationResponse

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

type SyncDepOnboardingSettingWithAppleDeviceEnrollmentProgramOperationOptions

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

func (SyncDepOnboardingSettingWithAppleDeviceEnrollmentProgramOperationOptions) ToHeaders

func (SyncDepOnboardingSettingWithAppleDeviceEnrollmentProgramOperationOptions) ToOData

func (SyncDepOnboardingSettingWithAppleDeviceEnrollmentProgramOperationOptions) ToQuery

type SyncDepOnboardingSettingWithAppleDeviceEnrollmentProgramOperationResponse

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

type UnshareDepOnboardingSettingForSchoolDataSyncServiceOperationOptions

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

func (UnshareDepOnboardingSettingForSchoolDataSyncServiceOperationOptions) ToHeaders

func (UnshareDepOnboardingSettingForSchoolDataSyncServiceOperationOptions) ToOData

func (UnshareDepOnboardingSettingForSchoolDataSyncServiceOperationOptions) ToQuery

type UnshareDepOnboardingSettingForSchoolDataSyncServiceOperationResponse

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

type UpdateDepOnboardingSettingOperationOptions

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

func DefaultUpdateDepOnboardingSettingOperationOptions

func DefaultUpdateDepOnboardingSettingOperationOptions() UpdateDepOnboardingSettingOperationOptions

func (UpdateDepOnboardingSettingOperationOptions) ToHeaders

func (UpdateDepOnboardingSettingOperationOptions) ToOData

func (UpdateDepOnboardingSettingOperationOptions) ToQuery

type UpdateDepOnboardingSettingOperationResponse

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