Versions in this module Expand all Collapse all v1 v1.1.4 Sep 7, 2022 Changes in this version + const DefaultBaseURI + func UserAgent() string + func Version() string + type AppliedReservationList struct + NextLink *string + Value *[]string + type AppliedReservations struct + ID *string + Name *string + Type *string + func (ar *AppliedReservations) UnmarshalJSON(body []byte) error + func (ar AppliedReservations) MarshalJSON() ([]byte, error) + type AppliedReservationsProperties struct + ReservationOrderIds *AppliedReservationList + type AppliedScopeType string + const Shared + const Single + func PossibleAppliedScopeTypeValues() []AppliedScopeType + type AvailableScopeRequest struct + Properties *AvailableScopeRequestProperties + type AvailableScopeRequestProperties struct + Scopes *[]string + type BaseClient struct + BaseURI string + func New() BaseClient + func NewWithBaseURI(baseURI string) 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, reservedResourceType string, ...) (result ListCatalog, err error) + func (client BaseClient) GetCatalogPreparer(ctx context.Context, subscriptionID string, reservedResourceType 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 CalculatePriceResponse struct + Properties *CalculatePriceResponseProperties + type CalculatePriceResponseProperties struct + BillingCurrencyTotal *CalculatePriceResponsePropertiesBillingCurrencyTotal + IsBillingPartnerManaged *bool + PaymentSchedule *[]PaymentDetail + PricingCurrencyTotal *CalculatePriceResponsePropertiesPricingCurrencyTotal + ReservationOrderID *string + SkuDescription *string + SkuTitle *string + type CalculatePriceResponsePropertiesBillingCurrencyTotal struct + Amount *float64 + CurrencyCode *string + type CalculatePriceResponsePropertiesPricingCurrencyTotal struct + Amount *float64 + CurrencyCode *string + type Catalog struct + BillingPlans map[string][]ReservationBillingPlan + Locations *[]string + Name *string + ResourceType *string + Restrictions *[]SkuRestriction + SkuProperties *[]SkuProperty + Terms *[]ReservationTerm + func (c Catalog) MarshalJSON() ([]byte, error) + type Client struct + func NewClient() Client + func NewClientWithBaseURI(baseURI string) Client + func (client Client) Archive(ctx context.Context, reservationOrderID string, reservationID string) (result autorest.Response, err error) + func (client Client) ArchivePreparer(ctx context.Context, reservationOrderID string, reservationID string) (*http.Request, error) + func (client Client) ArchiveResponder(resp *http.Response) (result autorest.Response, err error) + func (client Client) ArchiveSender(req *http.Request) (*http.Response, error) + func (client Client) AvailableScopes(ctx context.Context, reservationOrderID string, reservationID string, ...) (result ReservationAvailableScopesFuture, err error) + func (client Client) AvailableScopesPreparer(ctx context.Context, reservationOrderID string, reservationID string, ...) (*http.Request, error) + func (client Client) AvailableScopesResponder(resp *http.Response) (result Properties, err error) + func (client Client) AvailableScopesSender(req *http.Request) (future ReservationAvailableScopesFuture, err error) + 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) Unarchive(ctx context.Context, reservationOrderID string, reservationID string) (result autorest.Response, err error) + func (client Client) UnarchivePreparer(ctx context.Context, reservationOrderID string, reservationID string) (*http.Request, error) + func (client Client) UnarchiveResponder(resp *http.Response) (result autorest.Response, err error) + func (client Client) UnarchiveSender(req *http.Request) (*http.Response, 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 Error struct + Error *ExtendedErrorInfo + type ErrorResponseCode string + const ActivateQuoteFailed + const AppliedScopesNotAssociatedWithCommerceAccount + const AuthorizationFailed + const BadRequest + const BillingCustomerInputError + const BillingError + const BillingPaymentInstrumentHardError + const BillingPaymentInstrumentSoftError + const BillingScopeIDCannotBeChanged + const BillingTransientError + const CalculatePriceFailed + const CapacityUpdateScopesFailed + const ClientCertificateThumbprintNotSet + const CreateQuoteFailed + const Forbidden + const FulfillmentConfigurationError + const FulfillmentError + const FulfillmentOutOfStockError + const FulfillmentTransientError + const HTTPMethodNotSupported + const InternalServerError + const InvalidAccessToken + const InvalidFulfillmentRequestParameters + const InvalidHealthCheckType + const InvalidLocationID + const InvalidRefundQuantity + const InvalidRequestContent + const InvalidRequestURI + const InvalidReservationID + const InvalidReservationOrderID + const InvalidSingleAppliedScopesCount + const InvalidSubscriptionID + const InvalidTenantID + const MissingAppliedScopesForSingle + const MissingTenantID + const NoValidReservationsToReRate + const NonsupportedAccountID + const NotSpecified + const NotSupportedCountry + const OperationCannotBePerformedInCurrentState + const OperationFailed + const PatchValuesSameAsExisting + const PaymentInstrumentNotFound + const PurchaseError + const ReRateOnlyAllowedForEA + const ReservationIDNotInReservationOrder + const ReservationOrderCreationFailed + const ReservationOrderIDAlreadyExists + const ReservationOrderNotEnabled + const ReservationOrderNotFound + const RiskCheckFailed + const RoleAssignmentCreationFailed + const ServerTimeout + const UnauthenticatedRequestsThrottled + const UnsupportedReservationTerm + func PossibleErrorResponseCodeValues() []ErrorResponseCode + type ExtendedErrorInfo struct + Code ErrorResponseCode + Message *string + type ExtendedStatusInfo struct + Message *string + StatusCode StatusCode + type InstanceFlexibility string + const Off + const On + func PossibleInstanceFlexibilityValues() []InstanceFlexibility + type List struct + NextLink *string + Value *[]Response + func (l List) IsEmpty() bool + type ListCatalog struct + Value *[]Catalog + type ListIterator struct + func NewListIterator(page ListPage) ListIterator + func (iter *ListIterator) Next() error + func (iter *ListIterator) NextWithContext(ctx context.Context) (err error) + func (iter ListIterator) NotDone() bool + func (iter ListIterator) Response() List + func (iter ListIterator) Value() Response + type ListPage struct + func NewListPage(cur List, getNextPage func(context.Context, List) (List, error)) ListPage + func (page *ListPage) Next() error + func (page *ListPage) NextWithContext(ctx context.Context) (err error) + func (page ListPage) NotDone() bool + func (page ListPage) Response() List + func (page ListPage) Values() []Response + type ListResponse struct + Value *[]Response + type MergeProperties struct + Sources *[]string + type MergePropertiesType struct + MergeDestination *string + MergeSources *[]string + type MergeRequest struct + func (mr *MergeRequest) UnmarshalJSON(body []byte) error + func (mr MergeRequest) MarshalJSON() ([]byte, error) + type OperationClient struct + func NewOperationClient() OperationClient + func NewOperationClientWithBaseURI(baseURI string) 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 struct + Description *string + Operation *string + Provider *string + Resource *string + type OperationList struct + NextLink *string + Value *[]OperationResponse + func (ol OperationList) IsEmpty() bool + type OperationListIterator struct + func NewOperationListIterator(page OperationListPage) OperationListIterator + func (iter *OperationListIterator) Next() error + func (iter *OperationListIterator) NextWithContext(ctx context.Context) (err error) + func (iter OperationListIterator) NotDone() bool + func (iter OperationListIterator) Response() OperationList + func (iter OperationListIterator) Value() OperationResponse + type OperationListPage struct + func NewOperationListPage(cur OperationList, ...) OperationListPage + func (page *OperationListPage) Next() error + func (page *OperationListPage) NextWithContext(ctx context.Context) (err error) + func (page OperationListPage) NotDone() bool + func (page OperationListPage) Response() OperationList + func (page OperationListPage) Values() []OperationResponse + type OperationResponse struct + Display *OperationDisplay + Name *string + Origin *string + type OrderBillingPlanInformation struct + NextPaymentDueDate *date.Date + PricingCurrencyTotal *Price + StartDate *date.Date + Transactions *[]PaymentDetail + type OrderClient struct + func NewOrderClient() OrderClient + func NewOrderClientWithBaseURI(baseURI string) OrderClient + func (client OrderClient) Calculate(ctx context.Context, body PurchaseRequest) (result CalculatePriceResponse, err error) + func (client OrderClient) CalculatePreparer(ctx context.Context, body PurchaseRequest) (*http.Request, error) + func (client OrderClient) CalculateResponder(resp *http.Response) (result CalculatePriceResponse, err error) + func (client OrderClient) CalculateSender(req *http.Request) (*http.Response, error) + func (client OrderClient) Get(ctx context.Context, reservationOrderID string, expand string) (result OrderResponse, err error) + func (client OrderClient) GetPreparer(ctx context.Context, reservationOrderID string, expand 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) + func (client OrderClient) Purchase(ctx context.Context, reservationOrderID string, body PurchaseRequest) (result OrderPurchaseFuture, err error) + func (client OrderClient) PurchasePreparer(ctx context.Context, reservationOrderID string, body PurchaseRequest) (*http.Request, error) + func (client OrderClient) PurchaseResponder(resp *http.Response) (result OrderResponse, err error) + func (client OrderClient) PurchaseSender(req *http.Request) (future OrderPurchaseFuture, err error) + type OrderList struct + NextLink *string + Value *[]OrderResponse + func (ol OrderList) IsEmpty() bool + type OrderListIterator struct + func NewOrderListIterator(page OrderListPage) OrderListIterator + func (iter *OrderListIterator) Next() error + func (iter *OrderListIterator) NextWithContext(ctx context.Context) (err error) + func (iter OrderListIterator) NotDone() bool + func (iter OrderListIterator) Response() OrderList + func (iter OrderListIterator) Value() OrderResponse + type OrderListPage struct + func NewOrderListPage(cur OrderList, getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage + func (page *OrderListPage) Next() error + func (page *OrderListPage) NextWithContext(ctx context.Context) (err error) + func (page OrderListPage) NotDone() bool + func (page OrderListPage) Response() OrderList + func (page OrderListPage) Values() []OrderResponse + type OrderProperties struct + BillingPlan ReservationBillingPlan + CreatedDateTime *date.Time + DisplayName *string + ExpiryDate *date.Date + OriginalQuantity *int32 + PlanInformation *OrderBillingPlanInformation + ProvisioningState *string + RequestDateTime *date.Time + ReservationsProperty *[]Response + Term ReservationTerm + type OrderPurchaseFuture struct + Result func(OrderClient) (OrderResponse, error) + func (future *OrderPurchaseFuture) UnmarshalJSON(body []byte) error + type OrderResponse struct + Etag *int32 + ID *string + Name *string + Type *string + func (or *OrderResponse) UnmarshalJSON(body []byte) error + func (or OrderResponse) MarshalJSON() ([]byte, error) + type Patch struct + func (p *Patch) UnmarshalJSON(body []byte) error + func (p Patch) MarshalJSON() ([]byte, error) + type PatchProperties struct + AppliedScopeType AppliedScopeType + AppliedScopes *[]string + InstanceFlexibility InstanceFlexibility + Name *string + Renew *bool + RenewProperties *PatchPropertiesRenewProperties + type PatchPropertiesRenewProperties struct + PurchaseProperties *PurchaseRequest + type PaymentDetail struct + BillingAccount *string + BillingCurrencyTotal *Price + DueDate *date.Date + ExtendedStatusInfo *ExtendedStatusInfo + PaymentDate *date.Date + PricingCurrencyTotal *Price + Status PaymentStatus + type PaymentStatus string + const Cancelled + const Failed + const Scheduled + const Succeeded + func PossiblePaymentStatusValues() []PaymentStatus + type Price struct + Amount *float64 + CurrencyCode *string + type Properties struct + Properties *SubscriptionScopeProperties + type PropertiesType struct + AppliedScopeType AppliedScopeType + AppliedScopes *[]string + BillingPlan ReservationBillingPlan + BillingScopeID *string + DisplayName *string + EffectiveDateTime *date.Time + ExpiryDate *date.Date + ExtendedStatusInfo *ExtendedStatusInfo + InstanceFlexibility InstanceFlexibility + LastUpdatedDateTime *date.Time + MergeProperties *MergePropertiesType + ProvisioningState *string + Quantity *int32 + Renew *bool + RenewDestination *string + RenewProperties *RenewPropertiesResponse + RenewSource *string + ReservedResourceType ReservedResourceType + SkuDescription *string + SplitProperties *SplitPropertiesType + Term ReservationTerm + func (pt PropertiesType) MarshalJSON() ([]byte, error) + type PurchaseRequest struct + Location *string + Sku *SkuName + func (pr *PurchaseRequest) UnmarshalJSON(body []byte) error + func (pr PurchaseRequest) MarshalJSON() ([]byte, error) + type PurchaseRequestProperties struct + AppliedScopeType AppliedScopeType + AppliedScopes *[]string + BillingPlan ReservationBillingPlan + BillingScopeID *string + DisplayName *string + Quantity *int32 + Renew *bool + ReservedResourceProperties *PurchaseRequestPropertiesReservedResourceProperties + ReservedResourceType ReservedResourceType + Term ReservationTerm + type PurchaseRequestPropertiesReservedResourceProperties struct + InstanceFlexibility InstanceFlexibility + type RenewPropertiesResponse struct + BillingCurrencyTotal *RenewPropertiesResponseBillingCurrencyTotal + PricingCurrencyTotal *RenewPropertiesResponsePricingCurrencyTotal + PurchaseProperties *PurchaseRequest + type RenewPropertiesResponseBillingCurrencyTotal struct + Amount *float64 + CurrencyCode *string + type RenewPropertiesResponsePricingCurrencyTotal struct + Amount *float64 + CurrencyCode *string + type ReservationAvailableScopesFuture struct + Result func(Client) (Properties, error) + func (future *ReservationAvailableScopesFuture) UnmarshalJSON(body []byte) error + type ReservationBillingPlan string + const Monthly + const Upfront + func PossibleReservationBillingPlanValues() []ReservationBillingPlan + type ReservationMergeFuture struct + Result func(Client) (ListResponse, error) + func (future *ReservationMergeFuture) UnmarshalJSON(body []byte) error + type ReservationTerm string + const P1Y + const P3Y + func PossibleReservationTermValues() []ReservationTerm + type ReservationUpdateFuture struct + Result func(Client) (Response, error) + func (future *ReservationUpdateFuture) UnmarshalJSON(body []byte) error + type ReservedResourceType string + const AppService + const AzureDataExplorer + const BlockBlob + const CosmosDb + const Databricks + const DedicatedHost + const ManagedDisk + const MariaDb + const MySQL + const PostgreSQL + const RedHat + const RedHatOsa + const RedisCache + const SQLAzureHybridBenefit + const SQLDataWarehouse + const SQLDatabases + const SapHana + const SuseLinux + const VMwareCloudSimple + const VirtualMachines + func PossibleReservedResourceTypeValues() []ReservedResourceType + type Response struct + Etag *int32 + ID *string + Location *string + Name *string + Properties *PropertiesType + Sku *SkuName + Type *string + func (r Response) MarshalJSON() ([]byte, error) + type ScopeProperties struct + Scope *string + Valid *bool + type SkuName struct + Name *string + type SkuProperty struct + Name *string + Value *string + type SkuRestriction struct + ReasonCode *string + Type *string + Values *[]string + type SplitFuture struct + Result func(Client) (ListResponse, error) + func (future *SplitFuture) UnmarshalJSON(body []byte) error + type SplitProperties struct + Quantities *[]int32 + ReservationID *string + type SplitPropertiesType struct + SplitDestinations *[]string + SplitSource *string + type SplitRequest struct + func (sr *SplitRequest) UnmarshalJSON(body []byte) error + func (sr SplitRequest) MarshalJSON() ([]byte, error) + type StatusCode string + const StatusCodeActive + const StatusCodeExpired + const StatusCodeMerged + const StatusCodeNone + const StatusCodePaymentInstrumentError + const StatusCodePending + const StatusCodePurchaseError + const StatusCodeSplit + const StatusCodeSucceeded + func PossibleStatusCodeValues() []StatusCode + type SubscriptionScopeProperties struct + Scopes *[]ScopeProperties