protectablecontainers

package
v0.20230823.1052657 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-04-01/protectablecontainers Documentation

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

Client Initialization

client := protectablecontainers.NewProtectableContainersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ProtectableContainersClient.List

ctx := context.TODO()
id := protectablecontainers.NewBackupFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue")

// alternatively `client.List(ctx, id, protectablecontainers.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, protectablecontainers.DefaultListOperationOptions())
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 PossibleValuesForBackupManagementType

func PossibleValuesForBackupManagementType() []string

func PossibleValuesForProtectableContainerType

func PossibleValuesForProtectableContainerType() []string

func ValidateBackupFabricID

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

ValidateBackupFabricID checks that 'input' can be parsed as a Backup Fabric ID

Types

type AzureStorageProtectableContainer

type AzureStorageProtectableContainer struct {

	// Fields inherited from ProtectableContainer
	BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"`
	ContainerId          *string               `json:"containerId,omitempty"`
	FriendlyName         *string               `json:"friendlyName,omitempty"`
	HealthStatus         *string               `json:"healthStatus,omitempty"`
}

func (AzureStorageProtectableContainer) MarshalJSON

func (s AzureStorageProtectableContainer) MarshalJSON() ([]byte, error)

type AzureVMAppContainerProtectableContainer

type AzureVMAppContainerProtectableContainer struct {

	// Fields inherited from ProtectableContainer
	BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"`
	ContainerId          *string               `json:"containerId,omitempty"`
	FriendlyName         *string               `json:"friendlyName,omitempty"`
	HealthStatus         *string               `json:"healthStatus,omitempty"`
}

func (AzureVMAppContainerProtectableContainer) MarshalJSON

func (s AzureVMAppContainerProtectableContainer) MarshalJSON() ([]byte, error)

type BackupFabricId

type BackupFabricId struct {
	SubscriptionId    string
	ResourceGroupName string
	VaultName         string
	BackupFabricName  string
}

BackupFabricId is a struct representing the Resource ID for a Backup Fabric

func NewBackupFabricID

func NewBackupFabricID(subscriptionId string, resourceGroupName string, vaultName string, backupFabricName string) BackupFabricId

NewBackupFabricID returns a new BackupFabricId struct

func ParseBackupFabricID

func ParseBackupFabricID(input string) (*BackupFabricId, error)

ParseBackupFabricID parses 'input' into a BackupFabricId

func ParseBackupFabricIDInsensitively

func ParseBackupFabricIDInsensitively(input string) (*BackupFabricId, error)

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

func (BackupFabricId) ID

func (id BackupFabricId) ID() string

ID returns the formatted Backup Fabric ID

func (BackupFabricId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Backup Fabric ID

func (BackupFabricId) String

func (id BackupFabricId) String() string

String returns a human-readable description of this Backup Fabric ID

type BackupManagementType

type BackupManagementType string
const (
	BackupManagementTypeAzureBackupServer BackupManagementType = "AzureBackupServer"
	BackupManagementTypeAzureIaasVM       BackupManagementType = "AzureIaasVM"
	BackupManagementTypeAzureSql          BackupManagementType = "AzureSql"
	BackupManagementTypeAzureStorage      BackupManagementType = "AzureStorage"
	BackupManagementTypeAzureWorkload     BackupManagementType = "AzureWorkload"
	BackupManagementTypeDPM               BackupManagementType = "DPM"
	BackupManagementTypeDefaultBackup     BackupManagementType = "DefaultBackup"
	BackupManagementTypeInvalid           BackupManagementType = "Invalid"
	BackupManagementTypeMAB               BackupManagementType = "MAB"
)

type ListCompleteResult

type ListCompleteResult struct {
	Items []ProtectableContainerResource
}

type ListOperationOptions

type ListOperationOptions struct {
	Filter *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]ProtectableContainerResource
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type ProtectableContainer

type ProtectableContainer interface {
}

type ProtectableContainerResource

type ProtectableContainerResource struct {
	ETag       *string              `json:"eTag,omitempty"`
	Id         *string              `json:"id,omitempty"`
	Location   *string              `json:"location,omitempty"`
	Name       *string              `json:"name,omitempty"`
	Properties ProtectableContainer `json:"properties"`
	Tags       *map[string]string   `json:"tags,omitempty"`
	Type       *string              `json:"type,omitempty"`
}

func (*ProtectableContainerResource) UnmarshalJSON

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

type ProtectableContainerResourceOperationPredicate

type ProtectableContainerResourceOperationPredicate struct {
	ETag     *string
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (ProtectableContainerResourceOperationPredicate) Matches

type ProtectableContainerType

type ProtectableContainerType string
const (
	ProtectableContainerTypeAzureBackupServerContainer                  ProtectableContainerType = "AzureBackupServerContainer"
	ProtectableContainerTypeAzureSqlContainer                           ProtectableContainerType = "AzureSqlContainer"
	ProtectableContainerTypeAzureWorkloadContainer                      ProtectableContainerType = "AzureWorkloadContainer"
	ProtectableContainerTypeCluster                                     ProtectableContainerType = "Cluster"
	ProtectableContainerTypeDPMContainer                                ProtectableContainerType = "DPMContainer"
	ProtectableContainerTypeGenericContainer                            ProtectableContainerType = "GenericContainer"
	ProtectableContainerTypeIaasVMContainer                             ProtectableContainerType = "IaasVMContainer"
	ProtectableContainerTypeIaasVMServiceContainer                      ProtectableContainerType = "IaasVMServiceContainer"
	ProtectableContainerTypeInvalid                                     ProtectableContainerType = "Invalid"
	ProtectableContainerTypeMABContainer                                ProtectableContainerType = "MABContainer"
	ProtectableContainerTypeMicrosoftPointClassicComputeVirtualMachines ProtectableContainerType = "Microsoft.ClassicCompute/virtualMachines"
	ProtectableContainerTypeMicrosoftPointComputeVirtualMachines        ProtectableContainerType = "Microsoft.Compute/virtualMachines"
	ProtectableContainerTypeSQLAGWorkLoadContainer                      ProtectableContainerType = "SQLAGWorkLoadContainer"
	ProtectableContainerTypeStorageContainer                            ProtectableContainerType = "StorageContainer"
	ProtectableContainerTypeUnknown                                     ProtectableContainerType = "Unknown"
	ProtectableContainerTypeVCenter                                     ProtectableContainerType = "VCenter"
	ProtectableContainerTypeVMAppContainer                              ProtectableContainerType = "VMAppContainer"
	ProtectableContainerTypeWindows                                     ProtectableContainerType = "Windows"
)

type ProtectableContainersClient

type ProtectableContainersClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewProtectableContainersClientWithBaseURI

func NewProtectableContainersClientWithBaseURI(endpoint string) ProtectableContainersClient

func (ProtectableContainersClient) List

List ...

func (ProtectableContainersClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ProtectableContainersClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type RawProtectableContainerImpl added in v0.20230807.1063129

type RawProtectableContainerImpl struct {
	Type   string
	Values map[string]interface{}
}

RawModeOfTransitImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

Jump to

Keyboard shortcuts

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