longtermretentionbackups

package
v0.20240320.1105218 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-02-01-preview/longtermretentionbackups Documentation

The longtermretentionbackups SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2023-02-01-preview).

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/sql/2023-02-01-preview/longtermretentionbackups"

Client Initialization

client := longtermretentionbackups.NewLongTermRetentionBackupsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LongTermRetentionBackupsClient.Copy

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionBackupID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue", "longTermRetentionBackupValue")

payload := longtermretentionbackups.CopyLongTermRetentionBackupParameters{
	// ...
}


if err := client.CopyThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: LongTermRetentionBackupsClient.CopyByResourceGroup

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionDatabaseLongTermRetentionBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue", "longTermRetentionBackupValue")

payload := longtermretentionbackups.CopyLongTermRetentionBackupParameters{
	// ...
}


if err := client.CopyByResourceGroupThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: LongTermRetentionBackupsClient.Delete

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionBackupID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue", "longTermRetentionBackupValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: LongTermRetentionBackupsClient.DeleteByResourceGroup

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionDatabaseLongTermRetentionBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue", "longTermRetentionBackupValue")

if err := client.DeleteByResourceGroupThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: LongTermRetentionBackupsClient.Get

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionBackupID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue", "longTermRetentionBackupValue")

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: LongTermRetentionBackupsClient.GetByResourceGroup

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionDatabaseLongTermRetentionBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue", "longTermRetentionBackupValue")

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

Example Usage: LongTermRetentionBackupsClient.ListByDatabase

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionServerLongTermRetentionDatabaseID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue")

