androiddeviceownerenrollmentprofile

package
v0.20241017.1093842 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := androiddeviceownerenrollmentprofile.NewAndroidDeviceOwnerEnrollmentProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AndroidDeviceOwnerEnrollmentProfileClient.CreateAndroidDeviceOwnerEnrollmentProfile

ctx := context.TODO()

payload := androiddeviceownerenrollmentprofile.AndroidDeviceOwnerEnrollmentProfile{
	// ...
}


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

Example Usage: AndroidDeviceOwnerEnrollmentProfileClient.CreateAndroidDeviceOwnerEnrollmentProfileToken

ctx := context.TODO()
id := androiddeviceownerenrollmentprofile.NewDeviceManagementAndroidDeviceOwnerEnrollmentProfileID("androidDeviceOwnerEnrollmentProfileId")

payload := androiddeviceownerenrollmentprofile.CreateAndroidDeviceOwnerEnrollmentProfileTokenRequest{
	// ...
}


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

Example Usage: AndroidDeviceOwnerEnrollmentProfileClient.DeleteAndroidDeviceOwnerEnrollmentProfile

ctx := context.TODO()
id := androiddeviceownerenrollmentprofile.NewDeviceManagementAndroidDeviceOwnerEnrollmentProfileID("androidDeviceOwnerEnrollmentProfileId")

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

Example Usage: AndroidDeviceOwnerEnrollmentProfileClient.GetAndroidDeviceOwnerEnrollmentProfile

ctx := context.TODO()
id := androiddeviceownerenrollmentprofile.NewDeviceManagementAndroidDeviceOwnerEnrollmentProfileID("androidDeviceOwnerEnrollmentProfileId")

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

Example Usage: AndroidDeviceOwnerEnrollmentProfileClient.GetAndroidDeviceOwnerEnrollmentProfilesCount

ctx := context.TODO()


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

Example Usage: AndroidDeviceOwnerEnrollmentProfileClient.ListAndroidDeviceOwnerEnrollmentProfiles

ctx := context.TODO()


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

Example Usage: AndroidDeviceOwnerEnrollmentProfileClient.RevokeAndroidDeviceOwnerEnrollmentProfileToken

ctx := context.TODO()
id := androiddeviceownerenrollmentprofile.NewDeviceManagementAndroidDeviceOwnerEnrollmentProfileID("androidDeviceOwnerEnrollmentProfileId")

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

Example Usage: AndroidDeviceOwnerEnrollmentProfileClient.UpdateAndroidDeviceOwnerEnrollmentProfile

ctx := context.TODO()
id := androiddeviceownerenrollmentprofile.NewDeviceManagementAndroidDeviceOwnerEnrollmentProfileID("androidDeviceOwnerEnrollmentProfileId")

payload := androiddeviceownerenrollmentprofile.AndroidDeviceOwnerEnrollmentProfile{
	// ...
}


read, err := client.UpdateAndroidDeviceOwnerEnrollmentProfile(ctx, id, payload, androiddeviceownerenrollmentprofile.DefaultUpdateAndroidDeviceOwnerEnrollmentProfileOperationOptions())
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 AndroidDeviceOwnerEnrollmentProfileClient

type AndroidDeviceOwnerEnrollmentProfileClient struct {
	Client *msgraph.Client
}

func NewAndroidDeviceOwnerEnrollmentProfileClientWithBaseURI

func NewAndroidDeviceOwnerEnrollmentProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*AndroidDeviceOwnerEnrollmentProfileClient, error)

func (AndroidDeviceOwnerEnrollmentProfileClient) CreateAndroidDeviceOwnerEnrollmentProfile

CreateAndroidDeviceOwnerEnrollmentProfile - Create new navigation property to androidDeviceOwnerEnrollmentProfiles for deviceManagement

func (AndroidDeviceOwnerEnrollmentProfileClient) CreateAndroidDeviceOwnerEnrollmentProfileToken

CreateAndroidDeviceOwnerEnrollmentProfileToken - Invoke action createToken

func (AndroidDeviceOwnerEnrollmentProfileClient) DeleteAndroidDeviceOwnerEnrollmentProfile

DeleteAndroidDeviceOwnerEnrollmentProfile - Delete navigation property androidDeviceOwnerEnrollmentProfiles for deviceManagement

func (AndroidDeviceOwnerEnrollmentProfileClient) GetAndroidDeviceOwnerEnrollmentProfile

GetAndroidDeviceOwnerEnrollmentProfile - Get androidDeviceOwnerEnrollmentProfiles from deviceManagement. Android device owner enrollment profile entities.

func (AndroidDeviceOwnerEnrollmentProfileClient) GetAndroidDeviceOwnerEnrollmentProfilesCount

GetAndroidDeviceOwnerEnrollmentProfilesCount - Get the number of the resource

func (AndroidDeviceOwnerEnrollmentProfileClient) ListAndroidDeviceOwnerEnrollmentProfiles

ListAndroidDeviceOwnerEnrollmentProfiles - Get androidDeviceOwnerEnrollmentProfiles from deviceManagement. Android device owner enrollment profile entities.

