Documentation ¶
Overview ¶
Package reservations implements the Azure ARM Reservations service API version .
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AppliedReservationList
- type AppliedReservations
- type AppliedReservationsProperties
- type AppliedScopeType
- type AppliedScopeType1
- type BaseClient
- func (client BaseClient) GetAppliedReservationList(ctx context.Context, subscriptionID string) (result AppliedReservations, err error)
- func (client BaseClient) GetAppliedReservationListPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)
- func (client BaseClient) GetAppliedReservationListResponder(resp *http.Response) (result AppliedReservations, err error)
- func (client BaseClient) GetAppliedReservationListSender(req *http.Request) (*http.Response, error)
- func (client BaseClient) GetCatalog(ctx context.Context, subscriptionID string) (result ListCatalog, err error)
- func (client BaseClient) GetCatalogPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)
- func (client BaseClient) GetCatalogResponder(resp *http.Response) (result ListCatalog, err error)
- func (client BaseClient) GetCatalogSender(req *http.Request) (*http.Response, error)
- type Catalog
- type Client
- func (client Client) Get(ctx context.Context, reservationID string, reservationOrderID string) (result Response, err error)
- func (client Client) GetPreparer(ctx context.Context, reservationID string, reservationOrderID string) (*http.Request, error)
- func (client Client) GetResponder(resp *http.Response) (result Response, err error)
- func (client Client) GetSender(req *http.Request) (*http.Response, error)
- func (client Client) List(ctx context.Context, reservationOrderID string) (result ListPage, err error)
- func (client Client) ListComplete(ctx context.Context, reservationOrderID string) (result ListIterator, err error)
- func (client Client) ListPreparer(ctx context.Context, reservationOrderID string) (*http.Request, error)
- func (client Client) ListResponder(resp *http.Response) (result List, err error)
- func (client Client) ListRevisions(ctx context.Context, reservationID string, reservationOrderID string) (result ListPage, err error)
- func (client Client) ListRevisionsComplete(ctx context.Context, reservationID string, reservationOrderID string) (result ListIterator, err error)
- func (client Client) ListRevisionsPreparer(ctx context.Context, reservationID string, reservationOrderID string) (*http.Request, error)
- func (client Client) ListRevisionsResponder(resp *http.Response) (result List, err error)
- func (client Client) ListRevisionsSender(req *http.Request) (*http.Response, error)
- func (client Client) ListSender(req *http.Request) (*http.Response, error)
- func (client Client) Merge(ctx context.Context, reservationOrderID string, body MergeRequest) (result ReservationMergeFuture, err error)
- func (client Client) MergePreparer(ctx context.Context, reservationOrderID string, body MergeRequest) (*http.Request, error)
- func (client Client) MergeResponder(resp *http.Response) (result ListResponse, err error)
- func (client Client) MergeSender(req *http.Request) (future ReservationMergeFuture, err error)
- func (client Client) Split(ctx context.Context, reservationOrderID string, body SplitRequest) (result SplitFuture, err error)
- func (client Client) SplitPreparer(ctx context.Context, reservationOrderID string, body SplitRequest) (*http.Request, error)
- func (client Client) SplitResponder(resp *http.Response) (result ListResponse, err error)
- func (client Client) SplitSender(req *http.Request) (future SplitFuture, err error)
- func (client Client) Update(ctx context.Context, reservationOrderID string, reservationID string, ...) (result ReservationUpdateFuture, err error)
- func (client Client) UpdatePreparer(ctx context.Context, reservationOrderID string, reservationID string, ...) (*http.Request, error)
- func (client Client) UpdateResponder(resp *http.Response) (result Response, err error)
- func (client Client) UpdateSender(req *http.Request) (future ReservationUpdateFuture, err error)
- type Code
- type CreateGenericQuotaRequestParameters
- type CurrentQuotaLimit
- type CurrentQuotaLimitBase
- type Error
- type ExceptionResponse
- type ExtendedErrorInfo
- type ExtendedStatusInfo
- type Kind
- type List
- type ListCatalog
- type ListIterator
- type ListPage
- type ListResponse
- type Location
- type MergeProperties
- type MergePropertiesType
- type MergeRequest
- type OperationClient
- func (client OperationClient) List(ctx context.Context) (result OperationListPage, err error)
- func (client OperationClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)
- func (client OperationClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationClient) ListResponder(resp *http.Response) (result OperationList, err error)
- func (client OperationClient) ListSender(req *http.Request) (*http.Response, error)
- type OperationDisplay
- type OperationList
- type OperationListIterator
- type OperationListPage
- type OperationResponse
- type OrderClient
- func (client OrderClient) Get(ctx context.Context, reservationOrderID string) (result OrderResponse, err error)
- func (client OrderClient) GetPreparer(ctx context.Context, reservationOrderID string) (*http.Request, error)
- func (client OrderClient) GetResponder(resp *http.Response) (result OrderResponse, err error)
- func (client OrderClient) GetSender(req *http.Request) (*http.Response, error)
- func (client OrderClient) List(ctx context.Context) (result OrderListPage, err error)
- func (client OrderClient) ListComplete(ctx context.Context) (result OrderListIterator, err error)
- func (client OrderClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OrderClient) ListResponder(resp *http.Response) (result OrderList, err error)
- func (client OrderClient) ListSender(req *http.Request) (*http.Response, error)
- type OrderList
- type OrderListIterator
- type OrderListPage
- type OrderProperties
- type OrderResponse
- type Patch
- type PatchProperties
- type Properties
- type ProvisioningState
- type ProvisioningState1
- type QuotaClient
- func (client QuotaClient) CreateOrUpdate(ctx context.Context, subscriptionID string, providerID string, location string, ...) (result QuotaCreateOrUpdateFuture, err error)
- func (client QuotaClient) CreateOrUpdatePreparer(ctx context.Context, subscriptionID string, providerID string, location string, ...) (*http.Request, error)
- func (client QuotaClient) CreateOrUpdateResponder(resp *http.Response) (result SetObject, err error)
- func (client QuotaClient) CreateOrUpdateSender(req *http.Request) (future QuotaCreateOrUpdateFuture, err error)
- func (client QuotaClient) Get(ctx context.Context, subscriptionID string, providerID string, location string, ...) (result CurrentQuotaLimitBase, err error)
- func (client QuotaClient) GetPreparer(ctx context.Context, subscriptionID string, providerID string, location string, ...) (*http.Request, error)
- func (client QuotaClient) GetResponder(resp *http.Response) (result CurrentQuotaLimitBase, err error)
- func (client QuotaClient) GetSender(req *http.Request) (*http.Response, error)
- func (client QuotaClient) List(ctx context.Context, subscriptionID string, providerID string, location string) (result QuotaLimitsPage, err error)
- func (client QuotaClient) ListComplete(ctx context.Context, subscriptionID string, providerID string, location string) (result QuotaLimitsIterator, err error)
- func (client QuotaClient) ListPreparer(ctx context.Context, subscriptionID string, providerID string, location string) (*http.Request, error)
- func (client QuotaClient) ListResponder(resp *http.Response) (result QuotaLimits, err error)
- func (client QuotaClient) ListSender(req *http.Request) (*http.Response, error)
- func (client QuotaClient) Update(ctx context.Context, subscriptionID string, providerID string, location string, ...) (result QuotaUpdateFuture, err error)
- func (client QuotaClient) UpdatePreparer(ctx context.Context, subscriptionID string, providerID string, location string, ...) (*http.Request, error)
- func (client QuotaClient) UpdateResponder(resp *http.Response) (result SetObject, err error)
- func (client QuotaClient) UpdateSender(req *http.Request) (future QuotaUpdateFuture, err error)
- type QuotaCreateOrUpdateFuture
- type QuotaLimits
- type QuotaLimitsIterator
- type QuotaLimitsPage
- type QuotaLimitsResponse
- type QuotaProperties
- type QuotaRequestDetails
- type QuotaRequestDetailsList
- type QuotaRequestDetailsListIterator
- func (iter *QuotaRequestDetailsListIterator) Next() error
- func (iter *QuotaRequestDetailsListIterator) NextWithContext(ctx context.Context) (err error)
- func (iter QuotaRequestDetailsListIterator) NotDone() bool
- func (iter QuotaRequestDetailsListIterator) Response() QuotaRequestDetailsList
- func (iter QuotaRequestDetailsListIterator) Value() QuotaRequestDetails
- type QuotaRequestDetailsListPage
- func (page *QuotaRequestDetailsListPage) Next() error
- func (page *QuotaRequestDetailsListPage) NextWithContext(ctx context.Context) (err error)
- func (page QuotaRequestDetailsListPage) NotDone() bool
- func (page QuotaRequestDetailsListPage) Response() QuotaRequestDetailsList
- func (page QuotaRequestDetailsListPage) Values() []QuotaRequestDetails
- type QuotaRequestOneResourceProperties
- type QuotaRequestOneResourceSubmitResponse
- type QuotaRequestProperties
- type QuotaRequestStatusClient
- func (client QuotaRequestStatusClient) Get(ctx context.Context, subscriptionID string, providerID string, location string, ...) (result QuotaRequestDetails, err error)
- func (client QuotaRequestStatusClient) GetPreparer(ctx context.Context, subscriptionID string, providerID string, location string, ...) (*http.Request, error)
- func (client QuotaRequestStatusClient) GetResponder(resp *http.Response) (result QuotaRequestDetails, err error)
- func (client QuotaRequestStatusClient) GetSender(req *http.Request) (*http.Response, error)
- func (client QuotaRequestStatusClient) List(ctx context.Context, subscriptionID string, providerID string, location string, ...) (result QuotaRequestDetailsListPage, err error)
- func (client QuotaRequestStatusClient) ListComplete(ctx context.Context, subscriptionID string, providerID string, location string, ...) (result QuotaRequestDetailsListIterator, err error)
- func (client QuotaRequestStatusClient) ListPreparer(ctx context.Context, subscriptionID string, providerID string, location string, ...) (*http.Request, error)
- func (client QuotaRequestStatusClient) ListResponder(resp *http.Response) (result QuotaRequestDetailsList, err error)
- func (client QuotaRequestStatusClient) ListSender(req *http.Request) (*http.Response, error)
- type QuotaRequestStatusDetails
- type QuotaRequestSubmitResponse
- type QuotaRequestSubmitResponse201
- type QuotaUpdateFuture
- type ReservationMergeFuture
- type ReservationUpdateFuture
- type ResourceName
- type Response
- type ServiceError
- type ServiceErrorDetail
- type SetObject
- type SkuCapability
- type SkuName
- type SkuRestriction
- type SplitFuture
- type SplitProperties
- type SplitPropertiesType
- type SplitRequest
- type StatusCode
- type SubRequest
- type Term
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Reservations
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AppliedReservationList ¶
type AppliedReservationList struct { Value *[]string `json:"value,omitempty"` // NextLink - Url to get the next page of reservations NextLink *string `json:"nextLink,omitempty"` }
AppliedReservationList ...
type AppliedReservations ¶
type AppliedReservations struct { autorest.Response `json:"-"` // ID - READ-ONLY; Identifier of the applied reservations ID *string `json:"id,omitempty"` // Name - READ-ONLY; Name of resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; Type of resource. "Microsoft.Capacity/AppliedReservations" Type *string `json:"type,omitempty"` *AppliedReservationsProperties `json:"properties,omitempty"` }
AppliedReservations ...
func (AppliedReservations) MarshalJSON ¶
func (ar AppliedReservations) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AppliedReservations.
func (*AppliedReservations) UnmarshalJSON ¶
func (ar *AppliedReservations) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AppliedReservations struct.
type AppliedReservationsProperties ¶
type AppliedReservationsProperties struct {
ReservationOrderIds *AppliedReservationList `json:"reservationOrderIds,omitempty"`
}
AppliedReservationsProperties ...
type AppliedScopeType ¶
type AppliedScopeType string
AppliedScopeType enumerates the values for applied scope type.
const ( AppliedScopeType = "Shared" // Single ... Single AppliedScopeType = "Single" )Shared
func PossibleAppliedScopeTypeValues ¶
func PossibleAppliedScopeTypeValues() []AppliedScopeType
PossibleAppliedScopeTypeValues returns an array of possible values for the AppliedScopeType const type.
type AppliedScopeType1 ¶
type AppliedScopeType1 string
AppliedScopeType1 enumerates the values for applied scope type 1.
const ( AppliedScopeType1 = "Shared" // AppliedScopeType1Single ... AppliedScopeType1Single AppliedScopeType1 = "Single" )AppliedScopeType1Shared
func PossibleAppliedScopeType1Values ¶
func PossibleAppliedScopeType1Values() []AppliedScopeType1
PossibleAppliedScopeType1Values returns an array of possible values for the AppliedScopeType1 const type.
type BaseClient ¶
BaseClient is the base client for Reservations.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (BaseClient) GetAppliedReservationList ¶
func (client BaseClient) GetAppliedReservationList(ctx context.Context, subscriptionID string) (result AppliedReservations, err error)
GetAppliedReservationList get applicable `Reservation`s that are applied to this subscription. Parameters: subscriptionID - id of the subscription
func (BaseClient) GetAppliedReservationListPreparer ¶
func (client BaseClient) GetAppliedReservationListPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)
GetAppliedReservationListPreparer prepares the GetAppliedReservationList request.
func (BaseClient) GetAppliedReservationListResponder ¶
func (client BaseClient) GetAppliedReservationListResponder(resp *http.Response) (result AppliedReservations, err error)
GetAppliedReservationListResponder handles the response to the GetAppliedReservationList request. The method always closes the http.Response Body.
func (BaseClient) GetAppliedReservationListSender ¶
GetAppliedReservationListSender sends the GetAppliedReservationList request. The method will close the http.Response Body if it receives an error.
func (BaseClient) GetCatalog ¶
func (client BaseClient) GetCatalog(ctx context.Context, subscriptionID string) (result ListCatalog, err error)
GetCatalog sends the get catalog request. Parameters: subscriptionID - id of the subscription
func (BaseClient) GetCatalogPreparer ¶
func (client BaseClient) GetCatalogPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)
GetCatalogPreparer prepares the GetCatalog request.
func (BaseClient) GetCatalogResponder ¶
func (client BaseClient) GetCatalogResponder(resp *http.Response) (result ListCatalog, err error)
GetCatalogResponder handles the response to the GetCatalog request. The method always closes the http.Response Body.
func (BaseClient) GetCatalogSender ¶
GetCatalogSender sends the GetCatalog request. The method will close the http.Response Body if it receives an error.
type Catalog ¶
type Catalog struct { // ResourceType - READ-ONLY; The type of resource the SKU applies to. ResourceType *string `json:"resourceType,omitempty"` // Name - READ-ONLY; The name of SKU Name *string `json:"name,omitempty"` // Tier - READ-ONLY; The tier of this SKU Tier *string `json:"tier,omitempty"` // Size - READ-ONLY; The size of this SKU Size *string `json:"size,omitempty"` // Terms - READ-ONLY; Available reservation terms for this resource Terms *[]string `json:"terms,omitempty"` // Locations - READ-ONLY Locations *[]string `json:"locations,omitempty"` // Capabilities - READ-ONLY Capabilities *[]SkuCapability `json:"capabilities,omitempty"` // Restrictions - READ-ONLY Restrictions *[]SkuRestriction `json:"restrictions,omitempty"` }
Catalog ...
type Client ¶
type Client struct {
BaseClient
}
Client is the client for the Reservation methods of the Reservations service.
func NewClientWithBaseURI ¶
NewClientWithBaseURI creates an instance of the Client client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (Client) Get ¶
func (client Client) Get(ctx context.Context, reservationID string, reservationOrderID string) (result Response, err error)
Get get specific `Reservation` details. Parameters: reservationID - id of the Reservation Item reservationOrderID - order Id of the reservation
func (Client) GetPreparer ¶
func (client Client) GetPreparer(ctx context.Context, reservationID string, reservationOrderID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (Client) GetResponder ¶
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (Client) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (Client) List ¶
func (client Client) List(ctx context.Context, reservationOrderID string) (result ListPage, err error)
List list `Reservation`s within a single `ReservationOrder`. Parameters: reservationOrderID - order Id of the reservation
func (Client) ListComplete ¶
func (client Client) ListComplete(ctx context.Context, reservationOrderID string) (result ListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (Client) ListPreparer ¶
func (client Client) ListPreparer(ctx context.Context, reservationOrderID string) (*http.Request, error)
ListPreparer prepares the List request.
func (Client) ListResponder ¶
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (Client) ListRevisions ¶
func (client Client) ListRevisions(ctx context.Context, reservationID string, reservationOrderID string) (result ListPage, err error)
ListRevisions list of all the revisions for the `Reservation`. Parameters: reservationID - id of the Reservation Item reservationOrderID - order Id of the reservation
func (Client) ListRevisionsComplete ¶
func (client Client) ListRevisionsComplete(ctx context.Context, reservationID string, reservationOrderID string) (result ListIterator, err error)
ListRevisionsComplete enumerates all values, automatically crossing page boundaries as required.
func (Client) ListRevisionsPreparer ¶
func (client Client) ListRevisionsPreparer(ctx context.Context, reservationID string, reservationOrderID string) (*http.Request, error)
ListRevisionsPreparer prepares the ListRevisions request.
func (Client) ListRevisionsResponder ¶
ListRevisionsResponder handles the response to the ListRevisions request. The method always closes the http.Response Body.
func (Client) ListRevisionsSender ¶
ListRevisionsSender sends the ListRevisions request. The method will close the http.Response Body if it receives an error.
func (Client) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (Client) Merge ¶
func (client Client) Merge(ctx context.Context, reservationOrderID string, body MergeRequest) (result ReservationMergeFuture, err error)
Merge merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties. Parameters: reservationOrderID - order Id of the reservation body - information needed for commercial request for a reservation
func (Client) MergePreparer ¶
func (client Client) MergePreparer(ctx context.Context, reservationOrderID string, body MergeRequest) (*http.Request, error)
MergePreparer prepares the Merge request.
func (Client) MergeResponder ¶
func (client Client) MergeResponder(resp *http.Response) (result ListResponse, err error)
MergeResponder handles the response to the Merge request. The method always closes the http.Response Body.
func (Client) MergeSender ¶
func (client Client) MergeSender(req *http.Request) (future ReservationMergeFuture, err error)
MergeSender sends the Merge request. The method will close the http.Response Body if it receives an error.
func (Client) Split ¶
func (client Client) Split(ctx context.Context, reservationOrderID string, body SplitRequest) (result SplitFuture, err error)
Split split a `Reservation` into two `Reservation`s with specified quantity distribution. Parameters: reservationOrderID - order Id of the reservation body - information needed to Split a reservation item
func (Client) SplitPreparer ¶
func (client Client) SplitPreparer(ctx context.Context, reservationOrderID string, body SplitRequest) (*http.Request, error)
SplitPreparer prepares the Split request.
func (Client) SplitResponder ¶
func (client Client) SplitResponder(resp *http.Response) (result ListResponse, err error)
SplitResponder handles the response to the Split request. The method always closes the http.Response Body.
func (Client) SplitSender ¶
func (client Client) SplitSender(req *http.Request) (future SplitFuture, err error)
SplitSender sends the Split request. The method will close the http.Response Body if it receives an error.
func (Client) Update ¶
func (client Client) Update(ctx context.Context, reservationOrderID string, reservationID string, parameters Patch) (result ReservationUpdateFuture, err error)
Update updates the applied scopes of the `Reservation`. Parameters: reservationOrderID - order Id of the reservation reservationID - id of the Reservation Item parameters - information needed to patch a reservation item
func (Client) UpdatePreparer ¶
func (client Client) UpdatePreparer(ctx context.Context, reservationOrderID string, reservationID string, parameters Patch) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (Client) UpdateResponder ¶
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (Client) UpdateSender ¶
func (client Client) UpdateSender(req *http.Request) (future ReservationUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type Code ¶
type Code string
Code enumerates the values for code.
const ( // ActivateQuoteFailed ... ActivateQuoteFailed Code = "ActivateQuoteFailed" // AppliedScopesNotAssociatedWithCommerceAccount ... AppliedScopesNotAssociatedWithCommerceAccount Code = "AppliedScopesNotAssociatedWithCommerceAccount" // AppliedScopesSameAsExisting ... AppliedScopesSameAsExisting Code = "AppliedScopesSameAsExisting" // AuthorizationFailed ... AuthorizationFailed Code = "AuthorizationFailed" // BadRequest ... BadRequest Code = "BadRequest" // BillingCustomerInputError ... BillingCustomerInputError Code = "BillingCustomerInputError" // BillingError ... BillingError Code = "BillingError" // BillingPaymentInstrumentHardError ... BillingPaymentInstrumentHardError Code = "BillingPaymentInstrumentHardError" // BillingPaymentInstrumentSoftError ... BillingPaymentInstrumentSoftError Code = "BillingPaymentInstrumentSoftError" // BillingScopeIDCannotBeChanged ... BillingScopeIDCannotBeChanged Code = "BillingScopeIdCannotBeChanged" // BillingTransientError ... BillingTransientError Code = "BillingTransientError" // CalculatePriceFailed ... CalculatePriceFailed Code = "CalculatePriceFailed" // CapacityUpdateScopesFailed ... CapacityUpdateScopesFailed Code = "CapacityUpdateScopesFailed" // ClientCertificateThumbprintNotSet ... ClientCertificateThumbprintNotSet Code = "ClientCertificateThumbprintNotSet" // CreateQuoteFailed ... CreateQuoteFailed Code = "CreateQuoteFailed" // Forbidden ... Forbidden Code = "Forbidden" // FulfillmentConfigurationError ... FulfillmentConfigurationError Code = "FulfillmentConfigurationError" // FulfillmentError ... FulfillmentError Code = "FulfillmentError" // FulfillmentOutOfStockError ... FulfillmentOutOfStockError Code = "FulfillmentOutOfStockError" // FulfillmentTransientError ... FulfillmentTransientError Code = "FulfillmentTransientError" // HTTPMethodNotSupported ... HTTPMethodNotSupported Code = "HttpMethodNotSupported" // InternalServerError ... InternalServerError Code = "InternalServerError" // InvalidAccessToken ... InvalidAccessToken Code = "InvalidAccessToken" // InvalidFulfillmentRequestParameters ... InvalidFulfillmentRequestParameters Code = "InvalidFulfillmentRequestParameters" // InvalidHealthCheckType ... InvalidHealthCheckType Code = "InvalidHealthCheckType" // InvalidLocationID ... InvalidLocationID Code = "InvalidLocationId" // InvalidRefundQuantity ... InvalidRefundQuantity Code = "InvalidRefundQuantity" // InvalidRequestContent ... InvalidRequestContent Code = "InvalidRequestContent" // InvalidRequestURI ... InvalidRequestURI Code = "InvalidRequestUri" // InvalidReservationID ... InvalidReservationID Code = "InvalidReservationId" // InvalidReservationOrderID ... InvalidReservationOrderID Code = "InvalidReservationOrderId" // InvalidSingleAppliedScopesCount ... InvalidSingleAppliedScopesCount Code = "InvalidSingleAppliedScopesCount" // InvalidSubscriptionID ... InvalidSubscriptionID Code = "InvalidSubscriptionId" // InvalidTenantID ... InvalidTenantID Code = "InvalidTenantId" // MissingAppliedScopesForSingle ... MissingAppliedScopesForSingle Code = "MissingAppliedScopesForSingle" // MissingTenantID ... MissingTenantID Code = "MissingTenantId" // NonsupportedAccountID ... NonsupportedAccountID Code = "NonsupportedAccountId" // NotSpecified ... NotSpecified Code = "NotSpecified" // NotSupportedCountry ... NotSupportedCountry Code = "NotSupportedCountry" // NoValidReservationsToReRate ... NoValidReservationsToReRate Code = "NoValidReservationsToReRate" // OperationCannotBePerformedInCurrentState ... OperationCannotBePerformedInCurrentState Code = "OperationCannotBePerformedInCurrentState" // OperationFailed ... OperationFailed Code = "OperationFailed" // PaymentInstrumentNotFound ... PaymentInstrumentNotFound Code = "PaymentInstrumentNotFound" // PurchaseError ... PurchaseError Code = "PurchaseError" // ReRateOnlyAllowedForEA ... ReRateOnlyAllowedForEA Code = "ReRateOnlyAllowedForEA" // ReservationIDNotInReservationOrder ... ReservationIDNotInReservationOrder Code = "ReservationIdNotInReservationOrder" // ReservationOrderCreationFailed ... ReservationOrderCreationFailed Code = "ReservationOrderCreationFailed" // ReservationOrderIDAlreadyExists ... ReservationOrderIDAlreadyExists Code = "ReservationOrderIdAlreadyExists" // ReservationOrderNotEnabled ... ReservationOrderNotEnabled Code = "ReservationOrderNotEnabled" // ReservationOrderNotFound ... ReservationOrderNotFound Code = "ReservationOrderNotFound" // RiskCheckFailed ... RiskCheckFailed Code = "RiskCheckFailed" // RoleAssignmentCreationFailed ... RoleAssignmentCreationFailed Code = "RoleAssignmentCreationFailed" // ServerTimeout ... ServerTimeout Code = "ServerTimeout" // UnauthenticatedRequestsThrottled ... UnauthenticatedRequestsThrottled Code = "UnauthenticatedRequestsThrottled" // UnsupportedReservationTerm ... UnsupportedReservationTerm Code = "UnsupportedReservationTerm" )
func PossibleCodeValues ¶
func PossibleCodeValues() []Code
PossibleCodeValues returns an array of possible values for the Code const type.
type CreateGenericQuotaRequestParameters ¶
type CreateGenericQuotaRequestParameters struct { // Value - Quota change requests. Value *[]CurrentQuotaLimitBase `json:"value,omitempty"` }
CreateGenericQuotaRequestParameters quota change requests information.
type CurrentQuotaLimit ¶
type CurrentQuotaLimit struct { // CurrentQuotaLimitBase - Quota details. *CurrentQuotaLimitBase `json:"quotaInformation,omitempty"` // QuotaRequestStatusDetails - Additional properties for the quota status for the resource. *QuotaRequestStatusDetails `json:"properties,omitempty"` }
CurrentQuotaLimit current quota limits.
func (CurrentQuotaLimit) MarshalJSON ¶
func (cql CurrentQuotaLimit) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CurrentQuotaLimit.
func (*CurrentQuotaLimit) UnmarshalJSON ¶
func (cql *CurrentQuotaLimit) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CurrentQuotaLimit struct.
type CurrentQuotaLimitBase ¶
type CurrentQuotaLimitBase struct { autorest.Response `json:"-"` // Properties - Quota properties for the resource. Properties *QuotaProperties `json:"properties,omitempty"` }
CurrentQuotaLimitBase quota properties.
type ExceptionResponse ¶
type ExceptionResponse struct { // Error - The API error details. Error *ServiceError `json:"error,omitempty"` }
ExceptionResponse the API error.
type ExtendedErrorInfo ¶
type ExtendedErrorInfo struct { // Code - Possible values include: 'NotSpecified', 'InternalServerError', 'ServerTimeout', 'AuthorizationFailed', 'BadRequest', 'ClientCertificateThumbprintNotSet', 'InvalidRequestContent', 'OperationFailed', 'HTTPMethodNotSupported', 'InvalidRequestURI', 'MissingTenantID', 'InvalidTenantID', 'InvalidReservationOrderID', 'InvalidReservationID', 'ReservationIDNotInReservationOrder', 'ReservationOrderNotFound', 'InvalidSubscriptionID', 'InvalidAccessToken', 'InvalidLocationID', 'UnauthenticatedRequestsThrottled', 'InvalidHealthCheckType', 'Forbidden', 'BillingScopeIDCannotBeChanged', 'AppliedScopesNotAssociatedWithCommerceAccount', 'AppliedScopesSameAsExisting', 'RoleAssignmentCreationFailed', 'ReservationOrderCreationFailed', 'ReservationOrderNotEnabled', 'CapacityUpdateScopesFailed', 'UnsupportedReservationTerm', 'ReservationOrderIDAlreadyExists', 'RiskCheckFailed', 'CreateQuoteFailed', 'ActivateQuoteFailed', 'NonsupportedAccountID', 'PaymentInstrumentNotFound', 'MissingAppliedScopesForSingle', 'NoValidReservationsToReRate', 'ReRateOnlyAllowedForEA', 'OperationCannotBePerformedInCurrentState', 'InvalidSingleAppliedScopesCount', 'InvalidFulfillmentRequestParameters', 'NotSupportedCountry', 'InvalidRefundQuantity', 'PurchaseError', 'BillingCustomerInputError', 'BillingPaymentInstrumentSoftError', 'BillingPaymentInstrumentHardError', 'BillingTransientError', 'BillingError', 'FulfillmentConfigurationError', 'FulfillmentOutOfStockError', 'FulfillmentTransientError', 'FulfillmentError', 'CalculatePriceFailed' Code Code `json:"code,omitempty"` Message *string `json:"message,omitempty"` }
ExtendedErrorInfo ...
type ExtendedStatusInfo ¶
type ExtendedStatusInfo struct { // StatusCode - Possible values include: 'StatusCodeNone', 'StatusCodePending', 'StatusCodeActive', 'StatusCodePurchaseError', 'StatusCodePaymentInstrumentError', 'StatusCodeSplit', 'StatusCodeMerged', 'StatusCodeExpired', 'StatusCodeSucceeded' StatusCode StatusCode `json:"statusCode,omitempty"` // Message - The message giving detailed information about the status code. Message *string `json:"message,omitempty"` }
ExtendedStatusInfo ...
type Kind ¶
type Kind string
Kind enumerates the values for kind.
const ( // MicrosoftCompute ... MicrosoftCompute Kind = "Microsoft.Compute" )
func PossibleKindValues ¶
func PossibleKindValues() []Kind
PossibleKindValues returns an array of possible values for the Kind const type.
type List ¶
type List struct { autorest.Response `json:"-"` Value *[]Response `json:"value,omitempty"` // NextLink - Url to get the next page of reservations. NextLink *string `json:"nextLink,omitempty"` }
List ...
type ListCatalog ¶
ListCatalog ...
type ListIterator ¶
type ListIterator struct {
// contains filtered or unexported fields
}
ListIterator provides access to a complete listing of Response values.
func NewListIterator ¶
func NewListIterator(page ListPage) ListIterator
Creates a new instance of the ListIterator type.
func (*ListIterator) Next ¶
func (iter *ListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ListIterator) NextWithContext ¶
func (iter *ListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ListIterator) NotDone ¶
func (iter ListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ListIterator) Response ¶
func (iter ListIterator) Response() List
Response returns the raw server response from the last page request.
func (ListIterator) Value ¶
func (iter ListIterator) Value() Response
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ListPage ¶
type ListPage struct {
// contains filtered or unexported fields
}
ListPage contains a page of Response values.
func NewListPage ¶
Creates a new instance of the ListPage type.
func (*ListPage) Next ¶
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ListPage) NextWithContext ¶
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ListPage) NotDone ¶
NotDone returns true if the page enumeration should be started or is not yet complete.
type ListResponse ¶
type ListResponse struct { autorest.Response `json:"-"` Value *[]Response `json:"value,omitempty"` }
ListResponse ...
type Location ¶
type Location string
Location enumerates the values for location.
const ( // Australiaeast ... Australiaeast Location = "australiaeast" // Australiasoutheast ... Australiasoutheast Location = "australiasoutheast" // Brazilsouth ... Brazilsouth Location = "brazilsouth" // Canadacentral ... Canadacentral Location = "canadacentral" // Canadaeast ... Canadaeast Location = "canadaeast" // Centralindia ... Centralindia Location = "centralindia" // Centralus ... Centralus Location = "centralus" // Eastasia ... Eastasia Location = "eastasia" // Eastus ... Eastus Location = "eastus" // Eastus2 ... Eastus2 Location = "eastus2" // Japaneast ... Japaneast Location = "japaneast" // Japanwest ... Japanwest Location = "japanwest" // Northcentralus ... Northcentralus Location = "northcentralus" // Northeurope ... Northeurope Location = "northeurope" // Southcentralus ... Southcentralus Location = "southcentralus" // Southeastasia ... Southeastasia Location = "southeastasia" // Southindia ... Southindia Location = "southindia" // Uksouth ... Uksouth Location = "uksouth" // Ukwest ... Ukwest Location = "ukwest" // Westcentralus ... Westcentralus Location = "westcentralus" // Westeurope ... Westeurope Location = "westeurope" // Westindia ... Westindia Location = "westindia" // Westus ... Westus Location = "westus" // Westus2 ... Westus2 Location = "westus2" )
func PossibleLocationValues ¶
func PossibleLocationValues() []Location
PossibleLocationValues returns an array of possible values for the Location const type.
type MergeProperties ¶
type MergeProperties struct { // Sources - Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} Sources *[]string `json:"sources,omitempty"` }
MergeProperties ...
type MergePropertiesType ¶
type MergePropertiesType struct { // MergeDestination - Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} MergeDestination *string `json:"mergeDestination,omitempty"` // MergeSources - Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} MergeSources *[]string `json:"mergeSources,omitempty"` }
MergePropertiesType ...
type MergeRequest ¶
type MergeRequest struct {
*MergeProperties `json:"properties,omitempty"`
}
MergeRequest ...
func (MergeRequest) MarshalJSON ¶
func (mr MergeRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MergeRequest.
func (*MergeRequest) UnmarshalJSON ¶
func (mr *MergeRequest) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MergeRequest struct.
type OperationClient ¶
type OperationClient struct {
BaseClient
}
OperationClient is the client for the Operation methods of the Reservations service.
func NewOperationClient ¶
func NewOperationClient() OperationClient
NewOperationClient creates an instance of the OperationClient client.
func NewOperationClientWithBaseURI ¶
func NewOperationClientWithBaseURI(baseURI string) OperationClient
NewOperationClientWithBaseURI creates an instance of the OperationClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (OperationClient) List ¶
func (client OperationClient) List(ctx context.Context) (result OperationListPage, err error)
List list all the operations.
func (OperationClient) ListComplete ¶
func (client OperationClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationClient) ListResponder ¶
func (client OperationClient) ListResponder(resp *http.Response) (result OperationList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type OperationDisplay ¶
type OperationDisplay struct { Provider *string `json:"provider,omitempty"` Resource *string `json:"resource,omitempty"` Operation *string `json:"operation,omitempty"` Description *string `json:"description,omitempty"` }
OperationDisplay ...
type OperationList ¶
type OperationList struct { autorest.Response `json:"-"` Value *[]OperationResponse `json:"value,omitempty"` // NextLink - Url to get the next page of items. NextLink *string `json:"nextLink,omitempty"` }
OperationList ...
func (OperationList) IsEmpty ¶
func (ol OperationList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListIterator ¶
type OperationListIterator struct {
// contains filtered or unexported fields
}
OperationListIterator provides access to a complete listing of OperationResponse values.
func NewOperationListIterator ¶
func NewOperationListIterator(page OperationListPage) OperationListIterator
Creates a new instance of the OperationListIterator type.
func (*OperationListIterator) Next ¶
func (iter *OperationListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListIterator) NextWithContext ¶
func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (OperationListIterator) NotDone ¶
func (iter OperationListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListIterator) Response ¶
func (iter OperationListIterator) Response() OperationList
Response returns the raw server response from the last page request.
func (OperationListIterator) Value ¶
func (iter OperationListIterator) Value() OperationResponse
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListPage ¶
type OperationListPage struct {
// contains filtered or unexported fields
}
OperationListPage contains a page of OperationResponse values.
func NewOperationListPage ¶
func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage
Creates a new instance of the OperationListPage type.
func (*OperationListPage) Next ¶
func (page *OperationListPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListPage) NextWithContext ¶
func (page *OperationListPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (OperationListPage) NotDone ¶
func (page OperationListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListPage) Response ¶
func (page OperationListPage) Response() OperationList
Response returns the raw server response from the last page request.
func (OperationListPage) Values ¶
func (page OperationListPage) Values() []OperationResponse
Values returns the slice of values for the current page or nil if there are no values.
type OperationResponse ¶
type OperationResponse struct { Name *string `json:"name,omitempty"` Display *OperationDisplay `json:"display,omitempty"` Origin *string `json:"origin,omitempty"` }
OperationResponse ...
type OrderClient ¶
type OrderClient struct {
BaseClient
}
OrderClient is the client for the Order methods of the Reservations service.
func NewOrderClient ¶
func NewOrderClient() OrderClient
NewOrderClient creates an instance of the OrderClient client.
func NewOrderClientWithBaseURI ¶
func NewOrderClientWithBaseURI(baseURI string) OrderClient
NewOrderClientWithBaseURI creates an instance of the OrderClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (OrderClient) Get ¶
func (client OrderClient) Get(ctx context.Context, reservationOrderID string) (result OrderResponse, err error)
Get get the details of the `ReservationOrder`. Parameters: reservationOrderID - order Id of the reservation
func (OrderClient) GetPreparer ¶
func (client OrderClient) GetPreparer(ctx context.Context, reservationOrderID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (OrderClient) GetResponder ¶
func (client OrderClient) GetResponder(resp *http.Response) (result OrderResponse, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (OrderClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (OrderClient) List ¶
func (client OrderClient) List(ctx context.Context) (result OrderListPage, err error)
List list of all the `ReservationOrder`s that the user has access to in the current tenant.
func (OrderClient) ListComplete ¶
func (client OrderClient) ListComplete(ctx context.Context) (result OrderListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OrderClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OrderClient) ListResponder ¶
func (client OrderClient) ListResponder(resp *http.Response) (result OrderList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OrderClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type OrderList ¶
type OrderList struct { autorest.Response `json:"-"` Value *[]OrderResponse `json:"value,omitempty"` // NextLink - Url to get the next page of reservationOrders. NextLink *string `json:"nextLink,omitempty"` }
OrderList ...
type OrderListIterator ¶
type OrderListIterator struct {
// contains filtered or unexported fields
}
OrderListIterator provides access to a complete listing of OrderResponse values.
func NewOrderListIterator ¶
func NewOrderListIterator(page OrderListPage) OrderListIterator
Creates a new instance of the OrderListIterator type.
func (*OrderListIterator) Next ¶
func (iter *OrderListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OrderListIterator) NextWithContext ¶
func (iter *OrderListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (OrderListIterator) NotDone ¶
func (iter OrderListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OrderListIterator) Response ¶
func (iter OrderListIterator) Response() OrderList
Response returns the raw server response from the last page request.
func (OrderListIterator) Value ¶
func (iter OrderListIterator) Value() OrderResponse
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OrderListPage ¶
type OrderListPage struct {
// contains filtered or unexported fields
}
OrderListPage contains a page of OrderResponse values.
func NewOrderListPage ¶
func NewOrderListPage(cur OrderList, getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage
Creates a new instance of the OrderListPage type.
func (*OrderListPage) Next ¶
func (page *OrderListPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OrderListPage) NextWithContext ¶
func (page *OrderListPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (OrderListPage) NotDone ¶
func (page OrderListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OrderListPage) Response ¶
func (page OrderListPage) Response() OrderList
Response returns the raw server response from the last page request.
func (OrderListPage) Values ¶
func (page OrderListPage) Values() []OrderResponse
Values returns the slice of values for the current page or nil if there are no values.
type OrderProperties ¶
type OrderProperties struct { // DisplayName - Friendly name for user to easily identified the reservation. DisplayName *string `json:"displayName,omitempty"` // RequestDateTime - This is the DateTime when the reservation was initially requested for purchase. RequestDateTime *date.Time `json:"requestDateTime,omitempty"` // CreatedDateTime - This is the DateTime when the reservation was created. CreatedDateTime *date.Time `json:"createdDateTime,omitempty"` // ExpiryDate - This is the date when the Reservation will expire. ExpiryDate *date.Date `json:"expiryDate,omitempty"` // OriginalQuantity - Total Quantity of the SKUs purchased in the Reservation. OriginalQuantity *int32 `json:"originalQuantity,omitempty"` // Term - Possible values include: 'P1Y', 'P3Y' Term Term `json:"term,omitempty"` // ProvisioningState - Possible values include: 'ProvisioningState1Creating', 'ProvisioningState1PendingResourceHold', 'ProvisioningState1ConfirmedResourceHold', 'ProvisioningState1PendingBilling', 'ProvisioningState1ConfirmedBilling', 'ProvisioningState1Created', 'ProvisioningState1Succeeded', 'ProvisioningState1Cancelled', 'ProvisioningState1Expired', 'ProvisioningState1BillingFailed', 'ProvisioningState1Failed', 'ProvisioningState1Split', 'ProvisioningState1Merged' ProvisioningState ProvisioningState1 `json:"provisioningState,omitempty"` ReservationsProperty *[]Response `json:"reservations,omitempty"` }
OrderProperties ...
type OrderResponse ¶
type OrderResponse struct { autorest.Response `json:"-"` Etag *int32 `json:"etag,omitempty"` // ID - READ-ONLY; Identifier of the reservation ID *string `json:"id,omitempty"` // Name - READ-ONLY; Name of the reservation Name *string `json:"name,omitempty"` *OrderProperties `json:"properties,omitempty"` // Type - READ-ONLY; Type of resource. "Microsoft.Capacity/reservations" Type *string `json:"type,omitempty"` }
OrderResponse ...
func (OrderResponse) MarshalJSON ¶
func (or OrderResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OrderResponse.
func (*OrderResponse) UnmarshalJSON ¶
func (or *OrderResponse) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for OrderResponse struct.
type Patch ¶
type Patch struct {
*PatchProperties `json:"properties,omitempty"`
}
Patch ...
func (Patch) MarshalJSON ¶
MarshalJSON is the custom marshaler for Patch.
func (*Patch) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Patch struct.
type PatchProperties ¶
type PatchProperties struct { // AppliedScopeType - Possible values include: 'AppliedScopeType1Single', 'AppliedScopeType1Shared' AppliedScopeType AppliedScopeType1 `json:"appliedScopeType,omitempty"` AppliedScopes *[]string `json:"appliedScopes,omitempty"` }
PatchProperties ...
type Properties ¶
type Properties struct { // DisplayName - Friendly name for user to easily identify the reservation DisplayName *string `json:"displayName,omitempty"` AppliedScopes *[]string `json:"appliedScopes,omitempty"` // AppliedScopeType - Possible values include: 'Single', 'Shared' AppliedScopeType AppliedScopeType `json:"appliedScopeType,omitempty"` // Quantity - Quantity of the SKUs that are part of the Reservation. Quantity *int32 `json:"quantity,omitempty"` // ProvisioningState - Possible values include: 'Creating', 'PendingResourceHold', 'ConfirmedResourceHold', 'PendingBilling', 'ConfirmedBilling', 'Created', 'Succeeded', 'Cancelled', 'Expired', 'BillingFailed', 'Failed', 'Split', 'Merged' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // EffectiveDateTime - DateTime of the Reservation starting when this version is effective from. EffectiveDateTime *date.Time `json:"effectiveDateTime,omitempty"` // LastUpdatedDateTime - READ-ONLY; DateTime of the last time the Reservation was updated. LastUpdatedDateTime *date.Time `json:"lastUpdatedDateTime,omitempty"` // ExpiryDate - This is the date when the Reservation will expire. ExpiryDate *date.Date `json:"expiryDate,omitempty"` ExtendedStatusInfo *ExtendedStatusInfo `json:"extendedStatusInfo,omitempty"` SplitProperties *SplitPropertiesType `json:"splitProperties,omitempty"` MergeProperties *MergePropertiesType `json:"mergeProperties,omitempty"` }
Properties ...
func (Properties) MarshalJSON ¶
func (p Properties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Properties.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // BillingFailed ... BillingFailed ProvisioningState = "BillingFailed" // Cancelled ... Cancelled ProvisioningState = "Cancelled" // ConfirmedBilling ... ConfirmedBilling ProvisioningState = "ConfirmedBilling" // ConfirmedResourceHold ... ConfirmedResourceHold ProvisioningState = "ConfirmedResourceHold" // Created ... Created ProvisioningState = "Created" // Creating ... Creating ProvisioningState = "Creating" // Expired ... Expired ProvisioningState = "Expired" // Failed ... Failed ProvisioningState = "Failed" // Merged ... Merged ProvisioningState = "Merged" // PendingBilling ... PendingBilling ProvisioningState = "PendingBilling" // PendingResourceHold ... PendingResourceHold ProvisioningState = "PendingResourceHold" // Split ... Split ProvisioningState = "Split" // Succeeded ... Succeeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type ProvisioningState1 ¶
type ProvisioningState1 string
ProvisioningState1 enumerates the values for provisioning state 1.
const ( // ProvisioningState1BillingFailed ... ProvisioningState1BillingFailed ProvisioningState1 = "BillingFailed" // ProvisioningState1Cancelled ... ProvisioningState1Cancelled ProvisioningState1 = "Cancelled" // ProvisioningState1ConfirmedBilling ... ProvisioningState1ConfirmedBilling ProvisioningState1 = "ConfirmedBilling" // ProvisioningState1ConfirmedResourceHold ... ProvisioningState1ConfirmedResourceHold ProvisioningState1 = "ConfirmedResourceHold" // ProvisioningState1Created ... ProvisioningState1Created ProvisioningState1 = "Created" // ProvisioningState1Creating ... ProvisioningState1Creating ProvisioningState1 = "Creating" // ProvisioningState1Expired ... ProvisioningState1Expired ProvisioningState1 = "Expired" // ProvisioningState1Failed ... ProvisioningState1Failed ProvisioningState1 = "Failed" // ProvisioningState1Merged ... ProvisioningState1Merged ProvisioningState1 = "Merged" // ProvisioningState1PendingBilling ... ProvisioningState1PendingBilling ProvisioningState1 = "PendingBilling" // ProvisioningState1PendingResourceHold ... ProvisioningState1PendingResourceHold ProvisioningState1 = "PendingResourceHold" // ProvisioningState1Split ... ProvisioningState1Split ProvisioningState1 = "Split" // ProvisioningState1Succeeded ... ProvisioningState1Succeeded ProvisioningState1 = "Succeeded" )
func PossibleProvisioningState1Values ¶
func PossibleProvisioningState1Values() []ProvisioningState1
PossibleProvisioningState1Values returns an array of possible values for the ProvisioningState1 const type.
type QuotaClient ¶
type QuotaClient struct {
BaseClient
}
QuotaClient is the client for the Quota methods of the Reservations service.
func NewQuotaClient ¶
func NewQuotaClient() QuotaClient
NewQuotaClient creates an instance of the QuotaClient client.
func NewQuotaClientWithBaseURI ¶
func NewQuotaClientWithBaseURI(baseURI string) QuotaClient
NewQuotaClientWithBaseURI creates an instance of the QuotaClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (QuotaClient) CreateOrUpdate ¶
func (client QuotaClient) CreateOrUpdate(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase) (result QuotaCreateOrUpdateFuture, err error)
CreateOrUpdate create or update the quotas (service limits) of a resource to the requested value. Steps:
1. Make the Get request to get the quota information for specific resource.
2. To increase the quota, update the limit field in the response from Get request to new value.
3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. Parameters: subscriptionID - azure subscription ID. providerID - azure resource provider ID. location - azure region. resourceName - the resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices createQuotaRequest - quota requests payload.
func (QuotaClient) CreateOrUpdatePreparer ¶
func (client QuotaClient) CreateOrUpdatePreparer(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (QuotaClient) CreateOrUpdateResponder ¶
func (client QuotaClient) CreateOrUpdateResponder(resp *http.Response) (result SetObject, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (QuotaClient) CreateOrUpdateSender ¶
func (client QuotaClient) CreateOrUpdateSender(req *http.Request) (future QuotaCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (QuotaClient) Get ¶
func (client QuotaClient) Get(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string) (result CurrentQuotaLimitBase, err error)
Get get the current quotas (service limits) and usage of a resource. You can use the response from the GET operation to submit quota update requests. Parameters: subscriptionID - azure subscription ID. providerID - azure resource provider ID. location - azure region. resourceName - the resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
func (QuotaClient) GetPreparer ¶
func (client QuotaClient) GetPreparer(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (QuotaClient) GetResponder ¶
func (client QuotaClient) GetResponder(resp *http.Response) (result CurrentQuotaLimitBase, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (QuotaClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (QuotaClient) List ¶
func (client QuotaClient) List(ctx context.Context, subscriptionID string, providerID string, location string) (result QuotaLimitsPage, err error)
List gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates. Parameters: subscriptionID - azure subscription ID. providerID - azure resource provider ID. location - azure region.
func (QuotaClient) ListComplete ¶
func (client QuotaClient) ListComplete(ctx context.Context, subscriptionID string, providerID string, location string) (result QuotaLimitsIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (QuotaClient) ListPreparer ¶
func (client QuotaClient) ListPreparer(ctx context.Context, subscriptionID string, providerID string, location string) (*http.Request, error)
ListPreparer prepares the List request.
func (QuotaClient) ListResponder ¶
func (client QuotaClient) ListResponder(resp *http.Response) (result QuotaLimits, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (QuotaClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (QuotaClient) Update ¶
func (client QuotaClient) Update(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase) (result QuotaUpdateFuture, err error)
Update update the quota (service limits) of this resource to the requested value.
• To get the quota information for specific resource, send a GET request.
• To increase the quota, update the limit field from the GET response to a new value.
• To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation. Parameters: subscriptionID - azure subscription ID. providerID - azure resource provider ID. location - azure region. resourceName - the resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices createQuotaRequest - payload for the quota request.
func (QuotaClient) UpdatePreparer ¶
func (client QuotaClient) UpdatePreparer(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (QuotaClient) UpdateResponder ¶
func (client QuotaClient) UpdateResponder(resp *http.Response) (result SetObject, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (QuotaClient) UpdateSender ¶
func (client QuotaClient) UpdateSender(req *http.Request) (future QuotaUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type QuotaCreateOrUpdateFuture ¶
type QuotaCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(QuotaClient) (SetObject, error) }
QuotaCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type QuotaLimits ¶
type QuotaLimits struct { autorest.Response `json:"-"` // Value - List of quotas (service limits). Value *[]CurrentQuotaLimitBase `json:"value,omitempty"` // NextLink - The URI for fetching the next page of quotas (service limits). When no more pages exist, the value is null. NextLink *string `json:"nextLink,omitempty"` }
QuotaLimits quota limits.
func (QuotaLimits) IsEmpty ¶
func (ql QuotaLimits) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type QuotaLimitsIterator ¶
type QuotaLimitsIterator struct {
// contains filtered or unexported fields
}
QuotaLimitsIterator provides access to a complete listing of CurrentQuotaLimitBase values.
func NewQuotaLimitsIterator ¶
func NewQuotaLimitsIterator(page QuotaLimitsPage) QuotaLimitsIterator
Creates a new instance of the QuotaLimitsIterator type.
func (*QuotaLimitsIterator) Next ¶
func (iter *QuotaLimitsIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*QuotaLimitsIterator) NextWithContext ¶
func (iter *QuotaLimitsIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (QuotaLimitsIterator) NotDone ¶
func (iter QuotaLimitsIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (QuotaLimitsIterator) Response ¶
func (iter QuotaLimitsIterator) Response() QuotaLimits
Response returns the raw server response from the last page request.
func (QuotaLimitsIterator) Value ¶
func (iter QuotaLimitsIterator) Value() CurrentQuotaLimitBase
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type QuotaLimitsPage ¶
type QuotaLimitsPage struct {
// contains filtered or unexported fields
}
QuotaLimitsPage contains a page of CurrentQuotaLimitBase values.
func NewQuotaLimitsPage ¶
func NewQuotaLimitsPage(cur QuotaLimits, getNextPage func(context.Context, QuotaLimits) (QuotaLimits, error)) QuotaLimitsPage
Creates a new instance of the QuotaLimitsPage type.
func (*QuotaLimitsPage) Next ¶
func (page *QuotaLimitsPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*QuotaLimitsPage) NextWithContext ¶
func (page *QuotaLimitsPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (QuotaLimitsPage) NotDone ¶
func (page QuotaLimitsPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (QuotaLimitsPage) Response ¶
func (page QuotaLimitsPage) Response() QuotaLimits
Response returns the raw server response from the last page request.
func (QuotaLimitsPage) Values ¶
func (page QuotaLimitsPage) Values() []CurrentQuotaLimitBase
Values returns the slice of values for the current page or nil if there are no values.
type QuotaLimitsResponse ¶
type QuotaLimitsResponse struct { // Value - List of quotas with the quota request status. Value *[]CurrentQuotaLimit `json:"value,omitempty"` // NextLink - The URI for fetching the next page of quota limits. When no more pages exist, the value is null. NextLink *string `json:"nextLink,omitempty"` }
QuotaLimitsResponse quotas (service limits) in the request response.
type QuotaProperties ¶
type QuotaProperties struct { // Limit - Quota properties. Limit *int32 `json:"limit,omitempty"` // CurrentValue - READ-ONLY; Current usage value for the resource. CurrentValue *int32 `json:"currentValue,omitempty"` // Unit - The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation. Unit *string `json:"unit,omitempty"` // Name - Name of the resource provide by the resource provider. Use this property for quotaRequests resource operations. Name *ResourceName `json:"name,omitempty"` // ResourceType - The name of the resource type. ResourceType interface{} `json:"resourceType,omitempty"` // QuotaPeriod - READ-ONLY; The time period over which the quota usage values are summarized. For example, P1D (per one day), PT1M (per one minute), and PT1S (per one second). This parameter is optional because, for some resources such as compute, the time period is irrelevant. QuotaPeriod *string `json:"quotaPeriod,omitempty"` // Properties - Additional properties for the specified resource provider. Properties interface{} `json:"properties,omitempty"` }
QuotaProperties quota properties for the resource.
func (QuotaProperties) MarshalJSON ¶
func (qp QuotaProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for QuotaProperties.
type QuotaRequestDetails ¶
type QuotaRequestDetails struct { autorest.Response `json:"-"` // ID - READ-ONLY; Quota request ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Quota request name. Name *string `json:"name,omitempty"` // QuotaRequestProperties - Quota request details. *QuotaRequestProperties `json:"properties,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` }
QuotaRequestDetails quota request details.
func (QuotaRequestDetails) MarshalJSON ¶
func (qrd QuotaRequestDetails) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for QuotaRequestDetails.
func (*QuotaRequestDetails) UnmarshalJSON ¶
func (qrd *QuotaRequestDetails) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for QuotaRequestDetails struct.
type QuotaRequestDetailsList ¶
type QuotaRequestDetailsList struct { autorest.Response `json:"-"` // Value - The quota requests. Value *[]QuotaRequestDetails `json:"value,omitempty"` // NextLink - The URI to fetch the next page of quota limits. When there are no more pages, this is null. NextLink *string `json:"nextLink,omitempty"` }
QuotaRequestDetailsList quota request details.
func (QuotaRequestDetailsList) IsEmpty ¶
func (qrdl QuotaRequestDetailsList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type QuotaRequestDetailsListIterator ¶
type QuotaRequestDetailsListIterator struct {
// contains filtered or unexported fields
}
QuotaRequestDetailsListIterator provides access to a complete listing of QuotaRequestDetails values.
func NewQuotaRequestDetailsListIterator ¶
func NewQuotaRequestDetailsListIterator(page QuotaRequestDetailsListPage) QuotaRequestDetailsListIterator
Creates a new instance of the QuotaRequestDetailsListIterator type.
func (*QuotaRequestDetailsListIterator) Next ¶
func (iter *QuotaRequestDetailsListIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*QuotaRequestDetailsListIterator) NextWithContext ¶
func (iter *QuotaRequestDetailsListIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (QuotaRequestDetailsListIterator) NotDone ¶
func (iter QuotaRequestDetailsListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (QuotaRequestDetailsListIterator) Response ¶
func (iter QuotaRequestDetailsListIterator) Response() QuotaRequestDetailsList
Response returns the raw server response from the last page request.
func (QuotaRequestDetailsListIterator) Value ¶
func (iter QuotaRequestDetailsListIterator) Value() QuotaRequestDetails
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type QuotaRequestDetailsListPage ¶
type QuotaRequestDetailsListPage struct {
// contains filtered or unexported fields
}
QuotaRequestDetailsListPage contains a page of QuotaRequestDetails values.
func NewQuotaRequestDetailsListPage ¶
func NewQuotaRequestDetailsListPage(cur QuotaRequestDetailsList, getNextPage func(context.Context, QuotaRequestDetailsList) (QuotaRequestDetailsList, error)) QuotaRequestDetailsListPage
Creates a new instance of the QuotaRequestDetailsListPage type.
func (*QuotaRequestDetailsListPage) Next ¶
func (page *QuotaRequestDetailsListPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*QuotaRequestDetailsListPage) NextWithContext ¶
func (page *QuotaRequestDetailsListPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (QuotaRequestDetailsListPage) NotDone ¶
func (page QuotaRequestDetailsListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (QuotaRequestDetailsListPage) Response ¶
func (page QuotaRequestDetailsListPage) Response() QuotaRequestDetailsList
Response returns the raw server response from the last page request.
func (QuotaRequestDetailsListPage) Values ¶
func (page QuotaRequestDetailsListPage) Values() []QuotaRequestDetails
Values returns the slice of values for the current page or nil if there are no values.
type QuotaRequestOneResourceProperties ¶
type QuotaRequestOneResourceProperties struct { // ProvisioningState - READ-ONLY; The quota request status. ProvisioningState interface{} `json:"provisioningState,omitempty"` // Message - READ-ONLY; User friendly status message. Message *string `json:"message,omitempty"` // RequestSubmitTime - READ-ONLY; The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. RequestSubmitTime *date.Time `json:"requestSubmitTime,omitempty"` // CurrentQuotaLimitBase - The quota request addition properties. *CurrentQuotaLimitBase `json:"properties,omitempty"` }
QuotaRequestOneResourceProperties the details of quota request.
func (QuotaRequestOneResourceProperties) MarshalJSON ¶
func (qrorp QuotaRequestOneResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for QuotaRequestOneResourceProperties.
func (*QuotaRequestOneResourceProperties) UnmarshalJSON ¶
func (qrorp *QuotaRequestOneResourceProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for QuotaRequestOneResourceProperties struct.
type QuotaRequestOneResourceSubmitResponse ¶
type QuotaRequestOneResourceSubmitResponse struct { // ID - READ-ONLY; The quota request ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the quota request. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Type of resource. "Microsoft.Capacity/ServiceLimits" Type *string `json:"type,omitempty"` // QuotaRequestOneResourceProperties - The details for quota request. *QuotaRequestOneResourceProperties `json:"properties,omitempty"` }
QuotaRequestOneResourceSubmitResponse response for the quota submission request.
func (QuotaRequestOneResourceSubmitResponse) MarshalJSON ¶
func (qrorsr QuotaRequestOneResourceSubmitResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for QuotaRequestOneResourceSubmitResponse.
func (*QuotaRequestOneResourceSubmitResponse) UnmarshalJSON ¶
func (qrorsr *QuotaRequestOneResourceSubmitResponse) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for QuotaRequestOneResourceSubmitResponse struct.
type QuotaRequestProperties ¶
type QuotaRequestProperties struct { // ProvisioningState - The quota request status. ProvisioningState interface{} `json:"provisioningState,omitempty"` // Message - READ-ONLY; User friendly status message. Message *string `json:"message,omitempty"` // RequestSubmitTime - READ-ONLY; The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. RequestSubmitTime *date.Time `json:"requestSubmitTime,omitempty"` // Value - The quotaRequests. Value *[]SubRequest `json:"value,omitempty"` }
QuotaRequestProperties the details of quota request.
func (QuotaRequestProperties) MarshalJSON ¶
func (qrp QuotaRequestProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for QuotaRequestProperties.
type QuotaRequestStatusClient ¶
type QuotaRequestStatusClient struct {
BaseClient
}
QuotaRequestStatusClient is the client for the QuotaRequestStatus methods of the Reservations service.
func NewQuotaRequestStatusClient ¶
func NewQuotaRequestStatusClient() QuotaRequestStatusClient
NewQuotaRequestStatusClient creates an instance of the QuotaRequestStatusClient client.
func NewQuotaRequestStatusClientWithBaseURI ¶
func NewQuotaRequestStatusClientWithBaseURI(baseURI string) QuotaRequestStatusClient
NewQuotaRequestStatusClientWithBaseURI creates an instance of the QuotaRequestStatusClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (QuotaRequestStatusClient) Get ¶
func (client QuotaRequestStatusClient) Get(ctx context.Context, subscriptionID string, providerID string, location string, ID string) (result QuotaRequestDetails, err error)
Get for the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for service limits returns a response with the requestId parameter. Parameters: subscriptionID - azure subscription ID. providerID - azure resource provider ID. location - azure region. ID - quota Request ID.
func (QuotaRequestStatusClient) GetPreparer ¶
func (client QuotaRequestStatusClient) GetPreparer(ctx context.Context, subscriptionID string, providerID string, location string, ID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (QuotaRequestStatusClient) GetResponder ¶
func (client QuotaRequestStatusClient) GetResponder(resp *http.Response) (result QuotaRequestDetails, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (QuotaRequestStatusClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (QuotaRequestStatusClient) List ¶
func (client QuotaRequestStatusClient) List(ctx context.Context, subscriptionID string, providerID string, location string, filter string, top *int32, skiptoken string) (result QuotaRequestDetailsListPage, err error)
List for the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter. Parameters: subscriptionID - azure subscription ID. providerID - azure resource provider ID. location - azure region. filter - | Field | Supported operators |---------------------|------------------------
|requestSubmitTime | ge, le, eq, gt, lt top - number of records to return. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element includes a skiptoken parameter that specifies a starting point to use for subsequent calls.
func (QuotaRequestStatusClient) ListComplete ¶
func (client QuotaRequestStatusClient) ListComplete(ctx context.Context, subscriptionID string, providerID string, location string, filter string, top *int32, skiptoken string) (result QuotaRequestDetailsListIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (QuotaRequestStatusClient) ListPreparer ¶
func (client QuotaRequestStatusClient) ListPreparer(ctx context.Context, subscriptionID string, providerID string, location string, filter string, top *int32, skiptoken string) (*http.Request, error)
ListPreparer prepares the List request.
func (QuotaRequestStatusClient) ListResponder ¶
func (client QuotaRequestStatusClient) ListResponder(resp *http.Response) (result QuotaRequestDetailsList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (QuotaRequestStatusClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type QuotaRequestStatusDetails ¶
type QuotaRequestStatusDetails struct { // ProvisioningState - READ-ONLY; The details of the quota request status. ProvisioningState interface{} `json:"provisioningState,omitempty"` // Message - READ-ONLY; A user friendly message. Message *string `json:"message,omitempty"` }
QuotaRequestStatusDetails quota request status details.
type QuotaRequestSubmitResponse ¶
type QuotaRequestSubmitResponse struct { // ID - READ-ONLY; The quota request ID. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the quota request. Name *string `json:"name,omitempty"` // Properties - The quota request details. Properties *QuotaRequestProperties `json:"properties,omitempty"` // Type - READ-ONLY; Type of resource. "Microsoft.Capacity/serviceLimits" Type *string `json:"type,omitempty"` }
QuotaRequestSubmitResponse response for the quota submission request.
func (QuotaRequestSubmitResponse) MarshalJSON ¶
func (qrsr QuotaRequestSubmitResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for QuotaRequestSubmitResponse.
type QuotaRequestSubmitResponse201 ¶
type QuotaRequestSubmitResponse201 struct { // ID - READ-ONLY; The quota request ID. Use the requestId parameter to check the request status. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Operation ID Name *string `json:"name,omitempty"` // Type - READ-ONLY; Resource type Type *string `json:"type,omitempty"` // QuotaRequestStatusDetails - Quota request status. *QuotaRequestStatusDetails `json:"properties,omitempty"` }
QuotaRequestSubmitResponse201 response with request ID that the quota request was accepted.
func (QuotaRequestSubmitResponse201) MarshalJSON ¶
func (qrsr2 QuotaRequestSubmitResponse201) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for QuotaRequestSubmitResponse201.
func (*QuotaRequestSubmitResponse201) UnmarshalJSON ¶
func (qrsr2 *QuotaRequestSubmitResponse201) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for QuotaRequestSubmitResponse201 struct.
type QuotaUpdateFuture ¶
type QuotaUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(QuotaClient) (SetObject, error) }
QuotaUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ReservationMergeFuture ¶
type ReservationMergeFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(Client) (ListResponse, error) }
ReservationMergeFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ReservationUpdateFuture ¶
type ReservationUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(Client) (Response, error) }
ReservationUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ResourceName ¶
type ResourceName struct { // Value - Resource name. Value *string `json:"value,omitempty"` // LocalizedValue - READ-ONLY; Resource display localized name. LocalizedValue *string `json:"localizedValue,omitempty"` }
ResourceName resource name provided by the resource provider. Use this property for quotaRequest parameter.
func (ResourceName) MarshalJSON ¶
func (rn ResourceName) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceName.
type Response ¶
type Response struct { autorest.Response `json:"-"` // Location - Possible values include: 'Westus', 'Eastus', 'Eastus2', 'Northcentralus', 'Westus2', 'Southcentralus', 'Centralus', 'Westeurope', 'Northeurope', 'Eastasia', 'Southeastasia', 'Japaneast', 'Japanwest', 'Brazilsouth', 'Australiaeast', 'Australiasoutheast', 'Southindia', 'Westindia', 'Centralindia', 'Canadacentral', 'Canadaeast', 'Uksouth', 'Westcentralus', 'Ukwest' Location Location `json:"location,omitempty"` Etag *int32 `json:"etag,omitempty"` // ID - READ-ONLY; Identifier of the reservation ID *string `json:"id,omitempty"` // Name - READ-ONLY; Name of the reservation Name *string `json:"name,omitempty"` // Kind - Resource Provider type to be reserved. Possible values include: 'MicrosoftCompute' Kind Kind `json:"kind,omitempty"` Sku *SkuName `json:"sku,omitempty"` Properties *Properties `json:"properties,omitempty"` // Type - READ-ONLY; Type of resource. "Microsoft.Capacity/reservationOrders/reservations" Type *string `json:"type,omitempty"` }
Response ...
func (Response) MarshalJSON ¶
MarshalJSON is the custom marshaler for Response.
type ServiceError ¶
type ServiceError struct { // Code - The error code. Code *string `json:"code,omitempty"` // Message - The error message text. Message *string `json:"message,omitempty"` // Details - READ-ONLY; The list of error details. Details *[]ServiceErrorDetail `json:"details,omitempty"` }
ServiceError the API error details.
func (ServiceError) MarshalJSON ¶
func (se ServiceError) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceError.
type ServiceErrorDetail ¶
type ServiceErrorDetail struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` }
ServiceErrorDetail the error details.
type SkuCapability ¶
type SkuCapability struct { // Name - An invariant to describe the feature. Name *string `json:"name,omitempty"` // Value - An invariant if the feature is measured by quantity. Value *string `json:"value,omitempty"` }
SkuCapability ...
type SkuRestriction ¶
type SkuRestriction struct { // Type - The type of restrictions. Type *string `json:"type,omitempty"` // Values - The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. Values *[]string `json:"values,omitempty"` // ReasonCode - The reason for restriction. ReasonCode *string `json:"reasonCode,omitempty"` }
SkuRestriction ...
type SplitFuture ¶
type SplitFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(Client) (ListResponse, error) }
SplitFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type SplitProperties ¶
type SplitProperties struct { // Quantities - List of the quantities in the new reservations to create. Quantities *[]int32 `json:"quantities,omitempty"` // ReservationID - Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} ReservationID *string `json:"reservationId,omitempty"` }
SplitProperties ...
type SplitPropertiesType ¶
type SplitPropertiesType struct { // SplitDestinations - List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} SplitDestinations *[]string `json:"splitDestinations,omitempty"` // SplitSource - Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} SplitSource *string `json:"splitSource,omitempty"` }
SplitPropertiesType ...
type SplitRequest ¶
type SplitRequest struct {
*SplitProperties `json:"properties,omitempty"`
}
SplitRequest ...
func (SplitRequest) MarshalJSON ¶
func (sr SplitRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SplitRequest.
func (*SplitRequest) UnmarshalJSON ¶
func (sr *SplitRequest) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SplitRequest struct.
type StatusCode ¶
type StatusCode string
StatusCode enumerates the values for status code.
const ( // StatusCodeActive ... StatusCodeActive StatusCode = "Active" // StatusCodeExpired ... StatusCodeExpired StatusCode = "Expired" // StatusCodeMerged ... StatusCodeMerged StatusCode = "Merged" // StatusCodeNone ... StatusCodeNone StatusCode = "None" // StatusCodePaymentInstrumentError ... StatusCodePaymentInstrumentError StatusCode = "PaymentInstrumentError" // StatusCodePending ... StatusCodePending StatusCode = "Pending" // StatusCodePurchaseError ... StatusCodePurchaseError StatusCode = "PurchaseError" // StatusCodeSplit ... StatusCodeSplit StatusCode = "Split" // StatusCodeSucceeded ... StatusCodeSucceeded StatusCode = "Succeeded" )
func PossibleStatusCodeValues ¶
func PossibleStatusCodeValues() []StatusCode
PossibleStatusCodeValues returns an array of possible values for the StatusCode const type.
type SubRequest ¶
type SubRequest struct { // Limit - READ-ONLY; Quota (resource limit). Limit *int32 `json:"limit,omitempty"` // Name - The resource name. Name *ResourceName `json:"name,omitempty"` // ResourceType - READ-ONLY; Resource type for which the quota check was made. ResourceType *string `json:"resourceType,omitempty"` // Unit - The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation. Unit *string `json:"unit,omitempty"` // ProvisioningState - The quota request status. ProvisioningState interface{} `json:"provisioningState,omitempty"` // Message - READ-ONLY; User-friendly status message. Message *string `json:"message,omitempty"` // SubRequestID - READ-ONLY; Sub request ID for individual request. SubRequestID *string `json:"subRequestId,omitempty"` }
SubRequest the sub-request submitted with the quota request.
func (SubRequest) MarshalJSON ¶
func (sr SubRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SubRequest.