Documentation ¶
Index ¶
- func PossibleValuesForLimitType() []string
- func PossibleValuesForQuotaLimitTypes() []string
- func ValidateScopedQuotaID(input interface{}, key string) (warnings []string, errors []error)
- type BaseLimitJsonObjectImpl
- type CurrentQuotaLimitBase
- type CurrentQuotaLimitBaseOperationPredicate
- type LimitJsonObject
- type LimitObject
- type LimitType
- type QuotaCreateOrUpdateOperationResponse
- type QuotaGetOperationResponse
- type QuotaInformationClient
- func (c QuotaInformationClient) QuotaCreateOrUpdate(ctx context.Context, id ScopedQuotaId, input CurrentQuotaLimitBase) (result QuotaCreateOrUpdateOperationResponse, err error)
- func (c QuotaInformationClient) QuotaCreateOrUpdateThenPoll(ctx context.Context, id ScopedQuotaId, input CurrentQuotaLimitBase) error
- func (c QuotaInformationClient) QuotaGet(ctx context.Context, id ScopedQuotaId) (result QuotaGetOperationResponse, err error)
- func (c QuotaInformationClient) QuotaList(ctx context.Context, id commonids.ScopeId) (result QuotaListOperationResponse, err error)
- func (c QuotaInformationClient) QuotaListComplete(ctx context.Context, id commonids.ScopeId) (QuotaListCompleteResult, error)
- func (c QuotaInformationClient) QuotaListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result QuotaListCompleteResult, err error)
- func (c QuotaInformationClient) QuotaUpdate(ctx context.Context, id ScopedQuotaId, input CurrentQuotaLimitBase) (result QuotaUpdateOperationResponse, err error)
- func (c QuotaInformationClient) QuotaUpdateThenPoll(ctx context.Context, id ScopedQuotaId, input CurrentQuotaLimitBase) error
- type QuotaLimitTypes
- type QuotaListCompleteResult
- type QuotaListCustomPager
- type QuotaListOperationResponse
- type QuotaProperties
- type QuotaUpdateOperationResponse
- type RawLimitJsonObjectImpl
- type ResourceName
- type ScopedQuotaId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForLimitType ¶
func PossibleValuesForLimitType() []string
func PossibleValuesForQuotaLimitTypes ¶
func PossibleValuesForQuotaLimitTypes() []string
func ValidateScopedQuotaID ¶
ValidateScopedQuotaID checks that 'input' can be parsed as a Scoped Quota ID
Types ¶
type BaseLimitJsonObjectImpl ¶ added in v0.20240920.1135249
type BaseLimitJsonObjectImpl struct {
LimitObjectType LimitType `json:"limitObjectType"`
}
func (BaseLimitJsonObjectImpl) LimitJsonObject ¶ added in v0.20240920.1135249
func (s BaseLimitJsonObjectImpl) LimitJsonObject() BaseLimitJsonObjectImpl
type CurrentQuotaLimitBase ¶
type CurrentQuotaLimitBase struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QuotaProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type CurrentQuotaLimitBaseOperationPredicate ¶
func (CurrentQuotaLimitBaseOperationPredicate) Matches ¶
func (p CurrentQuotaLimitBaseOperationPredicate) Matches(input CurrentQuotaLimitBase) bool
type LimitJsonObject ¶
type LimitJsonObject interface {
LimitJsonObject() BaseLimitJsonObjectImpl
}
func UnmarshalLimitJsonObjectImplementation ¶ added in v0.20240920.1135249
func UnmarshalLimitJsonObjectImplementation(input []byte) (LimitJsonObject, error)
type LimitObject ¶
type LimitObject struct { LimitType *QuotaLimitTypes `json:"limitType,omitempty"` Value int64 `json:"value"` LimitObjectType LimitType `json:"limitObjectType"` }
func (LimitObject) LimitJsonObject ¶ added in v0.20240920.1135249
func (s LimitObject) LimitJsonObject() BaseLimitJsonObjectImpl
func (LimitObject) MarshalJSON ¶
func (s LimitObject) MarshalJSON() ([]byte, error)
type LimitType ¶
type LimitType string
const (
LimitTypeLimitValue LimitType = "LimitValue"
)
func (*LimitType) UnmarshalJSON ¶
type QuotaGetOperationResponse ¶
type QuotaGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CurrentQuotaLimitBase }
type QuotaInformationClient ¶
type QuotaInformationClient struct {
Client *resourcemanager.Client
}
func NewQuotaInformationClientWithBaseURI ¶
func NewQuotaInformationClientWithBaseURI(sdkApi sdkEnv.Api) (*QuotaInformationClient, error)
func (QuotaInformationClient) QuotaCreateOrUpdate ¶
func (c QuotaInformationClient) QuotaCreateOrUpdate(ctx context.Context, id ScopedQuotaId, input CurrentQuotaLimitBase) (result QuotaCreateOrUpdateOperationResponse, err error)
QuotaCreateOrUpdate ...
func (QuotaInformationClient) QuotaCreateOrUpdateThenPoll ¶
func (c QuotaInformationClient) QuotaCreateOrUpdateThenPoll(ctx context.Context, id ScopedQuotaId, input CurrentQuotaLimitBase) error
QuotaCreateOrUpdateThenPoll performs QuotaCreateOrUpdate then polls until it's completed
func (QuotaInformationClient) QuotaGet ¶
func (c QuotaInformationClient) QuotaGet(ctx context.Context, id ScopedQuotaId) (result QuotaGetOperationResponse, err error)
QuotaGet ...
func (QuotaInformationClient) QuotaList ¶
func (c QuotaInformationClient) QuotaList(ctx context.Context, id commonids.ScopeId) (result QuotaListOperationResponse, err error)
QuotaList ...
func (QuotaInformationClient) QuotaListComplete ¶
func (c QuotaInformationClient) QuotaListComplete(ctx context.Context, id commonids.ScopeId) (QuotaListCompleteResult, error)
QuotaListComplete retrieves all the results into a single object
func (QuotaInformationClient) QuotaListCompleteMatchingPredicate ¶
func (c QuotaInformationClient) QuotaListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate CurrentQuotaLimitBaseOperationPredicate) (result QuotaListCompleteResult, err error)
QuotaListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (QuotaInformationClient) QuotaUpdate ¶
func (c QuotaInformationClient) QuotaUpdate(ctx context.Context, id ScopedQuotaId, input CurrentQuotaLimitBase) (result QuotaUpdateOperationResponse, err error)
QuotaUpdate ...
func (QuotaInformationClient) QuotaUpdateThenPoll ¶
func (c QuotaInformationClient) QuotaUpdateThenPoll(ctx context.Context, id ScopedQuotaId, input CurrentQuotaLimitBase) error
QuotaUpdateThenPoll performs QuotaUpdate then polls until it's completed
type QuotaLimitTypes ¶
type QuotaLimitTypes string
const ( QuotaLimitTypesIndependent QuotaLimitTypes = "Independent" )
func (*QuotaLimitTypes) UnmarshalJSON ¶
func (s *QuotaLimitTypes) UnmarshalJSON(bytes []byte) error
type QuotaListCompleteResult ¶
type QuotaListCompleteResult struct { LatestHttpResponse *http.Response Items []CurrentQuotaLimitBase }
type QuotaListCustomPager ¶ added in v0.20240628.1153531
func (*QuotaListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *QuotaListCustomPager) NextPageLink() *odata.Link
type QuotaListOperationResponse ¶
type QuotaListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CurrentQuotaLimitBase }
type QuotaProperties ¶
type QuotaProperties struct { IsQuotaApplicable *bool `json:"isQuotaApplicable,omitempty"` Limit LimitJsonObject `json:"limit"` Name *ResourceName `json:"name,omitempty"` Properties *interface{} `json:"properties,omitempty"` QuotaPeriod *string `json:"quotaPeriod,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Unit *string `json:"unit,omitempty"` }
func (*QuotaProperties) UnmarshalJSON ¶
func (s *QuotaProperties) UnmarshalJSON(bytes []byte) error
type RawLimitJsonObjectImpl ¶
type RawLimitJsonObjectImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawLimitJsonObjectImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawLimitJsonObjectImpl) LimitJsonObject ¶ added in v0.20240920.1135249
func (s RawLimitJsonObjectImpl) LimitJsonObject() BaseLimitJsonObjectImpl
type ResourceName ¶
type ScopedQuotaId ¶
ScopedQuotaId is a struct representing the Resource ID for a Scoped Quota
func NewScopedQuotaID ¶
func NewScopedQuotaID(scope string, quotaName string) ScopedQuotaId
NewScopedQuotaID returns a new ScopedQuotaId struct
func ParseScopedQuotaID ¶
func ParseScopedQuotaID(input string) (*ScopedQuotaId, error)
ParseScopedQuotaID parses 'input' into a ScopedQuotaId
func ParseScopedQuotaIDInsensitively ¶
func ParseScopedQuotaIDInsensitively(input string) (*ScopedQuotaId, error)
ParseScopedQuotaIDInsensitively parses 'input' case-insensitively into a ScopedQuotaId note: this method should only be used for API response data and not user input
func (*ScopedQuotaId) FromParseResult ¶
func (id *ScopedQuotaId) FromParseResult(input resourceids.ParseResult) error
func (ScopedQuotaId) ID ¶
func (id ScopedQuotaId) ID() string
ID returns the formatted Scoped Quota ID
func (ScopedQuotaId) Segments ¶
func (id ScopedQuotaId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Quota ID
func (ScopedQuotaId) String ¶
func (id ScopedQuotaId) String() string
String returns a human-readable description of this Scoped Quota ID