longtermretentionmanagedinstancebackups

package
v0.20230711.1145438 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

README

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

The longtermretentionmanagedinstancebackups SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2021-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/2021-02-01-preview/longtermretentionmanagedinstancebackups"

Client Initialization

client := longtermretentionmanagedinstancebackups.NewLongTermRetentionManagedInstanceBackupsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LongTermRetentionManagedInstanceBackupsClient.Delete

ctx := context.TODO()
id := longtermretentionmanagedinstancebackups.NewLongTermRetentionManagedInstanceBackupID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionManagedInstanceValue", "longTermRetentionDatabaseValue", "longTermRetentionManagedInstanceBackupValue")

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

Example Usage: LongTermRetentionManagedInstanceBackupsClient.DeleteByResourceGroup

ctx := context.TODO()
id := longtermretentionmanagedinstancebackups.NewLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionManagedInstanceValue", "longTermRetentionDatabaseValue", "longTermRetentionManagedInstanceBackupValue")

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

Example Usage: LongTermRetentionManagedInstanceBackupsClient.Get

ctx := context.TODO()
id := longtermretentionmanagedinstancebackups.NewLongTermRetentionManagedInstanceBackupID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionManagedInstanceValue", "longTermRetentionDatabaseValue", "longTermRetentionManagedInstanceBackupValue")

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

ctx := context.TODO()
id := longtermretentionmanagedinstancebackups.NewLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionManagedInstanceValue", "longTermRetentionDatabaseValue", "longTermRetentionManagedInstanceBackupValue")

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: LongTermRetentionManagedInstanceBackupsClient.ListByDatabase

ctx := context.TODO()
id := longtermretentionmanagedinstancebackups.NewLongTermRetentionDatabaseID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionManagedInstanceValue", "longTermRetentionDatabaseValue")

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

Example Usage: LongTermRetentionManagedInstanceBackupsClient.ListByInstance

ctx := context.TODO()
id := longtermretentionmanagedinstancebackups.NewLongTermRetentionManagedInstanceID("12345678-1234-9876-4563-123456789012", "locationValue", "longTermRetentionManagedInstanceValue")

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

Example Usage: LongTermRetentionManagedInstanceBackupsClient.ListByLocation

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

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

Example Usage: LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupDatabase

ctx := context.TODO()
id := longtermretentionmanagedinstancebackups.NewLongTermRetentionManagedInstanceLongTermRetentionDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "longTermRetentionManagedInstanceValue", "longTermRetentionDatabaseValue")

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

Example Usage: LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupInstance

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

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

Example Usage: LongTermRetentionManagedInstanceBackupsClient.ListByResourceGroupLocation

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

// alternatively `client.ListByResourceGroupLocation(ctx, id, longtermretentionmanagedinstancebackups.DefaultListByResourceGroupLocationOperationOptions())` can be used to do batched pagination
items, err := client.ListByResourceGroupLocationComplete(ctx, id, longtermretentionmanagedinstancebackups.DefaultListByResourceGroupLocationOperationOptions())
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 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 ValidateLocationLongTermRetentionManagedInstanceID

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

ValidateLocationLongTermRetentionManagedInstanceID checks that 'input' can be parsed as a Location Long Term Retention Managed Instance ID

func ValidateLongTermRetentionDatabaseID

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

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

func ValidateLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID

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

ValidateLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID checks that 'input' can be parsed as a Long Term Retention Database Long Term Retention Managed Instance Backup ID

func ValidateLongTermRetentionManagedInstanceBackupID

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

ValidateLongTermRetentionManagedInstanceBackupID checks that 'input' can be parsed as a Long Term Retention Managed Instance Backup ID

func ValidateLongTermRetentionManagedInstanceID

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

ValidateLongTermRetentionManagedInstanceID checks that 'input' can be parsed as a Long Term Retention Managed Instance ID

func ValidateLongTermRetentionManagedInstanceLongTermRetentionDatabaseID

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

ValidateLongTermRetentionManagedInstanceLongTermRetentionDatabaseID checks that 'input' can be parsed as a Long Term Retention Managed Instance 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"
	BackupStorageRedundancyLocal BackupStorageRedundancy = "Local"
	BackupStorageRedundancyZone  BackupStorageRedundancy = "Zone"
)