// alternatively `client.ListByDatabase(ctx, id, longtermretentionbackups.DefaultListByDatabaseOperationOptions())` can be used to do batched pagination
items, err := client.ListByDatabaseComplete(ctx, id, longtermretentionbackups.DefaultListByDatabaseOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LongTermRetentionBackupsClient.ListByLocation

ctx := context.TODO()
id := longtermretentionbackups.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

// alternatively `client.ListByLocation(ctx, id, longtermretentionbackups.DefaultListByLocationOperationOptions())` can be used to do batched pagination
items, err := client.ListByLocationComplete(ctx, id, longtermretentionbackups.DefaultListByLocationOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LongTermRetentionBackupsClient.ListByResourceGroupDatabase

ctx := context.TODO()
id := longtermretentionbackups.NewLocationLongTermRetentionServerLongTermRetentionDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue")

// alternatively `client.ListByResourceGroupDatabase(ctx, id, longtermretentionbackups.DefaultListByResourceGroupDatabaseOperationOptions())` can be used to do batched pagination
items, err := client.ListByResourceGroupDatabaseComplete(ctx, id, longtermretentionbackups.DefaultListByResourceGroupDatabaseOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LongTermRetentionBackupsClient.ListByResourceGroupLocation

ctx := context.TODO()
id := longtermretentionbackups.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue")

// alternatively `client.ListByResourceGroupLocation(ctx, id, longtermretentionbackups.DefaultListByResourceGroupLocationOperationOptions())` can be used to do batched pagination
items, err := client.ListByResourceGroupLocationComplete(ctx, id, longtermretentionbackups.DefaultListByResourceGroupLocationOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LongTermRetentionBackupsClient.ListByResourceGroupServer

ctx := context.TODO()
id := longtermretentionbackups.NewLocationLongTermRetentionServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionServerValue")

// alternatively `client.ListByResourceGroupServer(ctx, id, longtermretentionbackups.DefaultListByResourceGroupServerOperationOptions())` can be used to do batched pagination
items, err := client.ListByResourceGroupServerComplete(ctx, id, longtermretentionbackups.DefaultListByResourceGroupServerOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LongTermRetentionBackupsClient.ListByServer

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionServerID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionServerValue")

// alternatively `client.ListByServer(ctx, id, longtermretentionbackups.DefaultListByServerOperationOptions())` can be used to do batched pagination
items, err := client.ListByServerComplete(ctx, id, longtermretentionbackups.DefaultListByServerOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: LongTermRetentionBackupsClient.Update

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionBackupID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue", "longTermRetentionBackupValue")

payload := longtermretentionbackups.UpdateLongTermRetentionBackupParameters{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: LongTermRetentionBackupsClient.UpdateByResourceGroup

ctx := context.TODO()
id := longtermretentionbackups.NewLongTermRetentionDatabaseLongTermRetentionBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionServerValue", "longTermRetentionDatabaseValue", "longTermRetentionBackupValue")

payload := longtermretentionbackups.UpdateLongTermRetentionBackupParameters{
	// ...
}


if err := client.UpdateByResourceGroupThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForBackupStorageRedundancy

func PossibleValuesForBackupStorageRedundancy() []string

func PossibleValuesForDatabaseState

func PossibleValuesForDatabaseState() []string

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

func ValidateLocationLongTermRetentionServerID

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

ValidateLocationLongTermRetentionServerID checks that 'input' can be parsed as a Location Long Term Retention Server ID

func ValidateLocationLongTermRetentionServerLongTermRetentionDatabaseID

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

ValidateLocationLongTermRetentionServerLongTermRetentionDatabaseID checks that 'input' can be parsed as a Location Long Term Retention Server Long Term Retention Database ID

func ValidateLongTermRetentionBackupID

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

ValidateLongTermRetentionBackupID checks that 'input' can be parsed as a Long Term Retention Backup ID

func ValidateLongTermRetentionDatabaseLongTermRetentionBackupID

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

ValidateLongTermRetentionDatabaseLongTermRetentionBackupID checks that 'input' can be parsed as a Long Term Retention Database Long Term Retention Backup ID

func ValidateLongTermRetentionServerID

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

ValidateLongTermRetentionServerID checks that 'input' can be parsed as a Long Term Retention Server ID

func ValidateLongTermRetentionServerLongTermRetentionDatabaseID

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

ValidateLongTermRetentionServerLongTermRetentionDatabaseID checks that 'input' can be parsed as a Long Term Retention Server Long Term Retention Database ID

func ValidateProviderLocationID

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

ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID

Types

type BackupStorageRedundancy

type BackupStorageRedundancy string
const (
	BackupStorageRedundancyGeo     BackupStorageRedundancy = "Geo"
	BackupStorageRedundancyGeoZone BackupStorageRedundancy = "GeoZone"
	BackupStorageRedundancyLocal   BackupStorageRedundancy = "Local"
	BackupStorageRedundancyZone    BackupStorageRedundancy = "Zone"
)

func (*BackupStorageRedundancy) UnmarshalJSON

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

type CopyByResourceGroupOperationResponse

type CopyByResourceGroupOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LongTermRetentionBackupOperationResult
}

type CopyLongTermRetentionBackupParameters

type CopyLongTermRetentionBackupParameters struct {
	Properties *CopyLongTermRetentionBackupParametersProperties `json:"properties,omitempty"`
}

type CopyLongTermRetentionBackupParametersProperties

type CopyLongTermRetentionBackupParametersProperties struct {
	TargetBackupStorageRedundancy        *BackupStorageRedundancy `json:"targetBackupStorageRedundancy,omitempty"`
	TargetDatabaseName                   *string                  `json:"targetDatabaseName,omitempty"`
	TargetResourceGroup                  *string                  `json:"targetResourceGroup,omitempty"`
	TargetServerFullyQualifiedDomainName *string                  `json:"targetServerFullyQualifiedDomainName,omitempty"`
	TargetServerResourceId               *string                  `json:"targetServerResourceId,omitempty"`
	TargetSubscriptionId                 *string                  `json:"targetSubscriptionId,omitempty"`
}

type CopyOperationResponse

type CopyOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LongTermRetentionBackupOperationResult
}

type DatabaseState

type DatabaseState string
const (
	DatabaseStateAll     DatabaseState = "All"
	DatabaseStateDeleted DatabaseState = "Deleted"
	DatabaseStateLive    DatabaseState = "Live"
)

func (*DatabaseState) UnmarshalJSON

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

type DeleteByResourceGroupOperationResponse

type DeleteByResourceGroupOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetByResourceGroupOperationResponse

type GetByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LongTermRetentionBackup
}

type GetOperationResponse

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

type ListByDatabaseCompleteResult

type ListByDatabaseCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LongTermRetentionBackup
}

type ListByDatabaseOperationOptions

type ListByDatabaseOperationOptions struct {
	DatabaseState         *DatabaseState
	OnlyLatestPerDatabase *bool
}

func DefaultListByDatabaseOperationOptions

func DefaultListByDatabaseOperationOptions() ListByDatabaseOperationOptions

func (ListByDatabaseOperationOptions) ToHeaders

func (ListByDatabaseOperationOptions) ToOData

func (ListByDatabaseOperationOptions) ToQuery

type ListByDatabaseOperationResponse

type ListByDatabaseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LongTermRetentionBackup
}

type ListByLocationCompleteResult

type ListByLocationCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LongTermRetentionBackup
}

type ListByLocationOperationOptions

type ListByLocationOperationOptions struct {
	DatabaseState         *DatabaseState
	OnlyLatestPerDatabase *bool
}

func DefaultListByLocationOperationOptions

func DefaultListByLocationOperationOptions() ListByLocationOperationOptions

func (ListByLocationOperationOptions) ToHeaders

func (ListByLocationOperationOptions) ToOData

func (ListByLocationOperationOptions) ToQuery

type ListByLocationOperationResponse

type ListByLocationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LongTermRetentionBackup
}

