restorables

package
v0.20221128.1190504 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/restorables Documentation

The restorables SDK allows for interaction with the Azure Resource Manager Service cosmosdb (API Version 2022-05-15).

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/cosmosdb/2022-05-15/restorables"

Client Initialization

client := restorables.NewRestorablesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RestorablesClient.MongoDBResourcesRetrieveContinuousBackupInformation

ctx := context.TODO()
id := restorables.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "databaseRidValue", "collectionRidValue")

payload := restorables.ContinuousBackupRestoreLocation{
	// ...
}


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

Example Usage: RestorablesClient.RestorableDatabaseAccountsGetByLocation

ctx := context.TODO()
id := restorables.NewRestorableDatabaseAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "instanceIdValue")

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

Example Usage: RestorablesClient.RestorableDatabaseAccountsList

ctx := context.TODO()
id := restorables.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: RestorablesClient.RestorableDatabaseAccountsListByLocation

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

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

Example Usage: RestorablesClient.RestorableMongodbCollectionsList

ctx := context.TODO()
id := restorables.NewRestorableDatabaseAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "instanceIdValue")

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

Example Usage: RestorablesClient.RestorableMongodbDatabasesList

ctx := context.TODO()
id := restorables.NewRestorableDatabaseAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "instanceIdValue")

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

Example Usage: RestorablesClient.RestorableMongodbResourcesList

ctx := context.TODO()
id := restorables.NewRestorableDatabaseAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "instanceIdValue")

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

Example Usage: RestorablesClient.RestorableSqlContainersList

ctx := context.TODO()
id := restorables.NewRestorableDatabaseAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "instanceIdValue")

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

Example Usage: RestorablesClient.RestorableSqlDatabasesList

ctx := context.TODO()
id := restorables.NewRestorableDatabaseAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "instanceIdValue")

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

Example Usage: RestorablesClient.RestorableSqlResourcesList

ctx := context.TODO()
id := restorables.NewRestorableDatabaseAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "instanceIdValue")

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

Example Usage: RestorablesClient.SqlResourcesRetrieveContinuousBackupInformation

ctx := context.TODO()
id := restorables.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "databaseValue", "containerValue")

payload := restorables.ContinuousBackupRestoreLocation{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForApiType

func PossibleValuesForApiType() []string

func PossibleValuesForCompositePathSortOrder added in v0.20221021.1074650

func PossibleValuesForCompositePathSortOrder() []string

func PossibleValuesForConflictResolutionMode added in v0.20221021.1074650

func PossibleValuesForConflictResolutionMode() []string

func PossibleValuesForDataType added in v0.20221021.1074650

func PossibleValuesForDataType() []string

func PossibleValuesForIndexKind added in v0.20221021.1074650

func PossibleValuesForIndexKind() []string

func PossibleValuesForIndexingMode added in v0.20221021.1074650

func PossibleValuesForIndexingMode() []string

func PossibleValuesForOperationType

func PossibleValuesForOperationType() []string

func PossibleValuesForPartitionKind added in v0.20221021.1074650

func PossibleValuesForPartitionKind() []string

func PossibleValuesForSpatialType added in v0.20221021.1074650

func PossibleValuesForSpatialType() []string

func ValidateCollectionID

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

ValidateCollectionID checks that 'input' can be parsed as a Collection ID

func ValidateContainerID

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

ValidateContainerID checks that 'input' can be parsed as a Container ID

func ValidateLocationID

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

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

func ValidateRestorableDatabaseAccountID

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

ValidateRestorableDatabaseAccountID checks that 'input' can be parsed as a Restorable Database Account ID

Types

type ApiType

type ApiType string
const (
	ApiTypeCassandra   ApiType = "Cassandra"
	ApiTypeGremlin     ApiType = "Gremlin"
	ApiTypeGremlinVTwo ApiType = "GremlinV2"
	ApiTypeMongoDB     ApiType = "MongoDB"
	ApiTypeSql         ApiType = "Sql"
	ApiTypeTable       ApiType = "Table"
)

type BackupInformation

type BackupInformation struct {
	ContinuousBackupInformation *ContinuousBackupInformation `json:"continuousBackupInformation"`
}

type CollectionId

type CollectionId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	DatabaseRid       string
	CollectionRid     string
}

