azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/reservations/mgmt/2019-07-19-preview/reservations Index | Files | Directories

package reservations

import "github.com/Azure/azure-sdk-for-go/services/preview/reservations/mgmt/2019-07-19-preview/reservations"

Package reservations implements the Azure ARM Reservations service API version .

Index

Package Files

autoquotaincrease.go client.go enums.go models.go operation.go order.go quota.go quotarequeststatus.go reservation.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Reservations
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type Actions Uses

type Actions struct {
    // EmailActions - The email actions for auto quota increase.
    EmailActions *EmailActions `json:"emailActions,omitempty"`
}

Actions the actions for auto quota increase.

type AppliedReservationList Uses

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 Uses

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 Uses

func (ar AppliedReservations) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AppliedReservations.

func (*AppliedReservations) UnmarshalJSON Uses

func (ar *AppliedReservations) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AppliedReservations struct.

type AppliedReservationsProperties Uses

type AppliedReservationsProperties struct {
    ReservationOrderIds *AppliedReservationList `json:"reservationOrderIds,omitempty"`
}

AppliedReservationsProperties ...

type AppliedScopeType Uses

type AppliedScopeType string

AppliedScopeType enumerates the values for applied scope type.

const (
    // Shared ...
    Shared AppliedScopeType = "Shared"
    // Single ...
    Single AppliedScopeType = "Single"
)

func PossibleAppliedScopeTypeValues Uses

func PossibleAppliedScopeTypeValues() []AppliedScopeType

PossibleAppliedScopeTypeValues returns an array of possible values for the AppliedScopeType const type.

type AqiSettings Uses

type AqiSettings struct {
    // AutoQuotaIncreaseState - If the subscription has enabled automatic quota increase.
    AutoQuotaIncreaseState interface{} `json:"autoQuotaIncreaseState,omitempty"`
}

AqiSettings settings for auto quota increase.

type AutoQuotaIncreaseClient Uses

type AutoQuotaIncreaseClient struct {
    BaseClient
}

AutoQuotaIncreaseClient is the client for the AutoQuotaIncrease methods of the Reservations service.

func NewAutoQuotaIncreaseClient Uses

func NewAutoQuotaIncreaseClient() AutoQuotaIncreaseClient

NewAutoQuotaIncreaseClient creates an instance of the AutoQuotaIncreaseClient client.

func NewAutoQuotaIncreaseClientWithBaseURI Uses

func NewAutoQuotaIncreaseClientWithBaseURI(baseURI string) AutoQuotaIncreaseClient

NewAutoQuotaIncreaseClientWithBaseURI creates an instance of the AutoQuotaIncreaseClient 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 (AutoQuotaIncreaseClient) Create Uses

func (client AutoQuotaIncreaseClient) Create(ctx context.Context, subscriptionID string, autoQuotaIncreaseRequest AutoQuotaIncreaseDetail) (result AutoQuotaIncreaseDetail, err error)

Create sets the Auto Quota Increase enrollment properties for the specified subscription. Parameters: subscriptionID - azure subscription id. autoQuotaIncreaseRequest - auto Quota increase request payload.

func (AutoQuotaIncreaseClient) CreatePreparer Uses

func (client AutoQuotaIncreaseClient) CreatePreparer(ctx context.Context, subscriptionID string, autoQuotaIncreaseRequest AutoQuotaIncreaseDetail) (*http.Request, error)

CreatePreparer prepares the Create request.

func (AutoQuotaIncreaseClient) CreateResponder Uses

func (client AutoQuotaIncreaseClient) CreateResponder(resp *http.Response) (result AutoQuotaIncreaseDetail, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (AutoQuotaIncreaseClient) CreateSender Uses

func (client AutoQuotaIncreaseClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (AutoQuotaIncreaseClient) GetProperties Uses

func (client AutoQuotaIncreaseClient) GetProperties(ctx context.Context, subscriptionID string) (result AutoQuotaIncreaseDetail, err error)

GetProperties gets the Auto Quota Increase enrollment details for the specified subscription. Parameters: subscriptionID - azure subscription id.

func (AutoQuotaIncreaseClient) GetPropertiesPreparer Uses

func (client AutoQuotaIncreaseClient) GetPropertiesPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)

GetPropertiesPreparer prepares the GetProperties request.

func (AutoQuotaIncreaseClient) GetPropertiesResponder Uses

func (client AutoQuotaIncreaseClient) GetPropertiesResponder(resp *http.Response) (result AutoQuotaIncreaseDetail, err error)

GetPropertiesResponder handles the response to the GetProperties request. The method always closes the http.Response Body.

func (AutoQuotaIncreaseClient) GetPropertiesSender Uses

func (client AutoQuotaIncreaseClient) GetPropertiesSender(req *http.Request) (*http.Response, error)

GetPropertiesSender sends the GetProperties request. The method will close the http.Response Body if it receives an error.

type AutoQuotaIncreaseDetail Uses

type AutoQuotaIncreaseDetail struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; The subscription Id.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the auto quota increase.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource
    Type *string `json:"type,omitempty"`
    // AutoQuotaIncreaseSettings - Actions for auto quota increase.
    *AutoQuotaIncreaseSettings `json:"properties,omitempty"`
}

AutoQuotaIncreaseDetail auto Quota Increase settings.

func (AutoQuotaIncreaseDetail) MarshalJSON Uses

func (aqid AutoQuotaIncreaseDetail) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutoQuotaIncreaseDetail.

func (*AutoQuotaIncreaseDetail) UnmarshalJSON Uses

func (aqid *AutoQuotaIncreaseDetail) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AutoQuotaIncreaseDetail struct.

type AutoQuotaIncreaseSettings Uses

type AutoQuotaIncreaseSettings struct {
    // Settings - Settings for automatic quota increase.
    Settings *AqiSettings `json:"settings,omitempty"`
    // OnFailure - The on failure Actions.
    OnFailure *Actions `json:"onFailure,omitempty"`
    // OnSuccess - The on success Actions.
    OnSuccess *Actions `json:"onSuccess,omitempty"`
    // SupportTicketAction - The support ticket action.
    SupportTicketAction *SupportRequestAction `json:"supportTicketAction,omitempty"`
}

AutoQuotaIncreaseSettings actions for auto quota increase.

type AvailableScopeRequest Uses

type AvailableScopeRequest struct {
    Properties *AvailableScopeRequestProperties `json:"properties,omitempty"`
}

AvailableScopeRequest ...

type AvailableScopeRequestProperties Uses

type AvailableScopeRequestProperties struct {
    // Scopes - Scopes to be checked for availability
    Scopes *[]string `json:"scopes,omitempty"`
}

AvailableScopeRequestProperties list of scopes for which availability should be checked

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI string
}

BaseClient is the base client for Reservations.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

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 Uses

func (client BaseClient) GetAppliedReservationList(ctx context.Context, subscriptionID string) (result AppliedReservations, err error)

GetAppliedReservationList get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription. Parameters: subscriptionID - id of the subscription

func (BaseClient) GetAppliedReservationListPreparer Uses

func (client BaseClient) GetAppliedReservationListPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)

GetAppliedReservationListPreparer prepares the GetAppliedReservationList request.

func (BaseClient) GetAppliedReservationListResponder Uses

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 Uses

func (client BaseClient) GetAppliedReservationListSender(req *http.Request) (*http.Response, error)

GetAppliedReservationListSender sends the GetAppliedReservationList request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetCatalog Uses

func (client BaseClient) GetCatalog(ctx context.Context, subscriptionID string, reservedResourceType string, location string) (result ListCatalog, err error)

GetCatalog sends the get catalog request. Parameters: subscriptionID - id of the subscription reservedResourceType - the type of the resource for which the skus should be provided. location - filters the skus based on the location specified in this parameter. This can be an azure region or global

func (BaseClient) GetCatalogPreparer Uses

func (client BaseClient) GetCatalogPreparer(ctx context.Context, subscriptionID string, reservedResourceType string, location string) (*http.Request, error)

GetCatalogPreparer prepares the GetCatalog request.

func (BaseClient) GetCatalogResponder Uses

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 Uses

func (client BaseClient) GetCatalogSender(req *http.Request) (*http.Response, error)

GetCatalogSender sends the GetCatalog request. The method will close the http.Response Body if it receives an error.

