deviceconfiguration

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/stable/deviceconfiguration Documentation

The deviceconfiguration SDK allows for interaction with Microsoft Graph devicemanagement (API Version stable).

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/stable/deviceconfiguration"

Client Initialization

client := deviceconfiguration.NewDeviceConfigurationClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: DeviceConfigurationClient.AssignDeviceConfigurations

ctx := context.TODO()
id := deviceconfiguration.NewDeviceManagementDeviceConfigurationID("deviceConfigurationId")

payload := deviceconfiguration.AssignDeviceConfigurationsRequest{
	// ...
}


// alternatively `client.AssignDeviceConfigurations(ctx, id, payload, deviceconfiguration.DefaultAssignDeviceConfigurationsOperationOptions())` can be used to do batched pagination
items, err := client.AssignDeviceConfigurationsComplete(ctx, id, payload, deviceconfiguration.DefaultAssignDeviceConfigurationsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: DeviceConfigurationClient.CreateDeviceConfiguration

ctx := context.TODO()

payload := deviceconfiguration.DeviceConfiguration{
	// ...
}


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

Example Usage: DeviceConfigurationClient.DeleteDeviceConfiguration

ctx := context.TODO()
id := deviceconfiguration.NewDeviceManagementDeviceConfigurationID("deviceConfigurationId")

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

Example Usage: DeviceConfigurationClient.GetDeviceConfiguration

ctx := context.TODO()
id := deviceconfiguration.NewDeviceManagementDeviceConfigurationID("deviceConfigurationId")

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

Example Usage: DeviceConfigurationClient.GetDeviceConfigurationsCount

ctx := context.TODO()


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

Example Usage: DeviceConfigurationClient.ListDeviceConfigurations

ctx := context.TODO()


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

Example Usage: DeviceConfigurationClient.UpdateDeviceConfiguration

ctx := context.TODO()
id := deviceconfiguration.NewDeviceManagementDeviceConfigurationID("deviceConfigurationId")

payload := deviceconfiguration.DeviceConfiguration{
	// ...
}


read, err := client.UpdateDeviceConfiguration(ctx, id, payload, deviceconfiguration.DefaultUpdateDeviceConfigurationOperationOptions())
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 AssignDeviceConfigurationsCompleteResult

type AssignDeviceConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.DeviceConfigurationAssignment
}

type AssignDeviceConfigurationsCustomPager

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

type AssignDeviceConfigurationsOperationOptions

type AssignDeviceConfigurationsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultAssignDeviceConfigurationsOperationOptions

func DefaultAssignDeviceConfigurationsOperationOptions() AssignDeviceConfigurationsOperationOptions

func (AssignDeviceConfigurationsOperationOptions) ToHeaders

func (AssignDeviceConfigurationsOperationOptions) ToOData

func (AssignDeviceConfigurationsOperationOptions) ToQuery

type AssignDeviceConfigurationsOperationResponse

type AssignDeviceConfigurationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.DeviceConfigurationAssignment
}

type AssignDeviceConfigurationsRequest

type AssignDeviceConfigurationsRequest struct {
	Assignments *[]stable.DeviceConfigurationAssignment `json:"assignments,omitempty"`
}

type CreateDeviceConfigurationOperationOptions

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

func DefaultCreateDeviceConfigurationOperationOptions

func DefaultCreateDeviceConfigurationOperationOptions() CreateDeviceConfigurationOperationOptions

func (CreateDeviceConfigurationOperationOptions) ToHeaders

func (CreateDeviceConfigurationOperationOptions) ToOData

func (CreateDeviceConfigurationOperationOptions) ToQuery

type CreateDeviceConfigurationOperationResponse

type CreateDeviceConfigurationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.DeviceConfiguration
}

type DeleteDeviceConfigurationOperationOptions

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

func DefaultDeleteDeviceConfigurationOperationOptions

func DefaultDeleteDeviceConfigurationOperationOptions() DeleteDeviceConfigurationOperationOptions

func (DeleteDeviceConfigurationOperationOptions) ToHeaders

func (DeleteDeviceConfigurationOperationOptions) ToOData

func (DeleteDeviceConfigurationOperationOptions) ToQuery

type DeleteDeviceConfigurationOperationResponse

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

type DeviceConfigurationAssignmentOperationPredicate

type DeviceConfigurationAssignmentOperationPredicate struct {
}

func (DeviceConfigurationAssignmentOperationPredicate) Matches

type DeviceConfigurationClient

type DeviceConfigurationClient struct {
	Client *msgraph.Client
}

func NewDeviceConfigurationClientWithBaseURI

func NewDeviceConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceConfigurationClient, error)

