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 ListCustomPager
- 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) (result 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) (result 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 OData *odata.OData Model *CheckQuotaAvailabilityResponse }
type CheckQuotaAvailabilityResponse ¶
type CheckQuotaAvailabilityResponse struct { Id string `json:"id"` Name *string `json:"name,omitempty"` Properties *CheckQuotaAvailabilityResponseProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type string `json:"type"` }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *QuotaResource }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []QuotaResource }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]QuotaResource }
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) FromParseResult ¶
func (id *LocationId) FromParseResult(input resourceids.ParseResult) error
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 {
Properties *QuotaBucketRequestProperties `json:"properties,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) FromParseResult ¶
func (id *QuotaId) FromParseResult(input resourceids.ParseResult) error
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 ¶
type QuotasClient struct {
Client *resourcemanager.Client
}
func NewQuotasClientWithBaseURI ¶
func NewQuotasClientWithBaseURI(sdkApi sdkEnv.Api) (*QuotasClient, error)
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) (result ListOperationResponse, err error)
List ...
func (QuotasClient) ListComplete ¶
func (c QuotasClient) ListComplete(ctx context.Context, id LocationId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (QuotasClient) ListCompleteMatchingPredicate ¶
func (c QuotasClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate QuotaResourceOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ResourceState ¶
type ResourceState string
const ( ResourceStateCanceled ResourceState = "Canceled" ResourceStateDeleted ResourceState = "Deleted" ResourceStateFailed ResourceState = "Failed" ResourceStateSucceeded ResourceState = "Succeeded" )
func (*ResourceState) UnmarshalJSON ¶
func (s *ResourceState) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_location.go
- id_quota.go
- method_checkavailability.go
- method_get.go
- method_list.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