CollectionId is a struct representing the Resource ID for a Collection

func NewCollectionID

func NewCollectionID(subscriptionId string, resourceGroupName string, accountName string, databaseRid string, collectionRid string) CollectionId

NewCollectionID returns a new CollectionId struct

func ParseCollectionID

func ParseCollectionID(input string) (*CollectionId, error)

ParseCollectionID parses 'input' into a CollectionId

func ParseCollectionIDInsensitively

func ParseCollectionIDInsensitively(input string) (*CollectionId, error)

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

func (CollectionId) ID

func (id CollectionId) ID() string

ID returns the formatted Collection ID

func (CollectionId) Segments

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

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

func (CollectionId) String

func (id CollectionId) String() string

String returns a human-readable description of this Collection ID

type CompositePath added in v0.20221021.1074650

type CompositePath struct {
	Order *CompositePathSortOrder `json:"order,omitempty"`
	Path  *string                 `json:"path,omitempty"`
}

type CompositePathSortOrder added in v0.20221021.1074650

type CompositePathSortOrder string
const (
	CompositePathSortOrderAscending  CompositePathSortOrder = "ascending"
	CompositePathSortOrderDescending CompositePathSortOrder = "descending"
)

type ConflictResolutionMode added in v0.20221021.1074650

type ConflictResolutionMode string
const (
	ConflictResolutionModeCustom         ConflictResolutionMode = "Custom"
	ConflictResolutionModeLastWriterWins ConflictResolutionMode = "LastWriterWins"
)

type ConflictResolutionPolicy added in v0.20221021.1074650

type ConflictResolutionPolicy struct {
	ConflictResolutionPath      *string                 `json:"conflictResolutionPath,omitempty"`
	ConflictResolutionProcedure *string                 `json:"conflictResolutionProcedure,omitempty"`
	Mode                        *ConflictResolutionMode `json:"mode,omitempty"`
}

type ContainerId

type ContainerId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	DatabaseName      string
	ContainerName     string
}

ContainerId is a struct representing the Resource ID for a Container

func NewContainerID

func NewContainerID(subscriptionId string, resourceGroupName string, accountName string, databaseName string, containerName string) ContainerId

NewContainerID returns a new ContainerId struct

func ParseContainerID

func ParseContainerID(input string) (*ContainerId, error)

ParseContainerID parses 'input' into a ContainerId

func ParseContainerIDInsensitively

func ParseContainerIDInsensitively(input string) (*ContainerId, error)

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

func (ContainerId) ID

func (id ContainerId) ID() string

ID returns the formatted Container ID

func (ContainerId) Segments

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

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

func (ContainerId) String

func (id ContainerId) String() string

String returns a human-readable description of this Container ID

type ContainerPartitionKey added in v0.20221021.1074650

type ContainerPartitionKey struct {
	Kind      *PartitionKind `json:"kind,omitempty"`
	Paths     *[]string      `json:"paths,omitempty"`
	SystemKey *bool          `json:"systemKey,omitempty"`
	Version   *int64         `json:"version,omitempty"`
}

type ContinuousBackupInformation

type ContinuousBackupInformation struct {
	LatestRestorableTimestamp *string `json:"latestRestorableTimestamp,omitempty"`
}

type ContinuousBackupRestoreLocation

type ContinuousBackupRestoreLocation struct {
	Location *string `json:"location,omitempty"`
}

type DataType added in v0.20221021.1074650

type DataType string
const (
	DataTypeLineString   DataType = "LineString"
	DataTypeMultiPolygon DataType = "MultiPolygon"
	DataTypeNumber       DataType = "Number"
	DataTypePoint        DataType = "Point"
	DataTypePolygon      DataType = "Polygon"
	DataTypeString       DataType = "String"
)