func (*BackupStorageRedundancy) UnmarshalJSON

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

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        *ManagedInstanceLongTermRetentionBackup
}

type GetOperationResponse

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

type ListByDatabaseCompleteResult

type ListByDatabaseCompleteResult struct {
	Items []ManagedInstanceLongTermRetentionBackup
}

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        *[]ManagedInstanceLongTermRetentionBackup
}

type ListByInstanceCompleteResult

type ListByInstanceCompleteResult struct {
	Items []ManagedInstanceLongTermRetentionBackup
}

type ListByInstanceOperationOptions

type ListByInstanceOperationOptions struct {
	DatabaseState         *DatabaseState
	OnlyLatestPerDatabase *bool
}

func DefaultListByInstanceOperationOptions

func DefaultListByInstanceOperationOptions() ListByInstanceOperationOptions

func (ListByInstanceOperationOptions) ToHeaders

func (ListByInstanceOperationOptions) ToOData

func (ListByInstanceOperationOptions) ToQuery

type ListByInstanceOperationResponse

type ListByInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedInstanceLongTermRetentionBackup
}

type ListByLocationCompleteResult

type ListByLocationCompleteResult struct {
	Items []ManagedInstanceLongTermRetentionBackup
}

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        *[]ManagedInstanceLongTermRetentionBackup
}

type ListByResourceGroupDatabaseCompleteResult

type ListByResourceGroupDatabaseCompleteResult struct {
	Items []ManagedInstanceLongTermRetentionBackup
}

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        *[]ManagedInstanceLongTermRetentionBackup
}

type ListByResourceGroupInstanceCompleteResult

type ListByResourceGroupInstanceCompleteResult struct {
	Items []ManagedInstanceLongTermRetentionBackup
}

type ListByResourceGroupInstanceOperationOptions

type ListByResourceGroupInstanceOperationOptions struct {
	DatabaseState         *DatabaseState
	OnlyLatestPerDatabase *bool
}

func DefaultListByResourceGroupInstanceOperationOptions

func DefaultListByResourceGroupInstanceOperationOptions() ListByResourceGroupInstanceOperationOptions

func (ListByResourceGroupInstanceOperationOptions) ToHeaders

func (ListByResourceGroupInstanceOperationOptions) ToOData

func (ListByResourceGroupInstanceOperationOptions) ToQuery

type ListByResourceGroupInstanceOperationResponse

type ListByResourceGroupInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedInstanceLongTermRetentionBackup
}

type ListByResourceGroupLocationCompleteResult

type ListByResourceGroupLocationCompleteResult struct {
	Items []ManagedInstanceLongTermRetentionBackup
}

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        *[]ManagedInstanceLongTermRetentionBackup
}

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) 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 LocationLongTermRetentionManagedInstanceId

type LocationLongTermRetentionManagedInstanceId struct {
	SubscriptionId                       string
	ResourceGroupName                    string
	LocationName                         string
	LongTermRetentionManagedInstanceName string
}

LocationLongTermRetentionManagedInstanceId is a struct representing the Resource ID for a Location Long Term Retention Managed Instance

func NewLocationLongTermRetentionManagedInstanceID

func NewLocationLongTermRetentionManagedInstanceID(subscriptionId string, resourceGroupName string, locationName string, longTermRetentionManagedInstanceName string) LocationLongTermRetentionManagedInstanceId

NewLocationLongTermRetentionManagedInstanceID returns a new LocationLongTermRetentionManagedInstanceId struct

func ParseLocationLongTermRetentionManagedInstanceID

func ParseLocationLongTermRetentionManagedInstanceID(input string) (*LocationLongTermRetentionManagedInstanceId, error)

ParseLocationLongTermRetentionManagedInstanceID parses 'input' into a LocationLongTermRetentionManagedInstanceId

func ParseLocationLongTermRetentionManagedInstanceIDInsensitively

func ParseLocationLongTermRetentionManagedInstanceIDInsensitively(input string) (*LocationLongTermRetentionManagedInstanceId, error)

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