type CalculatePriceResponse Uses

type CalculatePriceResponse struct {
    autorest.Response `json:"-"`
    Properties        *CalculatePriceResponseProperties `json:"properties,omitempty"`
}

CalculatePriceResponse ...

type CalculatePriceResponseProperties Uses

type CalculatePriceResponseProperties struct {
    // BillingCurrencyTotal - Currency and amount that customer will be charged in customer's local currency. Tax is not included.
    BillingCurrencyTotal *CalculatePriceResponsePropertiesBillingCurrencyTotal `json:"billingCurrencyTotal,omitempty"`
    // IsBillingPartnerManaged - True if billing is managed by Microsoft Partner. Used only for CSP accounts.
    IsBillingPartnerManaged *bool `json:"isBillingPartnerManaged,omitempty"`
    // ReservationOrderID - GUID that represents reservation order that can be placed after calculating price.
    ReservationOrderID *string `json:"reservationOrderId,omitempty"`
    // SkuTitle - Title of SKU that is being purchased.
    SkuTitle *string `json:"skuTitle,omitempty"`
    // SkuDescription - Description of SKU that is being purchased.
    SkuDescription *string `json:"skuDescription,omitempty"`
    // PricingCurrencyTotal - Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included.
    PricingCurrencyTotal *CalculatePriceResponsePropertiesPricingCurrencyTotal `json:"pricingCurrencyTotal,omitempty"`
    PaymentSchedule      *[]PaymentDetail                                      `json:"paymentSchedule,omitempty"`
}

CalculatePriceResponseProperties ...

type CalculatePriceResponsePropertiesBillingCurrencyTotal Uses

type CalculatePriceResponsePropertiesBillingCurrencyTotal struct {
    CurrencyCode *string  `json:"currencyCode,omitempty"`
    Amount       *float64 `json:"amount,omitempty"`
}

CalculatePriceResponsePropertiesBillingCurrencyTotal currency and amount that customer will be charged in customer's local currency. Tax is not included.

type CalculatePriceResponsePropertiesPricingCurrencyTotal Uses

type CalculatePriceResponsePropertiesPricingCurrencyTotal struct {
    CurrencyCode *string  `json:"currencyCode,omitempty"`
    Amount       *float64 `json:"amount,omitempty"`
}

CalculatePriceResponsePropertiesPricingCurrencyTotal amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included.

type Catalog Uses

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"`
    // BillingPlans - The billing plan options available for this SKU.
    BillingPlans map[string][]ReservationBillingPlan `json:"billingPlans"`
    // Terms - READ-ONLY; Available reservation terms for this resource
    Terms *[]ReservationTerm `json:"terms,omitempty"`
    // Locations - READ-ONLY
    Locations *[]string `json:"locations,omitempty"`
    // SkuProperties - READ-ONLY
    SkuProperties *[]SkuProperty `json:"skuProperties,omitempty"`
    // Restrictions - READ-ONLY
    Restrictions *[]SkuRestriction `json:"restrictions,omitempty"`
}

Catalog ...

func (Catalog) MarshalJSON Uses

func (c Catalog) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Catalog.

type Client Uses

type Client struct {
    BaseClient
}

Client is the client for the Reservation methods of the Reservations service.

func NewClient Uses

func NewClient() Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI Uses

func NewClientWithBaseURI(baseURI string) Client

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) Archive Uses

func (client Client) Archive(ctx context.Context, reservationOrderID string, reservationID string) (result autorest.Response, err error)

Archive archiving a `Reservation` moves it to `Archived` state. Parameters: reservationOrderID - order Id of the reservation reservationID - id of the Reservation Item

func (Client) ArchivePreparer Uses

func (client Client) ArchivePreparer(ctx context.Context, reservationOrderID string, reservationID string) (*http.Request, error)

ArchivePreparer prepares the Archive request.

func (Client) ArchiveResponder Uses

func (client Client) ArchiveResponder(resp *http.Response) (result autorest.Response, err error)

ArchiveResponder handles the response to the Archive request. The method always closes the http.Response Body.

func (Client) ArchiveSender Uses

func (client Client) ArchiveSender(req *http.Request) (*http.Response, error)

ArchiveSender sends the Archive request. The method will close the http.Response Body if it receives an error.

func (Client) AvailableScopes Uses

func (client Client) AvailableScopes(ctx context.Context, reservationOrderID string, reservationID string, body AvailableScopeRequest) (result ReservationAvailableScopesFuture, err error)

AvailableScopes get Available Scopes for `Reservation`. Parameters: reservationOrderID - order Id of the reservation reservationID - id of the Reservation Item body - parameter for listing the available scopes

func (Client) AvailableScopesPreparer Uses

func (client Client) AvailableScopesPreparer(ctx context.Context, reservationOrderID string, reservationID string, body AvailableScopeRequest) (*http.Request, error)

AvailableScopesPreparer prepares the AvailableScopes request.

func (Client) AvailableScopesResponder Uses

func (client Client) AvailableScopesResponder(resp *http.Response) (result Properties, err error)

AvailableScopesResponder handles the response to the AvailableScopes request. The method always closes the http.Response Body.

func (Client) AvailableScopesSender Uses

func (client Client) AvailableScopesSender(req *http.Request) (future ReservationAvailableScopesFuture, err error)

AvailableScopesSender sends the AvailableScopes request. The method will close the http.Response Body if it receives an error.

func (Client) Get Uses

func (client Client) Get(ctx context.Context, reservationID string, reservationOrderID string, expand string) (result Response, err error)

Get get specific `Reservation` details. Parameters: reservationID - id of the Reservation Item reservationOrderID - order Id of the reservation expand - supported value of this query is renewProperties

func (Client) GetPreparer Uses

