Versions in this module Expand all Collapse all v1 v1.0.0 Dec 20, 2022 Changes in this version + type ActionType string + const ActionTypeInternal + func PossibleActionTypeValues() []ActionType + type AppliedScopeProperties struct + DisplayName *string + ManagementGroupID *string + ResourceGroupID *string + SubscriptionID *string + TenantID *string + func (a *AppliedScopeProperties) UnmarshalJSON(data []byte) error + func (a AppliedScopeProperties) MarshalJSON() ([]byte, error) + type AppliedScopeType string + const AppliedScopeTypeManagementGroup + const AppliedScopeTypeShared + const AppliedScopeTypeSingle + func PossibleAppliedScopeTypeValues() []AppliedScopeType + type BillingPlan string + const BillingPlanP1M + func PossibleBillingPlanValues() []BillingPlan + type BillingPlanInformation struct + NextPaymentDueDate *time.Time + PricingCurrencyTotal *Price + StartDate *time.Time + Transactions []*PaymentDetail + func (b *BillingPlanInformation) UnmarshalJSON(data []byte) error + func (b BillingPlanInformation) MarshalJSON() ([]byte, error) + type Commitment struct + Amount *float64 + CurrencyCode *string + Grain *CommitmentGrain + func (c *Commitment) UnmarshalJSON(data []byte) error + func (c Commitment) MarshalJSON() ([]byte, error) + type CommitmentGrain string + const CommitmentGrainHourly + func PossibleCommitmentGrainValues() []CommitmentGrain + type CreatedByType string + const CreatedByTypeApplication + const CreatedByTypeKey + const CreatedByTypeManagedIdentity + const CreatedByTypeUser + func PossibleCreatedByTypeValues() []CreatedByType + type ExtendedStatusInfo struct + Message *string + StatusCode *string + func (e *ExtendedStatusInfo) UnmarshalJSON(data []byte) error + func (e ExtendedStatusInfo) MarshalJSON() ([]byte, error) + type InstanceFlexibility string + const InstanceFlexibilityOff + const InstanceFlexibilityOn + func PossibleInstanceFlexibilityValues() []InstanceFlexibility + type Operation struct + ActionType *ActionType + Display *OperationDisplay + IsDataAction *bool + Name *string + Origin *Origin + func (o *Operation) UnmarshalJSON(data []byte) error + func (o Operation) MarshalJSON() ([]byte, error) + type OperationDisplay struct + Description *string + Operation *string + Provider *string + Resource *string + func (o *OperationDisplay) UnmarshalJSON(data []byte) error + func (o OperationDisplay) MarshalJSON() ([]byte, error) + type OperationListResult struct + NextLink *string + Value []*Operation + func (o *OperationListResult) UnmarshalJSON(data []byte) error + func (o OperationListResult) MarshalJSON() ([]byte, error) + type OperationsClient struct + func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) + func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] + type OperationsClientListOptions struct + type OperationsClientListResponse struct + type Origin string + const OriginSystem + const OriginUser + const OriginUserSystem + func PossibleOriginValues() []Origin + type PaymentDetail struct + BillingAccount *string + BillingCurrencyTotal *Price + DueDate *time.Time + ExtendedStatusInfo *ExtendedStatusInfo + PaymentDate *time.Time + PricingCurrencyTotal *Price + Status *PaymentStatus + func (p *PaymentDetail) UnmarshalJSON(data []byte) error + func (p PaymentDetail) MarshalJSON() ([]byte, error) + type PaymentStatus string + const PaymentStatusCancelled + const PaymentStatusFailed + const PaymentStatusScheduled + const PaymentStatusSucceeded + func PossiblePaymentStatusValues() []PaymentStatus + type Price struct + Amount *float64 + CurrencyCode *string + func (p *Price) UnmarshalJSON(data []byte) error + func (p Price) MarshalJSON() ([]byte, error) + type ProvisioningState string + const ProvisioningStateCancelled + const ProvisioningStateConfirmedBilling + const ProvisioningStateCreated + const ProvisioningStateCreating + const ProvisioningStateExpired + const ProvisioningStateFailed + const ProvisioningStatePendingBilling + const ProvisioningStateSucceeded + func PossibleProvisioningStateValues() []ProvisioningState + type PurchaseRequest struct + Properties *PurchaseRequestProperties + SKU *SKU + func (p *PurchaseRequest) UnmarshalJSON(data []byte) error + func (p PurchaseRequest) MarshalJSON() ([]byte, error) + type PurchaseRequestProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + BillingPlan *BillingPlan + BillingScopeID *string + Commitment *Commitment + DisplayName *string + EffectiveDateTime *time.Time + Renew *bool + Term *Term + func (p *PurchaseRequestProperties) UnmarshalJSON(data []byte) error + func (p PurchaseRequestProperties) MarshalJSON() ([]byte, error) + type RPClient struct + func NewRPClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*RPClient, error) + func (client *RPClient) ValidatePurchase(ctx context.Context, body SavingsPlanPurchaseValidateRequest, ...) (RPClientValidatePurchaseResponse, error) + type RPClientValidatePurchaseOptions struct + type RPClientValidatePurchaseResponse struct + type RenewProperties struct + PurchaseProperties *PurchaseRequest + func (r *RenewProperties) UnmarshalJSON(data []byte) error + func (r RenewProperties) MarshalJSON() ([]byte, error) + type ReservationOrderAliasClient struct + func NewReservationOrderAliasClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ReservationOrderAliasClient, error) + func (client *ReservationOrderAliasClient) BeginCreate(ctx context.Context, reservationOrderAliasName string, ...) (*runtime.Poller[ReservationOrderAliasClientCreateResponse], error) + func (client *ReservationOrderAliasClient) Get(ctx context.Context, reservationOrderAliasName string, ...) (ReservationOrderAliasClientGetResponse, error) + type ReservationOrderAliasClientBeginCreateOptions struct + ResumeToken string + type ReservationOrderAliasClientCreateResponse struct + type ReservationOrderAliasClientGetOptions struct + type ReservationOrderAliasClientGetResponse struct + type ReservationOrderAliasRequest struct + ID *string + Location *string + Name *string + Properties *ReservationOrderAliasRequestProperties + SKU *SKU + SystemData *SystemData + Type *string + func (r *ReservationOrderAliasRequest) UnmarshalJSON(data []byte) error + func (r ReservationOrderAliasRequest) MarshalJSON() ([]byte, error) + type ReservationOrderAliasRequestProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + BillingPlan *BillingPlan + BillingScopeID *string + DisplayName *string + Quantity *int32 + Renew *bool + ReservedResourceProperties *ReservationOrderAliasRequestPropertiesReservedResourceProperties + ReservedResourceType *ReservedResourceType + ReviewDateTime *time.Time + Term *Term + func (r *ReservationOrderAliasRequestProperties) UnmarshalJSON(data []byte) error + func (r ReservationOrderAliasRequestProperties) MarshalJSON() ([]byte, error) + type ReservationOrderAliasRequestPropertiesReservedResourceProperties struct + InstanceFlexibility *InstanceFlexibility + func (r *ReservationOrderAliasRequestPropertiesReservedResourceProperties) UnmarshalJSON(data []byte) error + func (r ReservationOrderAliasRequestPropertiesReservedResourceProperties) MarshalJSON() ([]byte, error) + type ReservationOrderAliasResponse struct + ID *string + Location *string + Name *string + Properties *ReservationOrderAliasResponseProperties + SKU *SKU + SystemData *SystemData + Type *string + func (r *ReservationOrderAliasResponse) UnmarshalJSON(data []byte) error + func (r ReservationOrderAliasResponse) MarshalJSON() ([]byte, error) + type ReservationOrderAliasResponseProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + BillingPlan *BillingPlan + BillingScopeID *string + DisplayName *string + ProvisioningState *ProvisioningState + Quantity *int32 + Renew *bool + ReservationOrderID *string + ReservedResourceProperties *ReservationOrderAliasResponsePropertiesReservedResourceProperties + ReservedResourceType *ReservedResourceType + ReviewDateTime *time.Time + Term *Term + func (r *ReservationOrderAliasResponseProperties) UnmarshalJSON(data []byte) error + func (r ReservationOrderAliasResponseProperties) MarshalJSON() ([]byte, error) + type ReservationOrderAliasResponsePropertiesReservedResourceProperties struct + InstanceFlexibility *InstanceFlexibility + func (r *ReservationOrderAliasResponsePropertiesReservedResourceProperties) UnmarshalJSON(data []byte) error + func (r ReservationOrderAliasResponsePropertiesReservedResourceProperties) MarshalJSON() ([]byte, error) + type ReservedResourceType string + const ReservedResourceTypeAVS + const ReservedResourceTypeAppService + const ReservedResourceTypeAzureDataExplorer + const ReservedResourceTypeAzureFiles + const ReservedResourceTypeBlockBlob + const ReservedResourceTypeCosmosDb + const ReservedResourceTypeDataFactory + const ReservedResourceTypeDatabricks + const ReservedResourceTypeDedicatedHost + const ReservedResourceTypeManagedDisk + const ReservedResourceTypeMariaDb + const ReservedResourceTypeMySQL + const ReservedResourceTypeNetAppStorage + const ReservedResourceTypePostgreSQL + const ReservedResourceTypeRedHat + const ReservedResourceTypeRedHatOsa + const ReservedResourceTypeRedisCache + const ReservedResourceTypeSQLAzureHybridBenefit + const ReservedResourceTypeSQLDataWarehouse + const ReservedResourceTypeSQLDatabases + const ReservedResourceTypeSQLEdge + const ReservedResourceTypeSapHana + const ReservedResourceTypeSuseLinux + const ReservedResourceTypeVMwareCloudSimple + const ReservedResourceTypeVirtualMachineSoftware + const ReservedResourceTypeVirtualMachines + func PossibleReservedResourceTypeValues() []ReservedResourceType + type RoleAssignmentEntity struct + ID *string + Name *string + Properties *RoleAssignmentEntityProperties + func (r *RoleAssignmentEntity) UnmarshalJSON(data []byte) error + func (r RoleAssignmentEntity) MarshalJSON() ([]byte, error) + type RoleAssignmentEntityProperties struct + PrincipalID *string + RoleDefinitionID *string + Scope *string + func (r *RoleAssignmentEntityProperties) UnmarshalJSON(data []byte) error + func (r RoleAssignmentEntityProperties) MarshalJSON() ([]byte, error) + type SKU struct + Name *string + func (s *SKU) UnmarshalJSON(data []byte) error + func (s SKU) MarshalJSON() ([]byte, error) + type SavingsPlanClient struct + func NewSavingsPlanClient(expand *string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SavingsPlanClient, error) + func (client *SavingsPlanClient) Get(ctx context.Context, savingsPlanOrderID string, savingsPlanID string, ...) (SavingsPlanClientGetResponse, error) + func (client *SavingsPlanClient) NewListAllPager(options *SavingsPlanClientListAllOptions) *runtime.Pager[SavingsPlanClientListAllResponse] + func (client *SavingsPlanClient) NewListPager(savingsPlanOrderID string, options *SavingsPlanClientListOptions) *runtime.Pager[SavingsPlanClientListResponse] + func (client *SavingsPlanClient) Update(ctx context.Context, savingsPlanOrderID string, savingsPlanID string, ...) (SavingsPlanClientUpdateResponse, error) + func (client *SavingsPlanClient) ValidateUpdate(ctx context.Context, savingsPlanOrderID string, savingsPlanID string, ...) (SavingsPlanClientValidateUpdateResponse, error) + type SavingsPlanClientGetOptions struct + type SavingsPlanClientGetResponse struct + type SavingsPlanClientListAllOptions struct + Filter *string + Orderby *string + RefreshSummary *string + SelectedState *string + Skiptoken *float32 + Take *float32 + type SavingsPlanClientListAllResponse struct + type SavingsPlanClientListOptions struct + type SavingsPlanClientListResponse struct + type SavingsPlanClientUpdateOptions struct + type SavingsPlanClientUpdateResponse struct + Location *string + type SavingsPlanClientValidateUpdateOptions struct + type SavingsPlanClientValidateUpdateResponse struct + type SavingsPlanModel struct + ID *string + Name *string + Properties *SavingsPlanModelProperties + SKU *SKU + SystemData *SystemData + Type *string + func (s *SavingsPlanModel) UnmarshalJSON(data []byte) error + func (s SavingsPlanModel) MarshalJSON() ([]byte, error) + type SavingsPlanModelList struct + NextLink *string + Value []*SavingsPlanModel + func (s *SavingsPlanModelList) UnmarshalJSON(data []byte) error + func (s SavingsPlanModelList) MarshalJSON() ([]byte, error) + type SavingsPlanModelListResult struct + AdditionalProperties []*SavingsPlanSummary + NextLink *string + Value []*SavingsPlanModel + func (s *SavingsPlanModelListResult) UnmarshalJSON(data []byte) error + func (s SavingsPlanModelListResult) MarshalJSON() ([]byte, error) + type SavingsPlanModelProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + BenefitStartTime *time.Time + BillingAccountID *string + BillingPlan *BillingPlan + BillingProfileID *string + BillingScopeID *string + Commitment *Commitment + CustomerID *string + DisplayName *string + DisplayProvisioningState *string + EffectiveDateTime *time.Time + ExpiryDateTime *time.Time + ExtendedStatusInfo *ExtendedStatusInfo + ProvisioningState *ProvisioningState + PurchaseDateTime *time.Time + Renew *bool + RenewDestination *string + RenewProperties *RenewProperties + RenewSource *string + Term *Term + UserFriendlyAppliedScopeType *string + Utilization *Utilization + func (s *SavingsPlanModelProperties) UnmarshalJSON(data []byte) error + func (s SavingsPlanModelProperties) MarshalJSON() ([]byte, error) + type SavingsPlanOrderAliasClient struct + func NewSavingsPlanOrderAliasClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*SavingsPlanOrderAliasClient, error) + func (client *SavingsPlanOrderAliasClient) BeginCreate(ctx context.Context, savingsPlanOrderAliasName string, ...) (*runtime.Poller[SavingsPlanOrderAliasClientCreateResponse], error) + func (client *SavingsPlanOrderAliasClient) Get(ctx context.Context, savingsPlanOrderAliasName string, ...) (SavingsPlanOrderAliasClientGetResponse, error) + type SavingsPlanOrderAliasClientBeginCreateOptions struct + ResumeToken string + type SavingsPlanOrderAliasClientCreateResponse struct + type SavingsPlanOrderAliasClientGetOptions struct + type SavingsPlanOrderAliasClientGetResponse struct + type SavingsPlanOrderAliasModel struct + ID *string + Kind *string + Name *string + Properties *SavingsPlanOrderAliasProperties + SKU *SKU + SystemData *SystemData + Type *string + func (s *SavingsPlanOrderAliasModel) UnmarshalJSON(data []byte) error + func (s SavingsPlanOrderAliasModel) MarshalJSON() ([]byte, error) + type SavingsPlanOrderAliasProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + BillingPlan *BillingPlan + BillingScopeID *string + Commitment *Commitment + DisplayName *string + ProvisioningState *ProvisioningState + SavingsPlanOrderID *string + Term *Term + func (s *SavingsPlanOrderAliasProperties) UnmarshalJSON(data []byte) error + func (s SavingsPlanOrderAliasProperties) MarshalJSON() ([]byte, error) + type SavingsPlanOrderClient struct + func NewSavingsPlanOrderClient(expand *string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SavingsPlanOrderClient, error) + func (client *SavingsPlanOrderClient) Elevate(ctx context.Context, savingsPlanOrderID string, ...) (SavingsPlanOrderClientElevateResponse, error) + func (client *SavingsPlanOrderClient) Get(ctx context.Context, savingsPlanOrderID string, ...) (SavingsPlanOrderClientGetResponse, error) + func (client *SavingsPlanOrderClient) NewListPager(options *SavingsPlanOrderClientListOptions) *runtime.Pager[SavingsPlanOrderClientListResponse] + type SavingsPlanOrderClientElevateOptions struct + type SavingsPlanOrderClientElevateResponse struct + type SavingsPlanOrderClientGetOptions struct + type SavingsPlanOrderClientGetResponse struct + type SavingsPlanOrderClientListOptions struct + type SavingsPlanOrderClientListResponse struct + type SavingsPlanOrderModel struct + ID *string + Name *string + Properties *SavingsPlanOrderModelProperties + SKU *SKU + SystemData *SystemData + Type *string + func (s *SavingsPlanOrderModel) UnmarshalJSON(data []byte) error + func (s SavingsPlanOrderModel) MarshalJSON() ([]byte, error) + type SavingsPlanOrderModelList struct + NextLink *string + Value []*SavingsPlanOrderModel + func (s *SavingsPlanOrderModelList) UnmarshalJSON(data []byte) error + func (s SavingsPlanOrderModelList) MarshalJSON() ([]byte, error) + type SavingsPlanOrderModelProperties struct + BenefitStartTime *time.Time + BillingAccountID *string + BillingPlan *BillingPlan + BillingProfileID *string + BillingScopeID *string + CustomerID *string + DisplayName *string + ExpiryDateTime *time.Time + ExtendedStatusInfo *ExtendedStatusInfo + PlanInformation *BillingPlanInformation + ProvisioningState *ProvisioningState + SavingsPlans []*string + Term *Term + func (s *SavingsPlanOrderModelProperties) UnmarshalJSON(data []byte) error + func (s SavingsPlanOrderModelProperties) MarshalJSON() ([]byte, error) + type SavingsPlanPurchaseValidateRequest struct + Benefits []*SavingsPlanOrderAliasModel + func (s *SavingsPlanPurchaseValidateRequest) UnmarshalJSON(data []byte) error + func (s SavingsPlanPurchaseValidateRequest) MarshalJSON() ([]byte, error) + type SavingsPlanSummary struct + Name *string + Value *SavingsPlanSummaryCount + func (s *SavingsPlanSummary) UnmarshalJSON(data []byte) error + func (s SavingsPlanSummary) MarshalJSON() ([]byte, error) + type SavingsPlanSummaryCount struct + CancelledCount *float32 + ExpiredCount *float32 + ExpiringCount *float32 + FailedCount *float32 + NoBenefitCount *float32 + PendingCount *float32 + ProcessingCount *float32 + SucceededCount *float32 + WarningCount *float32 + func (s *SavingsPlanSummaryCount) UnmarshalJSON(data []byte) error + func (s SavingsPlanSummaryCount) MarshalJSON() ([]byte, error) + type SavingsPlanUpdateRequest struct + Properties *SavingsPlanUpdateRequestProperties + func (s *SavingsPlanUpdateRequest) UnmarshalJSON(data []byte) error + func (s SavingsPlanUpdateRequest) MarshalJSON() ([]byte, error) + type SavingsPlanUpdateRequestProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + DisplayName *string + Renew *bool + RenewProperties *RenewProperties + func (s *SavingsPlanUpdateRequestProperties) UnmarshalJSON(data []byte) error + func (s SavingsPlanUpdateRequestProperties) MarshalJSON() ([]byte, error) + type SavingsPlanUpdateValidateRequest struct + Benefits []*SavingsPlanUpdateRequestProperties + func (s *SavingsPlanUpdateValidateRequest) UnmarshalJSON(data []byte) error + func (s SavingsPlanUpdateValidateRequest) MarshalJSON() ([]byte, error) + type SavingsPlanValidResponseProperty struct + Reason *string + ReasonCode *string + Valid *bool + func (s *SavingsPlanValidResponseProperty) UnmarshalJSON(data []byte) error + func (s SavingsPlanValidResponseProperty) MarshalJSON() ([]byte, error) + type SavingsPlanValidateResponse struct + Benefits []*SavingsPlanValidResponseProperty + NextLink *string + func (s *SavingsPlanValidateResponse) UnmarshalJSON(data []byte) error + func (s SavingsPlanValidateResponse) MarshalJSON() ([]byte, error) + type SystemData struct + CreatedAt *time.Time + CreatedBy *string + CreatedByType *CreatedByType + LastModifiedAt *time.Time + LastModifiedBy *string + LastModifiedByType *CreatedByType + func (s *SystemData) UnmarshalJSON(data []byte) error + func (s SystemData) MarshalJSON() ([]byte, error) + type Term string + const TermP1Y + const TermP3Y + const TermP5Y + func PossibleTermValues() []Term + type Utilization struct + Aggregates []*UtilizationAggregates + Trend *string + func (u *Utilization) UnmarshalJSON(data []byte) error + func (u Utilization) MarshalJSON() ([]byte, error) + type UtilizationAggregates struct + Grain *float32 + GrainUnit *string + Value *float32 + ValueUnit *string + func (u *UtilizationAggregates) UnmarshalJSON(data []byte) error + func (u UtilizationAggregates) MarshalJSON() ([]byte, error) Other modules containing this package github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billingbenefits/armbillingbenefits/v2