virtualendpointprovisioningpolicy

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: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/stable/virtualendpointprovisioningpolicy Documentation

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

Client Initialization

client := virtualendpointprovisioningpolicy.NewVirtualEndpointProvisioningPolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualEndpointProvisioningPolicyClient.AssignVirtualEndpointProvisioningPolicy

ctx := context.TODO()
id := virtualendpointprovisioningpolicy.NewDeviceManagementVirtualEndpointProvisioningPolicyID("cloudPCProvisioningPolicyId")

payload := virtualendpointprovisioningpolicy.AssignVirtualEndpointProvisioningPolicyRequest{
	// ...
}


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

Example Usage: VirtualEndpointProvisioningPolicyClient.CreateVirtualEndpointProvisioningPolicy

ctx := context.TODO()

payload := virtualendpointprovisioningpolicy.CloudPCProvisioningPolicy{
	// ...
}


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

Example Usage: VirtualEndpointProvisioningPolicyClient.DeleteVirtualEndpointProvisioningPolicy

ctx := context.TODO()
id := virtualendpointprovisioningpolicy.NewDeviceManagementVirtualEndpointProvisioningPolicyID("cloudPCProvisioningPolicyId")

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

Example Usage: VirtualEndpointProvisioningPolicyClient.GetVirtualEndpointProvisioningPoliciesCount

ctx := context.TODO()


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

Example Usage: VirtualEndpointProvisioningPolicyClient.GetVirtualEndpointProvisioningPolicy

ctx := context.TODO()
id := virtualendpointprovisioningpolicy.NewDeviceManagementVirtualEndpointProvisioningPolicyID("cloudPCProvisioningPolicyId")

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

Example Usage: VirtualEndpointProvisioningPolicyClient.ListVirtualEndpointProvisioningPolicies

ctx := context.TODO()


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

Example Usage: VirtualEndpointProvisioningPolicyClient.UpdateVirtualEndpointProvisioningPolicy

ctx := context.TODO()
id := virtualendpointprovisioningpolicy.NewDeviceManagementVirtualEndpointProvisioningPolicyID("cloudPCProvisioningPolicyId")

payload := virtualendpointprovisioningpolicy.CloudPCProvisioningPolicy{
	// ...
}


read, err := client.UpdateVirtualEndpointProvisioningPolicy(ctx, id, payload, virtualendpointprovisioningpolicy.DefaultUpdateVirtualEndpointProvisioningPolicyOperationOptions())
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 AssignVirtualEndpointProvisioningPolicyOperationOptions

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

func (AssignVirtualEndpointProvisioningPolicyOperationOptions) ToHeaders

func (AssignVirtualEndpointProvisioningPolicyOperationOptions) ToOData

func (AssignVirtualEndpointProvisioningPolicyOperationOptions) ToQuery

type AssignVirtualEndpointProvisioningPolicyOperationResponse

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

type AssignVirtualEndpointProvisioningPolicyRequest

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

type CloudPCProvisioningPolicyOperationPredicate

type CloudPCProvisioningPolicyOperationPredicate struct {
}

func (CloudPCProvisioningPolicyOperationPredicate) Matches

type CreateVirtualEndpointProvisioningPolicyOperationOptions

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

func (CreateVirtualEndpointProvisioningPolicyOperationOptions) ToHeaders

func (CreateVirtualEndpointProvisioningPolicyOperationOptions) ToOData

func (CreateVirtualEndpointProvisioningPolicyOperationOptions) ToQuery

type CreateVirtualEndpointProvisioningPolicyOperationResponse

type CreateVirtualEndpointProvisioningPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.CloudPCProvisioningPolicy
}

type DeleteVirtualEndpointProvisioningPolicyOperationOptions

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

func (DeleteVirtualEndpointProvisioningPolicyOperationOptions) ToHeaders

func (DeleteVirtualEndpointProvisioningPolicyOperationOptions) ToOData

func (DeleteVirtualEndpointProvisioningPolicyOperationOptions) ToQuery

type DeleteVirtualEndpointProvisioningPolicyOperationResponse

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

type GetVirtualEndpointProvisioningPoliciesCountOperationOptions

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

func (GetVirtualEndpointProvisioningPoliciesCountOperationOptions) ToHeaders

func (GetVirtualEndpointProvisioningPoliciesCountOperationOptions) ToOData

func (GetVirtualEndpointProvisioningPoliciesCountOperationOptions) ToQuery

type GetVirtualEndpointProvisioningPoliciesCountOperationResponse

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