func (LocationLongTermRetentionManagedInstanceId) ID

ID returns the formatted Location Long Term Retention Managed Instance ID

func (LocationLongTermRetentionManagedInstanceId) Segments

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

func (LocationLongTermRetentionManagedInstanceId) String

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

type LongTermRetentionDatabaseId

type LongTermRetentionDatabaseId struct {
	SubscriptionId                       string
	LocationName                         string
	LongTermRetentionManagedInstanceName string
	LongTermRetentionDatabaseName        string
}

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

func NewLongTermRetentionDatabaseID

func NewLongTermRetentionDatabaseID(subscriptionId string, locationName string, longTermRetentionManagedInstanceName string, longTermRetentionDatabaseName string) LongTermRetentionDatabaseId

NewLongTermRetentionDatabaseID returns a new LongTermRetentionDatabaseId struct

func ParseLongTermRetentionDatabaseID

func ParseLongTermRetentionDatabaseID(input string) (*LongTermRetentionDatabaseId, error)

ParseLongTermRetentionDatabaseID parses 'input' into a LongTermRetentionDatabaseId

func ParseLongTermRetentionDatabaseIDInsensitively

func ParseLongTermRetentionDatabaseIDInsensitively(input string) (*LongTermRetentionDatabaseId, error)

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

func (LongTermRetentionDatabaseId) ID

ID returns the formatted Long Term Retention Database ID

func (LongTermRetentionDatabaseId) Segments

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

func (LongTermRetentionDatabaseId) String

func (id LongTermRetentionDatabaseId) String() string

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

type LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId

type LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId struct {
	SubscriptionId                             string
	ResourceGroupName                          string
	LocationName                               string
	LongTermRetentionManagedInstanceName       string
	LongTermRetentionDatabaseName              string
	LongTermRetentionManagedInstanceBackupName string
}

LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId is a struct representing the Resource ID for a Long Term Retention Database Long Term Retention Managed Instance Backup

func NewLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID

func NewLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID(subscriptionId string, resourceGroupName string, locationName string, longTermRetentionManagedInstanceName string, longTermRetentionDatabaseName string, longTermRetentionManagedInstanceBackupName string) LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId

NewLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID returns a new LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId struct

func ParseLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID

func ParseLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID(input string) (*LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId, error)

ParseLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupID parses 'input' into a LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId

func ParseLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupIDInsensitively

func ParseLongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupIDInsensitively(input string) (*LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId, error)

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

func (LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId) ID

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

func (LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId) Segments

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

func (LongTermRetentionDatabaseLongTermRetentionManagedInstanceBackupId) String

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

type LongTermRetentionManagedInstanceBackupId

type LongTermRetentionManagedInstanceBackupId struct {
	SubscriptionId                             string
	LocationName                               string
	LongTermRetentionManagedInstanceName       string
	LongTermRetentionDatabaseName              string
	LongTermRetentionManagedInstanceBackupName string
}

LongTermRetentionManagedInstanceBackupId is a struct representing the Resource ID for a Long Term Retention Managed Instance Backup

func NewLongTermRetentionManagedInstanceBackupID

func NewLongTermRetentionManagedInstanceBackupID(subscriptionId string, locationName string, longTermRetentionManagedInstanceName string, longTermRetentionDatabaseName string, longTermRetentionManagedInstanceBackupName string) LongTermRetentionManagedInstanceBackupId

NewLongTermRetentionManagedInstanceBackupID returns a new LongTermRetentionManagedInstanceBackupId struct

func ParseLongTermRetentionManagedInstanceBackupID

func ParseLongTermRetentionManagedInstanceBackupID(input string) (*LongTermRetentionManagedInstanceBackupId, error)

ParseLongTermRetentionManagedInstanceBackupID parses 'input' into a LongTermRetentionManagedInstanceBackupId

func ParseLongTermRetentionManagedInstanceBackupIDInsensitively

func ParseLongTermRetentionManagedInstanceBackupIDInsensitively(input string) (*LongTermRetentionManagedInstanceBackupId, error)

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

func (LongTermRetentionManagedInstanceBackupId) ID

