README ¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/stable/virtualendpointusersetting
Documentation
The virtualendpointusersetting
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/virtualendpointusersetting"
Client Initialization
client := virtualendpointusersetting.NewVirtualEndpointUserSettingClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: VirtualEndpointUserSettingClient.AssignVirtualEndpointUserSetting
ctx := context.TODO()
id := virtualendpointusersetting.NewDeviceManagementVirtualEndpointUserSettingID("cloudPCUserSettingId")
payload := virtualendpointusersetting.AssignVirtualEndpointUserSettingRequest{
// ...
}
read, err := client.AssignVirtualEndpointUserSetting(ctx, id, payload, virtualendpointusersetting.DefaultAssignVirtualEndpointUserSettingOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: VirtualEndpointUserSettingClient.CreateVirtualEndpointUserSetting
ctx := context.TODO()
payload := virtualendpointusersetting.CloudPCUserSetting{
// ...
}
read, err := client.CreateVirtualEndpointUserSetting(ctx, payload, virtualendpointusersetting.DefaultCreateVirtualEndpointUserSettingOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: VirtualEndpointUserSettingClient.DeleteVirtualEndpointUserSetting
ctx := context.TODO()
id := virtualendpointusersetting.NewDeviceManagementVirtualEndpointUserSettingID("cloudPCUserSettingId")
read, err := client.DeleteVirtualEndpointUserSetting(ctx, id, virtualendpointusersetting.DefaultDeleteVirtualEndpointUserSettingOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: VirtualEndpointUserSettingClient.GetVirtualEndpointUserSetting
ctx := context.TODO()
id := virtualendpointusersetting.NewDeviceManagementVirtualEndpointUserSettingID("cloudPCUserSettingId")
read, err := client.GetVirtualEndpointUserSetting(ctx, id, virtualendpointusersetting.DefaultGetVirtualEndpointUserSettingOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: VirtualEndpointUserSettingClient.GetVirtualEndpointUserSettingsCount
ctx := context.TODO()
read, err := client.GetVirtualEndpointUserSettingsCount(ctx, virtualendpointusersetting.DefaultGetVirtualEndpointUserSettingsCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: VirtualEndpointUserSettingClient.ListVirtualEndpointUserSettings
ctx := context.TODO()
// alternatively `client.ListVirtualEndpointUserSettings(ctx, virtualendpointusersetting.DefaultListVirtualEndpointUserSettingsOperationOptions())` can be used to do batched pagination
items, err := client.ListVirtualEndpointUserSettingsComplete(ctx, virtualendpointusersetting.DefaultListVirtualEndpointUserSettingsOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: VirtualEndpointUserSettingClient.UpdateVirtualEndpointUserSetting
ctx := context.TODO()
id := virtualendpointusersetting.NewDeviceManagementVirtualEndpointUserSettingID("cloudPCUserSettingId")
payload := virtualendpointusersetting.CloudPCUserSetting{
// ...
}
read, err := client.UpdateVirtualEndpointUserSetting(ctx, id, payload, virtualendpointusersetting.DefaultUpdateVirtualEndpointUserSettingOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- type AssignVirtualEndpointUserSettingOperationOptions
- type AssignVirtualEndpointUserSettingOperationResponse
- type AssignVirtualEndpointUserSettingRequest
- type CloudPCUserSettingOperationPredicate
- type CreateVirtualEndpointUserSettingOperationOptions
- type CreateVirtualEndpointUserSettingOperationResponse
- type DeleteVirtualEndpointUserSettingOperationOptions
- type DeleteVirtualEndpointUserSettingOperationResponse
- type GetVirtualEndpointUserSettingOperationOptions
- type GetVirtualEndpointUserSettingOperationResponse
- type GetVirtualEndpointUserSettingsCountOperationOptions
- type GetVirtualEndpointUserSettingsCountOperationResponse
- type ListVirtualEndpointUserSettingsCompleteResult
- type ListVirtualEndpointUserSettingsCustomPager
- type ListVirtualEndpointUserSettingsOperationOptions
- type ListVirtualEndpointUserSettingsOperationResponse
- type UpdateVirtualEndpointUserSettingOperationOptions
- type UpdateVirtualEndpointUserSettingOperationResponse
- type VirtualEndpointUserSettingClient
- func (c VirtualEndpointUserSettingClient) AssignVirtualEndpointUserSetting(ctx context.Context, id stable.DeviceManagementVirtualEndpointUserSettingId, ...) (result AssignVirtualEndpointUserSettingOperationResponse, err error)
- func (c VirtualEndpointUserSettingClient) CreateVirtualEndpointUserSetting(ctx context.Context, input stable.CloudPCUserSetting, ...) (result CreateVirtualEndpointUserSettingOperationResponse, err error)
- func (c VirtualEndpointUserSettingClient) DeleteVirtualEndpointUserSetting(ctx context.Context, id stable.DeviceManagementVirtualEndpointUserSettingId, ...) (result DeleteVirtualEndpointUserSettingOperationResponse, err error)
- func (c VirtualEndpointUserSettingClient) GetVirtualEndpointUserSetting(ctx context.Context, id stable.DeviceManagementVirtualEndpointUserSettingId, ...) (result GetVirtualEndpointUserSettingOperationResponse, err error)
- func (c VirtualEndpointUserSettingClient) GetVirtualEndpointUserSettingsCount(ctx context.Context, ...) (result GetVirtualEndpointUserSettingsCountOperationResponse, err error)
- func (c VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettings(ctx context.Context, options ListVirtualEndpointUserSettingsOperationOptions) (result ListVirtualEndpointUserSettingsOperationResponse, err error)
- func (c VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettingsComplete(ctx context.Context, options ListVirtualEndpointUserSettingsOperationOptions) (ListVirtualEndpointUserSettingsCompleteResult, error)
- func (c VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettingsCompleteMatchingPredicate(ctx context.Context, options ListVirtualEndpointUserSettingsOperationOptions, ...) (result ListVirtualEndpointUserSettingsCompleteResult, err error)
- func (c VirtualEndpointUserSettingClient) UpdateVirtualEndpointUserSetting(ctx context.Context, id stable.DeviceManagementVirtualEndpointUserSettingId, ...) (result UpdateVirtualEndpointUserSettingOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignVirtualEndpointUserSettingOperationOptions ¶
type AssignVirtualEndpointUserSettingOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultAssignVirtualEndpointUserSettingOperationOptions ¶
func DefaultAssignVirtualEndpointUserSettingOperationOptions() AssignVirtualEndpointUserSettingOperationOptions
func (AssignVirtualEndpointUserSettingOperationOptions) ToHeaders ¶
func (o AssignVirtualEndpointUserSettingOperationOptions) ToHeaders() *client.Headers
func (AssignVirtualEndpointUserSettingOperationOptions) ToOData ¶
func (o AssignVirtualEndpointUserSettingOperationOptions) ToOData() *odata.Query
func (AssignVirtualEndpointUserSettingOperationOptions) ToQuery ¶
func (o AssignVirtualEndpointUserSettingOperationOptions) ToQuery() *client.QueryParams
type AssignVirtualEndpointUserSettingRequest ¶
type AssignVirtualEndpointUserSettingRequest struct {
Assignments *[]stable.CloudPCUserSettingAssignment `json:"assignments,omitempty"`
}
type CloudPCUserSettingOperationPredicate ¶
type CloudPCUserSettingOperationPredicate struct { }
func (CloudPCUserSettingOperationPredicate) Matches ¶
func (p CloudPCUserSettingOperationPredicate) Matches(input stable.CloudPCUserSetting) bool
type CreateVirtualEndpointUserSettingOperationOptions ¶
type CreateVirtualEndpointUserSettingOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateVirtualEndpointUserSettingOperationOptions ¶
func DefaultCreateVirtualEndpointUserSettingOperationOptions() CreateVirtualEndpointUserSettingOperationOptions
func (CreateVirtualEndpointUserSettingOperationOptions) ToHeaders ¶
func (o CreateVirtualEndpointUserSettingOperationOptions) ToHeaders() *client.Headers
func (CreateVirtualEndpointUserSettingOperationOptions) ToOData ¶
func (o CreateVirtualEndpointUserSettingOperationOptions) ToOData() *odata.Query
func (CreateVirtualEndpointUserSettingOperationOptions) ToQuery ¶
func (o CreateVirtualEndpointUserSettingOperationOptions) ToQuery() *client.QueryParams
type DeleteVirtualEndpointUserSettingOperationOptions ¶
type DeleteVirtualEndpointUserSettingOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteVirtualEndpointUserSettingOperationOptions ¶
func DefaultDeleteVirtualEndpointUserSettingOperationOptions() DeleteVirtualEndpointUserSettingOperationOptions
func (DeleteVirtualEndpointUserSettingOperationOptions) ToHeaders ¶
func (o DeleteVirtualEndpointUserSettingOperationOptions) ToHeaders() *client.Headers
func (DeleteVirtualEndpointUserSettingOperationOptions) ToOData ¶
func (o DeleteVirtualEndpointUserSettingOperationOptions) ToOData() *odata.Query
func (DeleteVirtualEndpointUserSettingOperationOptions) ToQuery ¶
func (o DeleteVirtualEndpointUserSettingOperationOptions) ToQuery() *client.QueryParams
type GetVirtualEndpointUserSettingOperationOptions ¶
type GetVirtualEndpointUserSettingOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetVirtualEndpointUserSettingOperationOptions ¶
func DefaultGetVirtualEndpointUserSettingOperationOptions() GetVirtualEndpointUserSettingOperationOptions
func (GetVirtualEndpointUserSettingOperationOptions) ToHeaders ¶
func (o GetVirtualEndpointUserSettingOperationOptions) ToHeaders() *client.Headers
func (GetVirtualEndpointUserSettingOperationOptions) ToOData ¶
func (o GetVirtualEndpointUserSettingOperationOptions) ToOData() *odata.Query
func (GetVirtualEndpointUserSettingOperationOptions) ToQuery ¶
func (o GetVirtualEndpointUserSettingOperationOptions) ToQuery() *client.QueryParams
type GetVirtualEndpointUserSettingsCountOperationOptions ¶
type GetVirtualEndpointUserSettingsCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetVirtualEndpointUserSettingsCountOperationOptions ¶
func DefaultGetVirtualEndpointUserSettingsCountOperationOptions() GetVirtualEndpointUserSettingsCountOperationOptions
func (GetVirtualEndpointUserSettingsCountOperationOptions) ToHeaders ¶
func (o GetVirtualEndpointUserSettingsCountOperationOptions) ToHeaders() *client.Headers
func (GetVirtualEndpointUserSettingsCountOperationOptions) ToOData ¶
func (o GetVirtualEndpointUserSettingsCountOperationOptions) ToOData() *odata.Query
func (GetVirtualEndpointUserSettingsCountOperationOptions) ToQuery ¶
func (o GetVirtualEndpointUserSettingsCountOperationOptions) ToQuery() *client.QueryParams
type ListVirtualEndpointUserSettingsCompleteResult ¶
type ListVirtualEndpointUserSettingsCompleteResult struct { LatestHttpResponse *http.Response Items []stable.CloudPCUserSetting }
type ListVirtualEndpointUserSettingsCustomPager ¶
type ListVirtualEndpointUserSettingsCustomPager struct {
NextLink *odata.Link `json:"@odata.nextLink"`
}
func (*ListVirtualEndpointUserSettingsCustomPager) NextPageLink ¶
func (p *ListVirtualEndpointUserSettingsCustomPager) NextPageLink() *odata.Link
type ListVirtualEndpointUserSettingsOperationOptions ¶
type ListVirtualEndpointUserSettingsOperationOptions 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 DefaultListVirtualEndpointUserSettingsOperationOptions ¶
func DefaultListVirtualEndpointUserSettingsOperationOptions() ListVirtualEndpointUserSettingsOperationOptions
func (ListVirtualEndpointUserSettingsOperationOptions) ToHeaders ¶
func (o ListVirtualEndpointUserSettingsOperationOptions) ToHeaders() *client.Headers
func (ListVirtualEndpointUserSettingsOperationOptions) ToOData ¶
func (o ListVirtualEndpointUserSettingsOperationOptions) ToOData() *odata.Query
func (ListVirtualEndpointUserSettingsOperationOptions) ToQuery ¶
func (o ListVirtualEndpointUserSettingsOperationOptions) ToQuery() *client.QueryParams
type UpdateVirtualEndpointUserSettingOperationOptions ¶
type UpdateVirtualEndpointUserSettingOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateVirtualEndpointUserSettingOperationOptions ¶
func DefaultUpdateVirtualEndpointUserSettingOperationOptions() UpdateVirtualEndpointUserSettingOperationOptions
func (UpdateVirtualEndpointUserSettingOperationOptions) ToHeaders ¶
func (o UpdateVirtualEndpointUserSettingOperationOptions) ToHeaders() *client.Headers
func (UpdateVirtualEndpointUserSettingOperationOptions) ToOData ¶
func (o UpdateVirtualEndpointUserSettingOperationOptions) ToOData() *odata.Query
func (UpdateVirtualEndpointUserSettingOperationOptions) ToQuery ¶
func (o UpdateVirtualEndpointUserSettingOperationOptions) ToQuery() *client.QueryParams
type VirtualEndpointUserSettingClient ¶
func NewVirtualEndpointUserSettingClientWithBaseURI ¶
func NewVirtualEndpointUserSettingClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualEndpointUserSettingClient, error)
func (VirtualEndpointUserSettingClient) AssignVirtualEndpointUserSetting ¶
func (c VirtualEndpointUserSettingClient) AssignVirtualEndpointUserSetting(ctx context.Context, id stable.DeviceManagementVirtualEndpointUserSettingId, input AssignVirtualEndpointUserSettingRequest, options AssignVirtualEndpointUserSettingOperationOptions) (result AssignVirtualEndpointUserSettingOperationResponse, err error)
AssignVirtualEndpointUserSetting - Invoke action assign. Assign a cloudPcUserSetting to user groups.
func (VirtualEndpointUserSettingClient) CreateVirtualEndpointUserSetting ¶
func (c VirtualEndpointUserSettingClient) CreateVirtualEndpointUserSetting(ctx context.Context, input stable.CloudPCUserSetting, options CreateVirtualEndpointUserSettingOperationOptions) (result CreateVirtualEndpointUserSettingOperationResponse, err error)
CreateVirtualEndpointUserSetting - Create cloudPcUserSetting. Create a new cloudPcUserSetting object.
func (VirtualEndpointUserSettingClient) DeleteVirtualEndpointUserSetting ¶
func (c VirtualEndpointUserSettingClient) DeleteVirtualEndpointUserSetting(ctx context.Context, id stable.DeviceManagementVirtualEndpointUserSettingId, options DeleteVirtualEndpointUserSettingOperationOptions) (result DeleteVirtualEndpointUserSettingOperationResponse, err error)
DeleteVirtualEndpointUserSetting - Delete cloudPcUserSetting. Delete a cloudPcUserSetting object.
func (VirtualEndpointUserSettingClient) GetVirtualEndpointUserSetting ¶
func (c VirtualEndpointUserSettingClient) GetVirtualEndpointUserSetting(ctx context.Context, id stable.DeviceManagementVirtualEndpointUserSettingId, options GetVirtualEndpointUserSettingOperationOptions) (result GetVirtualEndpointUserSettingOperationResponse, err error)
GetVirtualEndpointUserSetting - Get cloudPcUserSetting. Read the properties and relationships of a cloudPcUserSetting object.
func (VirtualEndpointUserSettingClient) GetVirtualEndpointUserSettingsCount ¶
func (c VirtualEndpointUserSettingClient) GetVirtualEndpointUserSettingsCount(ctx context.Context, options GetVirtualEndpointUserSettingsCountOperationOptions) (result GetVirtualEndpointUserSettingsCountOperationResponse, err error)
GetVirtualEndpointUserSettingsCount - Get the number of the resource
func (VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettings ¶
func (c VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettings(ctx context.Context, options ListVirtualEndpointUserSettingsOperationOptions) (result ListVirtualEndpointUserSettingsOperationResponse, err error)
ListVirtualEndpointUserSettings - List userSettings. Get a list of cloudPcUserSetting objects and their properties.
func (VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettingsComplete ¶
func (c VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettingsComplete(ctx context.Context, options ListVirtualEndpointUserSettingsOperationOptions) (ListVirtualEndpointUserSettingsCompleteResult, error)
ListVirtualEndpointUserSettingsComplete retrieves all the results into a single object
func (VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettingsCompleteMatchingPredicate ¶
func (c VirtualEndpointUserSettingClient) ListVirtualEndpointUserSettingsCompleteMatchingPredicate(ctx context.Context, options ListVirtualEndpointUserSettingsOperationOptions, predicate CloudPCUserSettingOperationPredicate) (result ListVirtualEndpointUserSettingsCompleteResult, err error)
ListVirtualEndpointUserSettingsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualEndpointUserSettingClient) UpdateVirtualEndpointUserSetting ¶
func (c VirtualEndpointUserSettingClient) UpdateVirtualEndpointUserSetting(ctx context.Context, id stable.DeviceManagementVirtualEndpointUserSettingId, input stable.CloudPCUserSetting, options UpdateVirtualEndpointUserSettingOperationOptions) (result UpdateVirtualEndpointUserSettingOperationResponse, err error)
UpdateVirtualEndpointUserSetting - Update cloudPcUserSetting. Update the properties of a cloudPcUserSetting object.
Source Files ¶
- client.go
- method_assignvirtualendpointusersetting.go
- method_createvirtualendpointusersetting.go
- method_deletevirtualendpointusersetting.go
- method_getvirtualendpointusersetting.go
- method_getvirtualendpointusersettingscount.go
- method_listvirtualendpointusersettings.go
- method_updatevirtualendpointusersetting.go
- model_assignvirtualendpointusersettingrequest.go
- predicates.go
- version.go