targetcomputesizes

package
v0.20231121.1184305 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2023-02-01/targetcomputesizes Documentation

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

Client Initialization

client := targetcomputesizes.NewTargetComputeSizesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TargetComputeSizesClient.ListByReplicationProtectedItems

ctx := context.TODO()
id := targetcomputesizes.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue")

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

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

ValidateReplicationProtectedItemID checks that 'input' can be parsed as a Replication Protected Item ID

Types

type ComputeSizeErrorDetails

type ComputeSizeErrorDetails struct {
	Message  *string `json:"message,omitempty"`
	Severity *string `json:"severity,omitempty"`
}

type ListByReplicationProtectedItemsCompleteResult

type ListByReplicationProtectedItemsCompleteResult struct {
	Items []TargetComputeSize
}

type ListByReplicationProtectedItemsOperationResponse

type ListByReplicationProtectedItemsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]TargetComputeSize
}

type ReplicationProtectedItemId

type ReplicationProtectedItemId struct {
	SubscriptionId                     string
	ResourceGroupName                  string
	VaultName                          string
	ReplicationFabricName              string
	ReplicationProtectionContainerName string
	ReplicationProtectedItemName       string
}

ReplicationProtectedItemId is a struct representing the Resource ID for a Replication Protected Item

func NewReplicationProtectedItemID

func NewReplicationProtectedItemID(subscriptionId string, resourceGroupName string, vaultName string, replicationFabricName string, replicationProtectionContainerName string, replicationProtectedItemName string) ReplicationProtectedItemId

NewReplicationProtectedItemID returns a new ReplicationProtectedItemId struct

func ParseReplicationProtectedItemID

func ParseReplicationProtectedItemID(input string) (*ReplicationProtectedItemId, error)

ParseReplicationProtectedItemID parses 'input' into a ReplicationProtectedItemId

func ParseReplicationProtectedItemIDInsensitively

func ParseReplicationProtectedItemIDInsensitively(input string) (*ReplicationProtectedItemId, error)

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

func (ReplicationProtectedItemId) ID

ID returns the formatted Replication Protected Item ID

func (ReplicationProtectedItemId) Segments

Segments returns a slice of Resource ID Segments which comprise this Replication Protected Item ID

func (ReplicationProtectedItemId) String

func (id ReplicationProtectedItemId) String() string

String returns a human-readable description of this Replication Protected Item ID

type TargetComputeSize

type TargetComputeSize struct {
	Id         *string                      `json:"id,omitempty"`
	Name       *string                      `json:"name,omitempty"`
	Properties *TargetComputeSizeProperties `json:"properties,omitempty"`
	Type       *string                      `json:"type,omitempty"`
}

type TargetComputeSizeOperationPredicate

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

func (TargetComputeSizeOperationPredicate) Matches

type TargetComputeSizeProperties

type TargetComputeSizeProperties struct {
	CpuCoresCount     *int64                     `json:"cpuCoresCount,omitempty"`
	Errors            *[]ComputeSizeErrorDetails `json:"errors,omitempty"`
	FriendlyName      *string                    `json:"friendlyName,omitempty"`
	HighIopsSupported *string                    `json:"highIopsSupported,omitempty"`
	HyperVGenerations *[]string                  `json:"hyperVGenerations,omitempty"`
	MaxDataDiskCount  *int64                     `json:"maxDataDiskCount,omitempty"`
	MaxNicsCount      *int64                     `json:"maxNicsCount,omitempty"`
	MemoryInGB        *float64                   `json:"memoryInGB,omitempty"`
	Name              *string                    `json:"name,omitempty"`
	VCPUsAvailable    *int64                     `json:"vCPUsAvailable,omitempty"`
}

type TargetComputeSizesClient

type TargetComputeSizesClient struct {
	Client *resourcemanager.Client
}

func NewTargetComputeSizesClientWithBaseURI

func NewTargetComputeSizesClientWithBaseURI(sdkApi sdkEnv.Api) (*TargetComputeSizesClient, error)

func (TargetComputeSizesClient) ListByReplicationProtectedItems

ListByReplicationProtectedItems ...

func (TargetComputeSizesClient) ListByReplicationProtectedItemsComplete

ListByReplicationProtectedItemsComplete retrieves all the results into a single object

func (TargetComputeSizesClient) ListByReplicationProtectedItemsCompleteMatchingPredicate

func (c TargetComputeSizesClient) ListByReplicationProtectedItemsCompleteMatchingPredicate(ctx context.Context, id ReplicationProtectedItemId, predicate TargetComputeSizeOperationPredicate) (result ListByReplicationProtectedItemsCompleteResult, err error)

ListByReplicationProtectedItemsCompleteMatchingPredicate 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