Documentation ¶
Index ¶
- func PossibleValuesForAppliedScopeType() []string
- func PossibleValuesForInstanceFlexibility() []string
- func PossibleValuesForReservationBillingPlan() []string
- func PossibleValuesForReservationStatusCode() []string
- func ValidateReservationID(input interface{}, key string) (warnings []string, errors []error)
- type AppliedScopeType
- type ExtendedStatusDefinitionProperties
- type GetByReservationOrderOperationOptions
- type GetByReservationOrderOperationResponse
- type InstanceFlexibility
- type Patch
- type PatchProperties
- type PatchPropertiesRenewProperties
- type Price
- type RenewPropertiesResponse
- type Reservation
- type ReservationAppliedScopeProperties
- type ReservationBillingPlan
- type ReservationClient
- func (c ReservationClient) GetByReservationOrder(ctx context.Context, id ReservationId, ...) (result GetByReservationOrderOperationResponse, err error)
- func (c ReservationClient) UpdateByBillingAccount(ctx context.Context, id ReservationId, input Patch) (result UpdateByBillingAccountOperationResponse, err error)
- func (c ReservationClient) UpdateByBillingAccountThenPoll(ctx context.Context, id ReservationId, input Patch) error
- type ReservationExtendedStatusInfo
- type ReservationId
- type ReservationMergeProperties
- type ReservationProperty
- func (o *ReservationProperty) GetBenefitStartTimeAsTime() (*time.Time, error)
- func (o *ReservationProperty) GetEffectiveDateTimeAsTime() (*time.Time, error)
- func (o *ReservationProperty) GetExpiryDateTimeAsTime() (*time.Time, error)
- func (o *ReservationProperty) GetLastUpdatedDateTimeAsTime() (*time.Time, error)
- func (o *ReservationProperty) GetPurchaseDateTimeAsTime() (*time.Time, error)
- func (o *ReservationProperty) GetReviewDateTimeAsTime() (*time.Time, error)
- func (o *ReservationProperty) SetBenefitStartTimeAsTime(input time.Time)
- func (o *ReservationProperty) SetEffectiveDateTimeAsTime(input time.Time)
- func (o *ReservationProperty) SetExpiryDateTimeAsTime(input time.Time)
- func (o *ReservationProperty) SetLastUpdatedDateTimeAsTime(input time.Time)
- func (o *ReservationProperty) SetPurchaseDateTimeAsTime(input time.Time)
- func (o *ReservationProperty) SetReviewDateTimeAsTime(input time.Time)
- type ReservationPropertyUtilization
- type ReservationPurchaseRequest
- type ReservationPurchaseRequestProperties
- type ReservationPurchaseRequestPropertiesReservedResourceProperties
- type ReservationSkuProperty
- type ReservationSplitProperties
- type ReservationStatusCode
- type ReservationSwapProperties
- type ReservationUtilizationAggregates
- type SkuName
- type UpdateByBillingAccountOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAppliedScopeType ¶
func PossibleValuesForAppliedScopeType() []string
func PossibleValuesForInstanceFlexibility ¶
func PossibleValuesForInstanceFlexibility() []string
func PossibleValuesForReservationBillingPlan ¶
func PossibleValuesForReservationBillingPlan() []string
func PossibleValuesForReservationStatusCode ¶
func PossibleValuesForReservationStatusCode() []string
func ValidateReservationID ¶
ValidateReservationID checks that 'input' can be parsed as a Reservation ID
Types ¶
type AppliedScopeType ¶
type AppliedScopeType string
const ( AppliedScopeTypeManagementGroup AppliedScopeType = "ManagementGroup" AppliedScopeTypeSingle AppliedScopeType = "Single" )
func (*AppliedScopeType) UnmarshalJSON ¶
func (s *AppliedScopeType) UnmarshalJSON(bytes []byte) error
type ExtendedStatusDefinitionProperties ¶
type ExtendedStatusDefinitionProperties struct {
SubscriptionId *string `json:"subscriptionId,omitempty"`
}
type GetByReservationOrderOperationOptions ¶
type GetByReservationOrderOperationOptions struct {
Expand *string
}
func DefaultGetByReservationOrderOperationOptions ¶
func DefaultGetByReservationOrderOperationOptions() GetByReservationOrderOperationOptions
func (GetByReservationOrderOperationOptions) ToHeaders ¶
func (o GetByReservationOrderOperationOptions) ToHeaders() *client.Headers
func (GetByReservationOrderOperationOptions) ToOData ¶
func (o GetByReservationOrderOperationOptions) ToOData() *odata.Query
func (GetByReservationOrderOperationOptions) ToQuery ¶
func (o GetByReservationOrderOperationOptions) ToQuery() *client.QueryParams
type GetByReservationOrderOperationResponse ¶
type GetByReservationOrderOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Reservation }
type InstanceFlexibility ¶
type InstanceFlexibility string
const ( InstanceFlexibilityOff InstanceFlexibility = "Off" InstanceFlexibilityOn InstanceFlexibility = "On" )
func (*InstanceFlexibility) UnmarshalJSON ¶
func (s *InstanceFlexibility) UnmarshalJSON(bytes []byte) error
type Patch ¶
type Patch struct { Properties *PatchProperties `json:"properties,omitempty"` Sku *ReservationSkuProperty `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type PatchProperties ¶
type PatchProperties struct { AppliedScopeProperties *ReservationAppliedScopeProperties `json:"appliedScopeProperties,omitempty"` AppliedScopeType *AppliedScopeType `json:"appliedScopeType,omitempty"` DisplayName *string `json:"displayName,omitempty"` InstanceFlexibility *InstanceFlexibility `json:"instanceFlexibility,omitempty"` Renew *bool `json:"renew,omitempty"` RenewProperties *PatchPropertiesRenewProperties `json:"renewProperties,omitempty"` ReviewDateTime *string `json:"reviewDateTime,omitempty"` }
func (*PatchProperties) GetReviewDateTimeAsTime ¶
func (o *PatchProperties) GetReviewDateTimeAsTime() (*time.Time, error)
func (*PatchProperties) SetReviewDateTimeAsTime ¶
func (o *PatchProperties) SetReviewDateTimeAsTime(input time.Time)
type PatchPropertiesRenewProperties ¶
type PatchPropertiesRenewProperties struct {
PurchaseProperties *ReservationPurchaseRequest `json:"purchaseProperties,omitempty"`
}
type RenewPropertiesResponse ¶
type RenewPropertiesResponse struct { BillingCurrencyTotal *Price `json:"billingCurrencyTotal,omitempty"` PricingCurrencyTotal *Price `json:"pricingCurrencyTotal,omitempty"` PurchaseProperties *ReservationPurchaseRequest `json:"purchaseProperties,omitempty"` }
type Reservation ¶
type Reservation struct { Etag *int64 `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ReservationProperty `json:"properties,omitempty"` Sku *ReservationSkuProperty `json:"sku,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ReservationAppliedScopeProperties ¶
type ReservationAppliedScopeProperties struct { DisplayName *string `json:"displayName,omitempty"` ManagementGroupId *string `json:"managementGroupId,omitempty"` ResourceGroupId *string `json:"resourceGroupId,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` TenantId *string `json:"tenantId,omitempty"` }
type ReservationBillingPlan ¶
type ReservationBillingPlan string
const ( ReservationBillingPlanMonthly ReservationBillingPlan = "Monthly" ReservationBillingPlanUpfront ReservationBillingPlan = "Upfront" )
func (*ReservationBillingPlan) UnmarshalJSON ¶
func (s *ReservationBillingPlan) UnmarshalJSON(bytes []byte) error
type ReservationClient ¶
type ReservationClient struct {
Client *resourcemanager.Client
}
func NewReservationClientWithBaseURI ¶
func NewReservationClientWithBaseURI(sdkApi sdkEnv.Api) (*ReservationClient, error)
func (ReservationClient) GetByReservationOrder ¶
func (c ReservationClient) GetByReservationOrder(ctx context.Context, id ReservationId, options GetByReservationOrderOperationOptions) (result GetByReservationOrderOperationResponse, err error)
GetByReservationOrder ...
func (ReservationClient) UpdateByBillingAccount ¶
func (c ReservationClient) UpdateByBillingAccount(ctx context.Context, id ReservationId, input Patch) (result UpdateByBillingAccountOperationResponse, err error)
UpdateByBillingAccount ...
func (ReservationClient) UpdateByBillingAccountThenPoll ¶
func (c ReservationClient) UpdateByBillingAccountThenPoll(ctx context.Context, id ReservationId, input Patch) error
UpdateByBillingAccountThenPoll performs UpdateByBillingAccount then polls until it's completed
type ReservationExtendedStatusInfo ¶
type ReservationExtendedStatusInfo struct { Message *string `json:"message,omitempty"` Properties *ExtendedStatusDefinitionProperties `json:"properties,omitempty"` StatusCode *ReservationStatusCode `json:"statusCode,omitempty"` }
type ReservationId ¶
type ReservationId struct { BillingAccountName string ReservationOrderId string ReservationId string }
ReservationId is a struct representing the Resource ID for a Reservation
func NewReservationID ¶
func NewReservationID(billingAccountName string, reservationOrderId string, reservationId string) ReservationId
NewReservationID returns a new ReservationId struct
func ParseReservationID ¶
func ParseReservationID(input string) (*ReservationId, error)
ParseReservationID parses 'input' into a ReservationId
func ParseReservationIDInsensitively ¶
func ParseReservationIDInsensitively(input string) (*ReservationId, error)
ParseReservationIDInsensitively parses 'input' case-insensitively into a ReservationId note: this method should only be used for API response data and not user input
func (*ReservationId) FromParseResult ¶
func (id *ReservationId) FromParseResult(input resourceids.ParseResult) error
func (ReservationId) ID ¶
func (id ReservationId) ID() string
ID returns the formatted Reservation ID
func (ReservationId) Segments ¶
func (id ReservationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Reservation ID
func (ReservationId) String ¶
func (id ReservationId) String() string
String returns a human-readable description of this Reservation ID
type ReservationProperty ¶
type ReservationProperty struct { AppliedScopeProperties *ReservationAppliedScopeProperties `json:"appliedScopeProperties,omitempty"` AppliedScopeType *string `json:"appliedScopeType,omitempty"` AppliedScopes *[]string `json:"appliedScopes,omitempty"` Archived *bool `json:"archived,omitempty"` BenefitStartTime *string `json:"benefitStartTime,omitempty"` BillingPlan *ReservationBillingPlan `json:"billingPlan,omitempty"` BillingScopeId *string `json:"billingScopeId,omitempty"` Capabilities *string `json:"capabilities,omitempty"` DisplayName *string `json:"displayName,omitempty"` DisplayProvisioningState *string `json:"displayProvisioningState,omitempty"` EffectiveDateTime *string `json:"effectiveDateTime,omitempty"` ExpiryDate *string `json:"expiryDate,omitempty"` ExpiryDateTime *string `json:"expiryDateTime,omitempty"` ExtendedStatusInfo *ReservationExtendedStatusInfo `json:"extendedStatusInfo,omitempty"` InstanceFlexibility *InstanceFlexibility `json:"instanceFlexibility,omitempty"` LastUpdatedDateTime *string `json:"lastUpdatedDateTime,omitempty"` MergeProperties *ReservationMergeProperties `json:"mergeProperties,omitempty"` ProductCode *string `json:"productCode,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ProvisioningSubState *string `json:"provisioningSubState,omitempty"` PurchaseDate *string `json:"purchaseDate,omitempty"` PurchaseDateTime *string `json:"purchaseDateTime,omitempty"` Quantity *float64 `json:"quantity,omitempty"` Renew *bool `json:"renew,omitempty"` RenewDestination *string `json:"renewDestination,omitempty"` RenewProperties *RenewPropertiesResponse `json:"renewProperties,omitempty"` RenewSource *string `json:"renewSource,omitempty"` ReservedResourceType *string `json:"reservedResourceType,omitempty"` ReviewDateTime *string `json:"reviewDateTime,omitempty"` SkuDescription *string `json:"skuDescription,omitempty"` SplitProperties *ReservationSplitProperties `json:"splitProperties,omitempty"` SwapProperties *ReservationSwapProperties `json:"swapProperties,omitempty"` Term *string `json:"term,omitempty"` UserFriendlyAppliedScopeType *string `json:"userFriendlyAppliedScopeType,omitempty"` UserFriendlyRenewState *string `json:"userFriendlyRenewState,omitempty"` Utilization *ReservationPropertyUtilization `json:"utilization,omitempty"` }
func (*ReservationProperty) GetBenefitStartTimeAsTime ¶
func (o *ReservationProperty) GetBenefitStartTimeAsTime() (*time.Time, error)
func (*ReservationProperty) GetEffectiveDateTimeAsTime ¶
func (o *ReservationProperty) GetEffectiveDateTimeAsTime() (*time.Time, error)
func (*ReservationProperty) GetExpiryDateTimeAsTime ¶
func (o *ReservationProperty) GetExpiryDateTimeAsTime() (*time.Time, error)
func (*ReservationProperty) GetLastUpdatedDateTimeAsTime ¶
func (o *ReservationProperty) GetLastUpdatedDateTimeAsTime() (*time.Time, error)
func (*ReservationProperty) GetPurchaseDateTimeAsTime ¶
func (o *ReservationProperty) GetPurchaseDateTimeAsTime() (*time.Time, error)
func (*ReservationProperty) GetReviewDateTimeAsTime ¶
func (o *ReservationProperty) GetReviewDateTimeAsTime() (*time.Time, error)
func (*ReservationProperty) SetBenefitStartTimeAsTime ¶
func (o *ReservationProperty) SetBenefitStartTimeAsTime(input time.Time)
func (*ReservationProperty) SetEffectiveDateTimeAsTime ¶
func (o *ReservationProperty) SetEffectiveDateTimeAsTime(input time.Time)
func (*ReservationProperty) SetExpiryDateTimeAsTime ¶
func (o *ReservationProperty) SetExpiryDateTimeAsTime(input time.Time)
func (*ReservationProperty) SetLastUpdatedDateTimeAsTime ¶
func (o *ReservationProperty) SetLastUpdatedDateTimeAsTime(input time.Time)
func (*ReservationProperty) SetPurchaseDateTimeAsTime ¶
func (o *ReservationProperty) SetPurchaseDateTimeAsTime(input time.Time)
func (*ReservationProperty) SetReviewDateTimeAsTime ¶
func (o *ReservationProperty) SetReviewDateTimeAsTime(input time.Time)
type ReservationPropertyUtilization ¶
type ReservationPropertyUtilization struct { Aggregates *[]ReservationUtilizationAggregates `json:"aggregates,omitempty"` Trend *string `json:"trend,omitempty"` }
type ReservationPurchaseRequest ¶
type ReservationPurchaseRequest struct { Location *string `json:"location,omitempty"` Properties *ReservationPurchaseRequestProperties `json:"properties,omitempty"` Sku *SkuName `json:"sku,omitempty"` }
type ReservationPurchaseRequestProperties ¶
type ReservationPurchaseRequestProperties struct { AppliedScopeProperties *ReservationAppliedScopeProperties `json:"appliedScopeProperties,omitempty"` AppliedScopeType *AppliedScopeType `json:"appliedScopeType,omitempty"` AppliedScopes *[]string `json:"appliedScopes,omitempty"` BillingPlan *ReservationBillingPlan `json:"billingPlan,omitempty"` BillingScopeId *string `json:"billingScopeId,omitempty"` DisplayName *string `json:"displayName,omitempty"` InstanceFlexibility *InstanceFlexibility `json:"instanceFlexibility,omitempty"` Quantity *int64 `json:"quantity,omitempty"` Renew *bool `json:"renew,omitempty"` ReservedResourceProperties *ReservationPurchaseRequestPropertiesReservedResourceProperties `json:"reservedResourceProperties,omitempty"` ReservedResourceType *string `json:"reservedResourceType,omitempty"` ReviewDateTime *string `json:"reviewDateTime,omitempty"` Term *string `json:"term,omitempty"` }
func (*ReservationPurchaseRequestProperties) GetReviewDateTimeAsTime ¶
func (o *ReservationPurchaseRequestProperties) GetReviewDateTimeAsTime() (*time.Time, error)
func (*ReservationPurchaseRequestProperties) SetReviewDateTimeAsTime ¶
func (o *ReservationPurchaseRequestProperties) SetReviewDateTimeAsTime(input time.Time)
type ReservationPurchaseRequestPropertiesReservedResourceProperties ¶
type ReservationPurchaseRequestPropertiesReservedResourceProperties struct {
InstanceFlexibility *InstanceFlexibility `json:"instanceFlexibility,omitempty"`
}
type ReservationSkuProperty ¶
type ReservationSkuProperty struct {
Name *string `json:"name,omitempty"`
}
type ReservationStatusCode ¶
type ReservationStatusCode string
const ( ReservationStatusCodeActive ReservationStatusCode = "Active" ReservationStatusCodeCapacityError ReservationStatusCode = "CapacityError" ReservationStatusCodeCapacityRestricted ReservationStatusCode = "CapacityRestricted" ReservationStatusCodeCreditLineCheckFailed ReservationStatusCode = "CreditLineCheckFailed" ReservationStatusCodeExchanged ReservationStatusCode = "Exchanged" ReservationStatusCodeExpired ReservationStatusCode = "Expired" ReservationStatusCodeMerged ReservationStatusCode = "Merged" ReservationStatusCodeNoBenefit ReservationStatusCode = "NoBenefit" ReservationStatusCodeNoBenefitDueToSubscriptionDeletion ReservationStatusCode = "NoBenefitDueToSubscriptionDeletion" ReservationStatusCodeNoBenefitDueToSubscriptionTransfer ReservationStatusCode = "NoBenefitDueToSubscriptionTransfer" ReservationStatusCodeNone ReservationStatusCode = "None" ReservationStatusCodePaymentInstrumentError ReservationStatusCode = "PaymentInstrumentError" ReservationStatusCodePending ReservationStatusCode = "Pending" ReservationStatusCodeProcessing ReservationStatusCode = "Processing" ReservationStatusCodePurchaseError ReservationStatusCode = "PurchaseError" ReservationStatusCodeRiskCheckFailed ReservationStatusCode = "RiskCheckFailed" ReservationStatusCodeSplit ReservationStatusCode = "Split" ReservationStatusCodeSucceeded ReservationStatusCode = "Succeeded" ReservationStatusCodeUnknownError ReservationStatusCode = "UnknownError" ReservationStatusCodeWarning ReservationStatusCode = "Warning" )
func (*ReservationStatusCode) UnmarshalJSON ¶
func (s *ReservationStatusCode) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_reservation.go
- method_getbyreservationorder.go
- method_updatebybillingaccount.go
- model_extendedstatusdefinitionproperties.go
- model_patch.go
- model_patchproperties.go
- model_patchpropertiesrenewproperties.go
- model_price.go
- model_renewpropertiesresponse.go
- model_reservation.go
- model_reservationappliedscopeproperties.go
- model_reservationextendedstatusinfo.go
- model_reservationmergeproperties.go
- model_reservationproperty.go
- model_reservationpropertyutilization.go
- model_reservationpurchaserequest.go
- model_reservationpurchaserequestproperties.go
- model_reservationpurchaserequestpropertiesreservedresourceproperties.go
- model_reservationskuproperty.go
- model_reservationsplitproperties.go
- model_reservationswapproperties.go
- model_reservationutilizationaggregates.go
- model_skuname.go
- version.go