policy

package
v0.20241126.1723 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2024-04-01/policy Documentation

The policy SDK allows for interaction with Azure Resource Manager billing (API Version 2024-04-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/billing/2024-04-01/policy"

Client Initialization

client := policy.NewPolicyClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PolicyClient.PoliciesCreateOrUpdateByBillingAccount

ctx := context.TODO()
id := policy.NewBillingAccountID("billingAccountName")

payload := policy.BillingAccountPolicy{
	// ...
}


if err := client.PoliciesCreateOrUpdateByBillingAccountThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: PolicyClient.PoliciesCreateOrUpdateByBillingProfile

ctx := context.TODO()
id := policy.NewBillingProfileID("billingAccountName", "billingProfileName")

payload := policy.BillingProfilePolicy{
	// ...
}


if err := client.PoliciesCreateOrUpdateByBillingProfileThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: PolicyClient.PoliciesCreateOrUpdateByCustomer

ctx := context.TODO()
id := policy.NewBillingProfileCustomerID("billingAccountName", "billingProfileName", "customerName")

payload := policy.CustomerPolicy{
	// ...
}


if err := client.PoliciesCreateOrUpdateByCustomerThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: PolicyClient.PoliciesCreateOrUpdateByCustomerAtBillingAccount

ctx := context.TODO()
id := policy.NewCustomerID("billingAccountName", "customerName")

payload := policy.CustomerPolicy{
	// ...
}


if err := client.PoliciesCreateOrUpdateByCustomerAtBillingAccountThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: PolicyClient.PoliciesGetByBillingAccount

ctx := context.TODO()
id := policy.NewBillingAccountID("billingAccountName")

read, err := client.PoliciesGetByBillingAccount(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyClient.PoliciesGetByBillingProfile

ctx := context.TODO()
id := policy.NewBillingProfileID("billingAccountName", "billingProfileName")

read, err := client.PoliciesGetByBillingProfile(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyClient.PoliciesGetByCustomer

ctx := context.TODO()
id := policy.NewBillingProfileCustomerID("billingAccountName", "billingProfileName", "customerName")

read, err := client.PoliciesGetByCustomer(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyClient.PoliciesGetByCustomerAtBillingAccount

ctx := context.TODO()
id := policy.NewCustomerID("billingAccountName", "customerName")

read, err := client.PoliciesGetByCustomerAtBillingAccount(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyClient.PoliciesGetBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.PoliciesGetBySubscription(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForEnrollmentAccountOwnerViewCharges

func PossibleValuesForEnrollmentAccountOwnerViewCharges() []string

func PossibleValuesForEnrollmentAuthLevelState

func PossibleValuesForEnrollmentAuthLevelState() []string

func PossibleValuesForEnrollmentDepartmentAdminViewCharges

func PossibleValuesForEnrollmentDepartmentAdminViewCharges() []string

func PossibleValuesForInvoiceSectionLabelManagementPolicy

func PossibleValuesForInvoiceSectionLabelManagementPolicy() []string

func PossibleValuesForMarketplacePurchasesPolicy

func PossibleValuesForMarketplacePurchasesPolicy() []string

func PossibleValuesForPolicyType

func PossibleValuesForPolicyType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForReservationPurchasesPolicy

func PossibleValuesForReservationPurchasesPolicy() []string

func PossibleValuesForSavingsPlanPurchasesPolicy

func PossibleValuesForSavingsPlanPurchasesPolicy() []string

func PossibleValuesForViewChargesPolicy

func PossibleValuesForViewChargesPolicy() []string

func ValidateBillingAccountID

func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID

func ValidateBillingProfileCustomerID

func ValidateBillingProfileCustomerID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingProfileCustomerID checks that 'input' can be parsed as a Billing Profile Customer ID

func ValidateBillingProfileID

func ValidateBillingProfileID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile ID

func ValidateCustomerID

func ValidateCustomerID(input interface{}, key string) (warnings []string, errors []error)

ValidateCustomerID checks that 'input' can be parsed as a Customer ID

Types

type BillingAccountId

type BillingAccountId struct {
	BillingAccountName string
}

BillingAccountId is a struct representing the Resource ID for a Billing Account

func NewBillingAccountID

func NewBillingAccountID(billingAccountName string) BillingAccountId

NewBillingAccountID returns a new BillingAccountId struct

func ParseBillingAccountID

func ParseBillingAccountID(input string) (*BillingAccountId, error)

ParseBillingAccountID parses 'input' into a BillingAccountId

func ParseBillingAccountIDInsensitively

func ParseBillingAccountIDInsensitively(input string) (*BillingAccountId, error)

ParseBillingAccountIDInsensitively parses 'input' case-insensitively into a BillingAccountId note: this method should only be used for API response data and not user input

func (*BillingAccountId) FromParseResult

func (id *BillingAccountId) FromParseResult(input resourceids.ParseResult) error

func (BillingAccountId) ID

func (id BillingAccountId) ID() string

ID returns the formatted Billing Account ID

func (BillingAccountId) Segments

func (id BillingAccountId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Billing Account ID

func (BillingAccountId) String

func (id BillingAccountId) String() string

String returns a human-readable description of this Billing Account ID

type BillingAccountPolicy

type BillingAccountPolicy struct {
	Id         *string                         `json:"id,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties *BillingAccountPolicyProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData          `json:"systemData,omitempty"`
	Tags       *map[string]string              `json:"tags,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type BillingAccountPolicyProperties

type BillingAccountPolicyProperties struct {
	EnterpriseAgreementPolicies *EnterpriseAgreementPolicies `json:"enterpriseAgreementPolicies,omitempty"`
	MarketplacePurchases        *MarketplacePurchasesPolicy  `json:"marketplacePurchases,omitempty"`
	Policies                    *[]PolicySummary             `json:"policies,omitempty"`
	ProvisioningState           *ProvisioningState           `json:"provisioningState,omitempty"`
	ReservationPurchases        *ReservationPurchasesPolicy  `json:"reservationPurchases,omitempty"`
	SavingsPlanPurchases        *SavingsPlanPurchasesPolicy  `json:"savingsPlanPurchases,omitempty"`
}

type BillingProfileCustomerId

type BillingProfileCustomerId struct {
	BillingAccountName string
	BillingProfileName string
	CustomerName       string
}

BillingProfileCustomerId is a struct representing the Resource ID for a Billing Profile Customer

func NewBillingProfileCustomerID

func NewBillingProfileCustomerID(billingAccountName string, billingProfileName string, customerName string) BillingProfileCustomerId

NewBillingProfileCustomerID returns a new BillingProfileCustomerId struct

func ParseBillingProfileCustomerID

func ParseBillingProfileCustomerID(input string) (*BillingProfileCustomerId, error)

ParseBillingProfileCustomerID parses 'input' into a BillingProfileCustomerId

func ParseBillingProfileCustomerIDInsensitively

func ParseBillingProfileCustomerIDInsensitively(input string) (*BillingProfileCustomerId, error)

ParseBillingProfileCustomerIDInsensitively parses 'input' case-insensitively into a BillingProfileCustomerId note: this method should only be used for API response data and not user input

func (*BillingProfileCustomerId) FromParseResult

func (id *BillingProfileCustomerId) FromParseResult(input resourceids.ParseResult) error

func (BillingProfileCustomerId) ID

ID returns the formatted Billing Profile Customer ID

func (BillingProfileCustomerId) Segments

Segments returns a slice of Resource ID Segments which comprise this Billing Profile Customer ID

func (BillingProfileCustomerId) String

func (id BillingProfileCustomerId) String() string

String returns a human-readable description of this Billing Profile Customer ID

type BillingProfileId

type BillingProfileId struct {
	BillingAccountName string
	BillingProfileName string
}

BillingProfileId is a struct representing the Resource ID for a Billing Profile

func NewBillingProfileID

func NewBillingProfileID(billingAccountName string, billingProfileName string) BillingProfileId

NewBillingProfileID returns a new BillingProfileId struct

func ParseBillingProfileID

func ParseBillingProfileID(input string) (*BillingProfileId, error)

ParseBillingProfileID parses 'input' into a BillingProfileId

func ParseBillingProfileIDInsensitively

func ParseBillingProfileIDInsensitively(input string) (*BillingProfileId, error)

ParseBillingProfileIDInsensitively parses 'input' case-insensitively into a BillingProfileId note: this method should only be used for API response data and not user input

func (*BillingProfileId) FromParseResult

func (id *BillingProfileId) FromParseResult(input resourceids.ParseResult) error

func (BillingProfileId) ID

func (id BillingProfileId) ID() string

ID returns the formatted Billing Profile ID

func (BillingProfileId) Segments

func (id BillingProfileId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Billing Profile ID

func (BillingProfileId) String

func (id BillingProfileId) String() string

String returns a human-readable description of this Billing Profile ID

type BillingProfilePolicy

type BillingProfilePolicy struct {
	Id         *string                         `json:"id,omitempty"`
	Name       *string                         `json:"name,omitempty"`
	Properties *BillingProfilePolicyProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData          `json:"systemData,omitempty"`
	Tags       *map[string]string              `json:"tags,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type BillingProfilePolicyProperties

type BillingProfilePolicyProperties struct {
	EnterpriseAgreementPolicies   *EnterpriseAgreementPolicies         `json:"enterpriseAgreementPolicies,omitempty"`
	InvoiceSectionLabelManagement *InvoiceSectionLabelManagementPolicy `json:"invoiceSectionLabelManagement,omitempty"`
	MarketplacePurchases          *MarketplacePurchasesPolicy          `json:"marketplacePurchases,omitempty"`
	Policies                      *[]PolicySummary                     `json:"policies,omitempty"`
	ProvisioningState             *ProvisioningState                   `json:"provisioningState,omitempty"`
	ReservationPurchases          *ReservationPurchasesPolicy          `json:"reservationPurchases,omitempty"`
	SavingsPlanPurchases          *SavingsPlanPurchasesPolicy          `json:"savingsPlanPurchases,omitempty"`
	ViewCharges                   *ViewChargesPolicy                   `json:"viewCharges,omitempty"`
}

type CustomerId

type CustomerId struct {
	BillingAccountName string
	CustomerName       string
}

CustomerId is a struct representing the Resource ID for a Customer

func NewCustomerID

func NewCustomerID(billingAccountName string, customerName string) CustomerId

NewCustomerID returns a new CustomerId struct

func ParseCustomerID

func ParseCustomerID(input string) (*CustomerId, error)

ParseCustomerID parses 'input' into a CustomerId

func ParseCustomerIDInsensitively

func ParseCustomerIDInsensitively(input string) (*CustomerId, error)

ParseCustomerIDInsensitively parses 'input' case-insensitively into a CustomerId note: this method should only be used for API response data and not user input

func (*CustomerId) FromParseResult

func (id *CustomerId) FromParseResult(input resourceids.ParseResult) error

func (CustomerId) ID

func (id CustomerId) ID() string

ID returns the formatted Customer ID

func (CustomerId) Segments

func (id CustomerId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Customer ID

func (CustomerId) String

func (id CustomerId) String() string

String returns a human-readable description of this Customer ID

type CustomerPolicy

type CustomerPolicy struct {
	Id         *string                   `json:"id,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *CustomerPolicyProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData    `json:"systemData,omitempty"`
	Tags       *map[string]string        `json:"tags,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type CustomerPolicyProperties

type CustomerPolicyProperties struct {
	Policies          *[]PolicySummary   `json:"policies,omitempty"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	ViewCharges       ViewChargesPolicy  `json:"viewCharges"`
}

type EnrollmentAccountOwnerViewCharges

type EnrollmentAccountOwnerViewCharges string
const (
	EnrollmentAccountOwnerViewChargesAllowed    EnrollmentAccountOwnerViewCharges = "Allowed"
	EnrollmentAccountOwnerViewChargesDisabled   EnrollmentAccountOwnerViewCharges = "Disabled"
	EnrollmentAccountOwnerViewChargesNotAllowed EnrollmentAccountOwnerViewCharges = "NotAllowed"
	EnrollmentAccountOwnerViewChargesOther      EnrollmentAccountOwnerViewCharges = "Other"
)

func (*EnrollmentAccountOwnerViewCharges) UnmarshalJSON

func (s *EnrollmentAccountOwnerViewCharges) UnmarshalJSON(bytes []byte) error

type EnrollmentAuthLevelState

type EnrollmentAuthLevelState string
const (
	EnrollmentAuthLevelStateMicrosoftAccountOnly             EnrollmentAuthLevelState = "MicrosoftAccountOnly"
	EnrollmentAuthLevelStateMixedAccount                     EnrollmentAuthLevelState = "MixedAccount"
	EnrollmentAuthLevelStateOrganizationalAccountCrossTenant EnrollmentAuthLevelState = "OrganizationalAccountCrossTenant"
	EnrollmentAuthLevelStateOrganizationalAccountOnly        EnrollmentAuthLevelState = "OrganizationalAccountOnly"
	EnrollmentAuthLevelStateOther                            EnrollmentAuthLevelState = "Other"
)

func (*EnrollmentAuthLevelState) UnmarshalJSON

func (s *EnrollmentAuthLevelState) UnmarshalJSON(bytes []byte) error

type EnrollmentDepartmentAdminViewCharges

type EnrollmentDepartmentAdminViewCharges string
const (
	EnrollmentDepartmentAdminViewChargesAllowed    EnrollmentDepartmentAdminViewCharges = "Allowed"
	EnrollmentDepartmentAdminViewChargesDisabled   EnrollmentDepartmentAdminViewCharges = "Disabled"
	EnrollmentDepartmentAdminViewChargesNotAllowed EnrollmentDepartmentAdminViewCharges = "NotAllowed"
	EnrollmentDepartmentAdminViewChargesOther      EnrollmentDepartmentAdminViewCharges = "Other"
)

func (*EnrollmentDepartmentAdminViewCharges) UnmarshalJSON

func (s *EnrollmentDepartmentAdminViewCharges) UnmarshalJSON(bytes []byte) error

type EnterpriseAgreementPolicies

type EnterpriseAgreementPolicies struct {
	AccountOwnerViewCharges    *EnrollmentAccountOwnerViewCharges    `json:"accountOwnerViewCharges,omitempty"`
	AuthenticationType         *EnrollmentAuthLevelState             `json:"authenticationType,omitempty"`
	DepartmentAdminViewCharges *EnrollmentDepartmentAdminViewCharges `json:"departmentAdminViewCharges,omitempty"`
}

type InvoiceSectionLabelManagementPolicy

type InvoiceSectionLabelManagementPolicy string
const (
	InvoiceSectionLabelManagementPolicyAllowed    InvoiceSectionLabelManagementPolicy = "Allowed"
	InvoiceSectionLabelManagementPolicyNotAllowed InvoiceSectionLabelManagementPolicy = "NotAllowed"
	InvoiceSectionLabelManagementPolicyOther      InvoiceSectionLabelManagementPolicy = "Other"
)

func (*InvoiceSectionLabelManagementPolicy) UnmarshalJSON

func (s *InvoiceSectionLabelManagementPolicy) UnmarshalJSON(bytes []byte) error

type MarketplacePurchasesPolicy

type MarketplacePurchasesPolicy string
const (
	MarketplacePurchasesPolicyAllAllowed      MarketplacePurchasesPolicy = "AllAllowed"
	MarketplacePurchasesPolicyDisabled        MarketplacePurchasesPolicy = "Disabled"
	MarketplacePurchasesPolicyNotAllowed      MarketplacePurchasesPolicy = "NotAllowed"
	MarketplacePurchasesPolicyOnlyFreeAllowed MarketplacePurchasesPolicy = "OnlyFreeAllowed"
	MarketplacePurchasesPolicyOther           MarketplacePurchasesPolicy = "Other"
)

func (*MarketplacePurchasesPolicy) UnmarshalJSON

func (s *MarketplacePurchasesPolicy) UnmarshalJSON(bytes []byte) error

type PoliciesCreateOrUpdateByBillingAccountOperationResponse

type PoliciesCreateOrUpdateByBillingAccountOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingAccountPolicy
}

type PoliciesCreateOrUpdateByBillingProfileOperationResponse

type PoliciesCreateOrUpdateByBillingProfileOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingProfilePolicy
}

type PoliciesCreateOrUpdateByCustomerAtBillingAccountOperationResponse

type PoliciesCreateOrUpdateByCustomerAtBillingAccountOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CustomerPolicy
}

type PoliciesCreateOrUpdateByCustomerOperationResponse

type PoliciesCreateOrUpdateByCustomerOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CustomerPolicy
}

type PoliciesGetByBillingAccountOperationResponse

type PoliciesGetByBillingAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingAccountPolicy
}

type PoliciesGetByBillingProfileOperationResponse

type PoliciesGetByBillingProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingProfilePolicy
}

type PoliciesGetByCustomerAtBillingAccountOperationResponse

type PoliciesGetByCustomerAtBillingAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CustomerPolicy
}

type PoliciesGetByCustomerOperationResponse

type PoliciesGetByCustomerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CustomerPolicy
}

type PoliciesGetBySubscriptionOperationResponse

type PoliciesGetBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SubscriptionPolicy
}

