Documentation ¶
Index ¶
- func PossibleValuesForAADObjectType() []string
- func ValidateAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateComputePolicyID(input interface{}, key string) (warnings []string, errors []error)
- type AADObjectType
- type AccountId
- type ComputePoliciesClient
- func (c ComputePoliciesClient) CreateOrUpdate(ctx context.Context, id ComputePolicyId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ComputePoliciesClient) Delete(ctx context.Context, id ComputePolicyId) (result DeleteOperationResponse, err error)
- func (c ComputePoliciesClient) Get(ctx context.Context, id ComputePolicyId) (result GetOperationResponse, err error)
- func (c ComputePoliciesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error)
- func (c ComputePoliciesClient) ListByAccountComplete(ctx context.Context, id AccountId) (ListByAccountCompleteResult, error)
- func (c ComputePoliciesClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate ComputePolicyOperationPredicate) (result ListByAccountCompleteResult, err error)
- func (c ComputePoliciesClient) Update(ctx context.Context, id ComputePolicyId, input UpdateComputePolicyParameters) (result UpdateOperationResponse, err error)
- type ComputePolicy
- type ComputePolicyId
- type ComputePolicyOperationPredicate
- type ComputePolicyProperties
- type CreateOrUpdateComputePolicyParameters
- type CreateOrUpdateComputePolicyProperties
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByAccountCompleteResult
- type ListByAccountOperationResponse
- type UpdateComputePolicyParameters
- type UpdateComputePolicyProperties
- type UpdateOperationResponse
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 ValidateComputePolicyID ¶ added in v0.20220907.1111434
ValidateComputePolicyID checks that 'input' can be parsed as a Compute Policy ID
Types ¶
type AADObjectType ¶
type AADObjectType string
const ( AADObjectTypeGroup AADObjectType = "Group" AADObjectTypeServicePrincipal AADObjectType = "ServicePrincipal" AADObjectTypeUser AADObjectType = "User" )
func (*AADObjectType) UnmarshalJSON ¶ added in v0.20230516.1215417
func (s *AADObjectType) UnmarshalJSON(bytes []byte) error
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 *resourcemanager.Client
}
func NewComputePoliciesClientWithBaseURI ¶
func NewComputePoliciesClientWithBaseURI(api environments.Api) (*ComputePoliciesClient, error)
func (ComputePoliciesClient) CreateOrUpdate ¶
func (c ComputePoliciesClient) CreateOrUpdate(ctx context.Context, id ComputePolicyId, input CreateOrUpdateComputePolicyParameters) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ComputePoliciesClient) Delete ¶
func (c ComputePoliciesClient) Delete(ctx context.Context, id ComputePolicyId) (result DeleteOperationResponse, err error)
Delete ...
func (ComputePoliciesClient) Get ¶
func (c ComputePoliciesClient) Get(ctx context.Context, id ComputePolicyId) (result GetOperationResponse, err error)
Get ...
func (ComputePoliciesClient) ListByAccount ¶
func (c ComputePoliciesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error)
ListByAccount ...
func (ComputePoliciesClient) ListByAccountComplete ¶
func (c ComputePoliciesClient) ListByAccountComplete(ctx context.Context, id AccountId) (ListByAccountCompleteResult, error)
ListByAccountComplete retrieves all the results into a single object
func (ComputePoliciesClient) ListByAccountCompleteMatchingPredicate ¶
func (c ComputePoliciesClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate ComputePolicyOperationPredicate) (result ListByAccountCompleteResult, err error)
ListByAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ComputePoliciesClient) Update ¶
func (c ComputePoliciesClient) Update(ctx context.Context, id ComputePolicyId, input UpdateComputePolicyParameters) (result UpdateOperationResponse, err error)
Update ...
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 ComputePolicyId ¶ added in v0.20220907.1111434
type ComputePolicyId struct { SubscriptionId string ResourceGroupName string AccountName string ComputePolicyName string }
ComputePolicyId is a struct representing the Resource ID for a Compute Policy
func NewComputePolicyID ¶ added in v0.20220907.1111434
func NewComputePolicyID(subscriptionId string, resourceGroupName string, accountName string, computePolicyName string) ComputePolicyId
NewComputePolicyID returns a new ComputePolicyId struct
func ParseComputePolicyID ¶ added in v0.20220907.1111434
func ParseComputePolicyID(input string) (*ComputePolicyId, error)
ParseComputePolicyID parses 'input' into a ComputePolicyId
func ParseComputePolicyIDInsensitively ¶ added in v0.20220907.1111434
func ParseComputePolicyIDInsensitively(input string) (*ComputePolicyId, error)
ParseComputePolicyIDInsensitively parses 'input' case-insensitively into a ComputePolicyId note: this method should only be used for API response data and not user input
func (ComputePolicyId) ID ¶ added in v0.20220907.1111434
func (id ComputePolicyId) ID() string
ID returns the formatted Compute Policy ID
func (ComputePolicyId) Segments ¶ added in v0.20220907.1111434
func (id ComputePolicyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Compute Policy ID
func (ComputePolicyId) String ¶ added in v0.20220907.1111434
func (id ComputePolicyId) String() string
String returns a human-readable description of this Compute Policy ID
type ComputePolicyOperationPredicate ¶
func (ComputePolicyOperationPredicate) Matches ¶
func (p ComputePolicyOperationPredicate) 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 CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ComputePolicy }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ComputePolicy }
type ListByAccountCompleteResult ¶
type ListByAccountCompleteResult struct {
Items []ComputePolicy
}
type ListByAccountOperationResponse ¶
type ListByAccountOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ComputePolicy }
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 UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ComputePolicy }
Source Files ¶
- client.go
- constants.go
- id_account.go
- id_computepolicy.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyaccount.go
- method_update.go
- model_computepolicy.go
- model_computepolicyproperties.go
- model_createorupdatecomputepolicyparameters.go
- model_createorupdatecomputepolicyproperties.go
- model_updatecomputepolicyparameters.go
- model_updatecomputepolicyproperties.go
- predicates.go
- version.go