deponboardingsettingenrollmentprofile

package
v0.20241212.1154051 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

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

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

Client Initialization

client := deponboardingsettingenrollmentprofile.NewDepOnboardingSettingEnrollmentProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DepOnboardingSettingEnrollmentProfileClient.CreateDepOnboardingSettingEnrollmentProfile

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

payload := deponboardingsettingenrollmentprofile.EnrollmentProfile{
	// ...
}


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

Example Usage: DepOnboardingSettingEnrollmentProfileClient.DeleteDepOnboardingSettingEnrollmentProfile

ctx := context.TODO()
id := deponboardingsettingenrollmentprofile.NewDeviceManagementDepOnboardingSettingIdEnrollmentProfileID("depOnboardingSettingId", "enrollmentProfileId")

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

Example Usage: DepOnboardingSettingEnrollmentProfileClient.GetDepOnboardingSettingEnrollmentProfile

ctx := context.TODO()
id := deponboardingsettingenrollmentprofile.NewDeviceManagementDepOnboardingSettingIdEnrollmentProfileID("depOnboardingSettingId", "enrollmentProfileId")

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

Example Usage: DepOnboardingSettingEnrollmentProfileClient.GetDepOnboardingSettingEnrollmentProfilesCount

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

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

Example Usage: DepOnboardingSettingEnrollmentProfileClient.ListDepOnboardingSettingEnrollmentProfiles

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

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

Example Usage: DepOnboardingSettingEnrollmentProfileClient.SetDepOnboardingSettingEnrollmentProfileDefaultProfile

ctx := context.TODO()
id := deponboardingsettingenrollmentprofile.NewDeviceManagementDepOnboardingSettingIdEnrollmentProfileID("depOnboardingSettingId", "enrollmentProfileId")

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

Example Usage: DepOnboardingSettingEnrollmentProfileClient.UpdateDepOnboardingSettingEnrollmentProfile

ctx := context.TODO()
id := deponboardingsettingenrollmentprofile.NewDeviceManagementDepOnboardingSettingIdEnrollmentProfileID("depOnboardingSettingId", "enrollmentProfileId")

payload := deponboardingsettingenrollmentprofile.EnrollmentProfile{
	// ...
}


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

Example Usage: DepOnboardingSettingEnrollmentProfileClient.UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignment

ctx := context.TODO()
id := deponboardingsettingenrollmentprofile.NewDeviceManagementDepOnboardingSettingIdEnrollmentProfileID("depOnboardingSettingId", "enrollmentProfileId")

payload := deponboardingsettingenrollmentprofile.UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignmentRequest{
	// ...
}


read, err := client.UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignment(ctx, id, payload, deponboardingsettingenrollmentprofile.DefaultUpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignmentOperationOptions())
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 CreateDepOnboardingSettingEnrollmentProfileOperationOptions

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

func (CreateDepOnboardingSettingEnrollmentProfileOperationOptions) ToHeaders

func (CreateDepOnboardingSettingEnrollmentProfileOperationOptions) ToOData

func (CreateDepOnboardingSettingEnrollmentProfileOperationOptions) ToQuery

type CreateDepOnboardingSettingEnrollmentProfileOperationResponse

type CreateDepOnboardingSettingEnrollmentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.EnrollmentProfile
}

type DeleteDepOnboardingSettingEnrollmentProfileOperationOptions

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

func (DeleteDepOnboardingSettingEnrollmentProfileOperationOptions) ToHeaders

func (DeleteDepOnboardingSettingEnrollmentProfileOperationOptions) ToOData

func (DeleteDepOnboardingSettingEnrollmentProfileOperationOptions) ToQuery

type DeleteDepOnboardingSettingEnrollmentProfileOperationResponse

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

type DepOnboardingSettingEnrollmentProfileClient

type DepOnboardingSettingEnrollmentProfileClient struct {
	Client *msgraph.Client
}

func NewDepOnboardingSettingEnrollmentProfileClientWithBaseURI

func NewDepOnboardingSettingEnrollmentProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*DepOnboardingSettingEnrollmentProfileClient, error)

func (DepOnboardingSettingEnrollmentProfileClient) CreateDepOnboardingSettingEnrollmentProfile

CreateDepOnboardingSettingEnrollmentProfile - Create new navigation property to enrollmentProfiles for deviceManagement

func (DepOnboardingSettingEnrollmentProfileClient) DeleteDepOnboardingSettingEnrollmentProfile

DeleteDepOnboardingSettingEnrollmentProfile - Delete navigation property enrollmentProfiles for deviceManagement

func (DepOnboardingSettingEnrollmentProfileClient) GetDepOnboardingSettingEnrollmentProfile