type PolicyClient

type PolicyClient struct {
	Client *resourcemanager.Client
}

func NewPolicyClientWithBaseURI

func NewPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyClient, error)

func (PolicyClient) PoliciesCreateOrUpdateByBillingAccount

func (c PolicyClient) PoliciesCreateOrUpdateByBillingAccount(ctx context.Context, id BillingAccountId, input BillingAccountPolicy) (result PoliciesCreateOrUpdateByBillingAccountOperationResponse, err error)

PoliciesCreateOrUpdateByBillingAccount ...

func (PolicyClient) PoliciesCreateOrUpdateByBillingAccountThenPoll

func (c PolicyClient) PoliciesCreateOrUpdateByBillingAccountThenPoll(ctx context.Context, id BillingAccountId, input BillingAccountPolicy) error

PoliciesCreateOrUpdateByBillingAccountThenPoll performs PoliciesCreateOrUpdateByBillingAccount then polls until it's completed

func (PolicyClient) PoliciesCreateOrUpdateByBillingProfile

func (c PolicyClient) PoliciesCreateOrUpdateByBillingProfile(ctx context.Context, id BillingProfileId, input BillingProfilePolicy) (result PoliciesCreateOrUpdateByBillingProfileOperationResponse, err error)

PoliciesCreateOrUpdateByBillingProfile ...

