Documentation ¶
Index ¶
- func PossibleValuesForManagementOperationState() []string
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateDatabaseOperationID(input interface{}, key string) (warnings []string, errors []error)
- type CancelOperationResponse
- type DatabaseId
- type DatabaseOperation
- type DatabaseOperationId
- type DatabaseOperationOperationPredicate
- type DatabaseOperationProperties
- func (o *DatabaseOperationProperties) GetEstimatedCompletionTimeAsTime() (*time.Time, error)
- func (o *DatabaseOperationProperties) GetStartTimeAsTime() (*time.Time, error)
- func (o *DatabaseOperationProperties) SetEstimatedCompletionTimeAsTime(input time.Time)
- func (o *DatabaseOperationProperties) SetStartTimeAsTime(input time.Time)
- type DatabaseOperationsClient
- func (c DatabaseOperationsClient) Cancel(ctx context.Context, id DatabaseOperationId) (result CancelOperationResponse, err error)
- func (c DatabaseOperationsClient) ListByDatabase(ctx context.Context, id DatabaseId) (result ListByDatabaseOperationResponse, err error)
- func (c DatabaseOperationsClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
- func (c DatabaseOperationsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, ...) (result ListByDatabaseCompleteResult, err error)
- type ListByDatabaseCompleteResult
- type ListByDatabaseOperationResponse
- type ManagementOperationState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForManagementOperationState ¶
func PossibleValuesForManagementOperationState() []string
func ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
func ValidateDatabaseOperationID ¶
ValidateDatabaseOperationID checks that 'input' can be parsed as a Database Operation ID
Types ¶
type CancelOperationResponse ¶
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 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 DatabaseOperationId ¶
type DatabaseOperationId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string OperationId string }
DatabaseOperationId is a struct representing the Resource ID for a Database Operation
func NewDatabaseOperationID ¶
func NewDatabaseOperationID(subscriptionId string, resourceGroupName string, serverName string, databaseName string, operationId string) DatabaseOperationId
NewDatabaseOperationID returns a new DatabaseOperationId struct
func ParseDatabaseOperationID ¶
func ParseDatabaseOperationID(input string) (*DatabaseOperationId, error)
ParseDatabaseOperationID parses 'input' into a DatabaseOperationId
func ParseDatabaseOperationIDInsensitively ¶
func ParseDatabaseOperationIDInsensitively(input string) (*DatabaseOperationId, error)
ParseDatabaseOperationIDInsensitively parses 'input' case-insensitively into a DatabaseOperationId note: this method should only be used for API response data and not user input
func (DatabaseOperationId) ID ¶
func (id DatabaseOperationId) ID() string
ID returns the formatted Database Operation ID
func (DatabaseOperationId) Segments ¶
func (id DatabaseOperationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Database Operation ID
func (DatabaseOperationId) String ¶
func (id DatabaseOperationId) String() string
String returns a human-readable description of this Database Operation ID
type DatabaseOperationOperationPredicate ¶
func (DatabaseOperationOperationPredicate) Matches ¶
func (p DatabaseOperationOperationPredicate) Matches(input DatabaseOperation) 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 DatabaseOperationsClient ¶
type DatabaseOperationsClient struct {
Client *resourcemanager.Client
}
func NewDatabaseOperationsClientWithBaseURI ¶
func NewDatabaseOperationsClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseOperationsClient, error)
func (DatabaseOperationsClient) Cancel ¶
func (c DatabaseOperationsClient) Cancel(ctx context.Context, id DatabaseOperationId) (result CancelOperationResponse, err error)
Cancel ...
func (DatabaseOperationsClient) ListByDatabase ¶
func (c DatabaseOperationsClient) ListByDatabase(ctx context.Context, id DatabaseId) (result ListByDatabaseOperationResponse, err error)
ListByDatabase ...
func (DatabaseOperationsClient) ListByDatabaseComplete ¶
func (c DatabaseOperationsClient) ListByDatabaseComplete(ctx context.Context, id DatabaseId) (ListByDatabaseCompleteResult, error)
ListByDatabaseComplete retrieves all the results into a single object
func (DatabaseOperationsClient) ListByDatabaseCompleteMatchingPredicate ¶
func (c DatabaseOperationsClient) ListByDatabaseCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate DatabaseOperationOperationPredicate) (result ListByDatabaseCompleteResult, err error)
ListByDatabaseCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ListByDatabaseCompleteResult ¶
type ListByDatabaseCompleteResult struct {
Items []DatabaseOperation
}
type ListByDatabaseOperationResponse ¶
type ListByDatabaseOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DatabaseOperation }
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