androidforworksetting

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: 9 Imported by: 0

README

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

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

Client Initialization

client := androidforworksetting.NewAndroidForWorkSettingClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AndroidForWorkSettingClient.CreateAndroidForWorkSettingCompleteSignup

ctx := context.TODO()

payload := androidforworksetting.CreateAndroidForWorkSettingCompleteSignupRequest{
	// ...
}


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

Example Usage: AndroidForWorkSettingClient.CreateAndroidForWorkSettingUnbind

ctx := context.TODO()


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

Example Usage: AndroidForWorkSettingClient.DeleteAndroidForWorkSetting

ctx := context.TODO()


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

Example Usage: AndroidForWorkSettingClient.GetAndroidForWorkSetting

ctx := context.TODO()


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

Example Usage: AndroidForWorkSettingClient.RequestAndroidForWorkSettingsSignupUrl

ctx := context.TODO()

payload := androidforworksetting.RequestAndroidForWorkSettingsSignupUrlRequest{
	// ...
}


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

Example Usage: AndroidForWorkSettingClient.SyncAndroidForWorkSettingsApps

ctx := context.TODO()


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

Example Usage: AndroidForWorkSettingClient.UpdateAndroidForWorkSetting

ctx := context.TODO()

payload := androidforworksetting.AndroidForWorkSettings{
	// ...
}


read, err := client.UpdateAndroidForWorkSetting(ctx, payload, androidforworksetting.DefaultUpdateAndroidForWorkSettingOperationOptions())
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 AndroidForWorkSettingClient

type AndroidForWorkSettingClient struct {
	Client *msgraph.Client
}

func NewAndroidForWorkSettingClientWithBaseURI

func NewAndroidForWorkSettingClientWithBaseURI(sdkApi sdkEnv.Api) (*AndroidForWorkSettingClient, error)

func (AndroidForWorkSettingClient) CreateAndroidForWorkSettingCompleteSignup

CreateAndroidForWorkSettingCompleteSignup - Invoke action completeSignup

func (AndroidForWorkSettingClient) CreateAndroidForWorkSettingUnbind

CreateAndroidForWorkSettingUnbind - Invoke action unbind

func (AndroidForWorkSettingClient) DeleteAndroidForWorkSetting

DeleteAndroidForWorkSetting - Delete navigation property androidForWorkSettings for deviceManagement

func (AndroidForWorkSettingClient) GetAndroidForWorkSetting

GetAndroidForWorkSetting - Get androidForWorkSettings from deviceManagement. The singleton Android for Work settings entity.

func (AndroidForWorkSettingClient) RequestAndroidForWorkSettingsSignupUrl

RequestAndroidForWorkSettingsSignupUrl - Invoke action requestSignupUrl

func (AndroidForWorkSettingClient) SyncAndroidForWorkSettingsApps

SyncAndroidForWorkSettingsApps - Invoke action syncApps

func (AndroidForWorkSettingClient) UpdateAndroidForWorkSetting

UpdateAndroidForWorkSetting - Update the navigation property androidForWorkSettings in deviceManagement

type CreateAndroidForWorkSettingCompleteSignupOperationOptions

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

func (CreateAndroidForWorkSettingCompleteSignupOperationOptions) ToHeaders

func (CreateAndroidForWorkSettingCompleteSignupOperationOptions) ToOData

func (CreateAndroidForWorkSettingCompleteSignupOperationOptions) ToQuery

type CreateAndroidForWorkSettingCompleteSignupOperationResponse

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

type CreateAndroidForWorkSettingCompleteSignupRequest

type CreateAndroidForWorkSettingCompleteSignupRequest struct {
	EnterpriseToken nullable.Type[string] `json:"enterpriseToken,omitempty"`
}

type CreateAndroidForWorkSettingUnbindOperationOptions

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

func DefaultCreateAndroidForWorkSettingUnbindOperationOptions

func DefaultCreateAndroidForWorkSettingUnbindOperationOptions() CreateAndroidForWorkSettingUnbindOperationOptions

func (CreateAndroidForWorkSettingUnbindOperationOptions) ToHeaders

func (CreateAndroidForWorkSettingUnbindOperationOptions) ToOData

func (CreateAndroidForWorkSettingUnbindOperationOptions) ToQuery

type CreateAndroidForWorkSettingUnbindOperationResponse

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

type DeleteAndroidForWorkSettingOperationOptions

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

func DefaultDeleteAndroidForWorkSettingOperationOptions

func DefaultDeleteAndroidForWorkSettingOperationOptions() DeleteAndroidForWorkSettingOperationOptions

func (DeleteAndroidForWorkSettingOperationOptions) ToHeaders

func (DeleteAndroidForWorkSettingOperationOptions) ToOData

func (DeleteAndroidForWorkSettingOperationOptions) ToQuery

type DeleteAndroidForWorkSettingOperationResponse

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

type GetAndroidForWorkSettingOperationOptions

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

func DefaultGetAndroidForWorkSettingOperationOptions

func DefaultGetAndroidForWorkSettingOperationOptions() GetAndroidForWorkSettingOperationOptions

func (GetAndroidForWorkSettingOperationOptions) ToHeaders

func (GetAndroidForWorkSettingOperationOptions) ToOData

func (GetAndroidForWorkSettingOperationOptions) ToQuery

type GetAndroidForWorkSettingOperationResponse

type GetAndroidForWorkSettingOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AndroidForWorkSettings
}

type RequestAndroidForWorkSettingsSignupUrlOperationOptions

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

func DefaultRequestAndroidForWorkSettingsSignupUrlOperationOptions

func DefaultRequestAndroidForWorkSettingsSignupUrlOperationOptions() RequestAndroidForWorkSettingsSignupUrlOperationOptions

func (RequestAndroidForWorkSettingsSignupUrlOperationOptions) ToHeaders

func (RequestAndroidForWorkSettingsSignupUrlOperationOptions) ToOData

func (RequestAndroidForWorkSettingsSignupUrlOperationOptions) ToQuery

type RequestAndroidForWorkSettingsSignupUrlOperationResponse

type RequestAndroidForWorkSettingsSignupUrlOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RequestAndroidForWorkSettingsSignupUrlResult
}

type RequestAndroidForWorkSettingsSignupUrlRequest

type RequestAndroidForWorkSettingsSignupUrlRequest struct {
	HostName nullable.Type[string] `json:"hostName,omitempty"`
}

type RequestAndroidForWorkSettingsSignupUrlResult

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

type SyncAndroidForWorkSettingsAppsOperationOptions

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

func DefaultSyncAndroidForWorkSettingsAppsOperationOptions

func DefaultSyncAndroidForWorkSettingsAppsOperationOptions() SyncAndroidForWorkSettingsAppsOperationOptions

func (SyncAndroidForWorkSettingsAppsOperationOptions) ToHeaders

func (SyncAndroidForWorkSettingsAppsOperationOptions) ToOData

func (SyncAndroidForWorkSettingsAppsOperationOptions) ToQuery

type SyncAndroidForWorkSettingsAppsOperationResponse

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

type UpdateAndroidForWorkSettingOperationOptions

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

func DefaultUpdateAndroidForWorkSettingOperationOptions

func DefaultUpdateAndroidForWorkSettingOperationOptions() UpdateAndroidForWorkSettingOperationOptions

func (UpdateAndroidForWorkSettingOperationOptions) ToHeaders

func (UpdateAndroidForWorkSettingOperationOptions) ToOData

func (UpdateAndroidForWorkSettingOperationOptions) ToQuery

type UpdateAndroidForWorkSettingOperationResponse

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