func (PolicyClient) PoliciesCreateOrUpdateByBillingProfileThenPoll

func (c PolicyClient) PoliciesCreateOrUpdateByBillingProfileThenPoll(ctx context.Context, id BillingProfileId, input BillingProfilePolicy) error

PoliciesCreateOrUpdateByBillingProfileThenPoll performs PoliciesCreateOrUpdateByBillingProfile then polls until it's completed

func (PolicyClient) PoliciesCreateOrUpdateByCustomer

func (c PolicyClient) PoliciesCreateOrUpdateByCustomer(ctx context.Context, id BillingProfileCustomerId, input CustomerPolicy) (result PoliciesCreateOrUpdateByCustomerOperationResponse, err error)

PoliciesCreateOrUpdateByCustomer ...

func (PolicyClient) PoliciesCreateOrUpdateByCustomerAtBillingAccount

func (c PolicyClient) PoliciesCreateOrUpdateByCustomerAtBillingAccount(ctx context.Context, id CustomerId, input CustomerPolicy) (result PoliciesCreateOrUpdateByCustomerAtBillingAccountOperationResponse, err error)

PoliciesCreateOrUpdateByCustomerAtBillingAccount ...

func (PolicyClient) PoliciesCreateOrUpdateByCustomerAtBillingAccountThenPoll

