manageddatabasemoveoperations

package
v0.20230608.1112153 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/sql/2022-11-01-preview/manageddatabasemoveoperations Documentation

The manageddatabasemoveoperations SDK allows for interaction with the Azure Resource Manager Service sql (API Version 2022-11-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/2022-11-01-preview/manageddatabasemoveoperations"

Client Initialization

client := manageddatabasemoveoperations.NewManagedDatabaseMoveOperationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ManagedDatabaseMoveOperationsClient.Get

ctx := context.TODO()
id := manageddatabasemoveoperations.NewManagedDatabaseMoveOperationResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "operationIdValue")

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: ManagedDatabaseMoveOperationsClient.ListByLocation

ctx := context.TODO()
id := manageddatabasemoveoperations.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForManagementOperationState

func PossibleValuesForManagementOperationState() []string

func PossibleValuesForMoveOperationMode

func PossibleValuesForMoveOperationMode() []string

func ValidateManagedDatabaseMoveOperationResultID

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

ValidateManagedDatabaseMoveOperationResultID checks that 'input' can be parsed as a Managed Database Move Operation Result ID

func ValidateProviderLocationID

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

ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID

Types

type GetOperationResponse

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

type ListByLocationCompleteResult

type ListByLocationCompleteResult struct {
	Items []ManagedDatabaseMoveOperationResult
}

type ListByLocationOperationOptions

type ListByLocationOperationOptions struct {
	Filter                *string
	OnlyLatestPerDatabase *bool
}

func DefaultListByLocationOperationOptions

func DefaultListByLocationOperationOptions() ListByLocationOperationOptions

func (ListByLocationOperationOptions) ToHeaders

func (ListByLocationOperationOptions) ToOData

func (ListByLocationOperationOptions) ToQuery

type ListByLocationOperationResponse

type ListByLocationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ManagedDatabaseMoveOperationResult
}

type ManagedDatabaseMoveOperationResult

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

type ManagedDatabaseMoveOperationResultId

type ManagedDatabaseMoveOperationResultId struct {
	SubscriptionId    string
	ResourceGroupName string
	LocationName      string
	OperationId       string
}

ManagedDatabaseMoveOperationResultId is a struct representing the Resource ID for a Managed Database Move Operation Result

func NewManagedDatabaseMoveOperationResultID

func NewManagedDatabaseMoveOperationResultID(subscriptionId string, resourceGroupName string, locationName string, operationId string) ManagedDatabaseMoveOperationResultId

NewManagedDatabaseMoveOperationResultID returns a new ManagedDatabaseMoveOperationResultId struct

func ParseManagedDatabaseMoveOperationResultID

func ParseManagedDatabaseMoveOperationResultID(input string) (*ManagedDatabaseMoveOperationResultId, error)

ParseManagedDatabaseMoveOperationResultID parses 'input' into a ManagedDatabaseMoveOperationResultId

func ParseManagedDatabaseMoveOperationResultIDInsensitively

func ParseManagedDatabaseMoveOperationResultIDInsensitively(input string) (*ManagedDatabaseMoveOperationResultId, error)

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

func (ManagedDatabaseMoveOperationResultId) ID

ID returns the formatted Managed Database Move Operation Result ID

func (ManagedDatabaseMoveOperationResultId) Segments

Segments returns a slice of Resource ID Segments which comprise this Managed Database Move Operation Result ID

func (ManagedDatabaseMoveOperationResultId) String

String returns a human-readable description of this Managed Database Move Operation Result ID

type ManagedDatabaseMoveOperationResultOperationPredicate

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

func (ManagedDatabaseMoveOperationResultOperationPredicate) Matches

type ManagedDatabaseMoveOperationResultProperties

type ManagedDatabaseMoveOperationResultProperties struct {
	ErrorCode                 *int64                    `json:"errorCode,omitempty"`
	ErrorDescription          *string                   `json:"errorDescription,omitempty"`
	ErrorSeverity             *int64                    `json:"errorSeverity,omitempty"`
	IsCancellable             *bool                     `json:"isCancellable,omitempty"`
	IsUserError               *bool                     `json:"isUserError,omitempty"`
	Operation                 *string                   `json:"operation,omitempty"`
	OperationFriendlyName     *string                   `json:"operationFriendlyName,omitempty"`
	OperationMode             *MoveOperationMode        `json:"operationMode,omitempty"`
	SourceDatabaseName        *string                   `json:"sourceDatabaseName,omitempty"`
	SourceManagedInstanceId   *string                   `json:"sourceManagedInstanceId,omitempty"`
	SourceManagedInstanceName *string                   `json:"sourceManagedInstanceName,omitempty"`
	StartTime                 *string                   `json:"startTime,omitempty"`
	State                     *ManagementOperationState `json:"state,omitempty"`
	TargetDatabaseName        *string                   `json:"targetDatabaseName,omitempty"`
	TargetManagedInstanceId   *string                   `json:"targetManagedInstanceId,omitempty"`
	TargetManagedInstanceName *string                   `json:"targetManagedInstanceName,omitempty"`
}

func (*ManagedDatabaseMoveOperationResultProperties) GetStartTimeAsTime

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

func (*ManagedDatabaseMoveOperationResultProperties) SetStartTimeAsTime

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

type ManagedDatabaseMoveOperationsClient

type ManagedDatabaseMoveOperationsClient struct {
	Client *resourcemanager.Client
}

func NewManagedDatabaseMoveOperationsClientWithBaseURI

func NewManagedDatabaseMoveOperationsClientWithBaseURI(api environments.Api) (*ManagedDatabaseMoveOperationsClient, error)

func (ManagedDatabaseMoveOperationsClient) Get

Get ...

func (ManagedDatabaseMoveOperationsClient) ListByLocation

ListByLocation ...

func (ManagedDatabaseMoveOperationsClient) ListByLocationComplete

ListByLocationComplete retrieves all the results into a single object

func (ManagedDatabaseMoveOperationsClient) ListByLocationCompleteMatchingPredicate

ListByLocationCompleteMatchingPredicate retrieves all the results and then applies the predicate

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 MoveOperationMode

type MoveOperationMode string
const (
	MoveOperationModeCopy MoveOperationMode = "Copy"
	MoveOperationModeMove MoveOperationMode = "Move"
)

func (*MoveOperationMode) UnmarshalJSON

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

type ProviderLocationId

type ProviderLocationId struct {
	SubscriptionId    string
	ResourceGroupName string
	LocationName      string
}

ProviderLocationId is a struct representing the Resource ID for a Provider Location

func NewProviderLocationID

func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId

NewProviderLocationID returns a new ProviderLocationId struct

func ParseProviderLocationID

func ParseProviderLocationID(input string) (*ProviderLocationId, error)

ParseProviderLocationID parses 'input' into a ProviderLocationId

func ParseProviderLocationIDInsensitively

func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error)

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

func (ProviderLocationId) ID

func (id ProviderLocationId) ID() string

ID returns the formatted Provider Location ID

func (ProviderLocationId) Segments

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

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

func (ProviderLocationId) String

func (id ProviderLocationId) String() string

String returns a human-readable description of this Provider Location ID

Jump to

Keyboard shortcuts

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