appleuserinitiatedenrollmentprofile

package
v0.20241126.2320 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: 8 Imported by: 0

README

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

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

Client Initialization

client := appleuserinitiatedenrollmentprofile.NewAppleUserInitiatedEnrollmentProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AppleUserInitiatedEnrollmentProfileClient.CreateAppleUserInitiatedEnrollmentProfile

ctx := context.TODO()

payload := appleuserinitiatedenrollmentprofile.AppleUserInitiatedEnrollmentProfile{
	// ...
}


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

Example Usage: AppleUserInitiatedEnrollmentProfileClient.DeleteAppleUserInitiatedEnrollmentProfile

ctx := context.TODO()
id := appleuserinitiatedenrollmentprofile.NewDeviceManagementAppleUserInitiatedEnrollmentProfileID("appleUserInitiatedEnrollmentProfileId")

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

Example Usage: AppleUserInitiatedEnrollmentProfileClient.GetAppleUserInitiatedEnrollmentProfile

ctx := context.TODO()
id := appleuserinitiatedenrollmentprofile.NewDeviceManagementAppleUserInitiatedEnrollmentProfileID("appleUserInitiatedEnrollmentProfileId")

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

Example Usage: AppleUserInitiatedEnrollmentProfileClient.GetAppleUserInitiatedEnrollmentProfilesCount

ctx := context.TODO()


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

Example Usage: AppleUserInitiatedEnrollmentProfileClient.ListAppleUserInitiatedEnrollmentProfiles

ctx := context.TODO()


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

Example Usage: AppleUserInitiatedEnrollmentProfileClient.SetAppleUserInitiatedEnrollmentProfilePriority

ctx := context.TODO()
id := appleuserinitiatedenrollmentprofile.NewDeviceManagementAppleUserInitiatedEnrollmentProfileID("appleUserInitiatedEnrollmentProfileId")

payload := appleuserinitiatedenrollmentprofile.SetAppleUserInitiatedEnrollmentProfilePriorityRequest{
	// ...
}


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

Example Usage: AppleUserInitiatedEnrollmentProfileClient.UpdateAppleUserInitiatedEnrollmentProfile

ctx := context.TODO()
id := appleuserinitiatedenrollmentprofile.NewDeviceManagementAppleUserInitiatedEnrollmentProfileID("appleUserInitiatedEnrollmentProfileId")

payload := appleuserinitiatedenrollmentprofile.AppleUserInitiatedEnrollmentProfile{
	// ...
}


read, err := client.UpdateAppleUserInitiatedEnrollmentProfile(ctx, id, payload, appleuserinitiatedenrollmentprofile.DefaultUpdateAppleUserInitiatedEnrollmentProfileOperationOptions())
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 AppleUserInitiatedEnrollmentProfileClient

type AppleUserInitiatedEnrollmentProfileClient struct {
	Client *msgraph.Client
}

func NewAppleUserInitiatedEnrollmentProfileClientWithBaseURI

func NewAppleUserInitiatedEnrollmentProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*AppleUserInitiatedEnrollmentProfileClient, error)

func (AppleUserInitiatedEnrollmentProfileClient) CreateAppleUserInitiatedEnrollmentProfile

CreateAppleUserInitiatedEnrollmentProfile - Create new navigation property to appleUserInitiatedEnrollmentProfiles for deviceManagement

func (AppleUserInitiatedEnrollmentProfileClient) DeleteAppleUserInitiatedEnrollmentProfile

DeleteAppleUserInitiatedEnrollmentProfile - Delete navigation property appleUserInitiatedEnrollmentProfiles for deviceManagement

func (AppleUserInitiatedEnrollmentProfileClient) GetAppleUserInitiatedEnrollmentProfile

GetAppleUserInitiatedEnrollmentProfile - Get appleUserInitiatedEnrollmentProfiles from deviceManagement. Apple user initiated enrollment profiles

func (AppleUserInitiatedEnrollmentProfileClient) GetAppleUserInitiatedEnrollmentProfilesCount

GetAppleUserInitiatedEnrollmentProfilesCount - Get the number of the resource

func (AppleUserInitiatedEnrollmentProfileClient) ListAppleUserInitiatedEnrollmentProfiles

ListAppleUserInitiatedEnrollmentProfiles - Get appleUserInitiatedEnrollmentProfiles from deviceManagement. Apple user initiated enrollment profiles

func (AppleUserInitiatedEnrollmentProfileClient) ListAppleUserInitiatedEnrollmentProfilesComplete

ListAppleUserInitiatedEnrollmentProfilesComplete retrieves all the results into a single object

func (AppleUserInitiatedEnrollmentProfileClient) ListAppleUserInitiatedEnrollmentProfilesCompleteMatchingPredicate

ListAppleUserInitiatedEnrollmentProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AppleUserInitiatedEnrollmentProfileClient) SetAppleUserInitiatedEnrollmentProfilePriority

SetAppleUserInitiatedEnrollmentProfilePriority - Invoke action setPriority

func (AppleUserInitiatedEnrollmentProfileClient) UpdateAppleUserInitiatedEnrollmentProfile

UpdateAppleUserInitiatedEnrollmentProfile - Update the navigation property appleUserInitiatedEnrollmentProfiles in deviceManagement

type AppleUserInitiatedEnrollmentProfileOperationPredicate

type AppleUserInitiatedEnrollmentProfileOperationPredicate struct {
}

func (AppleUserInitiatedEnrollmentProfileOperationPredicate) Matches

type CreateAppleUserInitiatedEnrollmentProfileOperationOptions

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

func (CreateAppleUserInitiatedEnrollmentProfileOperationOptions) ToHeaders

func (CreateAppleUserInitiatedEnrollmentProfileOperationOptions) ToOData

func (CreateAppleUserInitiatedEnrollmentProfileOperationOptions) ToQuery

type CreateAppleUserInitiatedEnrollmentProfileOperationResponse

type CreateAppleUserInitiatedEnrollmentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AppleUserInitiatedEnrollmentProfile
}

type DeleteAppleUserInitiatedEnrollmentProfileOperationOptions

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

func (DeleteAppleUserInitiatedEnrollmentProfileOperationOptions) ToHeaders

func (DeleteAppleUserInitiatedEnrollmentProfileOperationOptions) ToOData

func (DeleteAppleUserInitiatedEnrollmentProfileOperationOptions) ToQuery

type DeleteAppleUserInitiatedEnrollmentProfileOperationResponse

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

type GetAppleUserInitiatedEnrollmentProfileOperationOptions

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

func DefaultGetAppleUserInitiatedEnrollmentProfileOperationOptions

func DefaultGetAppleUserInitiatedEnrollmentProfileOperationOptions() GetAppleUserInitiatedEnrollmentProfileOperationOptions

func (GetAppleUserInitiatedEnrollmentProfileOperationOptions) ToHeaders

func (GetAppleUserInitiatedEnrollmentProfileOperationOptions) ToOData

func (GetAppleUserInitiatedEnrollmentProfileOperationOptions) ToQuery

type GetAppleUserInitiatedEnrollmentProfileOperationResponse

type GetAppleUserInitiatedEnrollmentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AppleUserInitiatedEnrollmentProfile
}

type GetAppleUserInitiatedEnrollmentProfilesCountOperationOptions

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

func (GetAppleUserInitiatedEnrollmentProfilesCountOperationOptions) ToHeaders

func (GetAppleUserInitiatedEnrollmentProfilesCountOperationOptions) ToOData

func (GetAppleUserInitiatedEnrollmentProfilesCountOperationOptions) ToQuery

type GetAppleUserInitiatedEnrollmentProfilesCountOperationResponse

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

type ListAppleUserInitiatedEnrollmentProfilesCompleteResult

type ListAppleUserInitiatedEnrollmentProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.AppleUserInitiatedEnrollmentProfile
}

type ListAppleUserInitiatedEnrollmentProfilesCustomPager

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

type ListAppleUserInitiatedEnrollmentProfilesOperationOptions

type ListAppleUserInitiatedEnrollmentProfilesOperationOptions 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 (ListAppleUserInitiatedEnrollmentProfilesOperationOptions) ToHeaders

func (ListAppleUserInitiatedEnrollmentProfilesOperationOptions) ToOData

func (ListAppleUserInitiatedEnrollmentProfilesOperationOptions) ToQuery

type ListAppleUserInitiatedEnrollmentProfilesOperationResponse

type ListAppleUserInitiatedEnrollmentProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.AppleUserInitiatedEnrollmentProfile
}

type SetAppleUserInitiatedEnrollmentProfilePriorityOperationOptions

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

func (SetAppleUserInitiatedEnrollmentProfilePriorityOperationOptions) ToHeaders

func (SetAppleUserInitiatedEnrollmentProfilePriorityOperationOptions) ToOData

func (SetAppleUserInitiatedEnrollmentProfilePriorityOperationOptions) ToQuery

type SetAppleUserInitiatedEnrollmentProfilePriorityOperationResponse

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

type SetAppleUserInitiatedEnrollmentProfilePriorityRequest

type SetAppleUserInitiatedEnrollmentProfilePriorityRequest struct {
	Priority *int64 `json:"priority,omitempty"`
}

type UpdateAppleUserInitiatedEnrollmentProfileOperationOptions

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

func (UpdateAppleUserInitiatedEnrollmentProfileOperationOptions) ToHeaders

func (UpdateAppleUserInitiatedEnrollmentProfileOperationOptions) ToOData

func (UpdateAppleUserInitiatedEnrollmentProfileOperationOptions) ToQuery

type UpdateAppleUserInitiatedEnrollmentProfileOperationResponse

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