ID returns the formatted Long Term Retention Managed Instance Backup ID

func (LongTermRetentionManagedInstanceBackupId) Segments

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

func (LongTermRetentionManagedInstanceBackupId) String

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

type LongTermRetentionManagedInstanceBackupsClient

type LongTermRetentionManagedInstanceBackupsClient struct {
	Client *resourcemanager.Client
}

func NewLongTermRetentionManagedInstanceBackupsClientWithBaseURI

func NewLongTermRetentionManagedInstanceBackupsClientWithBaseURI(api environments.Api) (*LongTermRetentionManagedInstanceBackupsClient, error)

func (LongTermRetentionManagedInstanceBackupsClient) Delete

Delete ...

func (LongTermRetentionManagedInstanceBackupsClient) DeleteByResourceGroup

DeleteByResourceGroup ...

func (LongTermRetentionManagedInstanceBackupsClient) DeleteByResourceGroupThenPoll

DeleteByResourceGroupThenPoll performs DeleteByResourceGroup then polls until it's completed

func (LongTermRetentionManagedInstanceBackupsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (LongTermRetentionManagedInstanceBackupsClient) Get

Get ...

func (LongTermRetentionManagedInstanceBackupsClient) GetByResourceGroup

GetByResourceGroup ...

func (LongTermRetentionManagedInstanceBackupsClient) ListByDatabase

ListByDatabase ...

func (LongTermRetentionManagedInstanceBackupsClient) ListByDatabaseComplete

ListByDatabaseComplete retrieves all the results into a single object

func (LongTermRetentionManagedInstanceBackupsClient) ListByDatabaseCompleteMatchingPredicate

ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionManagedInstanceBackupsClient) ListByInstance

ListByInstance ...

func (LongTermRetentionManagedInstanceBackupsClient) ListByInstanceComplete

ListByInstanceComplete retrieves all the results into a single object

func (LongTermRetentionManagedInstanceBackupsClient) ListByInstanceCompleteMatchingPredicate

ListByInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionManagedInstanceBackupsClient) ListByLocation

ListByLocation ...

func (LongTermRetentionManagedInstanceBackupsClient) ListByLocationComplete

ListByLocationComplete retrieves all the results into a single object

func (LongTermRetentionManagedInstanceBackupsClient) ListByLocationCompleteMatchingPredicate

ListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupDatabase

ListByResourceGroupDatabase ...

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupDatabaseComplete

ListByResourceGroupDatabaseComplete retrieves all the results into a single object

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupDatabaseCompleteMatchingPredicate

ListByResourceGroupDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupInstance

ListByResourceGroupInstance ...

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupInstanceComplete

ListByResourceGroupInstanceComplete retrieves all the results into a single object

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupInstanceCompleteMatchingPredicate

ListByResourceGroupInstanceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupLocation

ListByResourceGroupLocation ...

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupLocationComplete

ListByResourceGroupLocationComplete retrieves all the results into a single object

