resourceaccessprofile

package
v0.20241104.1140654 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

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

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

Client Initialization

client := resourceaccessprofile.NewResourceAccessProfileClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ResourceAccessProfileClient.AssignResourceAccessProfiles

ctx := context.TODO()
id := resourceaccessprofile.NewDeviceManagementResourceAccessProfileID("deviceManagementResourceAccessProfileBaseId")

payload := resourceaccessprofile.AssignResourceAccessProfilesRequest{
	// ...
}


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

Example Usage: ResourceAccessProfileClient.CreateResourceAccessProfile

ctx := context.TODO()

payload := resourceaccessprofile.DeviceManagementResourceAccessProfileBase{
	// ...
}


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

Example Usage: ResourceAccessProfileClient.DeleteResourceAccessProfile

ctx := context.TODO()
id := resourceaccessprofile.NewDeviceManagementResourceAccessProfileID("deviceManagementResourceAccessProfileBaseId")

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

Example Usage: ResourceAccessProfileClient.GetResourceAccessProfile

ctx := context.TODO()
id := resourceaccessprofile.NewDeviceManagementResourceAccessProfileID("deviceManagementResourceAccessProfileBaseId")

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

Example Usage: ResourceAccessProfileClient.GetResourceAccessProfilesCount

ctx := context.TODO()


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

Example Usage: ResourceAccessProfileClient.ListResourceAccessProfileQueryByPlatformTypes

ctx := context.TODO()

payload := resourceaccessprofile.ListResourceAccessProfileQueryByPlatformTypesRequest{
	// ...
}


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

Example Usage: ResourceAccessProfileClient.ListResourceAccessProfiles

ctx := context.TODO()


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

Example Usage: ResourceAccessProfileClient.UpdateResourceAccessProfile

ctx := context.TODO()
id := resourceaccessprofile.NewDeviceManagementResourceAccessProfileID("deviceManagementResourceAccessProfileBaseId")

payload := resourceaccessprofile.DeviceManagementResourceAccessProfileBase{
	// ...
}


read, err := client.UpdateResourceAccessProfile(ctx, id, payload, resourceaccessprofile.DefaultUpdateResourceAccessProfileOperationOptions())
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 AssignResourceAccessProfilesCompleteResult

type AssignResourceAccessProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementResourceAccessProfileAssignment
}

type AssignResourceAccessProfilesCustomPager

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

type AssignResourceAccessProfilesOperationOptions

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

func DefaultAssignResourceAccessProfilesOperationOptions

func DefaultAssignResourceAccessProfilesOperationOptions() AssignResourceAccessProfilesOperationOptions

func (AssignResourceAccessProfilesOperationOptions) ToHeaders

func (AssignResourceAccessProfilesOperationOptions) ToOData

func (AssignResourceAccessProfilesOperationOptions) ToQuery

type AssignResourceAccessProfilesOperationResponse

type AssignResourceAccessProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementResourceAccessProfileAssignment
}

type AssignResourceAccessProfilesRequest

type AssignResourceAccessProfilesRequest struct {
	Assignments *[]beta.DeviceManagementResourceAccessProfileAssignment `json:"assignments,omitempty"`
}

type CreateResourceAccessProfileOperationOptions

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

func DefaultCreateResourceAccessProfileOperationOptions

func DefaultCreateResourceAccessProfileOperationOptions() CreateResourceAccessProfileOperationOptions

func (CreateResourceAccessProfileOperationOptions) ToHeaders

func (CreateResourceAccessProfileOperationOptions) ToOData

func (CreateResourceAccessProfileOperationOptions) ToQuery

type CreateResourceAccessProfileOperationResponse

type CreateResourceAccessProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DeviceManagementResourceAccessProfileBase
}

type DeleteResourceAccessProfileOperationOptions

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

func DefaultDeleteResourceAccessProfileOperationOptions

func DefaultDeleteResourceAccessProfileOperationOptions() DeleteResourceAccessProfileOperationOptions

func (DeleteResourceAccessProfileOperationOptions) ToHeaders

func (DeleteResourceAccessProfileOperationOptions) ToOData

func (DeleteResourceAccessProfileOperationOptions) ToQuery

type DeleteResourceAccessProfileOperationResponse

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

type DeviceManagementResourceAccessProfileAssignmentOperationPredicate

type DeviceManagementResourceAccessProfileAssignmentOperationPredicate struct {
}

func (DeviceManagementResourceAccessProfileAssignmentOperationPredicate) Matches

type DeviceManagementResourceAccessProfileBaseOperationPredicate

type DeviceManagementResourceAccessProfileBaseOperationPredicate struct {
}

func (DeviceManagementResourceAccessProfileBaseOperationPredicate) Matches

type GetResourceAccessProfileOperationOptions

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

func DefaultGetResourceAccessProfileOperationOptions

func DefaultGetResourceAccessProfileOperationOptions() GetResourceAccessProfileOperationOptions

func (GetResourceAccessProfileOperationOptions) ToHeaders

func (GetResourceAccessProfileOperationOptions) ToOData

func (GetResourceAccessProfileOperationOptions) ToQuery

type GetResourceAccessProfileOperationResponse

type GetResourceAccessProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DeviceManagementResourceAccessProfileBase
}

type GetResourceAccessProfilesCountOperationOptions

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