type GetVirtualEndpointProvisioningPolicyOperationOptions

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

func DefaultGetVirtualEndpointProvisioningPolicyOperationOptions

func DefaultGetVirtualEndpointProvisioningPolicyOperationOptions() GetVirtualEndpointProvisioningPolicyOperationOptions

func (GetVirtualEndpointProvisioningPolicyOperationOptions) ToHeaders

func (GetVirtualEndpointProvisioningPolicyOperationOptions) ToOData

func (GetVirtualEndpointProvisioningPolicyOperationOptions) ToQuery

type GetVirtualEndpointProvisioningPolicyOperationResponse

type GetVirtualEndpointProvisioningPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.CloudPCProvisioningPolicy
}

type ListVirtualEndpointProvisioningPoliciesCompleteResult

type ListVirtualEndpointProvisioningPoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.CloudPCProvisioningPolicy
}

type ListVirtualEndpointProvisioningPoliciesCustomPager

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

type ListVirtualEndpointProvisioningPoliciesOperationOptions

type ListVirtualEndpointProvisioningPoliciesOperationOptions 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 (ListVirtualEndpointProvisioningPoliciesOperationOptions) ToHeaders

func (ListVirtualEndpointProvisioningPoliciesOperationOptions) ToOData

func (ListVirtualEndpointProvisioningPoliciesOperationOptions) ToQuery

type ListVirtualEndpointProvisioningPoliciesOperationResponse

type ListVirtualEndpointProvisioningPoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.CloudPCProvisioningPolicy
}

type UpdateVirtualEndpointProvisioningPolicyOperationOptions

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

func (UpdateVirtualEndpointProvisioningPolicyOperationOptions) ToHeaders

func (UpdateVirtualEndpointProvisioningPolicyOperationOptions) ToOData

func (UpdateVirtualEndpointProvisioningPolicyOperationOptions) ToQuery

type UpdateVirtualEndpointProvisioningPolicyOperationResponse

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

type VirtualEndpointProvisioningPolicyClient

type VirtualEndpointProvisioningPolicyClient struct {
	Client *msgraph.Client
}

func NewVirtualEndpointProvisioningPolicyClientWithBaseURI

func NewVirtualEndpointProvisioningPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualEndpointProvisioningPolicyClient, error)

func (VirtualEndpointProvisioningPolicyClient) AssignVirtualEndpointProvisioningPolicy

AssignVirtualEndpointProvisioningPolicy - Invoke action assign. Assign a cloudPcProvisioningPolicy to user groups.

func (VirtualEndpointProvisioningPolicyClient) CreateVirtualEndpointProvisioningPolicy

CreateVirtualEndpointProvisioningPolicy - Create cloudPcProvisioningPolicy. Create a new cloudPcProvisioningPolicy object.

func (VirtualEndpointProvisioningPolicyClient) DeleteVirtualEndpointProvisioningPolicy

DeleteVirtualEndpointProvisioningPolicy - Delete cloudPcProvisioningPolicy. Delete a cloudPcProvisioningPolicy object. You can’t delete a policy that’s in use.

func (VirtualEndpointProvisioningPolicyClient) GetVirtualEndpointProvisioningPoliciesCount

GetVirtualEndpointProvisioningPoliciesCount - Get the number of the resource

func (VirtualEndpointProvisioningPolicyClient) GetVirtualEndpointProvisioningPolicy

GetVirtualEndpointProvisioningPolicy - Get cloudPcProvisioningPolicy. Read the properties and relationships of a cloudPcProvisioningPolicy object.

func (VirtualEndpointProvisioningPolicyClient) ListVirtualEndpointProvisioningPolicies

ListVirtualEndpointProvisioningPolicies - List provisioningPolicies. List properties and relationships of the cloudPcProvisioningPolicy objects.

func (VirtualEndpointProvisioningPolicyClient) ListVirtualEndpointProvisioningPoliciesComplete

ListVirtualEndpointProvisioningPoliciesComplete retrieves all the results into a single object

func (VirtualEndpointProvisioningPolicyClient) ListVirtualEndpointProvisioningPoliciesCompleteMatchingPredicate

ListVirtualEndpointProvisioningPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (VirtualEndpointProvisioningPolicyClient) UpdateVirtualEndpointProvisioningPolicy

UpdateVirtualEndpointProvisioningPolicy - Update cloudPcProvisioningPolicy. Update the properties of a cloudPcProvisioningPolicy object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL