billingstatistics

package
v0.20241212.1154051 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2023-12-01-preview/billingstatistics Documentation

The billingstatistics SDK allows for interaction with Azure Resource Manager securityinsights (API Version 2023-12-01-preview).

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/securityinsights/2023-12-01-preview/billingstatistics"

Client Initialization

client := billingstatistics.NewBillingStatisticsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BillingStatisticsClient.Get

ctx := context.TODO()
id := billingstatistics.NewBillingStatisticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "billingStatisticName")

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

Example Usage: BillingStatisticsClient.List

ctx := context.TODO()
id := billingstatistics.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForBillingStatisticKind

func PossibleValuesForBillingStatisticKind() []string

func ValidateBillingStatisticID

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

ValidateBillingStatisticID checks that 'input' can be parsed as a Billing Statistic ID

func ValidateWorkspaceID

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

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type BaseBillingStatisticImpl

type BaseBillingStatisticImpl struct {
	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       BillingStatisticKind   `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (BaseBillingStatisticImpl) BillingStatistic

type BillingStatistic

type BillingStatistic interface {
	BillingStatistic() BaseBillingStatisticImpl
}

func UnmarshalBillingStatisticImplementation

func UnmarshalBillingStatisticImplementation(input []byte) (BillingStatistic, error)

type BillingStatisticId

type BillingStatisticId struct {
	SubscriptionId       string
	ResourceGroupName    string
	WorkspaceName        string
	BillingStatisticName string
}

BillingStatisticId is a struct representing the Resource ID for a Billing Statistic

func NewBillingStatisticID

func NewBillingStatisticID(subscriptionId string, resourceGroupName string, workspaceName string, billingStatisticName string) BillingStatisticId

NewBillingStatisticID returns a new BillingStatisticId struct

func ParseBillingStatisticID

func ParseBillingStatisticID(input string) (*BillingStatisticId, error)

ParseBillingStatisticID parses 'input' into a BillingStatisticId

func ParseBillingStatisticIDInsensitively

func ParseBillingStatisticIDInsensitively(input string) (*BillingStatisticId, error)

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

func (*BillingStatisticId) FromParseResult

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

func (BillingStatisticId) ID

func (id BillingStatisticId) ID() string

ID returns the formatted Billing Statistic ID

func (BillingStatisticId) Segments

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

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

func (BillingStatisticId) String

func (id BillingStatisticId) String() string

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

type BillingStatisticKind

type BillingStatisticKind string
const (
	BillingStatisticKindSapSolutionUsage BillingStatisticKind = "SapSolutionUsage"
)

func (*BillingStatisticKind) UnmarshalJSON

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

type BillingStatisticOperationPredicate

type BillingStatisticOperationPredicate struct {
}

func (BillingStatisticOperationPredicate) Matches

type BillingStatisticsClient

type BillingStatisticsClient struct {
	Client *resourcemanager.Client
}

func NewBillingStatisticsClientWithBaseURI

func NewBillingStatisticsClientWithBaseURI(sdkApi sdkEnv.Api) (*BillingStatisticsClient, error)

func (BillingStatisticsClient) Get

Get ...

func (BillingStatisticsClient) List

List ...

func (BillingStatisticsClient) ListComplete

ListComplete retrieves all the results into a single object

func (BillingStatisticsClient) ListCompleteMatchingPredicate

func (c BillingStatisticsClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate BillingStatisticOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        BillingStatistic
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingStatistic
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingStatistic
}

type RawBillingStatisticImpl

type RawBillingStatisticImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawBillingStatisticImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawBillingStatisticImpl) BillingStatistic

type SapSolutionUsageStatistic

type SapSolutionUsageStatistic struct {
	Properties *SapSolutionUsageStatisticProperties `json:"properties,omitempty"`

	Etag       *string                `json:"etag,omitempty"`
	Id         *string                `json:"id,omitempty"`
	Kind       BillingStatisticKind   `json:"kind"`
	Name       *string                `json:"name,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

func (SapSolutionUsageStatistic) BillingStatistic

func (SapSolutionUsageStatistic) MarshalJSON

func (s SapSolutionUsageStatistic) MarshalJSON() ([]byte, error)

type SapSolutionUsageStatisticProperties

type SapSolutionUsageStatisticProperties struct {
	ActiveSystemIdCount *int64 `json:"activeSystemIdCount,omitempty"`
}

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

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

func (*WorkspaceId) FromParseResult

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

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

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

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

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

Jump to

Keyboard shortcuts

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