databases

package
v0.20230728.1130002 Latest Latest
Warning

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

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

README

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

The databases 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/databases"

Client Initialization

client := databases.NewDatabasesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DatabasesClient.CreateOrUpdate

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

payload := databases.Database{
	// ...
}


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

Example Usage: DatabasesClient.DatabaseOperationsCancel

ctx := context.TODO()
id := databases.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "operationIdValue")

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

Example Usage: DatabasesClient.DatabaseOperationsListByDatabase

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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

Example Usage: DatabasesClient.Delete

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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

Example Usage: DatabasesClient.Export

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

payload := databases.ImportExportDatabaseDefinition{
	// ...
}


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

Example Usage: DatabasesClient.Get

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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: DatabasesClient.ListByElasticPool

ctx := context.TODO()
id := databases.NewElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue")

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

Example Usage: DatabasesClient.ListByServer

ctx := context.TODO()
id := databases.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue")

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

Example Usage: DatabasesClient.Pause

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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

Example Usage: DatabasesClient.Rename

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

payload := databases.ResourceMoveDefinition{
	// ...
}


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

Example Usage: DatabasesClient.Resume

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

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

Example Usage: DatabasesClient.Update

ctx := context.TODO()
id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue")

payload := databases.DatabaseUpdate{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCatalogCollationType

func PossibleValuesForCatalogCollationType() []string

func PossibleValuesForCreateMode

func PossibleValuesForCreateMode() []string

func PossibleValuesForDatabaseStatus

func PossibleValuesForDatabaseStatus() []string

func PossibleValuesForManagementOperationState

func PossibleValuesForManagementOperationState() []string

func PossibleValuesForSampleName

func PossibleValuesForSampleName() []string

func ValidateDatabaseID

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

ValidateDatabaseID checks that 'input' can be parsed as a Database ID

func ValidateElasticPoolID

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

ValidateElasticPoolID checks that 'input' can be parsed as a Elastic Pool ID

func ValidateOperationID

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

ValidateOperationID checks that 'input' can be parsed as a Operation ID

func ValidateServerID

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

ValidateServerID checks that 'input' can be parsed as a Server ID

Types

type CatalogCollationType

type CatalogCollationType string
const (
	CatalogCollationTypeDATABASEDEFAULT             CatalogCollationType = "DATABASE_DEFAULT"
	CatalogCollationTypeSQLLatinOneGeneralCPOneCIAS CatalogCollationType = "SQL_Latin1_General_CP1_CI_AS"
)

func (*CatalogCollationType) UnmarshalJSON

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

type CreateMode

type CreateMode string
const (
	CreateModeCopy                           CreateMode = "Copy"
	CreateModeDefault                        CreateMode = "Default"
	CreateModeOnlineSecondary                CreateMode = "OnlineSecondary"
	CreateModePointInTimeRestore             CreateMode = "PointInTimeRestore"
	CreateModeRecovery                       CreateMode = "Recovery"
	CreateModeRestore                        CreateMode = "Restore"
	CreateModeRestoreExternalBackup          CreateMode = "RestoreExternalBackup"
	CreateModeRestoreExternalBackupSecondary CreateMode = "RestoreExternalBackupSecondary"
	CreateModeRestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
	CreateModeSecondary                      CreateMode = "Secondary"
)

func (*CreateMode) UnmarshalJSON

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

type CreateOrUpdateOperationResponse

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

type Database

type Database struct {
	Id         *string             `json:"id,omitempty"`
	Kind       *string             `json:"kind,omitempty"`
	Location   string              `json:"location"`
	Name       *string             `json:"name,omitempty"`
	Properties *DatabaseProperties `json:"properties,omitempty"`
	Sku        *Sku                `json:"sku,omitempty"`
	Tags       *map[string]string  `json:"tags,omitempty"`
	Type       *string             `json:"type,omitempty"`
}

type DatabaseId

type DatabaseId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	DatabaseName      string
}

DatabaseId is a struct representing the Resource ID for a Database

func NewDatabaseID

func NewDatabaseID(subscriptionId string, resourceGroupName string, serverName string, databaseName string) DatabaseId

NewDatabaseID returns a new DatabaseId struct

func ParseDatabaseID

func ParseDatabaseID(input string) (*DatabaseId, error)

ParseDatabaseID parses 'input' into a DatabaseId

func ParseDatabaseIDInsensitively

func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error)

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

func (DatabaseId) ID

func (id DatabaseId) ID() string

ID returns the formatted Database ID

func (DatabaseId) Segments

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

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

func (DatabaseId) String

func (id DatabaseId) String() string

String returns a human-readable description of this Database ID

type DatabaseOperation

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

type DatabaseOperationOperationPredicate

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

func (DatabaseOperationOperationPredicate) Matches

type DatabaseOperationPredicate

type DatabaseOperationPredicate struct {
	Id       *string
	Kind     *string
	Location *string
	Name     *string
	Type     *string
}

func (DatabaseOperationPredicate) Matches

func (p DatabaseOperationPredicate) Matches(input Database) bool

type DatabaseOperationProperties

type DatabaseOperationProperties struct {
	DatabaseName            *string                   `json:"databaseName,omitempty"`
	Description             *string                   `json:"description,omitempty"`
	ErrorCode               *int64                    `json:"errorCode,omitempty"`
	ErrorDescription        *string                   `json:"errorDescription,omitempty"`
	ErrorSeverity           *int64                    `json:"errorSeverity,omitempty"`
	EstimatedCompletionTime *string                   `json:"estimatedCompletionTime,omitempty"`
	IsCancellable           *bool                     `json:"isCancellable,omitempty"`
	IsUserError             *bool                     `json:"isUserError,omitempty"`
	Operation               *string                   `json:"operation,omitempty"`
	OperationFriendlyName   *string                   `json:"operationFriendlyName,omitempty"`
	PercentComplete         *int64                    `json:"percentComplete,omitempty"`
	ServerName              *string                   `json:"serverName,omitempty"`
	StartTime               *string                   `json:"startTime,omitempty"`
	State                   *ManagementOperationState `json:"state,omitempty"`
}

func (*DatabaseOperationProperties) GetEstimatedCompletionTimeAsTime

func (o *DatabaseOperationProperties) GetEstimatedCompletionTimeAsTime() (*time.Time, error)

func (*DatabaseOperationProperties) GetStartTimeAsTime

func (o *DatabaseOperationProperties) GetStartTimeAsTime() (*time.Time, error)

func (*DatabaseOperationProperties) SetEstimatedCompletionTimeAsTime

func (o *DatabaseOperationProperties) SetEstimatedCompletionTimeAsTime(input time.Time)

func (*DatabaseOperationProperties) SetStartTimeAsTime

func (o *DatabaseOperationProperties) SetStartTimeAsTime(input time.Time)

type DatabaseOperationsCancelOperationResponse

type DatabaseOperationsCancelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DatabaseOperationsListByDatabaseCompleteResult

type DatabaseOperationsListByDatabaseCompleteResult struct {
	Items []DatabaseOperation
}

type DatabaseOperationsListByDatabaseOperationResponse

type DatabaseOperationsListByDatabaseOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DatabaseOperation
}

type DatabaseProperties

type DatabaseProperties struct {
	CatalogCollation                  *CatalogCollationType `json:"catalogCollation,omitempty"`
	Collation                         *string               `json:"collation,omitempty"`
	CreateMode                        *CreateMode           `json:"createMode,omitempty"`
	CreationDate                      *string               `json:"creationDate,omitempty"`
	CurrentServiceObjectiveName       *string               `json:"currentServiceObjectiveName,omitempty"`
	DatabaseId                        *string               `json:"databaseId,omitempty"`
	DefaultSecondaryLocation          *string               `json:"defaultSecondaryLocation,omitempty"`
	ElasticPoolId                     *string               `json:"elasticPoolId,omitempty"`
	FailoverGroupId                   *string               `json:"failoverGroupId,omitempty"`
	LongTermRetentionBackupResourceId *string               `json:"longTermRetentionBackupResourceId,omitempty"`
	MaxSizeBytes                      *int64                `json:"maxSizeBytes,omitempty"`
	RecoverableDatabaseId             *string               `json:"recoverableDatabaseId,omitempty"`
	RecoveryServicesRecoveryPointId   *string               `json:"recoveryServicesRecoveryPointId,omitempty"`
	RestorableDroppedDatabaseId       *string               `json:"restorableDroppedDatabaseId,omitempty"`
	RestorePointInTime                *string               `json:"restorePointInTime,omitempty"`
	SampleName                        *SampleName           `json:"sampleName,omitempty"`
	SourceDatabaseDeletionDate        *string               `json:"sourceDatabaseDeletionDate,omitempty"`
	SourceDatabaseId                  *string               `json:"sourceDatabaseId,omitempty"`
	Status                            *DatabaseStatus       `json:"status,omitempty"`
	ZoneRedundant                     *bool                 `json:"zoneRedundant,omitempty"`
}

func (*DatabaseProperties) GetCreationDateAsTime

func (o *DatabaseProperties) GetCreationDateAsTime() (*time.Time, error)

func (*DatabaseProperties) GetRestorePointInTimeAsTime

func (o *DatabaseProperties) GetRestorePointInTimeAsTime() (*time.Time, error)

func (*DatabaseProperties) GetSourceDatabaseDeletionDateAsTime

func (o *DatabaseProperties) GetSourceDatabaseDeletionDateAsTime() (*time.Time, error)

func (*DatabaseProperties) SetCreationDateAsTime

func (o *DatabaseProperties) SetCreationDateAsTime(input time.Time)

func (*DatabaseProperties) SetRestorePointInTimeAsTime

func (o *DatabaseProperties) SetRestorePointInTimeAsTime(input time.Time)

func (*DatabaseProperties) SetSourceDatabaseDeletionDateAsTime

func (o *DatabaseProperties) SetSourceDatabaseDeletionDateAsTime(input time.Time)

type DatabaseStatus

type DatabaseStatus string
const (
	DatabaseStatusAutoClosed       DatabaseStatus = "AutoClosed"
	DatabaseStatusCopying          DatabaseStatus = "Copying"
	DatabaseStatusCreating         DatabaseStatus = "Creating"
	DatabaseStatusEmergencyMode    DatabaseStatus = "EmergencyMode"
	DatabaseStatusInaccessible     DatabaseStatus = "Inaccessible"
	DatabaseStatusOffline          DatabaseStatus = "Offline"
	DatabaseStatusOfflineSecondary DatabaseStatus = "OfflineSecondary"
	DatabaseStatusOnline           DatabaseStatus = "Online"
	DatabaseStatusPaused           DatabaseStatus = "Paused"
	DatabaseStatusPausing          DatabaseStatus = "Pausing"
	DatabaseStatusRecovering       DatabaseStatus = "Recovering"
	DatabaseStatusRecoveryPending  DatabaseStatus = "RecoveryPending"
	DatabaseStatusRestoring        DatabaseStatus = "Restoring"
	DatabaseStatusResuming         DatabaseStatus = "Resuming"
	DatabaseStatusScaling          DatabaseStatus = "Scaling"
	DatabaseStatusShutdown         DatabaseStatus = "Shutdown"
	DatabaseStatusStandby          DatabaseStatus = "Standby"
	DatabaseStatusSuspect          DatabaseStatus = "Suspect"
)

func (*DatabaseStatus) UnmarshalJSON

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

type DatabaseUpdate

type DatabaseUpdate struct {
	Properties *DatabaseProperties `json:"properties,omitempty"`
	Sku        *Sku                `json:"sku,omitempty"`
	Tags       *map[string]string  `json:"tags,omitempty"`
}

type DatabasesClient

type DatabasesClient struct {
	Client *resourcemanager.Client
}

func NewDatabasesClientWithBaseURI

func NewDatabasesClientWithBaseURI(api environments.Api) (*DatabasesClient, error)

func (DatabasesClient) CreateOrUpdate

func (c DatabasesClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input Database) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (DatabasesClient) CreateOrUpdateThenPoll

func (c DatabasesClient) CreateOrUpdateThenPoll(ctx context.Context, id DatabaseId, input Database) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (DatabasesClient) DatabaseOperationsCancel

func (c DatabasesClient) DatabaseOperationsCancel(ctx context.Context, id OperationId) (result DatabaseOperationsCancelOperationResponse, err error)

DatabaseOperationsCancel ...

func (DatabasesClient) DatabaseOperationsListByDatabase

func (c DatabasesClient) DatabaseOperationsListByDatabase(ctx context.Context, id DatabaseId) (result DatabaseOperationsListByDatabaseOperationResponse, err error)

DatabaseOperationsListByDatabase ...

func (DatabasesClient) DatabaseOperationsListByDatabaseComplete

func (c DatabasesClient) DatabaseOperationsListByDatabaseComplete(ctx context.Context, id DatabaseId) (DatabaseOperationsListByDatabaseCompleteResult, error)

DatabaseOperationsListByDatabaseComplete retrieves all the results into a single object

func (DatabasesClient) DatabaseOperationsListByDatabaseCompleteMatchingPredicate

func (c DatabasesClient) DatabaseOperationsListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate DatabaseOperationOperationPredicate) (result DatabaseOperationsListByDatabaseCompleteResult, err error)

DatabaseOperationsListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DatabasesClient) Delete

func (c DatabasesClient) Delete(ctx context.Context, id DatabaseId) (result DeleteOperationResponse, err error)

Delete ...

func (DatabasesClient) DeleteThenPoll

func (c DatabasesClient) DeleteThenPoll(ctx context.Context, id DatabaseId) error

DeleteThenPoll performs Delete then polls until it's completed

func (DatabasesClient) Export

Export ...

func (DatabasesClient) ExportThenPoll

ExportThenPoll performs Export then polls until it's completed

func (DatabasesClient) Get

func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)

Get ...

func (DatabasesClient) ListByElasticPool

func (c DatabasesClient) ListByElasticPool(ctx context.Context, id ElasticPoolId) (result ListByElasticPoolOperationResponse, err error)

ListByElasticPool ...

func (DatabasesClient) ListByElasticPoolComplete

func (c DatabasesClient) ListByElasticPoolComplete(ctx context.Context, id ElasticPoolId) (ListByElasticPoolCompleteResult, error)

ListByElasticPoolComplete retrieves all the results into a single object

func (DatabasesClient) ListByElasticPoolCompleteMatchingPredicate

func (c DatabasesClient) ListByElasticPoolCompleteMatchingPredicate(ctx context.Context, id ElasticPoolId, predicate DatabaseOperationPredicate) (result ListByElasticPoolCompleteResult, err error)

ListByElasticPoolCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DatabasesClient) ListByServer

func (c DatabasesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error)

ListByServer ...

func (DatabasesClient) ListByServerComplete

func (c DatabasesClient) ListByServerComplete(ctx context.Context, id ServerId) (ListByServerCompleteResult, error)

ListByServerComplete retrieves all the results into a single object

func (DatabasesClient) ListByServerCompleteMatchingPredicate

func (c DatabasesClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, predicate DatabaseOperationPredicate) (result ListByServerCompleteResult, err error)

ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (DatabasesClient) Pause

func (c DatabasesClient) Pause(ctx context.Context, id DatabaseId) (result PauseOperationResponse, err error)

Pause ...

func (DatabasesClient) PauseThenPoll

func (c DatabasesClient) PauseThenPoll(ctx context.Context, id DatabaseId) error

PauseThenPoll performs Pause then polls until it's completed

func (DatabasesClient) Rename

Rename ...

func (DatabasesClient) Resume

func (c DatabasesClient) Resume(ctx context.Context, id DatabaseId) (result ResumeOperationResponse, err error)

Resume ...

func (DatabasesClient) ResumeThenPoll

func (c DatabasesClient) ResumeThenPoll(ctx context.Context, id DatabaseId) error

ResumeThenPoll performs Resume then polls until it's completed

func (DatabasesClient) Update

func (c DatabasesClient) Update(ctx context.Context, id DatabaseId, input DatabaseUpdate) (result UpdateOperationResponse, err error)

Update ...

func (DatabasesClient) UpdateThenPoll

func (c DatabasesClient) UpdateThenPoll(ctx context.Context, id DatabaseId, input DatabaseUpdate) error

UpdateThenPoll performs Update then polls until it's completed

type DeleteOperationResponse

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

type ElasticPoolId

type ElasticPoolId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	ElasticPoolName   string
}

ElasticPoolId is a struct representing the Resource ID for a Elastic Pool

func NewElasticPoolID

func NewElasticPoolID(subscriptionId string, resourceGroupName string, serverName string, elasticPoolName string) ElasticPoolId

NewElasticPoolID returns a new ElasticPoolId struct

func ParseElasticPoolID

func ParseElasticPoolID(input string) (*ElasticPoolId, error)

ParseElasticPoolID parses 'input' into a ElasticPoolId

func ParseElasticPoolIDInsensitively

func ParseElasticPoolIDInsensitively(input string) (*ElasticPoolId, error)

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

func (ElasticPoolId) ID

func (id ElasticPoolId) ID() string

ID returns the formatted Elastic Pool ID

func (ElasticPoolId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Elastic Pool ID

func (ElasticPoolId) String

func (id ElasticPoolId) String() string

String returns a human-readable description of this Elastic Pool ID

type ExportOperationResponse

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

type GetOperationResponse

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

type ImportExportDatabaseDefinition

type ImportExportDatabaseDefinition struct {
	AdministratorLogin         string  `json:"administratorLogin"`
	AdministratorLoginPassword string  `json:"administratorLoginPassword"`
	AuthenticationType         *string `json:"authenticationType,omitempty"`
	DatabaseName               *string `json:"databaseName,omitempty"`
	Edition                    *string `json:"edition,omitempty"`
	MaxSizeBytes               *string `json:"maxSizeBytes,omitempty"`
	ServiceObjectiveName       *string `json:"serviceObjectiveName,omitempty"`
	StorageKey                 string  `json:"storageKey"`
	StorageKeyType             string  `json:"storageKeyType"`
	StorageUri                 string  `json:"storageUri"`
}

type ImportExportOperationResult

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

type ImportExportOperationResultProperties

type ImportExportOperationResultProperties struct {
	BlobUri          *string `json:"blobUri,omitempty"`
	DatabaseName     *string `json:"databaseName,omitempty"`
	ErrorMessage     *string `json:"errorMessage,omitempty"`
	LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
	QueuedTime       *string `json:"queuedTime,omitempty"`
	RequestId        *string `json:"requestId,omitempty"`
	RequestType      *string `json:"requestType,omitempty"`
	ServerName       *string `json:"serverName,omitempty"`
	Status           *string `json:"status,omitempty"`
}

type ListByElasticPoolCompleteResult

type ListByElasticPoolCompleteResult struct {
	Items []Database
}

type ListByElasticPoolOperationResponse

type ListByElasticPoolOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Database
}

type ListByServerCompleteResult

type ListByServerCompleteResult struct {
	Items []Database
}

type ListByServerOperationResponse

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

type ManagementOperationState

type ManagementOperationState string
const (
	ManagementOperationStateCancelInProgress ManagementOperationState = "CancelInProgress"
	ManagementOperationStateCancelled        ManagementOperationState = "Cancelled"
	ManagementOperationStateFailed           ManagementOperationState = "Failed"
	ManagementOperationStateInProgress       ManagementOperationState = "InProgress"
	ManagementOperationStatePending          ManagementOperationState = "Pending"
	ManagementOperationStateSucceeded        ManagementOperationState = "Succeeded"
)

func (*ManagementOperationState) UnmarshalJSON

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

type OperationId

type OperationId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
	DatabaseName      string
	OperationId       string
}

OperationId is a struct representing the Resource ID for a Operation

func NewOperationID

func NewOperationID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, operationId string) OperationId

NewOperationID returns a new OperationId struct

func ParseOperationID

func ParseOperationID(input string) (*OperationId, error)

ParseOperationID parses 'input' into a OperationId

func ParseOperationIDInsensitively

func ParseOperationIDInsensitively(input string) (*OperationId, error)

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

func (OperationId) ID

func (id OperationId) ID() string

ID returns the formatted Operation ID

func (OperationId) Segments

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

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

func (OperationId) String

func (id OperationId) String() string

String returns a human-readable description of this Operation ID

type PauseOperationResponse

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

type RenameOperationResponse

type RenameOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ResourceMoveDefinition

type ResourceMoveDefinition struct {
	Id string `json:"id"`
}

type ResumeOperationResponse

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

type SampleName

type SampleName string
const (
	SampleNameAdventureWorksLT       SampleName = "AdventureWorksLT"
	SampleNameWideWorldImportersFull SampleName = "WideWorldImportersFull"
	SampleNameWideWorldImportersStd  SampleName = "WideWorldImportersStd"
)

func (*SampleName) UnmarshalJSON

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

type ServerId

type ServerId struct {
	SubscriptionId    string
	ResourceGroupName string
	ServerName        string
}

ServerId is a struct representing the Resource ID for a Server

func NewServerID

func NewServerID(subscriptionId string, resourceGroupName string, serverName string) ServerId

NewServerID returns a new ServerId struct

func ParseServerID

func ParseServerID(input string) (*ServerId, error)

ParseServerID parses 'input' into a ServerId

func ParseServerIDInsensitively

func ParseServerIDInsensitively(input string) (*ServerId, error)

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

func (ServerId) ID

func (id ServerId) ID() string

ID returns the formatted Server ID

func (ServerId) Segments

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

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

func (ServerId) String

func (id ServerId) String() string

String returns a human-readable description of this Server ID

type Sku

type Sku struct {
	Capacity *int64  `json:"capacity,omitempty"`
	Family   *string `json:"family,omitempty"`
	Name     string  `json:"name"`
	Size     *string `json:"size,omitempty"`
	Tier     *string `json:"tier,omitempty"`
}

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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