workspaceskus

package
v0.20221114.1052327 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2021-07-01/workspaceskus Documentation

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

Client Initialization

client := workspaceskus.NewWorkspaceSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WorkspaceSkusClient.List

ctx := context.TODO()
id := workspaceskus.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

func PossibleValuesForReasonCode

func PossibleValuesForReasonCode() []string

Types

type ListCompleteResult

type ListCompleteResult struct {
	Items []WorkspaceSku
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]WorkspaceSku
	// 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 ReasonCode

type ReasonCode string
const (
	ReasonCodeNotAvailableForRegion       ReasonCode = "NotAvailableForRegion"
	ReasonCodeNotAvailableForSubscription ReasonCode = "NotAvailableForSubscription"
	ReasonCodeNotSpecified                ReasonCode = "NotSpecified"
)

type ResourceSkuLocationInfo

type ResourceSkuLocationInfo struct {
	Location    *string                   `json:"location,omitempty"`
	ZoneDetails *[]ResourceSkuZoneDetails `json:"zoneDetails,omitempty"`
	Zones       *zones.Schema             `json:"zones,omitempty"`
}

type ResourceSkuZoneDetails

type ResourceSkuZoneDetails struct {
	Capabilities *[]SKUCapability `json:"capabilities,omitempty"`
	Name         *[]string        `json:"name,omitempty"`
}

type Restriction

type Restriction struct {
	ReasonCode *ReasonCode `json:"reasonCode,omitempty"`
	Type       *string     `json:"type,omitempty"`
	Values     *[]string   `json:"values,omitempty"`
}

type SKUCapability

type SKUCapability struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type WorkspaceSku

type WorkspaceSku struct {
	Capabilities *[]SKUCapability           `json:"capabilities,omitempty"`
	LocationInfo *[]ResourceSkuLocationInfo `json:"locationInfo,omitempty"`
	Locations    *[]string                  `json:"locations,omitempty"`
	Name         *string                    `json:"name,omitempty"`
	ResourceType *string                    `json:"resourceType,omitempty"`
	Restrictions *[]Restriction             `json:"restrictions,omitempty"`
	Tier         *string                    `json:"tier,omitempty"`
}

type WorkspaceSkuOperationPredicate

type WorkspaceSkuOperationPredicate struct {
	Name         *string
	ResourceType *string
	Tier         *string
}

func (WorkspaceSkuOperationPredicate) Matches

type WorkspaceSkusClient

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

func NewWorkspaceSkusClientWithBaseURI

func NewWorkspaceSkusClientWithBaseURI(endpoint string) WorkspaceSkusClient

func (WorkspaceSkusClient) List

List ...

func (WorkspaceSkusClient) ListComplete

ListComplete retrieves all of the results into a single object

func (WorkspaceSkusClient) ListCompleteMatchingPredicate

func (c WorkspaceSkusClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate WorkspaceSkuOperationPredicate) (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