func (client Client) GetPreparer(ctx context.Context, reservationID string, reservationOrderID string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (Client) GetResponder Uses

func (client Client) GetResponder(resp *http.Response) (result Response, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (Client) GetSender Uses

func (client Client) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (Client) List Uses

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 Uses

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 Uses

func (client Client) ListPreparer(ctx context.Context, reservationOrderID string) (*http.Request, error)

ListPreparer prepares the List request.

func (Client) ListResponder Uses

func (client Client) ListResponder(resp *http.Response) (result List, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (Client) ListRevisions Uses

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 Uses

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 Uses

func (client Client) ListRevisionsPreparer(ctx context.Context, reservationID string, reservationOrderID string) (*http.Request, error)

ListRevisionsPreparer prepares the ListRevisions request.

func (Client) ListRevisionsResponder Uses

func (client Client) ListRevisionsResponder(resp *http.Response) (result List, err error)

ListRevisionsResponder handles the response to the ListRevisions request. The method always closes the http.Response Body.

func (Client) ListRevisionsSender Uses

func (client Client) ListRevisionsSender(req *http.Request) (*http.Response, error)

ListRevisionsSender sends the ListRevisions request. The method will close the http.Response Body if it receives an error.

func (Client) ListSender Uses

func (client Client) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (Client) Merge Uses

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 Uses

func (client Client) MergePreparer(ctx context.Context, reservationOrderID string, body MergeRequest) (*http.Request, error)

MergePreparer prepares the Merge request.

func (Client) MergeResponder Uses

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 Uses

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 Uses

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 Uses

func (client Client) SplitPreparer(ctx context.Context, reservationOrderID string, body SplitRequest) (*http.Request, error)

SplitPreparer prepares the Split request.

func (Client) SplitResponder Uses

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 Uses

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) Unarchive Uses

func (client Client) Unarchive(ctx context.Context, reservationOrderID string, reservationID string) (result autorest.Response, err error)

Unarchive unarchiving a `Reservation` moves it to the state it was before archiving. Parameters: reservationOrderID - order Id of the reservation reservationID - id of the Reservation Item

func (Client) UnarchivePreparer Uses

func (client Client) UnarchivePreparer(ctx context.Context, reservationOrderID string, reservationID string) (*http.Request, error)

UnarchivePreparer prepares the Unarchive request.

func (Client) UnarchiveResponder Uses

func (client Client) UnarchiveResponder(resp *http.Response) (result autorest.Response, err error)

UnarchiveResponder handles the response to the Unarchive request. The method always closes the http.Response Body.

func (Client) UnarchiveSender Uses

func (client Client) UnarchiveSender(req *http.Request) (*http.Response, error)

UnarchiveSender sends the Unarchive request. The method will close the http.Response Body if it receives an error.

func (Client) Update Uses

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 Uses

func (client Client) UpdatePreparer(ctx context.Context, reservationOrderID string, reservationID string, parameters Patch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (Client) UpdateResponder Uses

func (client Client) UpdateResponder(resp *http.Response) (result Response, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (Client) UpdateSender Uses

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 CreateGenericQuotaRequestParameters Uses

type CreateGenericQuotaRequestParameters struct {
    // Value - Quota change requests.
    Value *[]CurrentQuotaLimitBase `json:"value,omitempty"`
}

CreateGenericQuotaRequestParameters quota change requests information.

type CurrentQuotaLimit Uses

type CurrentQuotaLimit struct {
    // CurrentQuotaLimitBase - Quota information detail.
    *CurrentQuotaLimitBase `json:"quotaInformation,omitempty"`
    // QuotaRequestStatusDetails - Addition properties for the quota request status for the resource.
    *QuotaRequestStatusDetails `json:"properties,omitempty"`
}

CurrentQuotaLimit quota limits.

func (CurrentQuotaLimit) MarshalJSON Uses

func (cql CurrentQuotaLimit) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CurrentQuotaLimit.

func (*CurrentQuotaLimit) UnmarshalJSON Uses

func (cql *CurrentQuotaLimit) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CurrentQuotaLimit struct.

type CurrentQuotaLimitBase Uses

type CurrentQuotaLimitBase struct {
    autorest.Response `json:"-"`
    // Properties - Quota properties for the resource.
    Properties *QuotaProperties `json:"properties,omitempty"`
}

CurrentQuotaLimitBase quota limits.

type EmailAction Uses

type EmailAction struct {
    // EmailAddress - The email address for the action.
    EmailAddress *string `json:"emailAddress,omitempty"`
}

EmailAction email Action.

type EmailActions Uses

type EmailActions struct {
    // EmailAddresses - The list of email actions.
    EmailAddresses *[]EmailAction `json:"emailAddresses,omitempty"`
}

EmailActions the email actions.

type Error Uses

type Error struct {
    Error *ExtendedErrorInfo `json:"error,omitempty"`
}

Error ...

type ErrorResponseCode Uses

type ErrorResponseCode string

ErrorResponseCode enumerates the values for error response code.

const (
    // ActivateQuoteFailed ...
    ActivateQuoteFailed ErrorResponseCode = "ActivateQuoteFailed"
    // AppliedScopesNotAssociatedWithCommerceAccount ...
    AppliedScopesNotAssociatedWithCommerceAccount ErrorResponseCode = "AppliedScopesNotAssociatedWithCommerceAccount"
    // AuthorizationFailed ...
    AuthorizationFailed ErrorResponseCode = "AuthorizationFailed"
    // BadRequest ...
    BadRequest ErrorResponseCode = "BadRequest"
    // BillingCustomerInputError ...
    BillingCustomerInputError ErrorResponseCode = "BillingCustomerInputError"
    // BillingError ...
    BillingError ErrorResponseCode = "BillingError"
    // BillingPaymentInstrumentHardError ...
    BillingPaymentInstrumentHardError ErrorResponseCode = "BillingPaymentInstrumentHardError"
    // BillingPaymentInstrumentSoftError ...
    BillingPaymentInstrumentSoftError ErrorResponseCode = "BillingPaymentInstrumentSoftError"
    // BillingScopeIDCannotBeChanged ...
    BillingScopeIDCannotBeChanged ErrorResponseCode = "BillingScopeIdCannotBeChanged"
    // BillingTransientError ...
    BillingTransientError ErrorResponseCode = "BillingTransientError"
    // CalculatePriceFailed ...
    CalculatePriceFailed ErrorResponseCode = "CalculatePriceFailed"
    // CapacityUpdateScopesFailed ...
    CapacityUpdateScopesFailed ErrorResponseCode = "CapacityUpdateScopesFailed"
    // ClientCertificateThumbprintNotSet ...
    ClientCertificateThumbprintNotSet ErrorResponseCode = "ClientCertificateThumbprintNotSet"
    // CreateQuoteFailed ...
    CreateQuoteFailed ErrorResponseCode = "CreateQuoteFailed"
    // Forbidden ...
    Forbidden ErrorResponseCode = "Forbidden"
    // FulfillmentConfigurationError ...
    FulfillmentConfigurationError ErrorResponseCode = "FulfillmentConfigurationError"
    // FulfillmentError ...
    FulfillmentError ErrorResponseCode = "FulfillmentError"
    // FulfillmentOutOfStockError ...
    FulfillmentOutOfStockError ErrorResponseCode = "FulfillmentOutOfStockError"
    // FulfillmentTransientError ...
    FulfillmentTransientError ErrorResponseCode = "FulfillmentTransientError"
    // HTTPMethodNotSupported ...
    HTTPMethodNotSupported ErrorResponseCode = "HttpMethodNotSupported"
    // InternalServerError ...
    InternalServerError ErrorResponseCode = "InternalServerError"
    // InvalidAccessToken ...
    InvalidAccessToken ErrorResponseCode = "InvalidAccessToken"
    // InvalidFulfillmentRequestParameters ...
    InvalidFulfillmentRequestParameters ErrorResponseCode = "InvalidFulfillmentRequestParameters"
    // InvalidHealthCheckType ...
    InvalidHealthCheckType ErrorResponseCode = "InvalidHealthCheckType"
    // InvalidLocationID ...
    InvalidLocationID ErrorResponseCode = "InvalidLocationId"
    // InvalidRefundQuantity ...
    InvalidRefundQuantity ErrorResponseCode = "InvalidRefundQuantity"
    // InvalidRequestContent ...
    InvalidRequestContent ErrorResponseCode = "InvalidRequestContent"
    // InvalidRequestURI ...
    InvalidRequestURI ErrorResponseCode = "InvalidRequestUri"
    // InvalidReservationID ...
    InvalidReservationID ErrorResponseCode = "InvalidReservationId"
    // InvalidReservationOrderID ...
    InvalidReservationOrderID ErrorResponseCode = "InvalidReservationOrderId"
    // InvalidSingleAppliedScopesCount ...
    InvalidSingleAppliedScopesCount ErrorResponseCode = "InvalidSingleAppliedScopesCount"
    // InvalidSubscriptionID ...
    InvalidSubscriptionID ErrorResponseCode = "InvalidSubscriptionId"
    // InvalidTenantID ...
    InvalidTenantID ErrorResponseCode = "InvalidTenantId"
    // MissingAppliedScopesForSingle ...
    MissingAppliedScopesForSingle ErrorResponseCode = "MissingAppliedScopesForSingle"
    // MissingTenantID ...
    MissingTenantID ErrorResponseCode = "MissingTenantId"
    // NonsupportedAccountID ...
    NonsupportedAccountID ErrorResponseCode = "NonsupportedAccountId"
    // NotSpecified ...
    NotSpecified ErrorResponseCode = "NotSpecified"
    // NotSupportedCountry ...
    NotSupportedCountry ErrorResponseCode = "NotSupportedCountry"
    // NoValidReservationsToReRate ...
    NoValidReservationsToReRate ErrorResponseCode = "NoValidReservationsToReRate"
    // OperationCannotBePerformedInCurrentState ...
    OperationCannotBePerformedInCurrentState ErrorResponseCode = "OperationCannotBePerformedInCurrentState"
    // OperationFailed ...
    OperationFailed ErrorResponseCode = "OperationFailed"
    // PatchValuesSameAsExisting ...
    PatchValuesSameAsExisting ErrorResponseCode = "PatchValuesSameAsExisting"
    // PaymentInstrumentNotFound ...
    PaymentInstrumentNotFound ErrorResponseCode = "PaymentInstrumentNotFound"
    // PurchaseError ...
    PurchaseError ErrorResponseCode = "PurchaseError"
    // ReRateOnlyAllowedForEA ...
    ReRateOnlyAllowedForEA ErrorResponseCode = "ReRateOnlyAllowedForEA"
    // ReservationIDNotInReservationOrder ...
    ReservationIDNotInReservationOrder ErrorResponseCode = "ReservationIdNotInReservationOrder"
    // ReservationOrderCreationFailed ...
    ReservationOrderCreationFailed ErrorResponseCode = "ReservationOrderCreationFailed"
    // ReservationOrderIDAlreadyExists ...
    ReservationOrderIDAlreadyExists ErrorResponseCode = "ReservationOrderIdAlreadyExists"
    // ReservationOrderNotEnabled ...
    ReservationOrderNotEnabled ErrorResponseCode = "ReservationOrderNotEnabled"
    // ReservationOrderNotFound ...
    ReservationOrderNotFound ErrorResponseCode = "ReservationOrderNotFound"
    // RiskCheckFailed ...
    RiskCheckFailed ErrorResponseCode = "RiskCheckFailed"
    // RoleAssignmentCreationFailed ...
    RoleAssignmentCreationFailed ErrorResponseCode = "RoleAssignmentCreationFailed"
    // ServerTimeout ...
    ServerTimeout ErrorResponseCode = "ServerTimeout"
    // UnauthenticatedRequestsThrottled ...
    UnauthenticatedRequestsThrottled ErrorResponseCode = "UnauthenticatedRequestsThrottled"
    // UnsupportedReservationTerm ...
    UnsupportedReservationTerm ErrorResponseCode = "UnsupportedReservationTerm"
)

func PossibleErrorResponseCodeValues Uses

func PossibleErrorResponseCodeValues() []ErrorResponseCode

PossibleErrorResponseCodeValues returns an array of possible values for the ErrorResponseCode const type.

type ExceptionResponse Uses

type ExceptionResponse struct {
    // Error - The api error details.
    Error *ServiceError `json:"error,omitempty"`
}

ExceptionResponse the api error.

type ExtendedErrorInfo Uses

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', 'PatchValuesSameAsExisting', '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    ErrorResponseCode `json:"code,omitempty"`
    Message *string           `json:"message,omitempty"`
}

ExtendedErrorInfo ...

type ExtendedStatusInfo Uses

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 InstanceFlexibility Uses

type InstanceFlexibility string

InstanceFlexibility enumerates the values for instance flexibility.

const (
    // Off ...
    Off InstanceFlexibility = "Off"
    // On ...
    On  InstanceFlexibility = "On"
)

func PossibleInstanceFlexibilityValues Uses

func PossibleInstanceFlexibilityValues() []InstanceFlexibility

PossibleInstanceFlexibilityValues returns an array of possible values for the InstanceFlexibility const type.

type List Uses

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 ...

func (List) IsEmpty Uses

func (l List) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListCatalog Uses

type ListCatalog struct {
    autorest.Response `json:"-"`
    Value             *[]Catalog `json:"value,omitempty"`
}

ListCatalog ...

type ListIterator Uses

type ListIterator struct {
    // contains filtered or unexported fields
}

ListIterator provides access to a complete listing of Response values.

func NewListIterator Uses

func NewListIterator(page ListPage) ListIterator

Creates a new instance of the ListIterator type.

func (*ListIterator) Next Uses

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 Uses

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 Uses

func (iter ListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ListIterator) Response Uses

func (iter ListIterator) Response() List

Response returns the raw server response from the last page request.

func (ListIterator) Value Uses

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 Uses

type ListPage struct {
    // contains filtered or unexported fields
}

ListPage contains a page of Response values.

func NewListPage Uses

func NewListPage(cur List, getNextPage func(context.Context, List) (List, error)) ListPage

Creates a new instance of the ListPage type.

func (*ListPage) Next Uses

func (page *ListPage) 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 (*ListPage) NextWithContext Uses

func (page *ListPage) 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 (ListPage) NotDone Uses

func (page ListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ListPage) Response Uses

func (page ListPage) Response() List

Response returns the raw server response from the last page request.

func (ListPage) Values Uses

func (page ListPage) Values() []Response

Values returns the slice of values for the current page or nil if there are no values.

type ListResponse Uses

type ListResponse struct {
    autorest.Response `json:"-"`
    Value             *[]Response `json:"value,omitempty"`
}

ListResponse ...

type MergeProperties Uses

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 Uses

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 Uses

type MergeRequest struct {
    *MergeProperties `json:"properties,omitempty"`
}

MergeRequest ...

func (MergeRequest) MarshalJSON Uses

func (mr MergeRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MergeRequest.

func (*MergeRequest) UnmarshalJSON Uses

func (mr *MergeRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MergeRequest struct.

type OperationClient Uses

type OperationClient struct {
    BaseClient
}

OperationClient is the client for the Operation methods of the Reservations service.

func NewOperationClient Uses

func NewOperationClient() OperationClient

NewOperationClient creates an instance of the OperationClient client.

func NewOperationClientWithBaseURI Uses

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 Uses

func (client OperationClient) List(ctx context.Context) (result OperationListPage, err error)

List list all the operations.

func (OperationClient) ListComplete Uses

func (client OperationClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationClient) ListPreparer Uses

func (client OperationClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationClient) ListResponder Uses

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 Uses

func (client OperationClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type OperationDisplay Uses

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 Uses

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 Uses

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator Uses

type OperationListIterator struct {
    // contains filtered or unexported fields
}

OperationListIterator provides access to a complete listing of OperationResponse values.

func NewOperationListIterator Uses

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListIterator) Response Uses

func (iter OperationListIterator) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListIterator) Value Uses

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 Uses

type OperationListPage struct {
    // contains filtered or unexported fields
}

OperationListPage contains a page of OperationResponse values.

func NewOperationListPage Uses

func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next Uses

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 Uses

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 Uses

func (page OperationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListPage) Response Uses

func (page OperationListPage) Response() OperationList

Response returns the raw server response from the last page request.

func (OperationListPage) Values Uses

func (page OperationListPage) Values() []OperationResponse

Values returns the slice of values for the current page or nil if there are no values.

type OperationResponse Uses

type OperationResponse struct {
    Name    *string           `json:"name,omitempty"`
    Display *OperationDisplay `json:"display,omitempty"`
    Origin  *string           `json:"origin,omitempty"`
}

OperationResponse ...

type OrderBillingPlanInformation Uses

type OrderBillingPlanInformation struct {
    // PricingCurrencyTotal - Amount of money to be paid for the Order. Tax is not included.
    PricingCurrencyTotal *Price `json:"pricingCurrencyTotal,omitempty"`
    // StartDate - Date when the billing plan has started.
    StartDate *date.Date `json:"startDate,omitempty"`
    // NextPaymentDueDate - For recurring billing plans, indicates the date when next payment will be processed. Null when total is paid off.
    NextPaymentDueDate *date.Date       `json:"nextPaymentDueDate,omitempty"`
    Transactions       *[]PaymentDetail `json:"transactions,omitempty"`
}

OrderBillingPlanInformation information describing the type of billing plan for this reservation.

type OrderClient Uses

type OrderClient struct {
    BaseClient
}

OrderClient is the client for the Order methods of the Reservations service.

func NewOrderClient Uses

func NewOrderClient() OrderClient

NewOrderClient creates an instance of the OrderClient client.

func NewOrderClientWithBaseURI Uses

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) Calculate Uses

func (client OrderClient) Calculate(ctx context.Context, body PurchaseRequest) (result CalculatePriceResponse, err error)

Calculate calculate price for placing a `ReservationOrder`. Parameters: body - information needed for calculate or purchase reservation

func (OrderClient) CalculatePreparer Uses

func (client OrderClient) CalculatePreparer(ctx context.Context, body PurchaseRequest) (*http.Request, error)

CalculatePreparer prepares the Calculate request.

func (OrderClient) CalculateResponder Uses

func (client OrderClient) CalculateResponder(resp *http.Response) (result CalculatePriceResponse, err error)

CalculateResponder handles the response to the Calculate request. The method always closes the http.Response Body.

func (OrderClient) CalculateSender Uses

func (client OrderClient) CalculateSender(req *http.Request) (*http.Response, error)

CalculateSender sends the Calculate request. The method will close the http.Response Body if it receives an error.

func (OrderClient) Get Uses

func (client OrderClient) Get(ctx context.Context, reservationOrderID string, expand string) (result OrderResponse, err error)

Get get the details of the `ReservationOrder`. Parameters: reservationOrderID - order Id of the reservation expand - may be used to expand the planInformation.

func (OrderClient) GetPreparer Uses

func (client OrderClient) GetPreparer(ctx context.Context, reservationOrderID string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OrderClient) GetResponder Uses

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 Uses

func (client OrderClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (OrderClient) List Uses

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 Uses

func (client OrderClient) ListComplete(ctx context.Context) (result OrderListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OrderClient) ListPreparer Uses

func (client OrderClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OrderClient) ListResponder Uses

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 Uses

func (client OrderClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (OrderClient) Purchase Uses

func (client OrderClient) Purchase(ctx context.Context, reservationOrderID string, body PurchaseRequest) (result OrderPurchaseFuture, err error)

Purchase purchase `ReservationOrder` and create resource under the specified URI. Parameters: reservationOrderID - order Id of the reservation body - information needed for calculate or purchase reservation

func (OrderClient) PurchasePreparer Uses

func (client OrderClient) PurchasePreparer(ctx context.Context, reservationOrderID string, body PurchaseRequest) (*http.Request, error)

PurchasePreparer prepares the Purchase request.

func (OrderClient) PurchaseResponder Uses

func (client OrderClient) PurchaseResponder(resp *http.Response) (result OrderResponse, err error)

PurchaseResponder handles the response to the Purchase request. The method always closes the http.Response Body.

func (OrderClient) PurchaseSender Uses

func (client OrderClient) PurchaseSender(req *http.Request) (future OrderPurchaseFuture, err error)

PurchaseSender sends the Purchase request. The method will close the http.Response Body if it receives an error.

type OrderList Uses

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 ...

func (OrderList) IsEmpty Uses

func (ol OrderList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OrderListIterator Uses

type OrderListIterator struct {
    // contains filtered or unexported fields
}

OrderListIterator provides access to a complete listing of OrderResponse values.

func NewOrderListIterator Uses

func NewOrderListIterator(page OrderListPage) OrderListIterator

Creates a new instance of the OrderListIterator type.

func (*OrderListIterator) Next Uses

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 Uses

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 Uses

func (iter OrderListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OrderListIterator) Response Uses

func (iter OrderListIterator) Response() OrderList

Response returns the raw server response from the last page request.

func (OrderListIterator) Value Uses

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 Uses

type OrderListPage struct {
    // contains filtered or unexported fields
}

OrderListPage contains a page of OrderResponse values.

func NewOrderListPage Uses

func NewOrderListPage(cur OrderList, getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage

Creates a new instance of the OrderListPage type.

func (*OrderListPage) Next Uses

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 Uses

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 Uses

func (page OrderListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OrderListPage) Response Uses

func (page OrderListPage) Response() OrderList

Response returns the raw server response from the last page request.

func (OrderListPage) Values Uses

func (page OrderListPage) Values() []OrderResponse

Values returns the slice of values for the current page or nil if there are no values.

type OrderProperties Uses

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 *int32     `json:"originalQuantity,omitempty"`
    // Term - Possible values include: 'P1Y', 'P3Y'
    Term ReservationTerm `json:"term,omitempty"`
    // ProvisioningState - Current state of the reservation.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // BillingPlan - Possible values include: 'Upfront', 'Monthly'
    BillingPlan          ReservationBillingPlan       `json:"billingPlan,omitempty"`
    PlanInformation      *OrderBillingPlanInformation `json:"planInformation,omitempty"`
    ReservationsProperty *[]Response                  `json:"reservations,omitempty"`
}

OrderProperties ...

type OrderPurchaseFuture Uses

type OrderPurchaseFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(OrderClient) (OrderResponse, error)
}

OrderPurchaseFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type OrderResponse Uses

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 Uses

func (or OrderResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OrderResponse.

func (*OrderResponse) UnmarshalJSON Uses

func (or *OrderResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for OrderResponse struct.

type Patch Uses

type Patch struct {
    *PatchProperties `json:"properties,omitempty"`
}

Patch ...

func (Patch) MarshalJSON Uses

func (p Patch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Patch.

func (*Patch) UnmarshalJSON Uses

func (p *Patch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Patch struct.

type PatchProperties Uses

type PatchProperties struct {
    // AppliedScopeType - Possible values include: 'Single', 'Shared'
    AppliedScopeType AppliedScopeType `json:"appliedScopeType,omitempty"`
    AppliedScopes    *[]string        `json:"appliedScopes,omitempty"`
    // InstanceFlexibility - Possible values include: 'On', 'Off'
    InstanceFlexibility InstanceFlexibility `json:"instanceFlexibility,omitempty"`
    // Name - Name of the Reservation
    Name            *string                         `json:"name,omitempty"`
    Renew           *bool                           `json:"renew,omitempty"`
    RenewProperties *PatchPropertiesRenewProperties `json:"renewProperties,omitempty"`
}

PatchProperties ...

type PatchPropertiesRenewProperties Uses

type PatchPropertiesRenewProperties struct {
    PurchaseProperties *PurchaseRequest `json:"purchaseProperties,omitempty"`
}

PatchPropertiesRenewProperties ...

type PaymentDetail Uses

type PaymentDetail struct {
    // DueDate - Date when the payment needs to be done.
    DueDate *date.Date `json:"dueDate,omitempty"`
    // PaymentDate - Date when the transaction is completed. Is null when it is scheduled.
    PaymentDate *date.Date `json:"paymentDate,omitempty"`
    // PricingCurrencyTotal - Amount in pricing currency. Tax not included.
    PricingCurrencyTotal *Price `json:"pricingCurrencyTotal,omitempty"`
    // BillingCurrencyTotal - Amount charged in Billing currency. Tax not included. Is null for future payments
    BillingCurrencyTotal *Price `json:"billingCurrencyTotal,omitempty"`
    // BillingAccount - Shows the Account that is charged for this payment.
    BillingAccount *string `json:"billingAccount,omitempty"`
    // Status - Possible values include: 'Succeeded', 'Failed', 'Scheduled', 'Cancelled'
    Status             PaymentStatus       `json:"status,omitempty"`
    ExtendedStatusInfo *ExtendedStatusInfo `json:"extendedStatusInfo,omitempty"`
}

PaymentDetail information about payment related to a reservation order.

type PaymentStatus Uses

type PaymentStatus string

PaymentStatus enumerates the values for payment status.

const (
    // Cancelled ...
    Cancelled PaymentStatus = "Cancelled"
    // Failed ...
    Failed PaymentStatus = "Failed"
    // Scheduled ...
    Scheduled PaymentStatus = "Scheduled"
    // Succeeded ...
    Succeeded PaymentStatus = "Succeeded"
)

func PossiblePaymentStatusValues Uses

func PossiblePaymentStatusValues() []PaymentStatus

PossiblePaymentStatusValues returns an array of possible values for the PaymentStatus const type.

type PhoneAction Uses

type PhoneAction struct {
    // PhoneNumber - The phone number for the action.
    PhoneNumber *string `json:"phoneNumber,omitempty"`
    // PreferredChannel - The preferred communication channel.
    PreferredChannel interface{} `json:"preferredChannel,omitempty"`
}

PhoneAction phone Action.

type Price Uses

type Price struct {
    // CurrencyCode - The ISO 4217 3-letter currency code for the currency used by this purchase record.
    CurrencyCode *string  `json:"currencyCode,omitempty"`
    Amount       *float64 `json:"amount,omitempty"`
}

Price ...

type Properties Uses

type Properties struct {
    autorest.Response `json:"-"`
    Properties        *SubscriptionScopeProperties `json:"properties,omitempty"`
}

Properties ...

type PropertiesType Uses

type PropertiesType struct {
    // ReservedResourceType - Possible values include: 'VirtualMachines', 'SQLDatabases', 'SuseLinux', 'CosmosDb', 'RedHat', 'SQLDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa', 'Databricks', 'AppService', 'ManagedDisk', 'BlockBlob', 'RedisCache', 'AzureDataExplorer', 'MySQL', 'MariaDb', 'PostgreSQL', 'DedicatedHost', 'SapHana', 'SQLAzureHybridBenefit'
    ReservedResourceType ReservedResourceType `json:"reservedResourceType,omitempty"`
    // InstanceFlexibility - Possible values include: 'On', 'Off'
    InstanceFlexibility InstanceFlexibility `json:"instanceFlexibility,omitempty"`
    // 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         *int32           `json:"quantity,omitempty"`
    // ProvisioningState - Current state of the reservation.
    ProvisioningState *string `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"`
    // SkuDescription - Description of the SKU in english.
    SkuDescription     *string             `json:"skuDescription,omitempty"`
    ExtendedStatusInfo *ExtendedStatusInfo `json:"extendedStatusInfo,omitempty"`
    // BillingPlan - Possible values include: 'Upfront', 'Monthly'
    BillingPlan     ReservationBillingPlan `json:"billingPlan,omitempty"`
    SplitProperties *SplitPropertiesType   `json:"splitProperties,omitempty"`
    MergeProperties *MergePropertiesType   `json:"mergeProperties,omitempty"`
    BillingScopeID  *string                `json:"billingScopeId,omitempty"`
    Renew           *bool                  `json:"renew,omitempty"`
    // RenewSource - Reservation Id of the reservation from which this reservation is renewed. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
    RenewSource *string `json:"renewSource,omitempty"`
    // RenewDestination - Reservation Id of the reservation which is purchased because of renew. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
    RenewDestination *string                  `json:"renewDestination,omitempty"`
    RenewProperties  *RenewPropertiesResponse `json:"renewProperties,omitempty"`
    // Term - Possible values include: 'P1Y', 'P3Y'
    Term ReservationTerm `json:"term,omitempty"`
}

PropertiesType ...

func (PropertiesType) MarshalJSON Uses

func (pt PropertiesType) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PropertiesType.

type PurchaseRequest Uses

type PurchaseRequest struct {
    Sku *SkuName `json:"sku,omitempty"`
    // Location - The Azure Region where the reserved resource lives.
    Location                   *string `json:"location,omitempty"`
    *PurchaseRequestProperties `json:"properties,omitempty"`
}

PurchaseRequest ...

func (PurchaseRequest) MarshalJSON Uses

func (pr PurchaseRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PurchaseRequest.

func (*PurchaseRequest) UnmarshalJSON Uses

func (pr *PurchaseRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PurchaseRequest struct.

type PurchaseRequestProperties Uses

type PurchaseRequestProperties struct {
    // ReservedResourceType - Possible values include: 'VirtualMachines', 'SQLDatabases', 'SuseLinux', 'CosmosDb', 'RedHat', 'SQLDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa', 'Databricks', 'AppService', 'ManagedDisk', 'BlockBlob', 'RedisCache', 'AzureDataExplorer', 'MySQL', 'MariaDb', 'PostgreSQL', 'DedicatedHost', 'SapHana', 'SQLAzureHybridBenefit'
    ReservedResourceType ReservedResourceType `json:"reservedResourceType,omitempty"`
    BillingScopeID       *string              `json:"billingScopeId,omitempty"`
    // Term - Possible values include: 'P1Y', 'P3Y'
    Term ReservationTerm `json:"term,omitempty"`
    // BillingPlan - Possible values include: 'Upfront', 'Monthly'
    BillingPlan ReservationBillingPlan `json:"billingPlan,omitempty"`
    Quantity    *int32                 `json:"quantity,omitempty"`
    // DisplayName - Friendly name of the Reservation
    DisplayName *string `json:"displayName,omitempty"`
    // AppliedScopeType - Possible values include: 'Single', 'Shared'
    AppliedScopeType AppliedScopeType `json:"appliedScopeType,omitempty"`
    AppliedScopes    *[]string        `json:"appliedScopes,omitempty"`
    Renew            *bool            `json:"renew,omitempty"`
    // ReservedResourceProperties - Properties specific to each reserved resource type. Not required if not applicable.
    ReservedResourceProperties *PurchaseRequestPropertiesReservedResourceProperties `json:"reservedResourceProperties,omitempty"`
}

PurchaseRequestProperties ...

type PurchaseRequestPropertiesReservedResourceProperties Uses

type PurchaseRequestPropertiesReservedResourceProperties struct {
    // InstanceFlexibility - Possible values include: 'On', 'Off'
    InstanceFlexibility InstanceFlexibility `json:"instanceFlexibility,omitempty"`
}

PurchaseRequestPropertiesReservedResourceProperties properties specific to each reserved resource type. Not required if not applicable.

type QuotaClient Uses

type QuotaClient struct {
    BaseClient
}

QuotaClient is the client for the Quota methods of the Reservations service.

func NewQuotaClient Uses

func NewQuotaClient() QuotaClient

NewQuotaClient creates an instance of the QuotaClient client.

func NewQuotaClientWithBaseURI Uses

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 Uses

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 service limits (quota) of a resource to 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 Uses

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 Uses

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 Uses

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 Uses

func (client QuotaClient) Get(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string) (result CurrentQuotaLimitBase, err error)

Get gets the current service limits (quotas) and usage of a resource. The response from Get API can be leveraged 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 Uses

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 Uses

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 Uses

func (client QuotaClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (QuotaClient) List Uses

func (client QuotaClient) List(ctx context.Context, subscriptionID string, providerID string, location string) (result QuotaLimitsPage, err error)

List get a list of current service limits (quota) and usages of all the resources. The response from List API can be leveraged to submit quota update requests. Parameters: subscriptionID - azure subscription id. providerID - azure resource provider id. location - azure region.

func (QuotaClient) ListComplete Uses

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 Uses

func (client QuotaClient) ListPreparer(ctx context.Context, subscriptionID string, providerID string, location string) (*http.Request, error)

ListPreparer prepares the List request.

func (QuotaClient) ListResponder Uses

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 Uses

func (client QuotaClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (QuotaClient) Update Uses

func (client QuotaClient) Update(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase) (result QuotaUpdateFuture, err error)

Update update the service limits (quota) of a resource to 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 Update quota request may be constructed as follows. The PATCH 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) UpdatePreparer Uses

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 Uses

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 Uses

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 Uses

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 Uses

type QuotaLimits struct {
    autorest.Response `json:"-"`
    // Value - List of Quota limits.
    Value *[]CurrentQuotaLimitBase `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"`
}

QuotaLimits quota limits.

func (QuotaLimits) IsEmpty Uses

func (ql QuotaLimits) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type QuotaLimitsIterator Uses

type QuotaLimitsIterator struct {
    // contains filtered or unexported fields
}

QuotaLimitsIterator provides access to a complete listing of CurrentQuotaLimitBase values.

func NewQuotaLimitsIterator Uses

func NewQuotaLimitsIterator(page QuotaLimitsPage) QuotaLimitsIterator

Creates a new instance of the QuotaLimitsIterator type.

func (*QuotaLimitsIterator) Next Uses

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 Uses

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 Uses

func (iter QuotaLimitsIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (QuotaLimitsIterator) Response Uses

func (iter QuotaLimitsIterator) Response() QuotaLimits

Response returns the raw server response from the last page request.

func (QuotaLimitsIterator) Value Uses

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 Uses

type QuotaLimitsPage struct {
    // contains filtered or unexported fields
}

QuotaLimitsPage contains a page of CurrentQuotaLimitBase values.

func NewQuotaLimitsPage Uses

func NewQuotaLimitsPage(cur QuotaLimits, getNextPage func(context.Context, QuotaLimits) (QuotaLimits, error)) QuotaLimitsPage

Creates a new instance of the QuotaLimitsPage type.

func (*QuotaLimitsPage) Next Uses

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 Uses

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 Uses

func (page QuotaLimitsPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (QuotaLimitsPage) Response Uses

func (page QuotaLimitsPage) Response() QuotaLimits

Response returns the raw server response from the last page request.

func (QuotaLimitsPage) Values Uses

func (page QuotaLimitsPage) Values() []CurrentQuotaLimitBase

Values returns the slice of values for the current page or nil if there are no values.

type QuotaLimitsResponse Uses

type QuotaLimitsResponse struct {
    // Value - List of Quota limits with the quota request status.
    Value *[]CurrentQuotaLimit `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"`
}

QuotaLimitsResponse quota limits request response.

type QuotaProperties Uses

type QuotaProperties struct {
    // Limit - The quota limit.
    Limit *int32 `json:"limit,omitempty"`
    // CurrentValue - READ-ONLY; The current resource usages information.
    CurrentValue *int32 `json:"currentValue,omitempty"`
    // Unit -  The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.
    Unit *string `json:"unit,omitempty"`
    // Name - Name of the resource provide by the resource Provider. Please use this name property for quotaRequests.
    Name *ResourceName `json:"name,omitempty"`
    // ResourceType - The Resource Type Name.
    ResourceType interface{} `json:"resourceType,omitempty"`
    // QuotaPeriod - READ-ONLY; The quota period over which the usage values are summarized, such as - P1D (Per one day), PT1M (Per one minute), PT1S (Per one second). This parameter is optional because, for some resources like compute, the period doesn’t matter.
    QuotaPeriod *string `json:"quotaPeriod,omitempty"`
    // Properties - Additional properties for the specific resource provider.
    Properties interface{} `json:"properties,omitempty"`
}

QuotaProperties quota properties for the resource.

func (QuotaProperties) MarshalJSON Uses

func (qp QuotaProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QuotaProperties.

type QuotaRequestDetails Uses

type QuotaRequestDetails struct {
    autorest.Response `json:"-"`
    // 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"`
    // QuotaRequestProperties - The quota request details.
    *QuotaRequestProperties `json:"properties,omitempty"`
    // Type - READ-ONLY; Type of resource. "Microsoft.Capacity/ServiceLimits"
    Type *string `json:"type,omitempty"`
}

QuotaRequestDetails the details of the quota Request.

func (QuotaRequestDetails) MarshalJSON Uses

func (qrd QuotaRequestDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QuotaRequestDetails.

func (*QuotaRequestDetails) UnmarshalJSON Uses

func (qrd *QuotaRequestDetails) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for QuotaRequestDetails struct.

type QuotaRequestDetailsList Uses

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 requests information.

func (QuotaRequestDetailsList) IsEmpty Uses

func (qrdl QuotaRequestDetailsList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type QuotaRequestDetailsListIterator Uses

type QuotaRequestDetailsListIterator struct {
    // contains filtered or unexported fields
}

QuotaRequestDetailsListIterator provides access to a complete listing of QuotaRequestDetails values.

func NewQuotaRequestDetailsListIterator Uses

func NewQuotaRequestDetailsListIterator(page QuotaRequestDetailsListPage) QuotaRequestDetailsListIterator

Creates a new instance of the QuotaRequestDetailsListIterator type.

func (*QuotaRequestDetailsListIterator) Next Uses

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 Uses

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 Uses

func (iter QuotaRequestDetailsListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (QuotaRequestDetailsListIterator) Response Uses

func (iter QuotaRequestDetailsListIterator) Response() QuotaRequestDetailsList

Response returns the raw server response from the last page request.

func (QuotaRequestDetailsListIterator) Value Uses

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 Uses

type QuotaRequestDetailsListPage struct {
    // contains filtered or unexported fields
}

QuotaRequestDetailsListPage contains a page of QuotaRequestDetails values.

func NewQuotaRequestDetailsListPage Uses

func NewQuotaRequestDetailsListPage(cur QuotaRequestDetailsList, getNextPage func(context.Context, QuotaRequestDetailsList) (QuotaRequestDetailsList, error)) QuotaRequestDetailsListPage

Creates a new instance of the QuotaRequestDetailsListPage type.

func (*QuotaRequestDetailsListPage) Next Uses

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 Uses

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 Uses

func (page QuotaRequestDetailsListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (QuotaRequestDetailsListPage) Response Uses

func (page QuotaRequestDetailsListPage) Response() QuotaRequestDetailsList

Response returns the raw server response from the last page request.

func (QuotaRequestDetailsListPage) Values Uses

func (page QuotaRequestDetailsListPage) Values() []QuotaRequestDetails

Values returns the slice of values for the current page or nil if there are no values.

type QuotaRequestOneResourceProperties Uses

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 quota request submit time. The date conforms to the following 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 Uses

func (qrorp QuotaRequestOneResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QuotaRequestOneResourceProperties.

func (*QuotaRequestOneResourceProperties) UnmarshalJSON Uses

func (qrorp *QuotaRequestOneResourceProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for QuotaRequestOneResourceProperties struct.

type QuotaRequestOneResourceSubmitResponse Uses

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 quota request details.
    *QuotaRequestOneResourceProperties `json:"properties,omitempty"`
}

QuotaRequestOneResourceSubmitResponse quota submit request response

func (QuotaRequestOneResourceSubmitResponse) MarshalJSON Uses

func (qrorsr QuotaRequestOneResourceSubmitResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QuotaRequestOneResourceSubmitResponse.

func (*QuotaRequestOneResourceSubmitResponse) UnmarshalJSON Uses

func (qrorsr *QuotaRequestOneResourceSubmitResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for QuotaRequestOneResourceSubmitResponse struct.

type QuotaRequestProperties Uses

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 quota request submit time. The date conforms to the following 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 Uses

func (qrp QuotaRequestProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QuotaRequestProperties.

type QuotaRequestStatusClient Uses

type QuotaRequestStatusClient struct {
    BaseClient
}

QuotaRequestStatusClient is the client for the QuotaRequestStatus methods of the Reservations service.

func NewQuotaRequestStatusClient Uses

func NewQuotaRequestStatusClient() QuotaRequestStatusClient

NewQuotaRequestStatusClient creates an instance of the QuotaRequestStatusClient client.

func NewQuotaRequestStatusClientWithBaseURI Uses

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 Uses

func (client QuotaRequestStatusClient) Get(ctx context.Context, subscriptionID string, providerID string, location string, ID string) (result QuotaRequestDetails, err error)

Get gets the QuotaRequest details and status by the quota request Id for the resources for the resource provider at a specific location. The requestId is returned as response to the Put requests for serviceLimits. Parameters: subscriptionID - azure subscription id. providerID - azure resource provider id. location - azure region. ID - quota Request id.

func (QuotaRequestStatusClient) GetPreparer Uses

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 Uses

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 Uses

func (client QuotaRequestStatusClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (QuotaRequestStatusClient) List Uses

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 location and Resource provider gets the current quota requests under the subscription over the time period of one year ago from now to one year back. oData filter can be used to select quota requests. 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 will include a skiptoken parameter that specifies a starting point to use for subsequent calls

func (QuotaRequestStatusClient) ListComplete Uses

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 Uses

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 Uses

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 Uses

func (client QuotaRequestStatusClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type QuotaRequestStatusDetails Uses

type QuotaRequestStatusDetails struct {
    // ProvisioningState - READ-ONLY; The quota request status.
    ProvisioningState interface{} `json:"provisioningState,omitempty"`
    // Message - READ-ONLY; A user friendly message.
    Message *string `json:"message,omitempty"`
}

QuotaRequestStatusDetails the quota request status details.

type QuotaRequestSubmitResponse Uses

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 quota submit request response

func (QuotaRequestSubmitResponse) MarshalJSON Uses

func (qrsr QuotaRequestSubmitResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QuotaRequestSubmitResponse.

type QuotaRequestSubmitResponse201 Uses

type QuotaRequestSubmitResponse201 struct {
    // ID - READ-ONLY; The quota request id. Please use the requestId to check the request status.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The operation Id
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The resource type
    Type *string `json:"type,omitempty"`
    // QuotaRequestStatusDetails - The quota request status.
    *QuotaRequestStatusDetails `json:"properties,omitempty"`
}

QuotaRequestSubmitResponse201 the quota request submit response with request id.

func (QuotaRequestSubmitResponse201) MarshalJSON Uses

func (qrsr2 QuotaRequestSubmitResponse201) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for QuotaRequestSubmitResponse201.

func (*QuotaRequestSubmitResponse201) UnmarshalJSON Uses

func (qrsr2 *QuotaRequestSubmitResponse201) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for QuotaRequestSubmitResponse201 struct.

type QuotaUpdateFuture Uses

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 RenewPropertiesResponse Uses

type RenewPropertiesResponse struct {
    PurchaseProperties *PurchaseRequest `json:"purchaseProperties,omitempty"`
    // PricingCurrencyTotal - Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. This is locked price 30 days before expiry.
    PricingCurrencyTotal *RenewPropertiesResponsePricingCurrencyTotal `json:"pricingCurrencyTotal,omitempty"`
    // BillingCurrencyTotal - Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included.
    BillingCurrencyTotal *RenewPropertiesResponseBillingCurrencyTotal `json:"billingCurrencyTotal,omitempty"`
}

RenewPropertiesResponse ...

type RenewPropertiesResponseBillingCurrencyTotal Uses

type RenewPropertiesResponseBillingCurrencyTotal struct {
    CurrencyCode *string  `json:"currencyCode,omitempty"`
    Amount       *float64 `json:"amount,omitempty"`
}

RenewPropertiesResponseBillingCurrencyTotal currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included.

type RenewPropertiesResponsePricingCurrencyTotal Uses

type RenewPropertiesResponsePricingCurrencyTotal struct {
    CurrencyCode *string  `json:"currencyCode,omitempty"`
    Amount       *float64 `json:"amount,omitempty"`
}

RenewPropertiesResponsePricingCurrencyTotal amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. This is locked price 30 days before expiry.

type ReservationAvailableScopesFuture Uses

type ReservationAvailableScopesFuture 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) (Properties, error)
}

ReservationAvailableScopesFuture an abstraction for monitoring and retrieving the results of a long-running operation.

type ReservationBillingPlan Uses

type ReservationBillingPlan string

ReservationBillingPlan enumerates the values for reservation billing plan.

const (
    // Monthly ...
    Monthly ReservationBillingPlan = "Monthly"
    // Upfront ...
    Upfront ReservationBillingPlan = "Upfront"
)

func PossibleReservationBillingPlanValues Uses

func PossibleReservationBillingPlanValues() []ReservationBillingPlan

PossibleReservationBillingPlanValues returns an array of possible values for the ReservationBillingPlan const type.

type ReservationMergeFuture Uses

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 ReservationTerm Uses

type ReservationTerm string

ReservationTerm enumerates the values for reservation term.

const (
    // P1Y ...
    P1Y ReservationTerm = "P1Y"
    // P3Y ...
    P3Y ReservationTerm = "P3Y"
)

func PossibleReservationTermValues Uses

func PossibleReservationTermValues() []ReservationTerm

PossibleReservationTermValues returns an array of possible values for the ReservationTerm const type.

type ReservationUpdateFuture Uses

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 ReservedResourceType Uses

type ReservedResourceType string

ReservedResourceType enumerates the values for reserved resource type.

const (
    // AppService ...
    AppService ReservedResourceType = "AppService"
    // AzureDataExplorer ...
    AzureDataExplorer ReservedResourceType = "AzureDataExplorer"
    // BlockBlob ...
    BlockBlob ReservedResourceType = "BlockBlob"
    // CosmosDb ...
    CosmosDb ReservedResourceType = "CosmosDb"
    // Databricks ...
    Databricks ReservedResourceType = "Databricks"
    // DedicatedHost ...
    DedicatedHost ReservedResourceType = "DedicatedHost"
    // ManagedDisk ...
    ManagedDisk ReservedResourceType = "ManagedDisk"
    // MariaDb ...
    MariaDb ReservedResourceType = "MariaDb"
    // MySQL ...
    MySQL ReservedResourceType = "MySql"
    // PostgreSQL ...
    PostgreSQL ReservedResourceType = "PostgreSql"
    // RedHat ...
    RedHat ReservedResourceType = "RedHat"
    // RedHatOsa ...
    RedHatOsa ReservedResourceType = "RedHatOsa"
    // RedisCache ...
    RedisCache ReservedResourceType = "RedisCache"
    // SapHana ...
    SapHana ReservedResourceType = "SapHana"
    // SQLAzureHybridBenefit ...
    SQLAzureHybridBenefit ReservedResourceType = "SqlAzureHybridBenefit"
    // SQLDatabases ...
    SQLDatabases ReservedResourceType = "SqlDatabases"
    // SQLDataWarehouse ...
    SQLDataWarehouse ReservedResourceType = "SqlDataWarehouse"
    // SuseLinux ...
    SuseLinux ReservedResourceType = "SuseLinux"
    // VirtualMachines ...
    VirtualMachines ReservedResourceType = "VirtualMachines"
    // VMwareCloudSimple ...
    VMwareCloudSimple ReservedResourceType = "VMwareCloudSimple"
)

func PossibleReservedResourceTypeValues Uses

func PossibleReservedResourceTypeValues() []ReservedResourceType

PossibleReservedResourceTypeValues returns an array of possible values for the ReservedResourceType const type.

type ResourceName Uses

type ResourceName struct {
    // Value - Resource name.
    Value *string `json:"value,omitempty"`
    // LocalizedValue - READ-ONLY; Resource display name.
    LocalizedValue *string `json:"localizedValue,omitempty"`
}

ResourceName name of the resource provide by the resource Provider. Please use this name property for quotaRequests.

func (ResourceName) MarshalJSON Uses

func (rn ResourceName) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceName.

type Response Uses

type Response struct {
    autorest.Response `json:"-"`
    // Location - READ-ONLY; The Azure Region where the reserved resource lives.
    Location *string `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"`
    Sku        *SkuName        `json:"sku,omitempty"`
    Properties *PropertiesType `json:"properties,omitempty"`
    // Type - READ-ONLY; Type of resource. "Microsoft.Capacity/reservationOrders/reservations"
    Type *string `json:"type,omitempty"`
}

Response ...

func (Response) MarshalJSON Uses

func (r Response) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Response.

type ScopeProperties Uses

type ScopeProperties struct {
    Scope *string `json:"scope,omitempty"`
    Valid *bool   `json:"valid,omitempty"`
}

ScopeProperties ...

type ServiceError Uses

type ServiceError struct {
    // Code - The error code.
    Code *string `json:"code,omitempty"`
    // Message - The error message.
    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 Uses

func (se ServiceError) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceError.

type ServiceErrorDetail Uses

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 SetObject Uses

type SetObject struct {
    autorest.Response `json:"-"`
    Value             interface{} `json:"value,omitempty"`
}

SetObject ...

type SkuName Uses

type SkuName struct {
    Name *string `json:"name,omitempty"`
}

SkuName ...

type SkuProperty Uses

type SkuProperty 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"`
}

SkuProperty ...

type SkuRestriction Uses

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 Uses

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 Uses

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 Uses

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 Uses

type SplitRequest struct {
    *SplitProperties `json:"properties,omitempty"`
}

SplitRequest ...

func (SplitRequest) MarshalJSON Uses

func (sr SplitRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SplitRequest.

func (*SplitRequest) UnmarshalJSON Uses

func (sr *SplitRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SplitRequest struct.

type StatusCode Uses

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 Uses

func PossibleStatusCodeValues() []StatusCode

PossibleStatusCodeValues returns an array of possible values for the StatusCode const type.

type SubRequest Uses

type SubRequest struct {
    // Limit - READ-ONLY; The 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 units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.
    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 Uses

func (sr SubRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SubRequest.

type SubscriptionScopeProperties Uses

type SubscriptionScopeProperties struct {
    Scopes *[]ScopeProperties `json:"scopes,omitempty"`
}

SubscriptionScopeProperties ...

type SupportRequestAction Uses

type SupportRequestAction struct {
    // Severity - The support request severity.
    Severity interface{} `json:"severity,omitempty"`
    // FirstName - The first name of the recipient.
    FirstName *string `json:"firstName,omitempty"`
    // LastName - The last name of the recipient.
    LastName *string `json:"lastName,omitempty"`
    // Country - The country of the recipient.
    Country *string `json:"country,omitempty"`
    // PhoneNumber - The phone number of the recipient.
    PhoneNumber *string `json:"phoneNumber,omitempty"`
    // PrimaryEmailAddress - The primary email addresses of the recipients.
    PrimaryEmailAddress *string `json:"primaryEmailAddress,omitempty"`
    // SupportLanguage - The support language.
    SupportLanguage *string `json:"supportLanguage,omitempty"`
    // PreferredContactMethod - The preferred communication channel.
    PreferredContactMethod interface{} `json:"preferredContactMethod,omitempty"`
    // AlternateEmailAddresses - The alternate email address of the recipient.
    AlternateEmailAddresses *[]string `json:"alternateEmailAddresses,omitempty"`
}

SupportRequestAction the SupportRequest action.

Directories

PathSynopsis
reservationsapi

Package reservations imports 10 packages (graph) and is imported by 1 packages. Updated 2021-01-23. Refresh now. Tools for package owners.