manageddatabasemoveoperations

package
v0.20231116.1162710 Latest Latest
Warning

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

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

README

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

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

Client Initialization

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

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 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 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 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(sdkApi sdkEnv.Api) (*ManagedDatabaseMoveOperationsClient, error)

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