chromeosonboardingsetting

package
v0.20241209.1115630 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := chromeosonboardingsetting.NewChromeOSOnboardingSettingClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ChromeOSOnboardingSettingClient.CreateChromeOSOnboardingSetting

ctx := context.TODO()

payload := chromeosonboardingsetting.ChromeOSOnboardingSettings{
	// ...
}


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

Example Usage: ChromeOSOnboardingSettingClient.CreateChromeOSOnboardingSettingConnect

ctx := context.TODO()

payload := chromeosonboardingsetting.CreateChromeOSOnboardingSettingConnectRequest{
	// ...
}


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

Example Usage: ChromeOSOnboardingSettingClient.CreateChromeOSOnboardingSettingDisconnect

ctx := context.TODO()


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

Example Usage: ChromeOSOnboardingSettingClient.DeleteChromeOSOnboardingSetting

ctx := context.TODO()
id := chromeosonboardingsetting.NewDeviceManagementChromeOSOnboardingSettingID("chromeOSOnboardingSettingsId")

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

Example Usage: ChromeOSOnboardingSettingClient.GetChromeOSOnboardingSetting

ctx := context.TODO()
id := chromeosonboardingsetting.NewDeviceManagementChromeOSOnboardingSettingID("chromeOSOnboardingSettingsId")

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

Example Usage: ChromeOSOnboardingSettingClient.GetChromeOSOnboardingSettingsCount

ctx := context.TODO()


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

Example Usage: ChromeOSOnboardingSettingClient.ListChromeOSOnboardingSettings

ctx := context.TODO()


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

Example Usage: ChromeOSOnboardingSettingClient.UpdateChromeOSOnboardingSetting

ctx := context.TODO()
id := chromeosonboardingsetting.NewDeviceManagementChromeOSOnboardingSettingID("chromeOSOnboardingSettingsId")

payload := chromeosonboardingsetting.ChromeOSOnboardingSettings{
	// ...
}


read, err := client.UpdateChromeOSOnboardingSetting(ctx, id, payload, chromeosonboardingsetting.DefaultUpdateChromeOSOnboardingSettingOperationOptions())
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 ChromeOSOnboardingSettingClient

type ChromeOSOnboardingSettingClient struct {
	Client *msgraph.Client
}

func NewChromeOSOnboardingSettingClientWithBaseURI

func NewChromeOSOnboardingSettingClientWithBaseURI(sdkApi sdkEnv.Api) (*ChromeOSOnboardingSettingClient, error)

func (ChromeOSOnboardingSettingClient) CreateChromeOSOnboardingSetting

CreateChromeOSOnboardingSetting - Create new navigation property to chromeOSOnboardingSettings for deviceManagement

func (ChromeOSOnboardingSettingClient) CreateChromeOSOnboardingSettingConnect

CreateChromeOSOnboardingSettingConnect - Invoke action connect

func (ChromeOSOnboardingSettingClient) CreateChromeOSOnboardingSettingDisconnect

CreateChromeOSOnboardingSettingDisconnect - Invoke action disconnect

func (ChromeOSOnboardingSettingClient) DeleteChromeOSOnboardingSetting

DeleteChromeOSOnboardingSetting - Delete navigation property chromeOSOnboardingSettings for deviceManagement

func (ChromeOSOnboardingSettingClient) GetChromeOSOnboardingSetting

GetChromeOSOnboardingSetting - Get chromeOSOnboardingSettings from deviceManagement. Collection of ChromeOSOnboardingSettings settings associated with account.

func (ChromeOSOnboardingSettingClient) GetChromeOSOnboardingSettingsCount

GetChromeOSOnboardingSettingsCount - Get the number of the resource

func (ChromeOSOnboardingSettingClient) ListChromeOSOnboardingSettings

ListChromeOSOnboardingSettings - Get chromeOSOnboardingSettings from deviceManagement. Collection of ChromeOSOnboardingSettings settings associated with account.

func (ChromeOSOnboardingSettingClient) ListChromeOSOnboardingSettingsComplete

ListChromeOSOnboardingSettingsComplete retrieves all the results into a single object

func (ChromeOSOnboardingSettingClient) ListChromeOSOnboardingSettingsCompleteMatchingPredicate

ListChromeOSOnboardingSettingsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ChromeOSOnboardingSettingClient) UpdateChromeOSOnboardingSetting

UpdateChromeOSOnboardingSetting - Update the navigation property chromeOSOnboardingSettings in deviceManagement

type ChromeOSOnboardingSettingsOperationPredicate

type ChromeOSOnboardingSettingsOperationPredicate struct {
}

func (ChromeOSOnboardingSettingsOperationPredicate) Matches

type CreateChromeOSOnboardingSettingConnectOperationOptions

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

func DefaultCreateChromeOSOnboardingSettingConnectOperationOptions

func DefaultCreateChromeOSOnboardingSettingConnectOperationOptions() CreateChromeOSOnboardingSettingConnectOperationOptions

func (CreateChromeOSOnboardingSettingConnectOperationOptions) ToHeaders

func (CreateChromeOSOnboardingSettingConnectOperationOptions) ToOData