func (DeviceConfigurationClient) AssignDeviceConfigurations

AssignDeviceConfigurations - Invoke action assign. Not yet documented

func (DeviceConfigurationClient) AssignDeviceConfigurationsComplete

AssignDeviceConfigurationsComplete retrieves all the results into a single object

func (DeviceConfigurationClient) AssignDeviceConfigurationsCompleteMatchingPredicate

AssignDeviceConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceConfigurationClient) CreateDeviceConfiguration

CreateDeviceConfiguration - Create windows10EnterpriseModernAppManagementConfiguration. Create a new windows10EnterpriseModernAppManagementConfiguration object.

func (DeviceConfigurationClient) DeleteDeviceConfiguration

DeleteDeviceConfiguration - Delete windows10EndpointProtectionConfiguration. Deletes a windows10EndpointProtectionConfiguration.

func (DeviceConfigurationClient) GetDeviceConfiguration

GetDeviceConfiguration - Get macOSGeneralDeviceConfiguration. Read properties and relationships of the macOSGeneralDeviceConfiguration object.

func (DeviceConfigurationClient) GetDeviceConfigurationsCount

GetDeviceConfigurationsCount - Get the number of the resource

func (DeviceConfigurationClient) ListDeviceConfigurations

ListDeviceConfigurations - List iosUpdateConfigurations. List properties and relationships of the iosUpdateConfiguration objects.

func (DeviceConfigurationClient) ListDeviceConfigurationsComplete

ListDeviceConfigurationsComplete retrieves all the results into a single object

func (DeviceConfigurationClient) ListDeviceConfigurationsCompleteMatchingPredicate

func (c DeviceConfigurationClient) ListDeviceConfigurationsCompleteMatchingPredicate(ctx context.Context, options ListDeviceConfigurationsOperationOptions, predicate DeviceConfigurationOperationPredicate) (result ListDeviceConfigurationsCompleteResult, err error)

ListDeviceConfigurationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceConfigurationClient) UpdateDeviceConfiguration

UpdateDeviceConfiguration - Update editionUpgradeConfiguration. Update the properties of a editionUpgradeConfiguration object.

type DeviceConfigurationOperationPredicate

type DeviceConfigurationOperationPredicate struct {
}

func (DeviceConfigurationOperationPredicate) Matches

type GetDeviceConfigurationOperationOptions

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

func DefaultGetDeviceConfigurationOperationOptions

func DefaultGetDeviceConfigurationOperationOptions() GetDeviceConfigurationOperationOptions

func (GetDeviceConfigurationOperationOptions) ToHeaders

func (GetDeviceConfigurationOperationOptions) ToOData

func (GetDeviceConfigurationOperationOptions) ToQuery

type GetDeviceConfigurationOperationResponse

type GetDeviceConfigurationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.DeviceConfiguration
}

type GetDeviceConfigurationsCountOperationOptions

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

func DefaultGetDeviceConfigurationsCountOperationOptions

func DefaultGetDeviceConfigurationsCountOperationOptions() GetDeviceConfigurationsCountOperationOptions

func (GetDeviceConfigurationsCountOperationOptions) ToHeaders

func (GetDeviceConfigurationsCountOperationOptions) ToOData

func (GetDeviceConfigurationsCountOperationOptions) ToQuery

type GetDeviceConfigurationsCountOperationResponse

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

type ListDeviceConfigurationsCompleteResult

type ListDeviceConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.DeviceConfiguration
}

type ListDeviceConfigurationsCustomPager

type ListDeviceConfigurationsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListDeviceConfigurationsCustomPager) NextPageLink() *odata.Link

type ListDeviceConfigurationsOperationOptions

type ListDeviceConfigurationsOperationOptions 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 DefaultListDeviceConfigurationsOperationOptions

func DefaultListDeviceConfigurationsOperationOptions() ListDeviceConfigurationsOperationOptions

func (ListDeviceConfigurationsOperationOptions) ToHeaders

func (ListDeviceConfigurationsOperationOptions) ToOData

func (ListDeviceConfigurationsOperationOptions) ToQuery

type ListDeviceConfigurationsOperationResponse

type ListDeviceConfigurationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.DeviceConfiguration
}

type UpdateDeviceConfigurationOperationOptions

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

func DefaultUpdateDeviceConfigurationOperationOptions

func DefaultUpdateDeviceConfigurationOperationOptions() UpdateDeviceConfigurationOperationOptions

func (UpdateDeviceConfigurationOperationOptions) ToHeaders

func (UpdateDeviceConfigurationOperationOptions) ToOData

func (UpdateDeviceConfigurationOperationOptions) ToQuery

type UpdateDeviceConfigurationOperationResponse

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