location

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/location Documentation

The location SDK allows for interaction with Azure Resource Manager batch (API Version 2024-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/batch/2024-07-01/location"

Client Initialization

client := location.NewLocationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LocationClient.GetQuotas

ctx := context.TODO()
id := location.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName")

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

Example Usage: LocationClient.ListSupportedVirtualMachineSkus

ctx := context.TODO()
id := location.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName")

// alternatively `client.ListSupportedVirtualMachineSkus(ctx, id, location.DefaultListSupportedVirtualMachineSkusOperationOptions())` can be used to do batched pagination
items, err := client.ListSupportedVirtualMachineSkusComplete(ctx, id, location.DefaultListSupportedVirtualMachineSkusOperationOptions())
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 ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

Types

type BatchLocationQuota

type BatchLocationQuota struct {
	AccountQuota *int64 `json:"accountQuota,omitempty"`
}

type GetQuotasOperationResponse

type GetQuotasOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BatchLocationQuota
}

type ListSupportedVirtualMachineSkusCompleteResult

type ListSupportedVirtualMachineSkusCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SupportedSku
}

type ListSupportedVirtualMachineSkusCustomPager

type ListSupportedVirtualMachineSkusCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ListSupportedVirtualMachineSkusOperationOptions

type ListSupportedVirtualMachineSkusOperationOptions struct {
	Filter     *string
	Maxresults *int64
}

func DefaultListSupportedVirtualMachineSkusOperationOptions

func DefaultListSupportedVirtualMachineSkusOperationOptions() ListSupportedVirtualMachineSkusOperationOptions

func (ListSupportedVirtualMachineSkusOperationOptions) ToHeaders

func (ListSupportedVirtualMachineSkusOperationOptions) ToOData

func (ListSupportedVirtualMachineSkusOperationOptions) ToQuery

type ListSupportedVirtualMachineSkusOperationResponse

type ListSupportedVirtualMachineSkusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SupportedSku
}

type LocationClient

type LocationClient struct {
	Client *resourcemanager.Client
}

func NewLocationClientWithBaseURI

func NewLocationClientWithBaseURI(sdkApi sdkEnv.Api) (*LocationClient, error)

func (LocationClient) GetQuotas

func (c LocationClient) GetQuotas(ctx context.Context, id LocationId) (result GetQuotasOperationResponse, err error)

GetQuotas ...

func (LocationClient) ListSupportedVirtualMachineSkus

ListSupportedVirtualMachineSkus ...

func (LocationClient) ListSupportedVirtualMachineSkusComplete

ListSupportedVirtualMachineSkusComplete retrieves all the results into a single object

func (LocationClient) ListSupportedVirtualMachineSkusCompleteMatchingPredicate

func (c LocationClient) ListSupportedVirtualMachineSkusCompleteMatchingPredicate(ctx context.Context, id LocationId, options ListSupportedVirtualMachineSkusOperationOptions, predicate SupportedSkuOperationPredicate) (result ListSupportedVirtualMachineSkusCompleteResult, err error)

ListSupportedVirtualMachineSkusCompleteMatchingPredicate retrieves all the results and then applies the predicate

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

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

func (*LocationId) FromParseResult

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

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

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type SkuCapability

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

type SupportedSku

type SupportedSku struct {
	BatchSupportEndOfLife *string          `json:"batchSupportEndOfLife,omitempty"`
	Capabilities          *[]SkuCapability `json:"capabilities,omitempty"`
	FamilyName            *string          `json:"familyName,omitempty"`
	Name                  *string          `json:"name,omitempty"`
}

func (*SupportedSku) GetBatchSupportEndOfLifeAsTime

func (o *SupportedSku) GetBatchSupportEndOfLifeAsTime() (*time.Time, error)

func (*SupportedSku) SetBatchSupportEndOfLifeAsTime

func (o *SupportedSku) SetBatchSupportEndOfLifeAsTime(input time.Time)

type SupportedSkuOperationPredicate

type SupportedSkuOperationPredicate struct {
	BatchSupportEndOfLife *string
	FamilyName            *string
	Name                  *string
}

func (SupportedSkuOperationPredicate) Matches

Jump to

Keyboard shortcuts

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