func (c PolicyClient) PoliciesCreateOrUpdateByCustomerAtBillingAccountThenPoll(ctx context.Context, id CustomerId, input CustomerPolicy) error

PoliciesCreateOrUpdateByCustomerAtBillingAccountThenPoll performs PoliciesCreateOrUpdateByCustomerAtBillingAccount then polls until it's completed

func (PolicyClient) PoliciesCreateOrUpdateByCustomerThenPoll

func (c PolicyClient) PoliciesCreateOrUpdateByCustomerThenPoll(ctx context.Context, id BillingProfileCustomerId, input CustomerPolicy) error

PoliciesCreateOrUpdateByCustomerThenPoll performs PoliciesCreateOrUpdateByCustomer then polls until it's completed

func (PolicyClient) PoliciesGetByBillingAccount

func (c PolicyClient) PoliciesGetByBillingAccount(ctx context.Context, id BillingAccountId) (result PoliciesGetByBillingAccountOperationResponse, err error)

PoliciesGetByBillingAccount ...

func (PolicyClient) PoliciesGetByBillingProfile

func (c PolicyClient) PoliciesGetByBillingProfile(ctx context.Context, id BillingProfileId) (result PoliciesGetByBillingProfileOperationResponse, err error)

PoliciesGetByBillingProfile ...