func (LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupLocationCompleteMatchingPredicate

ListByResourceGroupLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate

type LongTermRetentionManagedInstanceId

type LongTermRetentionManagedInstanceId struct {
	SubscriptionId                       string
	LocationName                         string
	LongTermRetentionManagedInstanceName string
}

LongTermRetentionManagedInstanceId is a struct representing the Resource ID for a Long Term Retention Managed Instance

func NewLongTermRetentionManagedInstanceID

func NewLongTermRetentionManagedInstanceID(subscriptionId string, locationName string, longTermRetentionManagedInstanceName string) LongTermRetentionManagedInstanceId

NewLongTermRetentionManagedInstanceID returns a new LongTermRetentionManagedInstanceId struct

func ParseLongTermRetentionManagedInstanceID

func ParseLongTermRetentionManagedInstanceID(input string) (*LongTermRetentionManagedInstanceId, error)

ParseLongTermRetentionManagedInstanceID parses 'input' into a LongTermRetentionManagedInstanceId

func ParseLongTermRetentionManagedInstanceIDInsensitively

func ParseLongTermRetentionManagedInstanceIDInsensitively(input string) (*LongTermRetentionManagedInstanceId, error)

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

func (LongTermRetentionManagedInstanceId) ID

ID returns the formatted Long Term Retention Managed Instance ID

func (LongTermRetentionManagedInstanceId) Segments

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

func (LongTermRetentionManagedInstanceId) String

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

type LongTermRetentionManagedInstanceLongTermRetentionDatabaseId

type LongTermRetentionManagedInstanceLongTermRetentionDatabaseId struct {
	SubscriptionId                       string
	ResourceGroupName                    string
	LocationName                         string
	LongTermRetentionManagedInstanceName string
	LongTermRetentionDatabaseName        string
}

LongTermRetentionManagedInstanceLongTermRetentionDatabaseId is a struct representing the Resource ID for a Long Term Retention Managed Instance Long Term Retention Database

func NewLongTermRetentionManagedInstanceLongTermRetentionDatabaseID

func NewLongTermRetentionManagedInstanceLongTermRetentionDatabaseID(subscriptionId string, resourceGroupName string, locationName string, longTermRetentionManagedInstanceName string, longTermRetentionDatabaseName string) LongTermRetentionManagedInstanceLongTermRetentionDatabaseId

NewLongTermRetentionManagedInstanceLongTermRetentionDatabaseID returns a new LongTermRetentionManagedInstanceLongTermRetentionDatabaseId struct

func ParseLongTermRetentionManagedInstanceLongTermRetentionDatabaseID

func ParseLongTermRetentionManagedInstanceLongTermRetentionDatabaseID(input string) (*LongTermRetentionManagedInstanceLongTermRetentionDatabaseId, error)

ParseLongTermRetentionManagedInstanceLongTermRetentionDatabaseID parses 'input' into a LongTermRetentionManagedInstanceLongTermRetentionDatabaseId

func ParseLongTermRetentionManagedInstanceLongTermRetentionDatabaseIDInsensitively

func ParseLongTermRetentionManagedInstanceLongTermRetentionDatabaseIDInsensitively(input string) (*LongTermRetentionManagedInstanceLongTermRetentionDatabaseId, error)

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

func (LongTermRetentionManagedInstanceLongTermRetentionDatabaseId) ID

ID returns the formatted Long Term Retention Managed Instance Long Term Retention Database ID

func (LongTermRetentionManagedInstanceLongTermRetentionDatabaseId) Segments

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

func (LongTermRetentionManagedInstanceLongTermRetentionDatabaseId) String

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

type ManagedInstanceLongTermRetentionBackup

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

type ManagedInstanceLongTermRetentionBackupOperationPredicate

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

func (ManagedInstanceLongTermRetentionBackupOperationPredicate) Matches

type ManagedInstanceLongTermRetentionBackupProperties

type ManagedInstanceLongTermRetentionBackupProperties 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"`
	ManagedInstanceCreateTime *string                  `json:"managedInstanceCreateTime,omitempty"`
	ManagedInstanceName       *string                  `json:"managedInstanceName,omitempty"`
}

func (*ManagedInstanceLongTermRetentionBackupProperties) GetBackupExpirationTimeAsTime

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

func (*ManagedInstanceLongTermRetentionBackupProperties) GetBackupTimeAsTime

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

func (*ManagedInstanceLongTermRetentionBackupProperties) GetDatabaseDeletionTimeAsTime

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

func (*ManagedInstanceLongTermRetentionBackupProperties) GetManagedInstanceCreateTimeAsTime

func (o *ManagedInstanceLongTermRetentionBackupProperties) GetManagedInstanceCreateTimeAsTime() (*time.Time, error)

func (*ManagedInstanceLongTermRetentionBackupProperties) SetBackupExpirationTimeAsTime

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

func (*ManagedInstanceLongTermRetentionBackupProperties) SetBackupTimeAsTime

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

func (*ManagedInstanceLongTermRetentionBackupProperties) SetDatabaseDeletionTimeAsTime

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

func (*ManagedInstanceLongTermRetentionBackupProperties) SetManagedInstanceCreateTimeAsTime

func (o *ManagedInstanceLongTermRetentionBackupProperties) SetManagedInstanceCreateTimeAsTime(input time.Time)

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

Jump to

Keyboard shortcuts

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