usagemodels

package
v0.20230213.1131930 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2021-09-01/usagemodels Documentation

The usagemodels SDK allows for interaction with the Azure Resource Manager Service storagecache (API Version 2021-09-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/storagecache/2021-09-01/usagemodels"

Client Initialization

client := usagemodels.NewUsageModelsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: UsageModelsClient.List

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

// 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

This section is empty.

Types

type ListCompleteResult

type ListCompleteResult struct {
	Items []UsageModel
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]UsageModel
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type UsageModel

type UsageModel struct {
	Display    *UsageModelDisplay `json:"display,omitempty"`
	ModelName  *string            `json:"modelName,omitempty"`
	TargetType *string            `json:"targetType,omitempty"`
}

type UsageModelDisplay

type UsageModelDisplay struct {
	Description *string `json:"description,omitempty"`
}

type UsageModelOperationPredicate

type UsageModelOperationPredicate struct {
	ModelName  *string
	TargetType *string
}

func (UsageModelOperationPredicate) Matches

func (p UsageModelOperationPredicate) Matches(input UsageModel) bool

type UsageModelsClient

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

func NewUsageModelsClientWithBaseURI

func NewUsageModelsClientWithBaseURI(endpoint string) UsageModelsClient

func (UsageModelsClient) List

List ...

func (UsageModelsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (UsageModelsClient) ListCompleteMatchingPredicate

func (c UsageModelsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate UsageModelOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

Jump to

Keyboard shortcuts

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