func (AndroidDeviceOwnerEnrollmentProfileClient) ListAndroidDeviceOwnerEnrollmentProfilesComplete

ListAndroidDeviceOwnerEnrollmentProfilesComplete retrieves all the results into a single object

func (AndroidDeviceOwnerEnrollmentProfileClient) ListAndroidDeviceOwnerEnrollmentProfilesCompleteMatchingPredicate

ListAndroidDeviceOwnerEnrollmentProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AndroidDeviceOwnerEnrollmentProfileClient) RevokeAndroidDeviceOwnerEnrollmentProfileToken

RevokeAndroidDeviceOwnerEnrollmentProfileToken - Invoke action revokeToken

func (AndroidDeviceOwnerEnrollmentProfileClient) UpdateAndroidDeviceOwnerEnrollmentProfile

UpdateAndroidDeviceOwnerEnrollmentProfile - Update the navigation property androidDeviceOwnerEnrollmentProfiles in deviceManagement

type AndroidDeviceOwnerEnrollmentProfileOperationPredicate

type AndroidDeviceOwnerEnrollmentProfileOperationPredicate struct {
}

func (AndroidDeviceOwnerEnrollmentProfileOperationPredicate) Matches

type CreateAndroidDeviceOwnerEnrollmentProfileOperationOptions

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

func (CreateAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToHeaders

func (CreateAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToOData

func (CreateAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToQuery

type CreateAndroidDeviceOwnerEnrollmentProfileOperationResponse

type CreateAndroidDeviceOwnerEnrollmentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AndroidDeviceOwnerEnrollmentProfile
}

type CreateAndroidDeviceOwnerEnrollmentProfileTokenOperationOptions

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

func (CreateAndroidDeviceOwnerEnrollmentProfileTokenOperationOptions) ToHeaders

func (CreateAndroidDeviceOwnerEnrollmentProfileTokenOperationOptions) ToOData

func (CreateAndroidDeviceOwnerEnrollmentProfileTokenOperationOptions) ToQuery

type CreateAndroidDeviceOwnerEnrollmentProfileTokenOperationResponse

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

type CreateAndroidDeviceOwnerEnrollmentProfileTokenRequest

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

type DeleteAndroidDeviceOwnerEnrollmentProfileOperationOptions

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

func (DeleteAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToHeaders

func (DeleteAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToOData

func (DeleteAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToQuery

type DeleteAndroidDeviceOwnerEnrollmentProfileOperationResponse

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

type GetAndroidDeviceOwnerEnrollmentProfileOperationOptions

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

func DefaultGetAndroidDeviceOwnerEnrollmentProfileOperationOptions

func DefaultGetAndroidDeviceOwnerEnrollmentProfileOperationOptions() GetAndroidDeviceOwnerEnrollmentProfileOperationOptions

func (GetAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToHeaders

func (GetAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToOData

func (GetAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToQuery

type GetAndroidDeviceOwnerEnrollmentProfileOperationResponse

type GetAndroidDeviceOwnerEnrollmentProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AndroidDeviceOwnerEnrollmentProfile
}

type GetAndroidDeviceOwnerEnrollmentProfilesCountOperationOptions

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

func (GetAndroidDeviceOwnerEnrollmentProfilesCountOperationOptions) ToHeaders

func (GetAndroidDeviceOwnerEnrollmentProfilesCountOperationOptions) ToOData

func (GetAndroidDeviceOwnerEnrollmentProfilesCountOperationOptions) ToQuery

type GetAndroidDeviceOwnerEnrollmentProfilesCountOperationResponse

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

type ListAndroidDeviceOwnerEnrollmentProfilesCompleteResult

type ListAndroidDeviceOwnerEnrollmentProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.AndroidDeviceOwnerEnrollmentProfile
}

type ListAndroidDeviceOwnerEnrollmentProfilesCustomPager

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

type ListAndroidDeviceOwnerEnrollmentProfilesOperationOptions

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

func (ListAndroidDeviceOwnerEnrollmentProfilesOperationOptions) ToOData

func (ListAndroidDeviceOwnerEnrollmentProfilesOperationOptions) ToQuery

type ListAndroidDeviceOwnerEnrollmentProfilesOperationResponse

type ListAndroidDeviceOwnerEnrollmentProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.AndroidDeviceOwnerEnrollmentProfile
}

type RevokeAndroidDeviceOwnerEnrollmentProfileTokenOperationOptions

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

func (RevokeAndroidDeviceOwnerEnrollmentProfileTokenOperationOptions) ToHeaders

func (RevokeAndroidDeviceOwnerEnrollmentProfileTokenOperationOptions) ToOData

func (RevokeAndroidDeviceOwnerEnrollmentProfileTokenOperationOptions) ToQuery

type RevokeAndroidDeviceOwnerEnrollmentProfileTokenOperationResponse

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

type UpdateAndroidDeviceOwnerEnrollmentProfileOperationOptions

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

func (UpdateAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToHeaders

func (UpdateAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToOData

func (UpdateAndroidDeviceOwnerEnrollmentProfileOperationOptions) ToQuery

type UpdateAndroidDeviceOwnerEnrollmentProfileOperationResponse

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