type ListByResourceGroupDatabaseCompleteResult

type ListByResourceGroupDatabaseCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LongTermRetentionBackup
}

type ListByResourceGroupDatabaseOperationOptions

type ListByResourceGroupDatabaseOperationOptions struct {
	DatabaseState         *DatabaseState
	OnlyLatestPerDatabase *bool
}

func DefaultListByResourceGroupDatabaseOperationOptions

func DefaultListByResourceGroupDatabaseOperationOptions() ListByResourceGroupDatabaseOperationOptions

func (ListByResourceGroupDatabaseOperationOptions) ToHeaders

func (ListByResourceGroupDatabaseOperationOptions) ToOData

func (ListByResourceGroupDatabaseOperationOptions) ToQuery

type ListByResourceGroupDatabaseOperationResponse

type ListByResourceGroupDatabaseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LongTermRetentionBackup
}

type ListByResourceGroupLocationCompleteResult

type ListByResourceGroupLocationCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LongTermRetentionBackup
}

type ListByResourceGroupLocationOperationOptions

type ListByResourceGroupLocationOperationOptions struct {
	DatabaseState         *DatabaseState
	OnlyLatestPerDatabase *bool
}

func DefaultListByResourceGroupLocationOperationOptions

func DefaultListByResourceGroupLocationOperationOptions() ListByResourceGroupLocationOperationOptions

func (ListByResourceGroupLocationOperationOptions) ToHeaders

func (ListByResourceGroupLocationOperationOptions) ToOData

func (ListByResourceGroupLocationOperationOptions) ToQuery

type ListByResourceGroupLocationOperationResponse

type ListByResourceGroupLocationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LongTermRetentionBackup
}

type ListByResourceGroupServerCompleteResult

type ListByResourceGroupServerCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LongTermRetentionBackup
}

type ListByResourceGroupServerOperationOptions

type ListByResourceGroupServerOperationOptions struct {
	DatabaseState         *DatabaseState
	OnlyLatestPerDatabase *bool
}

func DefaultListByResourceGroupServerOperationOptions

func DefaultListByResourceGroupServerOperationOptions() ListByResourceGroupServerOperationOptions

func (ListByResourceGroupServerOperationOptions) ToHeaders

func (ListByResourceGroupServerOperationOptions) ToOData

func (ListByResourceGroupServerOperationOptions) ToQuery

type ListByResourceGroupServerOperationResponse

type ListByResourceGroupServerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LongTermRetentionBackup
}

type ListByServerCompleteResult

type ListByServerCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []LongTermRetentionBackup
}

type ListByServerOperationOptions

type ListByServerOperationOptions struct {
	DatabaseState         *DatabaseState
	OnlyLatestPerDatabase *bool
}

func DefaultListByServerOperationOptions

func DefaultListByServerOperationOptions() ListByServerOperationOptions

func (ListByServerOperationOptions) ToHeaders

func (ListByServerOperationOptions) ToOData

func (ListByServerOperationOptions) ToQuery

type ListByServerOperationResponse

type ListByServerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]LongTermRetentionBackup
}

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

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

func (*LocationId) FromParseResult

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Location ID

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type LocationLongTermRetentionServerId

type LocationLongTermRetentionServerId struct {
	SubscriptionId              string
	ResourceGroupName           string
	LocationName                string
	LongTermRetentionServerName string
}

LocationLongTermRetentionServerId is a struct representing the Resource ID for a Location Long Term Retention Server

func NewLocationLongTermRetentionServerID

func NewLocationLongTermRetentionServerID(subscriptionId string, resourceGroupName string, locationName string, longTermRetentionServerName string) LocationLongTermRetentionServerId

NewLocationLongTermRetentionServerID returns a new LocationLongTermRetentionServerId struct

func ParseLocationLongTermRetentionServerID

func ParseLocationLongTermRetentionServerID(input string) (*LocationLongTermRetentionServerId, error)

ParseLocationLongTermRetentionServerID parses 'input' into a LocationLongTermRetentionServerId

func ParseLocationLongTermRetentionServerIDInsensitively

func ParseLocationLongTermRetentionServerIDInsensitively(input string) (*LocationLongTermRetentionServerId, error)

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

func (*LocationLongTermRetentionServerId) FromParseResult

func (LocationLongTermRetentionServerId) ID

ID returns the formatted Location Long Term Retention Server ID

func (LocationLongTermRetentionServerId) Segments

Segments returns a slice of Resource ID Segments which comprise this Location Long Term Retention Server ID

func (LocationLongTermRetentionServerId) String

String returns a human-readable description of this Location Long Term Retention Server ID

type LocationLongTermRetentionServerLongTermRetentionDatabaseId

type LocationLongTermRetentionServerLongTermRetentionDatabaseId struct {
	SubscriptionId                string
	ResourceGroupName             string
	LocationName                  string
	LongTermRetentionServerName   string
	LongTermRetentionDatabaseName string
}

LocationLongTermRetentionServerLongTermRetentionDatabaseId is a struct representing the Resource ID for a Location Long Term Retention Server Long Term Retention Database

func NewLocationLongTermRetentionServerLongTermRetentionDatabaseID

func NewLocationLongTermRetentionServerLongTermRetentionDatabaseID(subscriptionId string, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string) LocationLongTermRetentionServerLongTermRetentionDatabaseId

NewLocationLongTermRetentionServerLongTermRetentionDatabaseID returns a new LocationLongTermRetentionServerLongTermRetentionDatabaseId struct

func ParseLocationLongTermRetentionServerLongTermRetentionDatabaseID

func ParseLocationLongTermRetentionServerLongTermRetentionDatabaseID(input string) (*LocationLongTermRetentionServerLongTermRetentionDatabaseId, error)

ParseLocationLongTermRetentionServerLongTermRetentionDatabaseID parses 'input' into a LocationLongTermRetentionServerLongTermRetentionDatabaseId

func ParseLocationLongTermRetentionServerLongTermRetentionDatabaseIDInsensitively

func ParseLocationLongTermRetentionServerLongTermRetentionDatabaseIDInsensitively(input string) (*LocationLongTermRetentionServerLongTermRetentionDatabaseId, error)

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

func (*LocationLongTermRetentionServerLongTermRetentionDatabaseId) FromParseResult

func (LocationLongTermRetentionServerLongTermRetentionDatabaseId) ID

ID returns the formatted Location Long Term Retention Server Long Term Retention Database ID

func (LocationLongTermRetentionServerLongTermRetentionDatabaseId) Segments

Segments returns a slice of Resource ID Segments which comprise this Location Long Term Retention Server Long Term Retention Database ID

func (LocationLongTermRetentionServerLongTermRetentionDatabaseId) String

String returns a human-readable description of this Location Long Term Retention Server Long Term Retention Database ID

type LongTermRetentionBackup

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

type LongTermRetentionBackupId

type LongTermRetentionBackupId struct {
	SubscriptionId                string
	LocationName                  string
	LongTermRetentionServerName   string
	LongTermRetentionDatabaseName string
	LongTermRetentionBackupName   string
}

LongTermRetentionBackupId is a struct representing the Resource ID for a Long Term Retention Backup

func NewLongTermRetentionBackupID

func NewLongTermRetentionBackupID(subscriptionId string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, longTermRetentionBackupName string) LongTermRetentionBackupId

NewLongTermRetentionBackupID returns a new LongTermRetentionBackupId struct

func ParseLongTermRetentionBackupID

func ParseLongTermRetentionBackupID(input string) (*LongTermRetentionBackupId, error)

ParseLongTermRetentionBackupID parses 'input' into a LongTermRetentionBackupId

func ParseLongTermRetentionBackupIDInsensitively

func ParseLongTermRetentionBackupIDInsensitively(input string) (*LongTermRetentionBackupId, error)

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

func (*LongTermRetentionBackupId) FromParseResult

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

func (LongTermRetentionBackupId) ID

ID returns the formatted Long Term Retention Backup ID

func (LongTermRetentionBackupId) Segments

Segments returns a slice of Resource ID Segments which comprise this Long Term Retention Backup ID

func (LongTermRetentionBackupId) String

func (id LongTermRetentionBackupId) String() string

String returns a human-readable description of this Long Term Retention Backup ID

type LongTermRetentionBackupOperationPredicate

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

func (LongTermRetentionBackupOperationPredicate) Matches

type LongTermRetentionBackupOperationResult

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

type LongTermRetentionBackupProperties

type LongTermRetentionBackupProperties struct {
	BackupExpirationTime             *string                  `json:"backupExpirationTime,omitempty"`
	BackupStorageRedundancy          *BackupStorageRedundancy `json:"backupStorageRedundancy,omitempty"`
	BackupTime                       *string                  `json:"backupTime,omitempty"`
	DatabaseDeletionTime             *string                  `json:"databaseDeletionTime,omitempty"`
	DatabaseName                     *string                  `json:"databaseName,omitempty"`
	IsBackupImmutable                *bool                    `json:"isBackupImmutable,omitempty"`
	RequestedBackupStorageRedundancy *BackupStorageRedundancy `json:"requestedBackupStorageRedundancy,omitempty"`
	ServerCreateTime                 *string                  `json:"serverCreateTime,omitempty"`
	ServerName                       *string                  `json:"serverName,omitempty"`
}

func (*LongTermRetentionBackupProperties) GetBackupExpirationTimeAsTime

func (o *LongTermRetentionBackupProperties) GetBackupExpirationTimeAsTime() (*time.Time, error)

func (*LongTermRetentionBackupProperties) GetBackupTimeAsTime

func (o *LongTermRetentionBackupProperties) GetBackupTimeAsTime() (*time.Time, error)

func (*LongTermRetentionBackupProperties) GetDatabaseDeletionTimeAsTime

func (o *LongTermRetentionBackupProperties) GetDatabaseDeletionTimeAsTime() (*time.Time, error)

func (*LongTermRetentionBackupProperties) GetServerCreateTimeAsTime

func (o *LongTermRetentionBackupProperties) GetServerCreateTimeAsTime() (*time.Time, error)

func (*LongTermRetentionBackupProperties) SetBackupExpirationTimeAsTime

func (o *LongTermRetentionBackupProperties) SetBackupExpirationTimeAsTime(input time.Time)

func (*LongTermRetentionBackupProperties) SetBackupTimeAsTime

func (o *LongTermRetentionBackupProperties) SetBackupTimeAsTime(input time.Time)

func (*LongTermRetentionBackupProperties) SetDatabaseDeletionTimeAsTime

func (o *LongTermRetentionBackupProperties) SetDatabaseDeletionTimeAsTime(input time.Time)

func (*LongTermRetentionBackupProperties) SetServerCreateTimeAsTime

func (o *LongTermRetentionBackupProperties) SetServerCreateTimeAsTime(input time.Time)

type LongTermRetentionBackupsClient

type LongTermRetentionBackupsClient struct {
	Client *resourcemanager.Client
}

func NewLongTermRetentionBackupsClientWithBaseURI

func NewLongTermRetentionBackupsClientWithBaseURI(sdkApi sdkEnv.Api) (*LongTermRetentionBackupsClient, error)

func (LongTermRetentionBackupsClient) Copy

Copy ...

func (LongTermRetentionBackupsClient) CopyByResourceGroup

CopyByResourceGroup ...

func (LongTermRetentionBackupsClient) CopyByResourceGroupThenPoll

CopyByResourceGroupThenPoll performs CopyByResourceGroup then polls until it's completed

func (LongTermRetentionBackupsClient) CopyThenPoll

CopyThenPoll performs Copy then polls until it's completed

func (LongTermRetentionBackupsClient) Delete

Delete ...

func (LongTermRetentionBackupsClient) DeleteByResourceGroup

DeleteByResourceGroup ...

func (LongTermRetentionBackupsClient) DeleteByResourceGroupThenPoll

DeleteByResourceGroupThenPoll performs DeleteByResourceGroup then polls until it's completed

func (LongTermRetentionBackupsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (LongTermRetentionBackupsClient) Get

Get ...

func (LongTermRetentionBackupsClient) GetByResourceGroup

GetByResourceGroup ...

func (LongTermRetentionBackupsClient) ListByDatabase

ListByDatabase ...

func (LongTermRetentionBackupsClient) ListByDatabaseComplete

ListByDatabaseComplete retrieves all the results into a single object

func (LongTermRetentionBackupsClient) ListByDatabaseCompleteMatchingPredicate

ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionBackupsClient) ListByLocation

ListByLocation ...

func (LongTermRetentionBackupsClient) ListByLocationComplete

ListByLocationComplete retrieves all the results into a single object

func (LongTermRetentionBackupsClient) ListByLocationCompleteMatchingPredicate

ListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionBackupsClient) ListByResourceGroupDatabase

ListByResourceGroupDatabase ...

func (LongTermRetentionBackupsClient) ListByResourceGroupDatabaseComplete

ListByResourceGroupDatabaseComplete retrieves all the results into a single object

func (LongTermRetentionBackupsClient) ListByResourceGroupDatabaseCompleteMatchingPredicate

ListByResourceGroupDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionBackupsClient) ListByResourceGroupLocation

ListByResourceGroupLocation ...

func (LongTermRetentionBackupsClient) ListByResourceGroupLocationComplete

ListByResourceGroupLocationComplete retrieves all the results into a single object

func (LongTermRetentionBackupsClient) ListByResourceGroupLocationCompleteMatchingPredicate

ListByResourceGroupLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionBackupsClient) ListByResourceGroupServer

ListByResourceGroupServer ...

func (LongTermRetentionBackupsClient) ListByResourceGroupServerComplete

ListByResourceGroupServerComplete retrieves all the results into a single object

func (LongTermRetentionBackupsClient) ListByResourceGroupServerCompleteMatchingPredicate

ListByResourceGroupServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionBackupsClient) ListByServer

ListByServer ...

func (LongTermRetentionBackupsClient) ListByServerComplete

ListByServerComplete retrieves all the results into a single object

func (LongTermRetentionBackupsClient) ListByServerCompleteMatchingPredicate

ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionBackupsClient) Update

Update ...

func (LongTermRetentionBackupsClient) UpdateByResourceGroup

UpdateByResourceGroup ...

