restorables

package
v0.20241004.1180715 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MPL-2.0 Imports: 15 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 Azure Resource Manager 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-helpers/resourcemanager/commonids"
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.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName")

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", "location", "instanceId")

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 := commonids.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", "location")

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", "location", "instanceId")

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", "location", "instanceId")

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", "location", "instanceId")

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", "location", "instanceId")

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", "location", "instanceId")

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", "location", "instanceId")

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", "accountName", "databaseName", "containerName")

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

func PossibleValuesForCompositePathSortOrder() []string

func PossibleValuesForConflictResolutionMode

func PossibleValuesForConflictResolutionMode() []string

func PossibleValuesForDataType

func PossibleValuesForDataType() []string

func PossibleValuesForIndexKind

func PossibleValuesForIndexKind() []string

func PossibleValuesForIndexingMode

func PossibleValuesForIndexingMode() []string

func PossibleValuesForOperationType

func PossibleValuesForOperationType() []string

func PossibleValuesForPartitionKind

func PossibleValuesForPartitionKind() []string

func PossibleValuesForSpatialType

func PossibleValuesForSpatialType() []string

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 ValidateMongodbDatabaseCollectionID

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

ValidateMongodbDatabaseCollectionID checks that 'input' can be parsed as a Mongodb Database Collection 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"
)

func (*ApiType) UnmarshalJSON added in v0.20240306.1111727

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

type BackupInformation

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

type CompositePath

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

type CompositePathSortOrder

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

func (*CompositePathSortOrder) UnmarshalJSON added in v0.20240306.1111727

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

type ConflictResolutionMode

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

func (*ConflictResolutionMode) UnmarshalJSON added in v0.20240306.1111727

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

type ConflictResolutionPolicy

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
	DatabaseAccountName string
	SqlDatabaseName     string
	ContainerName       string
}

ContainerId is a struct representing the Resource ID for a Container

func NewContainerID

func NewContainerID(subscriptionId string, resourceGroupName string, databaseAccountName string, sqlDatabaseName 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) FromParseResult

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

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

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

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

func (*DataType) UnmarshalJSON added in v0.20240306.1111727

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

type ExcludedPath

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

type IncludedPath

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

type IndexKind

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

func (*IndexKind) UnmarshalJSON added in v0.20240306.1111727

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

type Indexes

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

type IndexingMode

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

func (*IndexingMode) UnmarshalJSON added in v0.20240306.1111727

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

type IndexingPolicy

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
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

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

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

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

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

func (*LocationId) FromParseResult

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

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

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type MongoDBResourcesRetrieveContinuousBackupInformationOperationResponse

type MongoDBResourcesRetrieveContinuousBackupInformationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BackupInformation
}

type MongodbDatabaseCollectionId

type MongodbDatabaseCollectionId struct {
	SubscriptionId      string
	ResourceGroupName   string
	DatabaseAccountName string
	MongodbDatabaseName string
	CollectionName      string
}

MongodbDatabaseCollectionId is a struct representing the Resource ID for a Mongodb Database Collection

func NewMongodbDatabaseCollectionID

func NewMongodbDatabaseCollectionID(subscriptionId string, resourceGroupName string, databaseAccountName string, mongodbDatabaseName string, collectionName string) MongodbDatabaseCollectionId

NewMongodbDatabaseCollectionID returns a new MongodbDatabaseCollectionId struct

func ParseMongodbDatabaseCollectionID

func ParseMongodbDatabaseCollectionID(input string) (*MongodbDatabaseCollectionId, error)

ParseMongodbDatabaseCollectionID parses 'input' into a MongodbDatabaseCollectionId

func ParseMongodbDatabaseCollectionIDInsensitively

func ParseMongodbDatabaseCollectionIDInsensitively(input string) (*MongodbDatabaseCollectionId, error)

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

func (*MongodbDatabaseCollectionId) FromParseResult

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

func (MongodbDatabaseCollectionId) ID

ID returns the formatted Mongodb Database Collection ID

func (MongodbDatabaseCollectionId) Segments

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

func (MongodbDatabaseCollectionId) String

func (id MongodbDatabaseCollectionId) String() string

String returns a human-readable description of this Mongodb Database Collection ID

type OperationType

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

func (*OperationType) UnmarshalJSON added in v0.20240306.1111727

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

type PartitionKind

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

func (*PartitionKind) UnmarshalJSON added in v0.20240306.1111727

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

type RestorableDatabaseAccountGetResult

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

type RestorableDatabaseAccountId

type RestorableDatabaseAccountId struct {
	SubscriptionId string
	LocationName   string
	InstanceId     string
}

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

func NewRestorableDatabaseAccountID

func NewRestorableDatabaseAccountID(subscriptionId string, locationName 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) FromParseResult

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

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
	OData        *odata.OData
	Model        *RestorableDatabaseAccountGetResult
}

type RestorableDatabaseAccountsListByLocationOperationResponse

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

type RestorableDatabaseAccountsListOperationResponse

type RestorableDatabaseAccountsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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,omitempty"`
	Type       *string                                `json:"type,omitempty"`
}

type RestorableMongodbCollectionProperties

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

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

func (RestorableMongodbCollectionsListOperationOptions) ToHeaders added in v0.20240306.1111727

func (RestorableMongodbCollectionsListOperationOptions) ToOData added in v0.20240306.1111727

func (RestorableMongodbCollectionsListOperationOptions) ToQuery added in v0.20240306.1111727

type RestorableMongodbCollectionsListOperationResponse

type RestorableMongodbCollectionsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type RestorableMongodbDatabaseProperties

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

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
	OData        *odata.OData
	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

func (RestorableMongodbResourcesListOperationOptions) ToHeaders added in v0.20240306.1111727

func (RestorableMongodbResourcesListOperationOptions) ToOData added in v0.20240306.1111727

func (RestorableMongodbResourcesListOperationOptions) ToQuery added in v0.20240306.1111727

type RestorableMongodbResourcesListOperationResponse

type RestorableMongodbResourcesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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,omitempty"`
	Type       *string                           `json:"type,omitempty"`
}

type RestorableSqlContainerProperties

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

type RestorableSqlContainerPropertiesResource

type RestorableSqlContainerPropertiesResource struct {
	Container       *RestorableSqlContainerPropertiesResourceContainer `json:"container,omitempty"`
	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,omitempty"`
	DefaultTtl               *int64                    `json:"defaultTtl,omitempty"`
	Etag                     *string                   `json:"_etag,omitempty"`
	Id                       *string                   `json:"id,omitempty"`
	IndexingPolicy           *IndexingPolicy           `json:"indexingPolicy,omitempty"`
	PartitionKey             *ContainerPartitionKey    `json:"partitionKey,omitempty"`
	Rid                      *string                   `json:"_rid,omitempty"`
	Self                     *string                   `json:"_self,omitempty"`
	Ts                       *float64                  `json:"_ts,omitempty"`
	UniqueKeyPolicy          *UniqueKeyPolicy          `json:"uniqueKeyPolicy,omitempty"`
}

type RestorableSqlContainersListOperationOptions

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

func DefaultRestorableSqlContainersListOperationOptions

func DefaultRestorableSqlContainersListOperationOptions() RestorableSqlContainersListOperationOptions

func (RestorableSqlContainersListOperationOptions) ToHeaders added in v0.20240306.1111727

func (RestorableSqlContainersListOperationOptions) ToOData added in v0.20240306.1111727

func (RestorableSqlContainersListOperationOptions) ToQuery added in v0.20240306.1111727

type RestorableSqlContainersListOperationResponse

type RestorableSqlContainersListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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,omitempty"`
	Type       *string                          `json:"type,omitempty"`
}

type RestorableSqlDatabaseProperties

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

type RestorableSqlDatabasePropertiesResource

type RestorableSqlDatabasePropertiesResource struct {
	Database        *RestorableSqlDatabasePropertiesResourceDatabase `json:"database,omitempty"`
	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
	OData        *odata.OData
	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

func (RestorableSqlResourcesListOperationOptions) ToHeaders added in v0.20240306.1111727

func (RestorableSqlResourcesListOperationOptions) ToOData added in v0.20240306.1111727

func (RestorableSqlResourcesListOperationOptions) ToQuery added in v0.20240306.1111727

type RestorableSqlResourcesListOperationResponse

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

type RestorableSqlResourcesListResult

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

type RestorablesClient

type RestorablesClient struct {
	Client *resourcemanager.Client
}

func NewRestorablesClientWithBaseURI

func NewRestorablesClientWithBaseURI(sdkApi sdkEnv.Api) (*RestorablesClient, error)

func (RestorablesClient) MongoDBResourcesRetrieveContinuousBackupInformation

MongoDBResourcesRetrieveContinuousBackupInformation ...

func (RestorablesClient) MongoDBResourcesRetrieveContinuousBackupInformationThenPoll

func (c RestorablesClient) MongoDBResourcesRetrieveContinuousBackupInformationThenPoll(ctx context.Context, id MongodbDatabaseCollectionId, 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

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

type SpatialType

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

func (*SpatialType) UnmarshalJSON added in v0.20240306.1111727

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

type SqlResourcesRetrieveContinuousBackupInformationOperationResponse

type SqlResourcesRetrieveContinuousBackupInformationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BackupInformation
}

type UniqueKey

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

type UniqueKeyPolicy

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