type ExcludedPath added in v0.20221021.1074650

type ExcludedPath struct {
	Path *string `json:"path,omitempty"`
}

type IncludedPath added in v0.20221021.1074650

type IncludedPath struct {
	Indexes *[]Indexes `json:"indexes,omitempty"`
	Path    *string    `json:"path,omitempty"`
}

type IndexKind added in v0.20221021.1074650

type IndexKind string
const (
	IndexKindHash    IndexKind = "Hash"
	IndexKindRange   IndexKind = "Range"
	IndexKindSpatial IndexKind = "Spatial"
)

type Indexes added in v0.20221021.1074650

type Indexes struct {
	DataType  *DataType  `json:"dataType,omitempty"`
	Kind      *IndexKind `json:"kind,omitempty"`
	Precision *int64     `json:"precision,omitempty"`
}

type IndexingMode added in v0.20221021.1074650

type IndexingMode string
const (
	IndexingModeConsistent IndexingMode = "consistent"
	IndexingModeLazy       IndexingMode = "lazy"
	IndexingModeNone       IndexingMode = "none"
)

type IndexingPolicy added in v0.20221021.1074650

type IndexingPolicy struct {
	Automatic        *bool              `json:"automatic,omitempty"`
	CompositeIndexes *[][]CompositePath `json:"compositeIndexes,omitempty"`
	ExcludedPaths    *[]ExcludedPath    `json:"excludedPaths,omitempty"`
	IncludedPaths    *[]IncludedPath    `json:"includedPaths,omitempty"`
	IndexingMode     *IndexingMode      `json:"indexingMode,omitempty"`
	SpatialIndexes   *[]SpatialSpec     `json:"spatialIndexes,omitempty"`
}

type LocationId

type LocationId struct {
	SubscriptionId string
	Location       string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, location 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 MongoDBResourcesRetrieveContinuousBackupInformationOperationResponse

type MongoDBResourcesRetrieveContinuousBackupInformationOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type OperationType

type OperationType string
const (
	OperationTypeCreate          OperationType = "Create"
	OperationTypeDelete          OperationType = "Delete"
	OperationTypeReplace         OperationType = "Replace"
	OperationTypeSystemOperation OperationType = "SystemOperation"
)

type PartitionKind added in v0.20221021.1074650

type PartitionKind string
const (
	PartitionKindHash      PartitionKind = "Hash"
	PartitionKindMultiHash PartitionKind = "MultiHash"
	PartitionKindRange     PartitionKind = "Range"
)

type RestorableDatabaseAccountGetResult

type RestorableDatabaseAccountGetResult struct {
	Id         *string                              `json:"id,omitempty"`
	Location   *string                              `json:"location,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *RestorableDatabaseAccountProperties `json:"properties"`
	Type       *string                              `json:"type,omitempty"`
}

type RestorableDatabaseAccountId

type RestorableDatabaseAccountId struct {
	SubscriptionId string
	Location       string
	InstanceId     string
}

RestorableDatabaseAccountId is a struct representing the Resource ID for a Restorable Database Account

func NewRestorableDatabaseAccountID

func NewRestorableDatabaseAccountID(subscriptionId string, location string, instanceId string) RestorableDatabaseAccountId

NewRestorableDatabaseAccountID returns a new RestorableDatabaseAccountId struct

func ParseRestorableDatabaseAccountID

func ParseRestorableDatabaseAccountID(input string) (*RestorableDatabaseAccountId, error)

ParseRestorableDatabaseAccountID parses 'input' into a RestorableDatabaseAccountId

func ParseRestorableDatabaseAccountIDInsensitively

func ParseRestorableDatabaseAccountIDInsensitively(input string) (*RestorableDatabaseAccountId, error)

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

func (RestorableDatabaseAccountId) ID

ID returns the formatted Restorable Database Account ID

func (RestorableDatabaseAccountId) Segments

Segments returns a slice of Resource ID Segments which comprise this Restorable Database Account ID

func (RestorableDatabaseAccountId) String

func (id RestorableDatabaseAccountId) String() string

String returns a human-readable description of this Restorable Database Account ID

type RestorableDatabaseAccountProperties

type RestorableDatabaseAccountProperties struct {
	AccountName         *string                       `json:"accountName,omitempty"`
	ApiType             *ApiType                      `json:"apiType,omitempty"`
	CreationTime        *string                       `json:"creationTime,omitempty"`
	DeletionTime        *string                       `json:"deletionTime,omitempty"`
	RestorableLocations *[]RestorableLocationResource `json:"restorableLocations,omitempty"`
}

func (*RestorableDatabaseAccountProperties) GetCreationTimeAsTime

func (o *RestorableDatabaseAccountProperties) GetCreationTimeAsTime() (*time.Time, error)

func (*RestorableDatabaseAccountProperties) GetDeletionTimeAsTime

func (o *RestorableDatabaseAccountProperties) GetDeletionTimeAsTime() (*time.Time, error)

func (*RestorableDatabaseAccountProperties) SetCreationTimeAsTime

func (o *RestorableDatabaseAccountProperties) SetCreationTimeAsTime(input time.Time)

func (*RestorableDatabaseAccountProperties) SetDeletionTimeAsTime

func (o *RestorableDatabaseAccountProperties) SetDeletionTimeAsTime(input time.Time)

type RestorableDatabaseAccountsGetByLocationOperationResponse

type RestorableDatabaseAccountsGetByLocationOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableDatabaseAccountGetResult
}

type RestorableDatabaseAccountsListByLocationOperationResponse

type RestorableDatabaseAccountsListByLocationOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableDatabaseAccountsListResult
}

type RestorableDatabaseAccountsListOperationResponse

type RestorableDatabaseAccountsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableDatabaseAccountsListResult
}

type RestorableDatabaseAccountsListResult

type RestorableDatabaseAccountsListResult struct {
	Value *[]RestorableDatabaseAccountGetResult `json:"value,omitempty"`
}

type RestorableLocationResource

type RestorableLocationResource struct {
	CreationTime                      *string `json:"creationTime,omitempty"`
	DeletionTime                      *string `json:"deletionTime,omitempty"`
	LocationName                      *string `json:"locationName,omitempty"`
	RegionalDatabaseAccountInstanceId *string `json:"regionalDatabaseAccountInstanceId,omitempty"`
}

func (*RestorableLocationResource) GetCreationTimeAsTime

func (o *RestorableLocationResource) GetCreationTimeAsTime() (*time.Time, error)

func (*RestorableLocationResource) GetDeletionTimeAsTime

func (o *RestorableLocationResource) GetDeletionTimeAsTime() (*time.Time, error)

func (*RestorableLocationResource) SetCreationTimeAsTime

func (o *RestorableLocationResource) SetCreationTimeAsTime(input time.Time)

func (*RestorableLocationResource) SetDeletionTimeAsTime

func (o *RestorableLocationResource) SetDeletionTimeAsTime(input time.Time)

type RestorableMongodbCollectionGetResult

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

type RestorableMongodbCollectionProperties

type RestorableMongodbCollectionProperties struct {
	Resource *RestorableMongodbCollectionPropertiesResource `json:"resource"`
}

type RestorableMongodbCollectionPropertiesResource

type RestorableMongodbCollectionPropertiesResource struct {
	EventTimestamp  *string        `json:"eventTimestamp,omitempty"`
	OperationType   *OperationType `json:"operationType,omitempty"`
	OwnerId         *string        `json:"ownerId,omitempty"`
	OwnerResourceId *string        `json:"ownerResourceId,omitempty"`
	Rid             *string        `json:"_rid,omitempty"`
}

type RestorableMongodbCollectionsListOperationOptions

type RestorableMongodbCollectionsListOperationOptions struct {
	RestorableMongodbDatabaseRid *string
}

func DefaultRestorableMongodbCollectionsListOperationOptions

func DefaultRestorableMongodbCollectionsListOperationOptions() RestorableMongodbCollectionsListOperationOptions

type RestorableMongodbCollectionsListOperationResponse

type RestorableMongodbCollectionsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableMongodbCollectionsListResult
}

type RestorableMongodbCollectionsListResult

type RestorableMongodbCollectionsListResult struct {
	Value *[]RestorableMongodbCollectionGetResult `json:"value,omitempty"`
}

type RestorableMongodbDatabaseGetResult

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

type RestorableMongodbDatabaseProperties

type RestorableMongodbDatabaseProperties struct {
	Resource *RestorableMongodbDatabasePropertiesResource `json:"resource"`
}

type RestorableMongodbDatabasePropertiesResource

type RestorableMongodbDatabasePropertiesResource struct {
	EventTimestamp  *string        `json:"eventTimestamp,omitempty"`
	OperationType   *OperationType `json:"operationType,omitempty"`
	OwnerId         *string        `json:"ownerId,omitempty"`
	OwnerResourceId *string        `json:"ownerResourceId,omitempty"`
	Rid             *string        `json:"_rid,omitempty"`
}

type RestorableMongodbDatabasesListOperationResponse

type RestorableMongodbDatabasesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableMongodbDatabasesListResult
}

type RestorableMongodbDatabasesListResult

type RestorableMongodbDatabasesListResult struct {
	Value *[]RestorableMongodbDatabaseGetResult `json:"value,omitempty"`
}

type RestorableMongodbResourcesGetResult

type RestorableMongodbResourcesGetResult struct {
	CollectionNames *[]string `json:"collectionNames,omitempty"`
	DatabaseName    *string   `json:"databaseName,omitempty"`
	Id              *string   `json:"id,omitempty"`
	Name            *string   `json:"name,omitempty"`
	Type            *string   `json:"type,omitempty"`
}

type RestorableMongodbResourcesListOperationOptions

type RestorableMongodbResourcesListOperationOptions struct {
	RestoreLocation       *string
	RestoreTimestampInUtc *string
}

func DefaultRestorableMongodbResourcesListOperationOptions

func DefaultRestorableMongodbResourcesListOperationOptions() RestorableMongodbResourcesListOperationOptions

type RestorableMongodbResourcesListOperationResponse

type RestorableMongodbResourcesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableMongodbResourcesListResult
}

type RestorableMongodbResourcesListResult

type RestorableMongodbResourcesListResult struct {
	Value *[]RestorableMongodbResourcesGetResult `json:"value,omitempty"`
}

type RestorableSqlContainerGetResult

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

type RestorableSqlContainerProperties

type RestorableSqlContainerProperties struct {
	Resource *RestorableSqlContainerPropertiesResource `json:"resource"`
}

type RestorableSqlContainerPropertiesResource

type RestorableSqlContainerPropertiesResource struct {
	Container       *RestorableSqlContainerPropertiesResourceContainer `json:"container"`
	EventTimestamp  *string                                            `json:"eventTimestamp,omitempty"`
	OperationType   *OperationType                                     `json:"operationType,omitempty"`
	OwnerId         *string                                            `json:"ownerId,omitempty"`
	OwnerResourceId *string                                            `json:"ownerResourceId,omitempty"`
	Rid             *string                                            `json:"_rid,omitempty"`
}

type RestorableSqlContainerPropertiesResourceContainer

type RestorableSqlContainerPropertiesResourceContainer struct {
	AnalyticalStorageTtl     *int64                    `json:"analyticalStorageTtl,omitempty"`
	ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy"`
	DefaultTtl               *int64                    `json:"defaultTtl,omitempty"`
	Etag                     *string                   `json:"_etag,omitempty"`
	Id                       *string                   `json:"id,omitempty"`
	IndexingPolicy           *IndexingPolicy           `json:"indexingPolicy"`
	PartitionKey             *ContainerPartitionKey    `json:"partitionKey"`
	Rid                      *string                   `json:"_rid,omitempty"`
	Self                     *string                   `json:"_self,omitempty"`
	Ts                       *float64                  `json:"_ts,omitempty"`
	UniqueKeyPolicy          *UniqueKeyPolicy          `json:"uniqueKeyPolicy"`
}

type RestorableSqlContainersListOperationOptions

type RestorableSqlContainersListOperationOptions struct {
	EndTime                  *string
	RestorableSqlDatabaseRid *string
	StartTime                *string
}

func DefaultRestorableSqlContainersListOperationOptions

func DefaultRestorableSqlContainersListOperationOptions() RestorableSqlContainersListOperationOptions

type RestorableSqlContainersListOperationResponse

type RestorableSqlContainersListOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableSqlContainersListResult
}

type RestorableSqlContainersListResult

type RestorableSqlContainersListResult struct {
	Value *[]RestorableSqlContainerGetResult `json:"value,omitempty"`
}

type RestorableSqlDatabaseGetResult

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

type RestorableSqlDatabaseProperties

type RestorableSqlDatabaseProperties struct {
	Resource *RestorableSqlDatabasePropertiesResource `json:"resource"`
}

type RestorableSqlDatabasePropertiesResource

type RestorableSqlDatabasePropertiesResource struct {
	Database        *RestorableSqlDatabasePropertiesResourceDatabase `json:"database"`
	EventTimestamp  *string                                          `json:"eventTimestamp,omitempty"`
	OperationType   *OperationType                                   `json:"operationType,omitempty"`
	OwnerId         *string                                          `json:"ownerId,omitempty"`
	OwnerResourceId *string                                          `json:"ownerResourceId,omitempty"`
	Rid             *string                                          `json:"_rid,omitempty"`
}

type RestorableSqlDatabasePropertiesResourceDatabase

type RestorableSqlDatabasePropertiesResourceDatabase struct {
	Colls *string  `json:"_colls,omitempty"`
	Etag  *string  `json:"_etag,omitempty"`
	Id    *string  `json:"id,omitempty"`
	Rid   *string  `json:"_rid,omitempty"`
	Self  *string  `json:"_self,omitempty"`
	Ts    *float64 `json:"_ts,omitempty"`
	Users *string  `json:"_users,omitempty"`
}

type RestorableSqlDatabasesListOperationResponse

type RestorableSqlDatabasesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableSqlDatabasesListResult
}

type RestorableSqlDatabasesListResult

type RestorableSqlDatabasesListResult struct {
	Value *[]RestorableSqlDatabaseGetResult `json:"value,omitempty"`
}

type RestorableSqlResourcesGetResult

type RestorableSqlResourcesGetResult struct {
	CollectionNames *[]string `json:"collectionNames,omitempty"`
	DatabaseName    *string   `json:"databaseName,omitempty"`
	Id              *string   `json:"id,omitempty"`
	Name            *string   `json:"name,omitempty"`
	Type            *string   `json:"type,omitempty"`
}

type RestorableSqlResourcesListOperationOptions

type RestorableSqlResourcesListOperationOptions struct {
	RestoreLocation       *string
	RestoreTimestampInUtc *string
}

func DefaultRestorableSqlResourcesListOperationOptions

func DefaultRestorableSqlResourcesListOperationOptions() RestorableSqlResourcesListOperationOptions

type RestorableSqlResourcesListOperationResponse

type RestorableSqlResourcesListOperationResponse struct {
	HttpResponse *http.Response
	Model        *RestorableSqlResourcesListResult
}

type RestorableSqlResourcesListResult

type RestorableSqlResourcesListResult struct {
	Value *[]RestorableSqlResourcesGetResult `json:"value,omitempty"`
}

type RestorablesClient

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

func NewRestorablesClientWithBaseURI

func NewRestorablesClientWithBaseURI(endpoint string) RestorablesClient

func (RestorablesClient) MongoDBResourcesRetrieveContinuousBackupInformation

func (c RestorablesClient) MongoDBResourcesRetrieveContinuousBackupInformation(ctx context.Context, id CollectionId, input ContinuousBackupRestoreLocation) (result MongoDBResourcesRetrieveContinuousBackupInformationOperationResponse, err error)

MongoDBResourcesRetrieveContinuousBackupInformation ...

func (RestorablesClient) MongoDBResourcesRetrieveContinuousBackupInformationThenPoll

func (c RestorablesClient) MongoDBResourcesRetrieveContinuousBackupInformationThenPoll(ctx context.Context, id CollectionId, input ContinuousBackupRestoreLocation) error

MongoDBResourcesRetrieveContinuousBackupInformationThenPoll performs MongoDBResourcesRetrieveContinuousBackupInformation then polls until it's completed

func (RestorablesClient) RestorableDatabaseAccountsGetByLocation

RestorableDatabaseAccountsGetByLocation ...

func (RestorablesClient) RestorableDatabaseAccountsList

func (c RestorablesClient) RestorableDatabaseAccountsList(ctx context.Context, id commonids.SubscriptionId) (result RestorableDatabaseAccountsListOperationResponse, err error)

RestorableDatabaseAccountsList ...

func (RestorablesClient) RestorableDatabaseAccountsListByLocation

func (c RestorablesClient) RestorableDatabaseAccountsListByLocation(ctx context.Context, id LocationId) (result RestorableDatabaseAccountsListByLocationOperationResponse, err error)

RestorableDatabaseAccountsListByLocation ...

func (RestorablesClient) RestorableMongodbCollectionsList

RestorableMongodbCollectionsList ...

func (RestorablesClient) RestorableMongodbDatabasesList

RestorableMongodbDatabasesList ...

func (RestorablesClient) RestorableMongodbResourcesList

RestorableMongodbResourcesList ...

func (RestorablesClient) RestorableSqlContainersList

RestorableSqlContainersList ...

func (RestorablesClient) RestorableSqlDatabasesList

RestorableSqlDatabasesList ...

func (RestorablesClient) RestorableSqlResourcesList

RestorableSqlResourcesList ...

func (RestorablesClient) SqlResourcesRetrieveContinuousBackupInformation

func (c RestorablesClient) SqlResourcesRetrieveContinuousBackupInformation(ctx context.Context, id ContainerId, input ContinuousBackupRestoreLocation) (result SqlResourcesRetrieveContinuousBackupInformationOperationResponse, err error)

SqlResourcesRetrieveContinuousBackupInformation ...

func (RestorablesClient) SqlResourcesRetrieveContinuousBackupInformationThenPoll

func (c RestorablesClient) SqlResourcesRetrieveContinuousBackupInformationThenPoll(ctx context.Context, id ContainerId, input ContinuousBackupRestoreLocation) error

SqlResourcesRetrieveContinuousBackupInformationThenPoll performs SqlResourcesRetrieveContinuousBackupInformation then polls until it's completed

type SpatialSpec added in v0.20221021.1074650

type SpatialSpec struct {
	Path  *string        `json:"path,omitempty"`
	Types *[]SpatialType `json:"types,omitempty"`
}

type SpatialType added in v0.20221021.1074650

type SpatialType string
const (
	SpatialTypeLineString   SpatialType = "LineString"
	SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
	SpatialTypePoint        SpatialType = "Point"
	SpatialTypePolygon      SpatialType = "Polygon"
)

type SqlResourcesRetrieveContinuousBackupInformationOperationResponse

type SqlResourcesRetrieveContinuousBackupInformationOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type UniqueKey added in v0.20221021.1074650

type UniqueKey struct {
	Paths *[]string `json:"paths,omitempty"`
}

type UniqueKeyPolicy added in v0.20221021.1074650

type UniqueKeyPolicy struct {
	UniqueKeys *[]UniqueKey `json:"uniqueKeys,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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