deviceconfiguration

package
v0.20241126.1723 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/deviceconfiguration Documentation

The deviceconfiguration 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/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.CreateDeviceConfigurationAssignedAccessMultiModeProfile

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

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


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

Example Usage: DeviceConfigurationClient.CreateDeviceConfigurationWindowsPrivacyAccessControl

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

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


read, err := client.CreateDeviceConfigurationWindowsPrivacyAccessControl(ctx, id, payload, deviceconfiguration.DefaultCreateDeviceConfigurationWindowsPrivacyAccessControlOperationOptions())
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.GetDeviceConfigurationsTargetedUsersAndDevices

ctx := context.TODO()

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


// alternatively `client.GetDeviceConfigurationsTargetedUsersAndDevices(ctx, payload, deviceconfiguration.DefaultGetDeviceConfigurationsTargetedUsersAndDevicesOperationOptions())` can be used to do batched pagination
items, err := client.GetDeviceConfigurationsTargetedUsersAndDevicesComplete(ctx, payload, deviceconfiguration.DefaultGetDeviceConfigurationsTargetedUsersAndDevicesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}
ctx := context.TODO()

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


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

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              []beta.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        *[]beta.DeviceConfigurationAssignment
}

type AssignDeviceConfigurationsRequest

type AssignDeviceConfigurationsRequest struct {
	Assignments                         *[]beta.DeviceConfigurationAssignment      `json:"assignments,omitempty"`
	DeviceConfigurationGroupAssignments *[]beta.DeviceConfigurationGroupAssignment `json:"deviceConfigurationGroupAssignments,omitempty"`
}

type CreateDeviceConfigurationAssignedAccessMultiModeProfileOperationOptions

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

func (CreateDeviceConfigurationAssignedAccessMultiModeProfileOperationOptions) ToHeaders

func (CreateDeviceConfigurationAssignedAccessMultiModeProfileOperationOptions) ToOData

func (CreateDeviceConfigurationAssignedAccessMultiModeProfileOperationOptions) ToQuery

type CreateDeviceConfigurationAssignedAccessMultiModeProfileOperationResponse

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

type CreateDeviceConfigurationAssignedAccessMultiModeProfileRequest