func (PolicyClient) PoliciesGetByCustomer

PoliciesGetByCustomer ...

func (PolicyClient) PoliciesGetByCustomerAtBillingAccount

func (c PolicyClient) PoliciesGetByCustomerAtBillingAccount(ctx context.Context, id CustomerId) (result PoliciesGetByCustomerAtBillingAccountOperationResponse, err error)

PoliciesGetByCustomerAtBillingAccount ...

func (PolicyClient) PoliciesGetBySubscription

func (c PolicyClient) PoliciesGetBySubscription(ctx context.Context, id commonids.SubscriptionId) (result PoliciesGetBySubscriptionOperationResponse, err error)

PoliciesGetBySubscription ...

type PolicySummary

type PolicySummary struct {
	Name       *string     `json:"name,omitempty"`
	PolicyType *PolicyType `json:"policyType,omitempty"`
	Scope      *string     `json:"scope,omitempty"`
	Value      *string     `json:"value,omitempty"`
}

type PolicyType

type PolicyType string
const (
	PolicyTypeOther            PolicyType = "Other"
	PolicyTypeSystemControlled PolicyType = "SystemControlled"
	PolicyTypeUserControlled   PolicyType = "UserControlled"
)

func (*PolicyType) UnmarshalJSON

func (s *PolicyType) UnmarshalJSON(bytes []byte) error

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateNew          ProvisioningState = "New"
	ProvisioningStatePending      ProvisioningState = "Pending"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type ReservationPurchasesPolicy

