dimensions

package
v0.20230222.1112900 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/dimensions Documentation

The dimensions SDK allows for interaction with the Azure Resource Manager Service costmanagement (API Version 2021-10-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-sdk/resource-manager/costmanagement/2021-10-01/dimensions"

Client Initialization

client := dimensions.NewDimensionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DimensionsClient.ByExternalCloudProviderType

ctx := context.TODO()
id := dimensions.NewExternalCloudProviderTypeID("externalBillingAccounts", "externalCloudProviderIdValue")

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

Example Usage: DimensionsClient.List

ctx := context.TODO()
id := dimensions.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

read, err := client.List(ctx, id, dimensions.DefaultListOperationOptions())
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 PossibleValuesForExternalCloudProviderType

func PossibleValuesForExternalCloudProviderType() []string

func ValidateExternalCloudProviderTypeID

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

ValidateExternalCloudProviderTypeID checks that 'input' can be parsed as a External Cloud Provider Type ID

Types

type ByExternalCloudProviderTypeOperationOptions

type ByExternalCloudProviderTypeOperationOptions struct {
	Expand *string
	Filter *string
	Top    *int64
}

func DefaultByExternalCloudProviderTypeOperationOptions

func DefaultByExternalCloudProviderTypeOperationOptions() ByExternalCloudProviderTypeOperationOptions

type ByExternalCloudProviderTypeOperationResponse

type ByExternalCloudProviderTypeOperationResponse struct {
	HttpResponse *http.Response
	Model        *Dimension
}

type Dimension

type Dimension struct {
	ETag       *string              `json:"eTag,omitempty"`
	Id         *string              `json:"id,omitempty"`
	Location   *string              `json:"location,omitempty"`
	Name       *string              `json:"name,omitempty"`
	Properties *DimensionProperties `json:"properties,omitempty"`
	Sku        *string              `json:"sku,omitempty"`
	Tags       *map[string]string   `json:"tags,omitempty"`
	Type       *string              `json:"type,omitempty"`
}

type DimensionProperties

type DimensionProperties struct {
	Category        *string   `json:"category,omitempty"`
	Data            *[]string `json:"data,omitempty"`
	Description     *string   `json:"description,omitempty"`
	FilterEnabled   *bool     `json:"filterEnabled,omitempty"`
	GroupingEnabled *bool     `json:"groupingEnabled,omitempty"`
	NextLink        *string   `json:"nextLink,omitempty"`
	Total           *int64    `json:"total,omitempty"`
	UsageEnd        *string   `json:"usageEnd,omitempty"`
	UsageStart      *string   `json:"usageStart,omitempty"`
}

func (*DimensionProperties) GetUsageEndAsTime

func (o *DimensionProperties) GetUsageEndAsTime() (*time.Time, error)

func (*DimensionProperties) GetUsageStartAsTime

func (o *DimensionProperties) GetUsageStartAsTime() (*time.Time, error)

func (*DimensionProperties) SetUsageEndAsTime

func (o *DimensionProperties) SetUsageEndAsTime(input time.Time)

func (*DimensionProperties) SetUsageStartAsTime

func (o *DimensionProperties) SetUsageStartAsTime(input time.Time)

type DimensionsClient

type DimensionsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewDimensionsClientWithBaseURI

func NewDimensionsClientWithBaseURI(endpoint string) DimensionsClient

func (DimensionsClient) ByExternalCloudProviderType

ByExternalCloudProviderType ...

func (DimensionsClient) List

List ...

type ExternalCloudProviderType

type ExternalCloudProviderType string
const (
	ExternalCloudProviderTypeExternalBillingAccounts ExternalCloudProviderType = "externalBillingAccounts"
	ExternalCloudProviderTypeExternalSubscriptions   ExternalCloudProviderType = "externalSubscriptions"
)

type ExternalCloudProviderTypeId

type ExternalCloudProviderTypeId struct {
	ExternalCloudProviderType ExternalCloudProviderType
	ExternalCloudProviderId   string
}

ExternalCloudProviderTypeId is a struct representing the Resource ID for a External Cloud Provider Type

func NewExternalCloudProviderTypeID

func NewExternalCloudProviderTypeID(externalCloudProviderType ExternalCloudProviderType, externalCloudProviderId string) ExternalCloudProviderTypeId

NewExternalCloudProviderTypeID returns a new ExternalCloudProviderTypeId struct

func ParseExternalCloudProviderTypeID

func ParseExternalCloudProviderTypeID(input string) (*ExternalCloudProviderTypeId, error)

ParseExternalCloudProviderTypeID parses 'input' into a ExternalCloudProviderTypeId

func ParseExternalCloudProviderTypeIDInsensitively

func ParseExternalCloudProviderTypeIDInsensitively(input string) (*ExternalCloudProviderTypeId, error)

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

func (ExternalCloudProviderTypeId) ID

ID returns the formatted External Cloud Provider Type ID

func (ExternalCloudProviderTypeId) Segments

Segments returns a slice of Resource ID Segments which comprise this External Cloud Provider Type ID

func (ExternalCloudProviderTypeId) String

func (id ExternalCloudProviderTypeId) String() string

String returns a human-readable description of this External Cloud Provider Type ID

type ListOperationOptions

type ListOperationOptions struct {
	Expand *string
	Filter *string
	Top    *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *Dimension
}

Jump to

Keyboard shortcuts

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