standbyvirtualmachinepoolruntimeviews

package
v0.20241128.1112539 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/standbypool/2024-03-01/standbyvirtualmachinepoolruntimeviews Documentation

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

Client Initialization

client := standbyvirtualmachinepoolruntimeviews.NewStandbyVirtualMachinePoolRuntimeViewsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: StandbyVirtualMachinePoolRuntimeViewsClient.Get

ctx := context.TODO()
id := standbyvirtualmachinepoolruntimeviews.NewStandbyVirtualMachinePoolRuntimeViewID("12345678-1234-9876-4563-123456789012", "example-resource-group", "standbyVirtualMachinePoolName", "runtimeViewName")

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: StandbyVirtualMachinePoolRuntimeViewsClient.ListByStandbyPool

ctx := context.TODO()
id := standbyvirtualmachinepoolruntimeviews.NewStandbyVirtualMachinePoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "standbyVirtualMachinePoolName")

// alternatively `client.ListByStandbyPool(ctx, id)` can be used to do batched pagination
items, err := client.ListByStandbyPoolComplete(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 PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateStandbyVirtualMachinePoolID

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

ValidateStandbyVirtualMachinePoolID checks that 'input' can be parsed as a Standby Virtual Machine Pool ID

func ValidateStandbyVirtualMachinePoolRuntimeViewID

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

ValidateStandbyVirtualMachinePoolRuntimeViewID checks that 'input' can be parsed as a Standby Virtual Machine Pool Runtime View ID

Types

type GetOperationResponse

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

type ListByStandbyPoolCompleteResult

type ListByStandbyPoolCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []StandbyVirtualMachinePoolRuntimeViewResource
}

type ListByStandbyPoolCustomPager

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

type ListByStandbyPoolOperationResponse

type ListByStandbyPoolOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]StandbyVirtualMachinePoolRuntimeViewResource
}

type PoolResourceStateCount