func DefaultGetResourceAccessProfilesCountOperationOptions

func DefaultGetResourceAccessProfilesCountOperationOptions() GetResourceAccessProfilesCountOperationOptions

func (GetResourceAccessProfilesCountOperationOptions) ToHeaders

func (GetResourceAccessProfilesCountOperationOptions) ToOData

func (GetResourceAccessProfilesCountOperationOptions) ToQuery

type GetResourceAccessProfilesCountOperationResponse

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

type ListResourceAccessProfileQueryByPlatformTypesCompleteResult

type ListResourceAccessProfileQueryByPlatformTypesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementResourceAccessProfileBase
}

type ListResourceAccessProfileQueryByPlatformTypesCustomPager

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

type ListResourceAccessProfileQueryByPlatformTypesOperationOptions

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

func (ListResourceAccessProfileQueryByPlatformTypesOperationOptions) ToHeaders

func (ListResourceAccessProfileQueryByPlatformTypesOperationOptions) ToOData

func (ListResourceAccessProfileQueryByPlatformTypesOperationOptions) ToQuery

type ListResourceAccessProfileQueryByPlatformTypesOperationResponse

type ListResourceAccessProfileQueryByPlatformTypesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementResourceAccessProfileBase
}

type ListResourceAccessProfileQueryByPlatformTypesRequest

type ListResourceAccessProfileQueryByPlatformTypesRequest struct {
	// Supported platform types for policies.
	PlatformType *beta.PolicyPlatformType `json:"platformType,omitempty"`
}

type ListResourceAccessProfilesCompleteResult

type ListResourceAccessProfilesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementResourceAccessProfileBase
}

type ListResourceAccessProfilesCustomPager

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

type ListResourceAccessProfilesOperationOptions

type ListResourceAccessProfilesOperationOptions 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 DefaultListResourceAccessProfilesOperationOptions

func DefaultListResourceAccessProfilesOperationOptions() ListResourceAccessProfilesOperationOptions

func (ListResourceAccessProfilesOperationOptions) ToHeaders

func (ListResourceAccessProfilesOperationOptions) ToOData

func (ListResourceAccessProfilesOperationOptions) ToQuery

type ListResourceAccessProfilesOperationResponse

type ListResourceAccessProfilesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementResourceAccessProfileBase
}

type ResourceAccessProfileClient

type ResourceAccessProfileClient struct {
	Client *msgraph.Client
}

func NewResourceAccessProfileClientWithBaseURI

func NewResourceAccessProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceAccessProfileClient, error)

func (ResourceAccessProfileClient) AssignResourceAccessProfiles

AssignResourceAccessProfiles - Invoke action assign

func (ResourceAccessProfileClient) AssignResourceAccessProfilesComplete

AssignResourceAccessProfilesComplete retrieves all the results into a single object

func (ResourceAccessProfileClient) AssignResourceAccessProfilesCompleteMatchingPredicate

AssignResourceAccessProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ResourceAccessProfileClient) CreateResourceAccessProfile

CreateResourceAccessProfile - Create new navigation property to resourceAccessProfiles for deviceManagement

func (ResourceAccessProfileClient) DeleteResourceAccessProfile

DeleteResourceAccessProfile - Delete navigation property resourceAccessProfiles for deviceManagement

func (ResourceAccessProfileClient) GetResourceAccessProfile

GetResourceAccessProfile - Get resourceAccessProfiles from deviceManagement. Collection of resource access settings associated with account.

func (ResourceAccessProfileClient) GetResourceAccessProfilesCount

GetResourceAccessProfilesCount - Get the number of the resource

func (ResourceAccessProfileClient) ListResourceAccessProfileQueryByPlatformTypes

ListResourceAccessProfileQueryByPlatformTypes - Invoke action queryByPlatformType

func (ResourceAccessProfileClient) ListResourceAccessProfileQueryByPlatformTypesComplete

ListResourceAccessProfileQueryByPlatformTypesComplete retrieves all the results into a single object

func (ResourceAccessProfileClient) ListResourceAccessProfileQueryByPlatformTypesCompleteMatchingPredicate

ListResourceAccessProfileQueryByPlatformTypesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ResourceAccessProfileClient) ListResourceAccessProfiles

ListResourceAccessProfiles - Get resourceAccessProfiles from deviceManagement. Collection of resource access settings associated with account.

func (ResourceAccessProfileClient) ListResourceAccessProfilesComplete

ListResourceAccessProfilesComplete retrieves all the results into a single object

func (ResourceAccessProfileClient) ListResourceAccessProfilesCompleteMatchingPredicate

ListResourceAccessProfilesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ResourceAccessProfileClient) UpdateResourceAccessProfile

UpdateResourceAccessProfile - Update the navigation property resourceAccessProfiles in deviceManagement

type UpdateResourceAccessProfileOperationOptions

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

func DefaultUpdateResourceAccessProfileOperationOptions

func DefaultUpdateResourceAccessProfileOperationOptions() UpdateResourceAccessProfileOperationOptions

func (UpdateResourceAccessProfileOperationOptions) ToHeaders

func (UpdateResourceAccessProfileOperationOptions) ToOData

func (UpdateResourceAccessProfileOperationOptions) ToQuery

type UpdateResourceAccessProfileOperationResponse

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