backupworkloaditems

package
v0.20231212.1221926 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-06-01/backupworkloaditems Documentation

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

Client Initialization

client := backupworkloaditems.NewBackupWorkloadItemsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BackupWorkloadItemsClient.List

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

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

func PossibleValuesForProtectionStatus() []string

func PossibleValuesForSQLDataDirectoryType

func PossibleValuesForSQLDataDirectoryType() []string

func ValidateProtectionContainerID

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

ValidateProtectionContainerID checks that 'input' can be parsed as a Protection Container ID

Types

type AzureVMWorkloadItem

type AzureVMWorkloadItem struct {
	IsAutoProtectable    *bool   `json:"isAutoProtectable,omitempty"`
	ParentName           *string `json:"parentName,omitempty"`
	ServerName           *string `json:"serverName,omitempty"`
	SubWorkloadItemCount *int64  `json:"subWorkloadItemCount,omitempty"`
	Subinquireditemcount *int64  `json:"subinquireditemcount,omitempty"`

	// Fields inherited from WorkloadItem
	BackupManagementType *string           `json:"backupManagementType,omitempty"`
	FriendlyName         *string           `json:"friendlyName,omitempty"`
	ProtectionState      *ProtectionStatus `json:"protectionState,omitempty"`
	WorkloadType         *string           `json:"workloadType,omitempty"`
}

func (AzureVMWorkloadItem) MarshalJSON

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

type AzureVMWorkloadSAPAseDatabaseWorkloadItem

type AzureVMWorkloadSAPAseDatabaseWorkloadItem struct {
	IsAutoProtectable    *bool   `json:"isAutoProtectable,omitempty"`
	ParentName           *string `json:"parentName,omitempty"`
	ServerName           *string `json:"serverName,omitempty"`
	SubWorkloadItemCount *int64  `json:"subWorkloadItemCount,omitempty"`
	Subinquireditemcount *int64  `json:"subinquireditemcount,omitempty"`

	// Fields inherited from WorkloadItem
	BackupManagementType *string           `json:"backupManagementType,omitempty"`
	FriendlyName         *string           `json:"friendlyName,omitempty"`
	ProtectionState      *ProtectionStatus `json:"protectionState,omitempty"`
	WorkloadType         *string           `json:"workloadType,omitempty"`
}

func (AzureVMWorkloadSAPAseDatabaseWorkloadItem) MarshalJSON

type AzureVMWorkloadSAPAseSystemWorkloadItem

type AzureVMWorkloadSAPAseSystemWorkloadItem struct {
	IsAutoProtectable    *bool   `json:"isAutoProtectable,omitempty"`
	ParentName           *string `json:"parentName,omitempty"`
	ServerName           *string `json:"serverName,omitempty"`
	SubWorkloadItemCount *int64  `json:"subWorkloadItemCount,omitempty"`
	Subinquireditemcount *int64  `json:"subinquireditemcount,omitempty"`

	// Fields inherited from WorkloadItem
	BackupManagementType *string           `json:"backupManagementType,omitempty"`
	FriendlyName         *string           `json:"friendlyName,omitempty"`
	ProtectionState      *ProtectionStatus `json:"protectionState,omitempty"`
	WorkloadType         *string           `json:"workloadType,omitempty"`
}

func (AzureVMWorkloadSAPAseSystemWorkloadItem) MarshalJSON

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

type AzureVMWorkloadSAPHanaDatabaseWorkloadItem

type AzureVMWorkloadSAPHanaDatabaseWorkloadItem struct {
	IsAutoProtectable    *bool   `json:"isAutoProtectable,omitempty"`
	ParentName           *string `json:"parentName,omitempty"`
	ServerName           *string `json:"serverName,omitempty"`
	SubWorkloadItemCount *int64  `json:"subWorkloadItemCount,omitempty"`
	Subinquireditemcount *int64  `json:"subinquireditemcount,omitempty"`

	// Fields inherited from WorkloadItem
	BackupManagementType *string           `json:"backupManagementType,omitempty"`
	FriendlyName         *string           `json:"friendlyName,omitempty"`
	ProtectionState      *ProtectionStatus `json:"protectionState,omitempty"`
	WorkloadType         *string           `json:"workloadType,omitempty"`
}

func (AzureVMWorkloadSAPHanaDatabaseWorkloadItem) MarshalJSON

type AzureVMWorkloadSAPHanaSystemWorkloadItem

type AzureVMWorkloadSAPHanaSystemWorkloadItem struct {
	IsAutoProtectable    *bool   `json:"isAutoProtectable,omitempty"`
	ParentName           *string `json:"parentName,omitempty"`
	ServerName           *string `json:"serverName,omitempty"`
	SubWorkloadItemCount *int64  `json:"subWorkloadItemCount,omitempty"`
	Subinquireditemcount *int64  `json:"subinquireditemcount,omitempty"`

	// Fields inherited from WorkloadItem
	BackupManagementType *string           `json:"backupManagementType,omitempty"`
	FriendlyName         *string           `json:"friendlyName,omitempty"`
	ProtectionState      *ProtectionStatus `json:"protectionState,omitempty"`
	WorkloadType         *string           `json:"workloadType,omitempty"`
}

func (AzureVMWorkloadSAPHanaSystemWorkloadItem) MarshalJSON