type PoolResourceStateCount struct {
	Count int64  `json:"count"`
	State string `json:"state"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

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

type StandbyVirtualMachinePoolId

type StandbyVirtualMachinePoolId struct {
	SubscriptionId                string
	ResourceGroupName             string
	StandbyVirtualMachinePoolName string
}

StandbyVirtualMachinePoolId is a struct representing the Resource ID for a Standby Virtual Machine Pool

func NewStandbyVirtualMachinePoolID

func NewStandbyVirtualMachinePoolID(subscriptionId string, resourceGroupName string, standbyVirtualMachinePoolName string) StandbyVirtualMachinePoolId

NewStandbyVirtualMachinePoolID returns a new StandbyVirtualMachinePoolId struct

func ParseStandbyVirtualMachinePoolID

func ParseStandbyVirtualMachinePoolID(input string) (*StandbyVirtualMachinePoolId, error)

ParseStandbyVirtualMachinePoolID parses 'input' into a StandbyVirtualMachinePoolId

func ParseStandbyVirtualMachinePoolIDInsensitively

func ParseStandbyVirtualMachinePoolIDInsensitively(input string) (*StandbyVirtualMachinePoolId, error)

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

func (*StandbyVirtualMachinePoolId) FromParseResult

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

func (StandbyVirtualMachinePoolId) ID

ID returns the formatted Standby Virtual Machine Pool ID

func (StandbyVirtualMachinePoolId) Segments

Segments returns a slice of Resource ID Segments which comprise this Standby Virtual Machine Pool ID

func (StandbyVirtualMachinePoolId) String

func (id StandbyVirtualMachinePoolId) String() string

String returns a human-readable description of this Standby Virtual Machine Pool ID

type StandbyVirtualMachinePoolRuntimeViewId

type StandbyVirtualMachinePoolRuntimeViewId struct {
	SubscriptionId                string
	ResourceGroupName             string
	StandbyVirtualMachinePoolName string
	RuntimeViewName               string
}

StandbyVirtualMachinePoolRuntimeViewId is a struct representing the Resource ID for a Standby Virtual Machine Pool Runtime View

func NewStandbyVirtualMachinePoolRuntimeViewID

func NewStandbyVirtualMachinePoolRuntimeViewID(subscriptionId string, resourceGroupName string, standbyVirtualMachinePoolName string, runtimeViewName string) StandbyVirtualMachinePoolRuntimeViewId

NewStandbyVirtualMachinePoolRuntimeViewID returns a new StandbyVirtualMachinePoolRuntimeViewId struct

func ParseStandbyVirtualMachinePoolRuntimeViewID

func ParseStandbyVirtualMachinePoolRuntimeViewID(input string) (*StandbyVirtualMachinePoolRuntimeViewId, error)

ParseStandbyVirtualMachinePoolRuntimeViewID parses 'input' into a StandbyVirtualMachinePoolRuntimeViewId

func ParseStandbyVirtualMachinePoolRuntimeViewIDInsensitively

func ParseStandbyVirtualMachinePoolRuntimeViewIDInsensitively(input string) (*StandbyVirtualMachinePoolRuntimeViewId, error)

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

func (*StandbyVirtualMachinePoolRuntimeViewId) FromParseResult

func (StandbyVirtualMachinePoolRuntimeViewId) ID

ID returns the formatted Standby Virtual Machine Pool Runtime View ID

func (StandbyVirtualMachinePoolRuntimeViewId) Segments

Segments returns a slice of Resource ID Segments which comprise this Standby Virtual Machine Pool Runtime View ID

func (StandbyVirtualMachinePoolRuntimeViewId) String

String returns a human-readable description of this Standby Virtual Machine Pool Runtime View ID

type StandbyVirtualMachinePoolRuntimeViewResource

type StandbyVirtualMachinePoolRuntimeViewResource struct {
	Id         *string                                                 `json:"id,omitempty"`
	Name       *string                                                 `json:"name,omitempty"`
	Properties *StandbyVirtualMachinePoolRuntimeViewResourceProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                                  `json:"systemData,omitempty"`
	Type       *string                                                 `json:"type,omitempty"`
}

type StandbyVirtualMachinePoolRuntimeViewResourceOperationPredicate

type StandbyVirtualMachinePoolRuntimeViewResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (StandbyVirtualMachinePoolRuntimeViewResourceOperationPredicate) Matches

type StandbyVirtualMachinePoolRuntimeViewResourceProperties

type StandbyVirtualMachinePoolRuntimeViewResourceProperties struct {
	InstanceCountSummary []VirtualMachineInstanceCountSummary `json:"instanceCountSummary"`
	ProvisioningState    *ProvisioningState                   `json:"provisioningState,omitempty"`
}

type StandbyVirtualMachinePoolRuntimeViewsClient

type StandbyVirtualMachinePoolRuntimeViewsClient struct {
	Client *resourcemanager.Client
}

func NewStandbyVirtualMachinePoolRuntimeViewsClientWithBaseURI

func NewStandbyVirtualMachinePoolRuntimeViewsClientWithBaseURI(sdkApi sdkEnv.Api) (*StandbyVirtualMachinePoolRuntimeViewsClient, error)

func (StandbyVirtualMachinePoolRuntimeViewsClient) Get

Get ...

func (StandbyVirtualMachinePoolRuntimeViewsClient) ListByStandbyPool

ListByStandbyPool ...

func (StandbyVirtualMachinePoolRuntimeViewsClient) ListByStandbyPoolComplete

ListByStandbyPoolComplete retrieves all the results into a single object

func (StandbyVirtualMachinePoolRuntimeViewsClient) ListByStandbyPoolCompleteMatchingPredicate

ListByStandbyPoolCompleteMatchingPredicate retrieves all the results and then applies the predicate

type VirtualMachineInstanceCountSummary

type VirtualMachineInstanceCountSummary struct {
	InstanceCountsByState []PoolResourceStateCount `json:"instanceCountsByState"`
	Zone                  *int64                   `json:"zone,omitempty"`
}

Jump to

Keyboard shortcuts

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