type CreateDeviceConfigurationAssignedAccessMultiModeProfileRequest struct {
	AssignedAccessMultiModeProfiles *[]beta.WindowsAssignedAccessProfile `json:"assignedAccessMultiModeProfiles,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        beta.DeviceConfiguration
}

type CreateDeviceConfigurationWindowsPrivacyAccessControlOperationOptions

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

func (CreateDeviceConfigurationWindowsPrivacyAccessControlOperationOptions) ToHeaders

func (CreateDeviceConfigurationWindowsPrivacyAccessControlOperationOptions) ToOData

func (CreateDeviceConfigurationWindowsPrivacyAccessControlOperationOptions) ToQuery

type CreateDeviceConfigurationWindowsPrivacyAccessControlOperationResponse

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

type CreateDeviceConfigurationWindowsPrivacyAccessControlRequest

type CreateDeviceConfigurationWindowsPrivacyAccessControlRequest struct {
	WindowsPrivacyAccessControls *[]beta.WindowsPrivacyDataAccessControlItem `json:"windowsPrivacyAccessControls,omitempty"`
}

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

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 new navigation property to deviceConfigurations for deviceManagement

func (DeviceConfigurationClient) CreateDeviceConfigurationAssignedAccessMultiModeProfile

CreateDeviceConfigurationAssignedAccessMultiModeProfile - Invoke action assignedAccessMultiModeProfiles

func (DeviceConfigurationClient) CreateDeviceConfigurationWindowsPrivacyAccessControl

CreateDeviceConfigurationWindowsPrivacyAccessControl - Invoke action windowsPrivacyAccessControls

func (DeviceConfigurationClient) DeleteDeviceConfiguration

DeleteDeviceConfiguration - Delete navigation property deviceConfigurations for deviceManagement

func (DeviceConfigurationClient) GetDeviceConfiguration

GetDeviceConfiguration - Get deviceConfigurations from deviceManagement. The device configurations.

func (DeviceConfigurationClient) GetDeviceConfigurationsCount

GetDeviceConfigurationsCount - Get the number of the resource

func (DeviceConfigurationClient) GetDeviceConfigurationsTargetedUsersAndDevices

GetDeviceConfigurationsTargetedUsersAndDevices - Invoke action getTargetedUsersAndDevices

func (DeviceConfigurationClient) GetDeviceConfigurationsTargetedUsersAndDevicesComplete

GetDeviceConfigurationsTargetedUsersAndDevicesComplete retrieves all the results into a single object

func (DeviceConfigurationClient) GetDeviceConfigurationsTargetedUsersAndDevicesCompleteMatchingPredicate

GetDeviceConfigurationsTargetedUsersAndDevicesCompleteMatchingPredicate retrieves all the results and then applies the predicate

ListDeviceConfigurationHasPayloadLinks - Invoke action hasPayloadLinks

func (DeviceConfigurationClient) ListDeviceConfigurationHasPayloadLinksComplete

ListDeviceConfigurationHasPayloadLinksComplete retrieves all the results into a single object

func (DeviceConfigurationClient) ListDeviceConfigurationHasPayloadLinksCompleteMatchingPredicate

ListDeviceConfigurationHasPayloadLinksCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DeviceConfigurationClient) ListDeviceConfigurations

ListDeviceConfigurations - Get deviceConfigurations from deviceManagement. The device configurations.

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 the navigation property deviceConfigurations in deviceManagement

type DeviceConfigurationOperationPredicate

type DeviceConfigurationOperationPredicate struct {
}

func (DeviceConfigurationOperationPredicate) Matches

type DeviceConfigurationTargetedUserAndDeviceOperationPredicate

type DeviceConfigurationTargetedUserAndDeviceOperationPredicate struct {
}

func (DeviceConfigurationTargetedUserAndDeviceOperationPredicate) 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        beta.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 GetDeviceConfigurationsTargetedUsersAndDevicesCompleteResult

type GetDeviceConfigurationsTargetedUsersAndDevicesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceConfigurationTargetedUserAndDevice
}

type GetDeviceConfigurationsTargetedUsersAndDevicesCustomPager

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

type GetDeviceConfigurationsTargetedUsersAndDevicesOperationOptions

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

func (GetDeviceConfigurationsTargetedUsersAndDevicesOperationOptions) ToHeaders

func (GetDeviceConfigurationsTargetedUsersAndDevicesOperationOptions) ToOData

func (GetDeviceConfigurationsTargetedUsersAndDevicesOperationOptions) ToQuery

type GetDeviceConfigurationsTargetedUsersAndDevicesOperationResponse

type GetDeviceConfigurationsTargetedUsersAndDevicesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceConfigurationTargetedUserAndDevice
}

type GetDeviceConfigurationsTargetedUsersAndDevicesRequest

type GetDeviceConfigurationsTargetedUsersAndDevicesRequest struct {
	DeviceConfigurationIds *[]string `json:"deviceConfigurationIds,omitempty"`
}

type HasPayloadLinkResultItemOperationPredicate

type HasPayloadLinkResultItemOperationPredicate struct {
}

func (HasPayloadLinkResultItemOperationPredicate) Matches

type ListDeviceConfigurationHasPayloadLinksCompleteResult

type ListDeviceConfigurationHasPayloadLinksCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.HasPayloadLinkResultItem
}

type ListDeviceConfigurationHasPayloadLinksCustomPager

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

type ListDeviceConfigurationHasPayloadLinksOperationOptions

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

func DefaultListDeviceConfigurationHasPayloadLinksOperationOptions

func DefaultListDeviceConfigurationHasPayloadLinksOperationOptions() ListDeviceConfigurationHasPayloadLinksOperationOptions

func (ListDeviceConfigurationHasPayloadLinksOperationOptions) ToHeaders

func (ListDeviceConfigurationHasPayloadLinksOperationOptions) ToOData

func (ListDeviceConfigurationHasPayloadLinksOperationOptions) ToQuery

type ListDeviceConfigurationHasPayloadLinksOperationResponse

type ListDeviceConfigurationHasPayloadLinksOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.HasPayloadLinkResultItem
}

type ListDeviceConfigurationHasPayloadLinksRequest

type ListDeviceConfigurationHasPayloadLinksRequest struct {
	PayloadIds *[]string `json:"payloadIds,omitempty"`
}

type ListDeviceConfigurationsCompleteResult

type ListDeviceConfigurationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.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        *[]beta.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