androidforworkenrollmentprofile

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/androidforworkenrollmentprofile Documentation

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

Client Initialization

client := androidforworkenrollmentprofile.NewAndroidForWorkEnrollmentProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AndroidForWorkEnrollmentProfileClient.CreateAndroidForWorkEnrollmentProfile

ctx := context.TODO()

payload := androidforworkenrollmentprofile.AndroidForWorkEnrollmentProfile{
	// ...
}


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

Example Usage: AndroidForWorkEnrollmentProfileClient.CreateAndroidForWorkEnrollmentProfileToken

ctx := context.TODO()
id := androidforworkenrollmentprofile.NewDeviceManagementAndroidForWorkEnrollmentProfileID("androidForWorkEnrollmentProfileId")

payload := androidforworkenrollmentprofile.CreateAndroidForWorkEnrollmentProfileTokenRequest{
	// ...
}


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

Example Usage: AndroidForWorkEnrollmentProfileClient.DeleteAndroidForWorkEnrollmentProfile

ctx := context.TODO()
id := androidforworkenrollmentprofile.NewDeviceManagementAndroidForWorkEnrollmentProfileID("androidForWorkEnrollmentProfileId")

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

Example Usage: AndroidForWorkEnrollmentProfileClient.GetAndroidForWorkEnrollmentProfile

ctx := context.TODO()
id := androidforworkenrollmentprofile.NewDeviceManagementAndroidForWorkEnrollmentProfileID("androidForWorkEnrollmentProfileId")

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

Example Usage: AndroidForWorkEnrollmentProfileClient.GetAndroidForWorkEnrollmentProfilesCount

ctx := context.TODO()


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

Example Usage: AndroidForWorkEnrollmentProfileClient.ListAndroidForWorkEnrollmentProfiles

ctx := context.TODO()


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

Example Usage: AndroidForWorkEnrollmentProfileClient.RevokeAndroidForWorkEnrollmentProfileToken

ctx := context.TODO()
id := androidforworkenrollmentprofile.NewDeviceManagementAndroidForWorkEnrollmentProfileID("androidForWorkEnrollmentProfileId")

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

Example Usage: AndroidForWorkEnrollmentProfileClient.UpdateAndroidForWorkEnrollmentProfile

ctx := context.TODO()
id := androidforworkenrollmentprofile.NewDeviceManagementAndroidForWorkEnrollmentProfileID("androidForWorkEnrollmentProfileId")

payload := androidforworkenrollmentprofile.AndroidForWorkEnrollmentProfile{
	// ...
}


read, err := client.UpdateAndroidForWorkEnrollmentProfile(ctx, id, payload, androidforworkenrollmentprofile.DefaultUpdateAndroidForWorkEnrollmentProfileOperationOptions())
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 AndroidForWorkEnrollmentProfileClient

type AndroidForWorkEnrollmentProfileClient struct {
	Client *msgraph.Client
}

func NewAndroidForWorkEnrollmentProfileClientWithBaseURI

func NewAndroidForWorkEnrollmentProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*AndroidForWorkEnrollmentProfileClient, error)

func (AndroidForWorkEnrollmentProfileClient) CreateAndroidForWorkEnrollmentProfile

CreateAndroidForWorkEnrollmentProfile - Create new navigation property to androidForWorkEnrollmentProfiles for deviceManagement

func (AndroidForWorkEnrollmentProfileClient) CreateAndroidForWorkEnrollmentProfileToken

CreateAndroidForWorkEnrollmentProfileToken - Invoke action createToken

func (AndroidForWorkEnrollmentProfileClient) DeleteAndroidForWorkEnrollmentProfile

DeleteAndroidForWorkEnrollmentProfile - Delete navigation property androidForWorkEnrollmentProfiles for deviceManagement

func (AndroidForWorkEnrollmentProfileClient) GetAndroidForWorkEnrollmentProfile

GetAndroidForWorkEnrollmentProfile - Get androidForWorkEnrollmentProfiles from deviceManagement. Android for Work enrollment profile entities.

func (AndroidForWorkEnrollmentProfileClient) GetAndroidForWorkEnrollmentProfilesCount

GetAndroidForWorkEnrollmentProfilesCount - Get the number of the resource

func (AndroidForWorkEnrollmentProfileClient) ListAndroidForWorkEnrollmentProfiles

ListAndroidForWorkEnrollmentProfiles - Get androidForWorkEnrollmentProfiles from deviceManagement. Android for Work enrollment profile entities.

func (AndroidForWorkEnrollmentProfileClient) ListAndroidForWorkEnrollmentProfilesComplete

ListAndroidForWorkEnrollmentProfilesComplete retrieves all the results into a single object

func (AndroidForWorkEnrollmentProfileClient) ListAndroidForWorkEnrollmentProfilesCompleteMatchingPredicate

ListAndroidForWorkEnrollmentProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AndroidForWorkEnrollmentProfileClient) RevokeAndroidForWorkEnrollmentProfileToken

RevokeAndroidForWorkEnrollmentProfileToken - Invoke action revokeToken

func (AndroidForWorkEnrollmentProfileClient) UpdateAndroidForWorkEnrollmentProfile

UpdateAndroidForWorkEnrollmentProfile - Update the navigation property androidForWorkEnrollmentProfiles in deviceManagement

type AndroidForWorkEnrollmentProfileOperationPredicate

type AndroidForWorkEnrollmentProfileOperationPredicate struct {
}

