findrestorabletimeranges

package
v0.20240516.1091934 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-11-01/findrestorabletimeranges Documentation

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

Client Initialization

client := findrestorabletimeranges.NewFindRestorableTimeRangesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: FindRestorableTimeRangesClient.RestorableTimeRangesFind

ctx := context.TODO()
id := findrestorabletimeranges.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

payload := findrestorabletimeranges.AzureBackupFindRestorableTimeRangesRequest{
	// ...
}


read, err := client.RestorableTimeRangesFind(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForRestoreSourceDataStoreType

func PossibleValuesForRestoreSourceDataStoreType() []string

func ValidateBackupInstanceID

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

ValidateBackupInstanceID checks that 'input' can be parsed as a Backup Instance ID

Types

type AzureBackupFindRestorableTimeRangesRequest

type AzureBackupFindRestorableTimeRangesRequest struct {
	EndTime             *string                    `json:"endTime,omitempty"`
	SourceDataStoreType RestoreSourceDataStoreType `json:"sourceDataStoreType"`
	StartTime           *string                    `json:"startTime,omitempty"`
}

type AzureBackupFindRestorableTimeRangesResponse

type AzureBackupFindRestorableTimeRangesResponse struct {
	ObjectType           *string                `json:"objectType,omitempty"`
	RestorableTimeRanges *[]RestorableTimeRange `json:"restorableTimeRanges,omitempty"`
}

type AzureBackupFindRestorableTimeRangesResponseResource

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

type BackupInstanceId

type BackupInstanceId struct {
	SubscriptionId     string
	ResourceGroupName  string
	BackupVaultName    string
	BackupInstanceName string
}

BackupInstanceId is a struct representing the Resource ID for a Backup Instance

func NewBackupInstanceID

func NewBackupInstanceID(subscriptionId string, resourceGroupName string, backupVaultName string, backupInstanceName string) BackupInstanceId

NewBackupInstanceID returns a new BackupInstanceId struct

func ParseBackupInstanceID

func ParseBackupInstanceID(input string) (*BackupInstanceId, error)

ParseBackupInstanceID parses 'input' into a BackupInstanceId

func ParseBackupInstanceIDInsensitively

func ParseBackupInstanceIDInsensitively(input string) (*BackupInstanceId, error)

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

func (*BackupInstanceId) FromParseResult

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

func (BackupInstanceId) ID

func (id BackupInstanceId) ID() string

ID returns the formatted Backup Instance ID

func (BackupInstanceId) Segments

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

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

func (BackupInstanceId) String

func (id BackupInstanceId) String() string

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

type FindRestorableTimeRangesClient

type FindRestorableTimeRangesClient struct {
	Client *resourcemanager.Client
}

func NewFindRestorableTimeRangesClientWithBaseURI

func NewFindRestorableTimeRangesClientWithBaseURI(sdkApi sdkEnv.Api) (*FindRestorableTimeRangesClient, error)

func (FindRestorableTimeRangesClient) RestorableTimeRangesFind

RestorableTimeRangesFind ...

type RestorableTimeRange

type RestorableTimeRange struct {
	EndTime    string  `json:"endTime"`
	ObjectType *string `json:"objectType,omitempty"`
	StartTime  string  `json:"startTime"`
}

type RestorableTimeRangesFindOperationResponse

type RestorableTimeRangesFindOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AzureBackupFindRestorableTimeRangesResponseResource
}

type RestoreSourceDataStoreType

type RestoreSourceDataStoreType string
const (
	RestoreSourceDataStoreTypeArchiveStore     RestoreSourceDataStoreType = "ArchiveStore"
	RestoreSourceDataStoreTypeOperationalStore RestoreSourceDataStoreType = "OperationalStore"
	RestoreSourceDataStoreTypeVaultStore       RestoreSourceDataStoreType = "VaultStore"
)

func (*RestoreSourceDataStoreType) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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