virtualapplianceskus

package
v0.20231116.1162710 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-05-01/virtualapplianceskus Documentation

The virtualapplianceskus SDK allows for interaction with the Azure Resource Manager Service network (API Version 2023-05-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/network/2023-05-01/virtualapplianceskus"

Client Initialization

client := virtualapplianceskus.NewVirtualApplianceSkusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualApplianceSkusClient.Get

ctx := context.TODO()
id := virtualapplianceskus.NewNetworkVirtualApplianceSkuID("12345678-1234-9876-4563-123456789012", "networkVirtualApplianceSkuValue")

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: VirtualApplianceSkusClient.List

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

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

ValidateNetworkVirtualApplianceSkuID checks that 'input' can be parsed as a Network Virtual Appliance Sku ID

Types

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []NetworkVirtualApplianceSku
}

type ListOperationResponse

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

type NetworkVirtualApplianceSku

type NetworkVirtualApplianceSku struct {
	Etag       *string                                     `json:"etag,omitempty"`
	Id         *string                                     `json:"id,omitempty"`
	Location   *string                                     `json:"location,omitempty"`
	Name       *string                                     `json:"name,omitempty"`
	Properties *NetworkVirtualApplianceSkuPropertiesFormat `json:"properties,omitempty"`
	Tags       *map[string]string                          `json:"tags,omitempty"`
	Type       *string                                     `json:"type,omitempty"`
}

type NetworkVirtualApplianceSkuId

type NetworkVirtualApplianceSkuId struct {
	SubscriptionId                 string
	NetworkVirtualApplianceSkuName string
}

NetworkVirtualApplianceSkuId is a struct representing the Resource ID for a Network Virtual Appliance Sku

func NewNetworkVirtualApplianceSkuID

func NewNetworkVirtualApplianceSkuID(subscriptionId string, networkVirtualApplianceSkuName string) NetworkVirtualApplianceSkuId

NewNetworkVirtualApplianceSkuID returns a new NetworkVirtualApplianceSkuId struct

func ParseNetworkVirtualApplianceSkuID

func ParseNetworkVirtualApplianceSkuID(input string) (*NetworkVirtualApplianceSkuId, error)

ParseNetworkVirtualApplianceSkuID parses 'input' into a NetworkVirtualApplianceSkuId

func ParseNetworkVirtualApplianceSkuIDInsensitively

func ParseNetworkVirtualApplianceSkuIDInsensitively(input string) (*NetworkVirtualApplianceSkuId, error)

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

func (NetworkVirtualApplianceSkuId) ID

ID returns the formatted Network Virtual Appliance Sku ID

func (NetworkVirtualApplianceSkuId) Segments

Segments returns a slice of Resource ID Segments which comprise this Network Virtual Appliance Sku ID

func (NetworkVirtualApplianceSkuId) String

String returns a human-readable description of this Network Virtual Appliance Sku ID

type NetworkVirtualApplianceSkuInstances

type NetworkVirtualApplianceSkuInstances struct {
	InstanceCount *int64  `json:"instanceCount,omitempty"`
	ScaleUnit     *string `json:"scaleUnit,omitempty"`
}

type NetworkVirtualApplianceSkuOperationPredicate

type NetworkVirtualApplianceSkuOperationPredicate struct {
	Etag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (NetworkVirtualApplianceSkuOperationPredicate) Matches

type NetworkVirtualApplianceSkuPropertiesFormat

type NetworkVirtualApplianceSkuPropertiesFormat struct {
	AvailableScaleUnits *[]NetworkVirtualApplianceSkuInstances `json:"availableScaleUnits,omitempty"`
	AvailableVersions   *[]string                              `json:"availableVersions,omitempty"`
	Vendor              *string                                `json:"vendor,omitempty"`
}

type VirtualApplianceSkusClient

type VirtualApplianceSkusClient struct {
	Client *resourcemanager.Client
}

func NewVirtualApplianceSkusClientWithBaseURI

func NewVirtualApplianceSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualApplianceSkusClient, error)

func (VirtualApplianceSkusClient) Get

Get ...

func (VirtualApplianceSkusClient) List

List ...

func (VirtualApplianceSkusClient) ListComplete

ListComplete retrieves all the results into a single object

func (VirtualApplianceSkusClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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