func (AndroidForWorkEnrollmentProfileOperationPredicate) Matches

type CreateAndroidForWorkEnrollmentProfileOperationOptions

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

func DefaultCreateAndroidForWorkEnrollmentProfileOperationOptions

func DefaultCreateAndroidForWorkEnrollmentProfileOperationOptions() CreateAndroidForWorkEnrollmentProfileOperationOptions

func (CreateAndroidForWorkEnrollmentProfileOperationOptions) ToHeaders

func (CreateAndroidForWorkEnrollmentProfileOperationOptions) ToOData

func (CreateAndroidForWorkEnrollmentProfileOperationOptions) ToQuery

type CreateAndroidForWorkEnrollmentProfileOperationResponse

type CreateAndroidForWorkEnrollmentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AndroidForWorkEnrollmentProfile
}

type CreateAndroidForWorkEnrollmentProfileTokenOperationOptions

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

func (CreateAndroidForWorkEnrollmentProfileTokenOperationOptions) ToHeaders

func (CreateAndroidForWorkEnrollmentProfileTokenOperationOptions) ToOData

func (CreateAndroidForWorkEnrollmentProfileTokenOperationOptions) ToQuery

type CreateAndroidForWorkEnrollmentProfileTokenOperationResponse

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

type CreateAndroidForWorkEnrollmentProfileTokenRequest

type CreateAndroidForWorkEnrollmentProfileTokenRequest struct {
	TokenValidityInSeconds *int64 `json:"tokenValidityInSeconds,omitempty"`
}

type DeleteAndroidForWorkEnrollmentProfileOperationOptions

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

func DefaultDeleteAndroidForWorkEnrollmentProfileOperationOptions

func DefaultDeleteAndroidForWorkEnrollmentProfileOperationOptions() DeleteAndroidForWorkEnrollmentProfileOperationOptions

func (DeleteAndroidForWorkEnrollmentProfileOperationOptions) ToHeaders

func (DeleteAndroidForWorkEnrollmentProfileOperationOptions) ToOData

func (DeleteAndroidForWorkEnrollmentProfileOperationOptions) ToQuery

type DeleteAndroidForWorkEnrollmentProfileOperationResponse

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

type GetAndroidForWorkEnrollmentProfileOperationOptions

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

func DefaultGetAndroidForWorkEnrollmentProfileOperationOptions

func DefaultGetAndroidForWorkEnrollmentProfileOperationOptions() GetAndroidForWorkEnrollmentProfileOperationOptions

func (GetAndroidForWorkEnrollmentProfileOperationOptions) ToHeaders

func (GetAndroidForWorkEnrollmentProfileOperationOptions) ToOData

func (GetAndroidForWorkEnrollmentProfileOperationOptions) ToQuery

type GetAndroidForWorkEnrollmentProfileOperationResponse

type GetAndroidForWorkEnrollmentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AndroidForWorkEnrollmentProfile
}

type GetAndroidForWorkEnrollmentProfilesCountOperationOptions

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

func (GetAndroidForWorkEnrollmentProfilesCountOperationOptions) ToHeaders

func (GetAndroidForWorkEnrollmentProfilesCountOperationOptions) ToOData

func (GetAndroidForWorkEnrollmentProfilesCountOperationOptions) ToQuery

type GetAndroidForWorkEnrollmentProfilesCountOperationResponse

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

type ListAndroidForWorkEnrollmentProfilesCompleteResult

type ListAndroidForWorkEnrollmentProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.AndroidForWorkEnrollmentProfile
}

type ListAndroidForWorkEnrollmentProfilesCustomPager

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

type ListAndroidForWorkEnrollmentProfilesOperationOptions

type ListAndroidForWorkEnrollmentProfilesOperationOptions 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 DefaultListAndroidForWorkEnrollmentProfilesOperationOptions

func DefaultListAndroidForWorkEnrollmentProfilesOperationOptions() ListAndroidForWorkEnrollmentProfilesOperationOptions

func (ListAndroidForWorkEnrollmentProfilesOperationOptions) ToHeaders

func (ListAndroidForWorkEnrollmentProfilesOperationOptions) ToOData

func (ListAndroidForWorkEnrollmentProfilesOperationOptions) ToQuery

type ListAndroidForWorkEnrollmentProfilesOperationResponse

type ListAndroidForWorkEnrollmentProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.AndroidForWorkEnrollmentProfile
}

type RevokeAndroidForWorkEnrollmentProfileTokenOperationOptions

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

func (RevokeAndroidForWorkEnrollmentProfileTokenOperationOptions) ToHeaders

func (RevokeAndroidForWorkEnrollmentProfileTokenOperationOptions) ToOData

func (RevokeAndroidForWorkEnrollmentProfileTokenOperationOptions) ToQuery

type RevokeAndroidForWorkEnrollmentProfileTokenOperationResponse

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

type UpdateAndroidForWorkEnrollmentProfileOperationOptions

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

func DefaultUpdateAndroidForWorkEnrollmentProfileOperationOptions

func DefaultUpdateAndroidForWorkEnrollmentProfileOperationOptions() UpdateAndroidForWorkEnrollmentProfileOperationOptions

func (UpdateAndroidForWorkEnrollmentProfileOperationOptions) ToHeaders

func (UpdateAndroidForWorkEnrollmentProfileOperationOptions) ToOData

func (UpdateAndroidForWorkEnrollmentProfileOperationOptions) ToQuery

type UpdateAndroidForWorkEnrollmentProfileOperationResponse

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