standbycontainergrouppoolruntimeviews

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

The standbycontainergrouppoolruntimeviews 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/standbycontainergrouppoolruntimeviews"

Client Initialization

client := standbycontainergrouppoolruntimeviews.NewStandbyContainerGroupPoolRuntimeViewsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: StandbyContainerGroupPoolRuntimeViewsClient.Get

ctx := context.TODO()
id := standbycontainergrouppoolruntimeviews.NewRuntimeViewID("12345678-1234-9876-4563-123456789012", "example-resource-group", "standbyContainerGroupPoolName", "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: StandbyContainerGroupPoolRuntimeViewsClient.ListByStandbyPool

ctx := context.TODO()
id := standbycontainergrouppoolruntimeviews.NewStandbyContainerGroupPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "standbyContainerGroupPoolName")

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

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

ValidateRuntimeViewID checks that 'input' can be parsed as a Runtime View ID

func ValidateStandbyContainerGroupPoolID

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

ValidateStandbyContainerGroupPoolID checks that 'input' can be parsed as a Standby Container Group Pool ID

Types

type ContainerGroupInstanceCountSummary

type ContainerGroupInstanceCountSummary struct {
	InstanceCountsByState []PoolResourceStateCount `json:"instanceCountsByState"`
}

type GetOperationResponse

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

type ListByStandbyPoolCompleteResult

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

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        *[]StandbyContainerGroupPoolRuntimeViewResource
}

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 RuntimeViewId

type RuntimeViewId struct {
	SubscriptionId                string
	ResourceGroupName             string
	StandbyContainerGroupPoolName string
	RuntimeViewName               string
}

RuntimeViewId is a struct representing the Resource ID for a Runtime View

func NewRuntimeViewID

func NewRuntimeViewID(subscriptionId string, resourceGroupName string, standbyContainerGroupPoolName string, runtimeViewName string) RuntimeViewId

NewRuntimeViewID returns a new RuntimeViewId struct

func ParseRuntimeViewID

func ParseRuntimeViewID(input string) (*RuntimeViewId, error)

ParseRuntimeViewID parses 'input' into a RuntimeViewId

func ParseRuntimeViewIDInsensitively

func ParseRuntimeViewIDInsensitively(input string) (*RuntimeViewId, error)

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

func (*RuntimeViewId) FromParseResult

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

func (RuntimeViewId) ID

func (id RuntimeViewId) ID() string

ID returns the formatted Runtime View ID

func (RuntimeViewId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Runtime View ID

func (RuntimeViewId) String

func (id RuntimeViewId) String() string

String returns a human-readable description of this Runtime View ID

type StandbyContainerGroupPoolId

type StandbyContainerGroupPoolId struct {
	SubscriptionId                string
	ResourceGroupName             string
	StandbyContainerGroupPoolName string
}

StandbyContainerGroupPoolId is a struct representing the Resource ID for a Standby Container Group Pool

func NewStandbyContainerGroupPoolID

func NewStandbyContainerGroupPoolID(subscriptionId string, resourceGroupName string, standbyContainerGroupPoolName string) StandbyContainerGroupPoolId

NewStandbyContainerGroupPoolID returns a new StandbyContainerGroupPoolId struct

func ParseStandbyContainerGroupPoolID

func ParseStandbyContainerGroupPoolID(input string) (*StandbyContainerGroupPoolId, error)

ParseStandbyContainerGroupPoolID parses 'input' into a StandbyContainerGroupPoolId

func ParseStandbyContainerGroupPoolIDInsensitively

func ParseStandbyContainerGroupPoolIDInsensitively(input string) (*StandbyContainerGroupPoolId, error)

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

func (*StandbyContainerGroupPoolId) FromParseResult

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

func (StandbyContainerGroupPoolId) ID

ID returns the formatted Standby Container Group Pool ID

func (StandbyContainerGroupPoolId) Segments

Segments returns a slice of Resource ID Segments which comprise this Standby Container Group Pool ID

func (StandbyContainerGroupPoolId) String

func (id StandbyContainerGroupPoolId) String() string

String returns a human-readable description of this Standby Container Group Pool ID

type StandbyContainerGroupPoolRuntimeViewResource

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

type StandbyContainerGroupPoolRuntimeViewResourceOperationPredicate

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

func (StandbyContainerGroupPoolRuntimeViewResourceOperationPredicate) Matches

type StandbyContainerGroupPoolRuntimeViewResourceProperties

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

type StandbyContainerGroupPoolRuntimeViewsClient

type StandbyContainerGroupPoolRuntimeViewsClient struct {
	Client *resourcemanager.Client
}

func NewStandbyContainerGroupPoolRuntimeViewsClientWithBaseURI

func NewStandbyContainerGroupPoolRuntimeViewsClientWithBaseURI(sdkApi sdkEnv.Api) (*StandbyContainerGroupPoolRuntimeViewsClient, error)

func (StandbyContainerGroupPoolRuntimeViewsClient) Get

Get ...

func (StandbyContainerGroupPoolRuntimeViewsClient) ListByStandbyPool

ListByStandbyPool ...

func (StandbyContainerGroupPoolRuntimeViewsClient) ListByStandbyPoolComplete

ListByStandbyPoolComplete retrieves all the results into a single object

func (StandbyContainerGroupPoolRuntimeViewsClient) ListByStandbyPoolCompleteMatchingPredicate

ListByStandbyPoolCompleteMatchingPredicate 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