Documentation ¶
Index ¶
- func PossibleValuesForResourceState() []string
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateQuotaID(input interface{}, key string) (warnings []string, errors []error)
- type CheckAvailabilityOperationResponse
- type CheckQuotaAvailabilityResponse
- type CheckQuotaAvailabilityResponseProperties
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type LocationId
- type QuotaBucketRequest
- type QuotaBucketRequestProperties
- type QuotaBucketRequestPropertiesDimensions
- type QuotaId
- type QuotaResource
- type QuotaResourceOperationPredicate
- type QuotaResourceProperties
- type QuotasClient
- func (c QuotasClient) CheckAvailability(ctx context.Context, id QuotaId, input QuotaBucketRequest) (result CheckAvailabilityOperationResponse, err error)
- func (c QuotasClient) Get(ctx context.Context, id QuotaId) (result GetOperationResponse, err error)
- func (c QuotasClient) List(ctx context.Context, id LocationId) (resp ListOperationResponse, err error)
- func (c QuotasClient) ListComplete(ctx context.Context, id LocationId) (ListCompleteResult, error)
- func (c QuotasClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate QuotaResourceOperationPredicate) (resp ListCompleteResult, err error)
- type ResourceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForResourceState ¶
func PossibleValuesForResourceState() []string
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
func ValidateQuotaID ¶
ValidateQuotaID checks that 'input' can be parsed as a Quota ID
Types ¶
type CheckAvailabilityOperationResponse ¶
type CheckAvailabilityOperationResponse struct { HttpResponse *http.Response Model *CheckQuotaAvailabilityResponse }
type CheckQuotaAvailabilityResponse ¶
type CheckQuotaAvailabilityResponse struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *CheckQuotaAvailabilityResponseProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *QuotaResource }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []QuotaResource
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]QuotaResource // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, locationName string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type QuotaBucketRequest ¶
type QuotaBucketRequest struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QuotaBucketRequestProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type QuotaBucketRequestProperties ¶
type QuotaBucketRequestProperties struct { CurrentQuota *int64 `json:"currentQuota,omitempty"` CurrentUsage *int64 `json:"currentUsage,omitempty"` Dimensions *QuotaBucketRequestPropertiesDimensions `json:"dimensions,omitempty"` NewQuota *int64 `json:"newQuota,omitempty"` }
type QuotaId ¶
QuotaId is a struct representing the Resource ID for a Quota
func NewQuotaID ¶
NewQuotaID returns a new QuotaId struct
func ParseQuotaID ¶
ParseQuotaID parses 'input' into a QuotaId
func ParseQuotaIDInsensitively ¶
ParseQuotaIDInsensitively parses 'input' case-insensitively into a QuotaId note: this method should only be used for API response data and not user input
func (QuotaId) Segments ¶
func (id QuotaId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Quota ID
type QuotaResource ¶
type QuotaResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QuotaResourceProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type QuotaResourceOperationPredicate ¶
func (QuotaResourceOperationPredicate) Matches ¶
func (p QuotaResourceOperationPredicate) Matches(input QuotaResource) bool
type QuotaResourceProperties ¶
type QuotaResourceProperties struct { Limit *int64 `json:"limit,omitempty"` ProvisioningState *ResourceState `json:"provisioningState,omitempty"` Usage *int64 `json:"usage,omitempty"` }
type QuotasClient ¶
func NewQuotasClientWithBaseURI ¶
func NewQuotasClientWithBaseURI(endpoint string) QuotasClient
func (QuotasClient) CheckAvailability ¶
func (c QuotasClient) CheckAvailability(ctx context.Context, id QuotaId, input QuotaBucketRequest) (result CheckAvailabilityOperationResponse, err error)
CheckAvailability ...
func (QuotasClient) Get ¶
func (c QuotasClient) Get(ctx context.Context, id QuotaId) (result GetOperationResponse, err error)
Get ...
func (QuotasClient) List ¶
func (c QuotasClient) List(ctx context.Context, id LocationId) (resp ListOperationResponse, err error)
List ...
func (QuotasClient) ListComplete ¶
func (c QuotasClient) ListComplete(ctx context.Context, id LocationId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (QuotasClient) ListCompleteMatchingPredicate ¶
func (c QuotasClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate QuotaResourceOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type ResourceState ¶
type ResourceState string
const ( ResourceStateCanceled ResourceState = "Canceled" ResourceStateDeleted ResourceState = "Deleted" ResourceStateFailed ResourceState = "Failed" ResourceStateSucceeded ResourceState = "Succeeded" )
Source Files ¶
- client.go
- constants.go
- id_location.go
- id_quota.go
- method_checkavailability_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- model_checkquotaavailabilityresponse.go
- model_checkquotaavailabilityresponseproperties.go
- model_quotabucketrequest.go
- model_quotabucketrequestproperties.go
- model_quotabucketrequestpropertiesdimensions.go
- model_quotaresource.go
- model_quotaresourceproperties.go
- predicates.go
- version.go