func (CreateChromeOSOnboardingSettingConnectOperationOptions) ToQuery

type CreateChromeOSOnboardingSettingConnectOperationResponse

type CreateChromeOSOnboardingSettingConnectOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ChromeOSOnboardingStatus
}

type CreateChromeOSOnboardingSettingConnectRequest

type CreateChromeOSOnboardingSettingConnectRequest struct {
	OwnerAccessToken       nullable.Type[string] `json:"ownerAccessToken,omitempty"`
	OwnerUserPrincipalName nullable.Type[string] `json:"ownerUserPrincipalName,omitempty"`
}

type CreateChromeOSOnboardingSettingDisconnectOperationOptions

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

func (CreateChromeOSOnboardingSettingDisconnectOperationOptions) ToHeaders

func (CreateChromeOSOnboardingSettingDisconnectOperationOptions) ToOData

func (CreateChromeOSOnboardingSettingDisconnectOperationOptions) ToQuery

type CreateChromeOSOnboardingSettingDisconnectOperationResponse

type CreateChromeOSOnboardingSettingDisconnectOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ChromeOSOnboardingStatus
}

type CreateChromeOSOnboardingSettingOperationOptions

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

func DefaultCreateChromeOSOnboardingSettingOperationOptions

func DefaultCreateChromeOSOnboardingSettingOperationOptions() CreateChromeOSOnboardingSettingOperationOptions

func (CreateChromeOSOnboardingSettingOperationOptions) ToHeaders

func (CreateChromeOSOnboardingSettingOperationOptions) ToOData

func (CreateChromeOSOnboardingSettingOperationOptions) ToQuery

type CreateChromeOSOnboardingSettingOperationResponse

type CreateChromeOSOnboardingSettingOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ChromeOSOnboardingSettings
}

type DeleteChromeOSOnboardingSettingOperationOptions

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

func DefaultDeleteChromeOSOnboardingSettingOperationOptions

func DefaultDeleteChromeOSOnboardingSettingOperationOptions() DeleteChromeOSOnboardingSettingOperationOptions

func (DeleteChromeOSOnboardingSettingOperationOptions) ToHeaders

func (DeleteChromeOSOnboardingSettingOperationOptions) ToOData

func (DeleteChromeOSOnboardingSettingOperationOptions) ToQuery

type DeleteChromeOSOnboardingSettingOperationResponse

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

type GetChromeOSOnboardingSettingOperationOptions

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

func DefaultGetChromeOSOnboardingSettingOperationOptions

func DefaultGetChromeOSOnboardingSettingOperationOptions() GetChromeOSOnboardingSettingOperationOptions

func (GetChromeOSOnboardingSettingOperationOptions) ToHeaders

func (GetChromeOSOnboardingSettingOperationOptions) ToOData

func (GetChromeOSOnboardingSettingOperationOptions) ToQuery

type GetChromeOSOnboardingSettingOperationResponse

type GetChromeOSOnboardingSettingOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ChromeOSOnboardingSettings
}

type GetChromeOSOnboardingSettingsCountOperationOptions

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

func DefaultGetChromeOSOnboardingSettingsCountOperationOptions

func DefaultGetChromeOSOnboardingSettingsCountOperationOptions() GetChromeOSOnboardingSettingsCountOperationOptions

func (GetChromeOSOnboardingSettingsCountOperationOptions) ToHeaders

func (GetChromeOSOnboardingSettingsCountOperationOptions) ToOData

func (GetChromeOSOnboardingSettingsCountOperationOptions) ToQuery

type GetChromeOSOnboardingSettingsCountOperationResponse

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

type ListChromeOSOnboardingSettingsCompleteResult

type ListChromeOSOnboardingSettingsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ChromeOSOnboardingSettings
}

type ListChromeOSOnboardingSettingsCustomPager

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

type ListChromeOSOnboardingSettingsOperationOptions

type ListChromeOSOnboardingSettingsOperationOptions 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 DefaultListChromeOSOnboardingSettingsOperationOptions

func DefaultListChromeOSOnboardingSettingsOperationOptions() ListChromeOSOnboardingSettingsOperationOptions

func (ListChromeOSOnboardingSettingsOperationOptions) ToHeaders

func (ListChromeOSOnboardingSettingsOperationOptions) ToOData

func (ListChromeOSOnboardingSettingsOperationOptions) ToQuery

type ListChromeOSOnboardingSettingsOperationResponse

type ListChromeOSOnboardingSettingsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ChromeOSOnboardingSettings
}

type UpdateChromeOSOnboardingSettingOperationOptions

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

func DefaultUpdateChromeOSOnboardingSettingOperationOptions

func DefaultUpdateChromeOSOnboardingSettingOperationOptions() UpdateChromeOSOnboardingSettingOperationOptions

func (UpdateChromeOSOnboardingSettingOperationOptions) ToHeaders

func (UpdateChromeOSOnboardingSettingOperationOptions) ToOData

func (UpdateChromeOSOnboardingSettingOperationOptions) ToQuery

type UpdateChromeOSOnboardingSettingOperationResponse

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