type AzureVMWorkloadSQLDatabaseWorkloadItem

type AzureVMWorkloadSQLDatabaseWorkloadItem struct {
	IsAutoProtectable    *bool   `json:"isAutoProtectable,omitempty"`
	ParentName           *string `json:"parentName,omitempty"`
	ServerName           *string `json:"serverName,omitempty"`
	SubWorkloadItemCount *int64  `json:"subWorkloadItemCount,omitempty"`
	Subinquireditemcount *int64  `json:"subinquireditemcount,omitempty"`

	// Fields inherited from WorkloadItem
	BackupManagementType *string           `json:"backupManagementType,omitempty"`
	FriendlyName         *string           `json:"friendlyName,omitempty"`
	ProtectionState      *ProtectionStatus `json:"protectionState,omitempty"`
	WorkloadType         *string           `json:"workloadType,omitempty"`
}

func (AzureVMWorkloadSQLDatabaseWorkloadItem) MarshalJSON

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

type AzureVMWorkloadSQLInstanceWorkloadItem

type AzureVMWorkloadSQLInstanceWorkloadItem struct {
	DataDirectoryPaths   *[]SQLDataDirectory `json:"dataDirectoryPaths,omitempty"`
	IsAutoProtectable    *bool               `json:"isAutoProtectable,omitempty"`
	ParentName           *string             `json:"parentName,omitempty"`
	ServerName           *string             `json:"serverName,omitempty"`
	SubWorkloadItemCount *int64              `json:"subWorkloadItemCount,omitempty"`
	Subinquireditemcount *int64              `json:"subinquireditemcount,omitempty"`

	// Fields inherited from WorkloadItem
	BackupManagementType *string           `json:"backupManagementType,omitempty"`
	FriendlyName         *string           `json:"friendlyName,omitempty"`
	ProtectionState      *ProtectionStatus `json:"protectionState,omitempty"`
	WorkloadType         *string           `json:"workloadType,omitempty"`
}

func (AzureVMWorkloadSQLInstanceWorkloadItem) MarshalJSON

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

type BackupWorkloadItemsClient

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

func NewBackupWorkloadItemsClientWithBaseURI

func NewBackupWorkloadItemsClientWithBaseURI(endpoint string) BackupWorkloadItemsClient

func (BackupWorkloadItemsClient) List

List ...

func (BackupWorkloadItemsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (BackupWorkloadItemsClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type ListCompleteResult

type ListCompleteResult struct {
	Items []WorkloadItemResource
}

type ListOperationOptions

type ListOperationOptions struct {
	Filter *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]WorkloadItemResource
	// 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 ProtectionContainerId

type ProtectionContainerId struct {
	SubscriptionId          string
	ResourceGroupName       string
	VaultName               string
	BackupFabricName        string
	ProtectionContainerName string
}

ProtectionContainerId is a struct representing the Resource ID for a Protection Container

func NewProtectionContainerID

func NewProtectionContainerID(subscriptionId string, resourceGroupName string, vaultName string, backupFabricName string, protectionContainerName string) ProtectionContainerId

NewProtectionContainerID returns a new ProtectionContainerId struct

func ParseProtectionContainerID

func ParseProtectionContainerID(input string) (*ProtectionContainerId, error)

ParseProtectionContainerID parses 'input' into a ProtectionContainerId

func ParseProtectionContainerIDInsensitively

func ParseProtectionContainerIDInsensitively(input string) (*ProtectionContainerId, error)

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

func (*ProtectionContainerId) FromParseResult added in v0.20231127.1171502

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

func (ProtectionContainerId) ID

func (id ProtectionContainerId) ID() string

ID returns the formatted Protection Container ID

func (ProtectionContainerId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Protection Container ID

func (ProtectionContainerId) String

func (id ProtectionContainerId) String() string

String returns a human-readable description of this Protection Container ID

type ProtectionStatus

type ProtectionStatus string
const (
	ProtectionStatusInvalid          ProtectionStatus = "Invalid"
	ProtectionStatusNotProtected     ProtectionStatus = "NotProtected"
	ProtectionStatusProtected        ProtectionStatus = "Protected"
	ProtectionStatusProtecting       ProtectionStatus = "Protecting"
	ProtectionStatusProtectionFailed ProtectionStatus = "ProtectionFailed"
)

type RawWorkloadItemImpl

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

RawWorkloadItemImpl 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).

type SQLDataDirectory

type SQLDataDirectory struct {
	LogicalName *string               `json:"logicalName,omitempty"`
	Path        *string               `json:"path,omitempty"`
	Type        *SQLDataDirectoryType `json:"type,omitempty"`
}

type SQLDataDirectoryType

type SQLDataDirectoryType string
const (
	SQLDataDirectoryTypeData    SQLDataDirectoryType = "Data"
	SQLDataDirectoryTypeInvalid SQLDataDirectoryType = "Invalid"
	SQLDataDirectoryTypeLog     SQLDataDirectoryType = "Log"
)

type WorkloadItem

type WorkloadItem interface {
}

type WorkloadItemResource

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

func (*WorkloadItemResource) UnmarshalJSON

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

type WorkloadItemResourceOperationPredicate

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

func (WorkloadItemResourceOperationPredicate) Matches

Jump to

Keyboard shortcuts

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