func (LongTermRetentionBackupsClient) UpdateByResourceGroupThenPoll

UpdateByResourceGroupThenPoll performs UpdateByResourceGroup then polls until it's completed

func (LongTermRetentionBackupsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type LongTermRetentionDatabaseLongTermRetentionBackupId

type LongTermRetentionDatabaseLongTermRetentionBackupId struct {
	SubscriptionId                string
	ResourceGroupName             string
	LocationName                  string
	LongTermRetentionServerName   string
	LongTermRetentionDatabaseName string
	LongTermRetentionBackupName   string
}

LongTermRetentionDatabaseLongTermRetentionBackupId is a struct representing the Resource ID for a Long Term Retention Database Long Term Retention Backup

func NewLongTermRetentionDatabaseLongTermRetentionBackupID

func NewLongTermRetentionDatabaseLongTermRetentionBackupID(subscriptionId string, resourceGroupName string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string, longTermRetentionBackupName string) LongTermRetentionDatabaseLongTermRetentionBackupId

NewLongTermRetentionDatabaseLongTermRetentionBackupID returns a new LongTermRetentionDatabaseLongTermRetentionBackupId struct

func ParseLongTermRetentionDatabaseLongTermRetentionBackupID

func ParseLongTermRetentionDatabaseLongTermRetentionBackupID(input string) (*LongTermRetentionDatabaseLongTermRetentionBackupId, error)

ParseLongTermRetentionDatabaseLongTermRetentionBackupID parses 'input' into a LongTermRetentionDatabaseLongTermRetentionBackupId

func ParseLongTermRetentionDatabaseLongTermRetentionBackupIDInsensitively

func ParseLongTermRetentionDatabaseLongTermRetentionBackupIDInsensitively(input string) (*LongTermRetentionDatabaseLongTermRetentionBackupId, error)

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

func (*LongTermRetentionDatabaseLongTermRetentionBackupId) FromParseResult

func (LongTermRetentionDatabaseLongTermRetentionBackupId) ID

ID returns the formatted Long Term Retention Database Long Term Retention Backup ID

func (LongTermRetentionDatabaseLongTermRetentionBackupId) Segments

Segments returns a slice of Resource ID Segments which comprise this Long Term Retention Database Long Term Retention Backup ID

func (LongTermRetentionDatabaseLongTermRetentionBackupId) String

String returns a human-readable description of this Long Term Retention Database Long Term Retention Backup ID

type LongTermRetentionOperationResultProperties

type LongTermRetentionOperationResultProperties struct {
	FromBackupResourceId          *string                  `json:"fromBackupResourceId,omitempty"`
	Message                       *string                  `json:"message,omitempty"`
	OperationType                 *string                  `json:"operationType,omitempty"`
	RequestId                     *string                  `json:"requestId,omitempty"`
	Status                        *string                  `json:"status,omitempty"`
	TargetBackupStorageRedundancy *BackupStorageRedundancy `json:"targetBackupStorageRedundancy,omitempty"`
	ToBackupResourceId            *string                  `json:"toBackupResourceId,omitempty"`
}

type LongTermRetentionServerId

type LongTermRetentionServerId struct {
	SubscriptionId              string
	LocationName                string
	LongTermRetentionServerName string
}

LongTermRetentionServerId is a struct representing the Resource ID for a Long Term Retention Server

func NewLongTermRetentionServerID

func NewLongTermRetentionServerID(subscriptionId string, locationName string, longTermRetentionServerName string) LongTermRetentionServerId

NewLongTermRetentionServerID returns a new LongTermRetentionServerId struct

func ParseLongTermRetentionServerID

func ParseLongTermRetentionServerID(input string) (*LongTermRetentionServerId, error)

ParseLongTermRetentionServerID parses 'input' into a LongTermRetentionServerId

func ParseLongTermRetentionServerIDInsensitively

func ParseLongTermRetentionServerIDInsensitively(input string) (*LongTermRetentionServerId, error)

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

func (*LongTermRetentionServerId) FromParseResult

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

func (LongTermRetentionServerId) ID

ID returns the formatted Long Term Retention Server ID

func (LongTermRetentionServerId) Segments

Segments returns a slice of Resource ID Segments which comprise this Long Term Retention Server ID

func (LongTermRetentionServerId) String

func (id LongTermRetentionServerId) String() string

String returns a human-readable description of this Long Term Retention Server ID

type LongTermRetentionServerLongTermRetentionDatabaseId

type LongTermRetentionServerLongTermRetentionDatabaseId struct {
	SubscriptionId                string
	LocationName                  string
	LongTermRetentionServerName   string
	LongTermRetentionDatabaseName string
}

LongTermRetentionServerLongTermRetentionDatabaseId is a struct representing the Resource ID for a Long Term Retention Server Long Term Retention Database

func NewLongTermRetentionServerLongTermRetentionDatabaseID

func NewLongTermRetentionServerLongTermRetentionDatabaseID(subscriptionId string, locationName string, longTermRetentionServerName string, longTermRetentionDatabaseName string) LongTermRetentionServerLongTermRetentionDatabaseId

NewLongTermRetentionServerLongTermRetentionDatabaseID returns a new LongTermRetentionServerLongTermRetentionDatabaseId struct

func ParseLongTermRetentionServerLongTermRetentionDatabaseID

func ParseLongTermRetentionServerLongTermRetentionDatabaseID(input string) (*LongTermRetentionServerLongTermRetentionDatabaseId, error)

ParseLongTermRetentionServerLongTermRetentionDatabaseID parses 'input' into a LongTermRetentionServerLongTermRetentionDatabaseId

func ParseLongTermRetentionServerLongTermRetentionDatabaseIDInsensitively

func ParseLongTermRetentionServerLongTermRetentionDatabaseIDInsensitively(input string) (*LongTermRetentionServerLongTermRetentionDatabaseId, error)

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

func (*LongTermRetentionServerLongTermRetentionDatabaseId) FromParseResult

func (LongTermRetentionServerLongTermRetentionDatabaseId) ID

ID returns the formatted Long Term Retention Server Long Term Retention Database ID

func (LongTermRetentionServerLongTermRetentionDatabaseId) Segments

Segments returns a slice of Resource ID Segments which comprise this Long Term Retention Server Long Term Retention Database ID

func (LongTermRetentionServerLongTermRetentionDatabaseId) String

String returns a human-readable description of this Long Term Retention Server Long Term Retention Database ID

type ProviderLocationId

type ProviderLocationId struct {
	SubscriptionId    string
	ResourceGroupName string
	LocationName      string
}

ProviderLocationId is a struct representing the Resource ID for a Provider Location

func NewProviderLocationID

func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId

NewProviderLocationID returns a new ProviderLocationId struct

func ParseProviderLocationID

func ParseProviderLocationID(input string) (*ProviderLocationId, error)

ParseProviderLocationID parses 'input' into a ProviderLocationId

func ParseProviderLocationIDInsensitively

func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error)

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

func (*ProviderLocationId) FromParseResult

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

func (ProviderLocationId) ID

func (id ProviderLocationId) ID() string

ID returns the formatted Provider Location ID

func (ProviderLocationId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Provider Location ID

func (ProviderLocationId) String

func (id ProviderLocationId) String() string

String returns a human-readable description of this Provider Location ID

type UpdateByResourceGroupOperationResponse

type UpdateByResourceGroupOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LongTermRetentionBackupOperationResult
}

type UpdateLongTermRetentionBackupParameters

type UpdateLongTermRetentionBackupParameters struct {
	Properties *UpdateLongTermRetentionBackupParametersProperties `json:"properties,omitempty"`
}

type UpdateLongTermRetentionBackupParametersProperties

type UpdateLongTermRetentionBackupParametersProperties struct {
	RequestedBackupStorageRedundancy *BackupStorageRedundancy `json:"requestedBackupStorageRedundancy,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LongTermRetentionBackupOperationResult
}

Jump to

Keyboard shortcuts

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