Documentation ¶
Index ¶
- func PossibleValuesForAADObjectType() []string
- func ValidateAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateComputePoliciesID(input interface{}, key string) (warnings []string, errors []error)
- type AADObjectType
- type AccountId
- type ComputePoliciesClient
- func (c ComputePoliciesClient) CreateOrUpdate(ctx context.Context, id ComputePoliciesId, ...) (result CreateOrUpdateResponse, err error)
- func (c ComputePoliciesClient) Delete(ctx context.Context, id ComputePoliciesId) (result DeleteResponse, err error)
- func (c ComputePoliciesClient) Get(ctx context.Context, id ComputePoliciesId) (result GetResponse, err error)
- func (c ComputePoliciesClient) ListByAccount(ctx context.Context, id AccountId) (resp ListByAccountResponse, err error)
- func (c ComputePoliciesClient) ListByAccountComplete(ctx context.Context, id AccountId) (ListByAccountCompleteResult, error)
- func (c ComputePoliciesClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate ComputePolicyPredicate) (resp ListByAccountCompleteResult, err error)
- func (c ComputePoliciesClient) Update(ctx context.Context, id ComputePoliciesId, input UpdateComputePolicyParameters) (result UpdateResponse, err error)
- type ComputePoliciesId
- type ComputePolicy
- type ComputePolicyPredicate
- type ComputePolicyProperties
- type CreateOrUpdateComputePolicyParameters
- type CreateOrUpdateComputePolicyProperties
- type CreateOrUpdateResponse
- type DeleteResponse
- type GetResponse
- type ListByAccountCompleteResult
- type ListByAccountResponse
- type UpdateComputePolicyParameters
- type UpdateComputePolicyProperties
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAADObjectType ¶
func PossibleValuesForAADObjectType() []string
func ValidateAccountID ¶
ValidateAccountID checks that 'input' can be parsed as a Account ID
func ValidateComputePoliciesID ¶
ValidateComputePoliciesID checks that 'input' can be parsed as a Compute Policies ID
Types ¶
type AADObjectType ¶
type AADObjectType string
const ( AADObjectTypeGroup AADObjectType = "Group" AADObjectTypeServicePrincipal AADObjectType = "ServicePrincipal" AADObjectTypeUser AADObjectType = "User" )
type AccountId ¶
AccountId is a struct representing the Resource ID for a Account
func NewAccountID ¶
NewAccountID returns a new AccountId struct
func ParseAccountID ¶
ParseAccountID parses 'input' into a AccountId
func ParseAccountIDInsensitively ¶
ParseAccountIDInsensitively parses 'input' case-insensitively into a AccountId note: this method should only be used for API response data and not user input
func (AccountId) Segments ¶
func (id AccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Account ID
type ComputePoliciesClient ¶
type ComputePoliciesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewComputePoliciesClientWithBaseURI ¶
func NewComputePoliciesClientWithBaseURI(endpoint string) ComputePoliciesClient
func (ComputePoliciesClient) CreateOrUpdate ¶
func (c ComputePoliciesClient) CreateOrUpdate(ctx context.Context, id ComputePoliciesId, input CreateOrUpdateComputePolicyParameters) (result CreateOrUpdateResponse, err error)
CreateOrUpdate ...
func (ComputePoliciesClient) Delete ¶
func (c ComputePoliciesClient) Delete(ctx context.Context, id ComputePoliciesId) (result DeleteResponse, err error)
Delete ...
func (ComputePoliciesClient) Get ¶
func (c ComputePoliciesClient) Get(ctx context.Context, id ComputePoliciesId) (result GetResponse, err error)
Get ...
func (ComputePoliciesClient) ListByAccount ¶
func (c ComputePoliciesClient) ListByAccount(ctx context.Context, id AccountId) (resp ListByAccountResponse, err error)
ListByAccount ...
func (ComputePoliciesClient) ListByAccountComplete ¶
func (c ComputePoliciesClient) ListByAccountComplete(ctx context.Context, id AccountId) (ListByAccountCompleteResult, error)
ListByAccountComplete retrieves all of the results into a single object
func (ComputePoliciesClient) ListByAccountCompleteMatchingPredicate ¶
func (c ComputePoliciesClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate ComputePolicyPredicate) (resp ListByAccountCompleteResult, err error)
ListByAccountCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ComputePoliciesClient) Update ¶
func (c ComputePoliciesClient) Update(ctx context.Context, id ComputePoliciesId, input UpdateComputePolicyParameters) (result UpdateResponse, err error)
Update ...
type ComputePoliciesId ¶
type ComputePoliciesId struct { SubscriptionId string ResourceGroupName string AccountName string ComputePolicyName string }
ComputePoliciesId is a struct representing the Resource ID for a Compute Policies
func NewComputePoliciesID ¶
func NewComputePoliciesID(subscriptionId string, resourceGroupName string, accountName string, computePolicyName string) ComputePoliciesId
NewComputePoliciesID returns a new ComputePoliciesId struct
func ParseComputePoliciesID ¶
func ParseComputePoliciesID(input string) (*ComputePoliciesId, error)
ParseComputePoliciesID parses 'input' into a ComputePoliciesId
func ParseComputePoliciesIDInsensitively ¶
func ParseComputePoliciesIDInsensitively(input string) (*ComputePoliciesId, error)
ParseComputePoliciesIDInsensitively parses 'input' case-insensitively into a ComputePoliciesId note: this method should only be used for API response data and not user input
func (ComputePoliciesId) ID ¶
func (id ComputePoliciesId) ID() string
ID returns the formatted Compute Policies ID
func (ComputePoliciesId) Segments ¶
func (id ComputePoliciesId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Compute Policies ID
func (ComputePoliciesId) String ¶
func (id ComputePoliciesId) String() string
String returns a human-readable description of this Compute Policies ID
type ComputePolicy ¶
type ComputePolicy struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ComputePolicyProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ComputePolicyPredicate ¶
func (ComputePolicyPredicate) Matches ¶
func (p ComputePolicyPredicate) Matches(input ComputePolicy) bool
type ComputePolicyProperties ¶
type ComputePolicyProperties struct { MaxDegreeOfParallelismPerJob *int64 `json:"maxDegreeOfParallelismPerJob,omitempty"` MinPriorityPerJob *int64 `json:"minPriorityPerJob,omitempty"` ObjectId *string `json:"objectId,omitempty"` ObjectType *AADObjectType `json:"objectType,omitempty"` }
type CreateOrUpdateComputePolicyParameters ¶
type CreateOrUpdateComputePolicyParameters struct {
Properties CreateOrUpdateComputePolicyProperties `json:"properties"`
}
type CreateOrUpdateComputePolicyProperties ¶
type CreateOrUpdateComputePolicyProperties struct { MaxDegreeOfParallelismPerJob *int64 `json:"maxDegreeOfParallelismPerJob,omitempty"` MinPriorityPerJob *int64 `json:"minPriorityPerJob,omitempty"` ObjectId string `json:"objectId"` ObjectType AADObjectType `json:"objectType"` }
type CreateOrUpdateResponse ¶
type CreateOrUpdateResponse struct { HttpResponse *http.Response Model *ComputePolicy }
type DeleteResponse ¶
type GetResponse ¶
type GetResponse struct { HttpResponse *http.Response Model *ComputePolicy }
type ListByAccountCompleteResult ¶
type ListByAccountCompleteResult struct {
Items []ComputePolicy
}
type ListByAccountResponse ¶
type ListByAccountResponse struct { HttpResponse *http.Response Model *[]ComputePolicy // contains filtered or unexported fields }
func (ListByAccountResponse) HasMore ¶
func (r ListByAccountResponse) HasMore() bool
func (ListByAccountResponse) LoadMore ¶
func (r ListByAccountResponse) LoadMore(ctx context.Context) (resp ListByAccountResponse, err error)
type UpdateComputePolicyParameters ¶
type UpdateComputePolicyParameters struct {
Properties *UpdateComputePolicyProperties `json:"properties,omitempty"`
}
type UpdateComputePolicyProperties ¶
type UpdateComputePolicyProperties struct { MaxDegreeOfParallelismPerJob *int64 `json:"maxDegreeOfParallelismPerJob,omitempty"` MinPriorityPerJob *int64 `json:"minPriorityPerJob,omitempty"` ObjectId *string `json:"objectId,omitempty"` ObjectType *AADObjectType `json:"objectType,omitempty"` }
type UpdateResponse ¶
type UpdateResponse struct { HttpResponse *http.Response Model *ComputePolicy }
Source Files ¶
- client.go
- constants.go
- id_account.go
- id_computepolicies.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyaccount_autorest.go
- method_update_autorest.go
- model_computepolicy.go
- model_computepolicyproperties.go
- model_createorupdatecomputepolicyparameters.go
- model_createorupdatecomputepolicyproperties.go
- model_updatecomputepolicyparameters.go
- model_updatecomputepolicyproperties.go
- predicates.go
- version.go