GetDepOnboardingSettingEnrollmentProfile - Get enrollmentProfiles from deviceManagement. The enrollment profiles.

func (DepOnboardingSettingEnrollmentProfileClient) GetDepOnboardingSettingEnrollmentProfilesCount

GetDepOnboardingSettingEnrollmentProfilesCount - Get the number of the resource

func (DepOnboardingSettingEnrollmentProfileClient) ListDepOnboardingSettingEnrollmentProfiles

ListDepOnboardingSettingEnrollmentProfiles - Get enrollmentProfiles from deviceManagement. The enrollment profiles.

func (DepOnboardingSettingEnrollmentProfileClient) ListDepOnboardingSettingEnrollmentProfilesComplete

ListDepOnboardingSettingEnrollmentProfilesComplete retrieves all the results into a single object

func (DepOnboardingSettingEnrollmentProfileClient) ListDepOnboardingSettingEnrollmentProfilesCompleteMatchingPredicate

ListDepOnboardingSettingEnrollmentProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DepOnboardingSettingEnrollmentProfileClient) SetDepOnboardingSettingEnrollmentProfileDefaultProfile

SetDepOnboardingSettingEnrollmentProfileDefaultProfile - Invoke action setDefaultProfile

func (DepOnboardingSettingEnrollmentProfileClient) UpdateDepOnboardingSettingEnrollmentProfile

UpdateDepOnboardingSettingEnrollmentProfile - Update the navigation property enrollmentProfiles in deviceManagement

func (DepOnboardingSettingEnrollmentProfileClient) UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignment

UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignment - Invoke action updateDeviceProfileAssignment

type EnrollmentProfileOperationPredicate

type EnrollmentProfileOperationPredicate struct {
}

func (EnrollmentProfileOperationPredicate) Matches

type GetDepOnboardingSettingEnrollmentProfileOperationOptions

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

func (GetDepOnboardingSettingEnrollmentProfileOperationOptions) ToHeaders

func (GetDepOnboardingSettingEnrollmentProfileOperationOptions) ToOData

func (GetDepOnboardingSettingEnrollmentProfileOperationOptions) ToQuery

type GetDepOnboardingSettingEnrollmentProfileOperationResponse

type GetDepOnboardingSettingEnrollmentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.EnrollmentProfile
}

type GetDepOnboardingSettingEnrollmentProfilesCountOperationOptions

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

func (GetDepOnboardingSettingEnrollmentProfilesCountOperationOptions) ToHeaders

func (GetDepOnboardingSettingEnrollmentProfilesCountOperationOptions) ToOData

func (GetDepOnboardingSettingEnrollmentProfilesCountOperationOptions) ToQuery

type GetDepOnboardingSettingEnrollmentProfilesCountOperationResponse

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

type ListDepOnboardingSettingEnrollmentProfilesCompleteResult

type ListDepOnboardingSettingEnrollmentProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.EnrollmentProfile
}

type ListDepOnboardingSettingEnrollmentProfilesCustomPager

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

type ListDepOnboardingSettingEnrollmentProfilesOperationOptions

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

func (ListDepOnboardingSettingEnrollmentProfilesOperationOptions) ToOData

func (ListDepOnboardingSettingEnrollmentProfilesOperationOptions) ToQuery

type ListDepOnboardingSettingEnrollmentProfilesOperationResponse

type ListDepOnboardingSettingEnrollmentProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.EnrollmentProfile
}

type SetDepOnboardingSettingEnrollmentProfileDefaultProfileOperationOptions

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

func (SetDepOnboardingSettingEnrollmentProfileDefaultProfileOperationOptions) ToHeaders

func (SetDepOnboardingSettingEnrollmentProfileDefaultProfileOperationOptions) ToOData

func (SetDepOnboardingSettingEnrollmentProfileDefaultProfileOperationOptions) ToQuery

type SetDepOnboardingSettingEnrollmentProfileDefaultProfileOperationResponse

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

type UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignmentOperationOptions

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

func (UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignmentOperationOptions) ToHeaders

func (UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignmentOperationOptions) ToOData

func (UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignmentOperationOptions) ToQuery

type UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignmentOperationResponse

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

type UpdateDepOnboardingSettingEnrollmentProfileDeviceProfileAssignmentRequest

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

type UpdateDepOnboardingSettingEnrollmentProfileOperationOptions

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

func (UpdateDepOnboardingSettingEnrollmentProfileOperationOptions) ToHeaders

func (UpdateDepOnboardingSettingEnrollmentProfileOperationOptions) ToOData

func (UpdateDepOnboardingSettingEnrollmentProfileOperationOptions) ToQuery

type UpdateDepOnboardingSettingEnrollmentProfileOperationResponse

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