type ReservationPurchasesPolicy string
const (
	ReservationPurchasesPolicyAllowed    ReservationPurchasesPolicy = "Allowed"
	ReservationPurchasesPolicyDisabled   ReservationPurchasesPolicy = "Disabled"
	ReservationPurchasesPolicyNotAllowed ReservationPurchasesPolicy = "NotAllowed"
	ReservationPurchasesPolicyOther      ReservationPurchasesPolicy = "Other"
)

func (*ReservationPurchasesPolicy) UnmarshalJSON

func (s *ReservationPurchasesPolicy) UnmarshalJSON(bytes []byte) error

type SavingsPlanPurchasesPolicy

type SavingsPlanPurchasesPolicy string
const (
	SavingsPlanPurchasesPolicyAllowed    SavingsPlanPurchasesPolicy = "Allowed"
	SavingsPlanPurchasesPolicyDisabled   SavingsPlanPurchasesPolicy = "Disabled"
	SavingsPlanPurchasesPolicyNotAllowed SavingsPlanPurchasesPolicy = "NotAllowed"
	SavingsPlanPurchasesPolicyOther      SavingsPlanPurchasesPolicy = "Other"
)

func (*SavingsPlanPurchasesPolicy) UnmarshalJSON

func (s *SavingsPlanPurchasesPolicy) UnmarshalJSON(bytes []byte) error

type SubscriptionPolicy

type SubscriptionPolicy struct {
	Id         *string                       `json:"id,omitempty"`
	Name       *string                       `json:"name,omitempty"`
	Properties *SubscriptionPolicyProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData        `json:"systemData,omitempty"`
	Tags       *map[string]string            `json:"tags,omitempty"`
	Type       *string                       `json:"type,omitempty"`
}

type SubscriptionPolicyProperties

type SubscriptionPolicyProperties struct {
	Policies          *[]PolicySummary   `json:"policies,omitempty"`
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
}

type ViewChargesPolicy

type ViewChargesPolicy string
const (
	ViewChargesPolicyAllowed    ViewChargesPolicy = "Allowed"
	ViewChargesPolicyNotAllowed ViewChargesPolicy = "NotAllowed"
	ViewChargesPolicyOther      ViewChargesPolicy = "Other"
)

func (*ViewChargesPolicy) UnmarshalJSON

func (s *ViewChargesPolicy) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL