Documentation ¶
Index ¶
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServerID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type Database
- type DatabaseId
- type DatabaseListResult
- type DatabaseProperties
- type DatabasesClient
- func (c DatabasesClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input Database) (result CreateOrUpdateOperationResponse, err error)
- func (c DatabasesClient) CreateOrUpdateThenPoll(ctx context.Context, id DatabaseId, input Database) error
- func (c DatabasesClient) Delete(ctx context.Context, id DatabaseId) (result DeleteOperationResponse, err error)
- func (c DatabasesClient) DeleteThenPoll(ctx context.Context, id DatabaseId) error
- func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
- func (c DatabasesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error)
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByServerOperationResponse
- type ServerId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
func ValidateServerID ¶
ValidateServerID checks that 'input' can be parsed as a Server ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type Database ¶
type Database struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DatabaseProperties `json:"properties,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) 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 DatabaseListResult ¶
type DatabaseListResult struct {
Value *[]Database `json:"value,omitempty"`
}
type DatabaseProperties ¶
type DatabasesClient ¶
func NewDatabasesClientWithBaseURI ¶
func NewDatabasesClientWithBaseURI(endpoint string) DatabasesClient
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) 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) Get ¶
func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
Get ...
func (DatabasesClient) ListByServer ¶
func (c DatabasesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error)
ListByServer ...
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response Model *DatabaseListResult }
type ServerId ¶
ServerId is a struct representing the Resource ID for a Server
func NewServerID ¶
NewServerID returns a new ServerId struct
func ParseServerID ¶
ParseServerID parses 'input' into a ServerId
func ParseServerIDInsensitively ¶
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) Segments ¶
func (id ServerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Server ID