longtermretentionbackups

package
v0.20230815.1165905 Latest Latest
Warning

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

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

README

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

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

Client Initialization

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

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.NewLongTermRetentionDatabaseID("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.NewLongTermRetentionServerLongTermRetentionDatabaseID("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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForLongTermRetentionDatabaseState

func PossibleValuesForLongTermRetentionDatabaseState() []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 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 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 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 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 {
	Items []LongTermRetentionBackup
}

type ListByDatabaseOperationOptions

type ListByDatabaseOperationOptions struct {
	DatabaseState         *LongTermRetentionDatabaseState
	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 {
	Items []LongTermRetentionBackup
}

type ListByLocationOperationOptions

type ListByLocationOperationOptions struct {
	DatabaseState         *LongTermRetentionDatabaseState
	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 {
	Items []LongTermRetentionBackup
}

type ListByResourceGroupDatabaseOperationOptions

type ListByResourceGroupDatabaseOperationOptions struct {
	DatabaseState         *LongTermRetentionDatabaseState
	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 {
	Items []LongTermRetentionBackup
}

type ListByResourceGroupLocationOperationOptions

type ListByResourceGroupLocationOperationOptions struct {
	DatabaseState         *LongTermRetentionDatabaseState
	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 {
	Items []LongTermRetentionBackup
}

type ListByResourceGroupServerOperationOptions

type ListByResourceGroupServerOperationOptions struct {
	DatabaseState         *LongTermRetentionDatabaseState
	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 {
	Items []LongTermRetentionBackup
}

type ListByServerOperationOptions

type ListByServerOperationOptions struct {
	DatabaseState         *LongTermRetentionDatabaseState
	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) 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) 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 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) 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 LongTermRetentionBackupProperties

type LongTermRetentionBackupProperties struct {
	BackupExpirationTime *string `json:"backupExpirationTime,omitempty"`
	BackupTime           *string `json:"backupTime,omitempty"`
	DatabaseDeletionTime *string `json:"databaseDeletionTime,omitempty"`
	DatabaseName         *string `json:"databaseName,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) 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

type LongTermRetentionDatabaseId

type LongTermRetentionDatabaseId struct {
	SubscriptionId                string
	LocationName                  string
	LongTermRetentionServerName   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, longTermRetentionServerName 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 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) 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 LongTermRetentionDatabaseState

type LongTermRetentionDatabaseState string
const (
	LongTermRetentionDatabaseStateAll     LongTermRetentionDatabaseState = "All"
	LongTermRetentionDatabaseStateDeleted LongTermRetentionDatabaseState = "Deleted"
	LongTermRetentionDatabaseStateLive    LongTermRetentionDatabaseState = "Live"
)

func (*LongTermRetentionDatabaseState) UnmarshalJSON

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

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) 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
	ResourceGroupName             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, resourceGroupName 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) 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) 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