connecttosourcemysqltasks

package
v0.20240207.1162109 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/connecttosourcemysqltasks Documentation

The connecttosourcemysqltasks SDK allows for interaction with the Azure Resource Manager Service datamigration (API Version 2018-04-19).

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/datamigration/2018-04-19/connecttosourcemysqltasks"

Client Initialization

client := connecttosourcemysqltasks.NewConnectToSourceMySqlTasksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCommandState

func PossibleValuesForCommandState() []string

func PossibleValuesForMySqlTargetPlatformType

func PossibleValuesForMySqlTargetPlatformType() []string

func PossibleValuesForServerLevelPermissionsGroup

func PossibleValuesForServerLevelPermissionsGroup() []string

func PossibleValuesForTaskState

func PossibleValuesForTaskState() []string

Types

type CommandProperties

type CommandProperties struct {
	CommandType string        `json:"commandType"`
	Errors      *[]ODataError `json:"errors,omitempty"`
	State       *CommandState `json:"state,omitempty"`
}

type CommandState

type CommandState string
const (
	CommandStateAccepted  CommandState = "Accepted"
	CommandStateFailed    CommandState = "Failed"
	CommandStateRunning   CommandState = "Running"
	CommandStateSucceeded CommandState = "Succeeded"
	CommandStateUnknown   CommandState = "Unknown"
)

func (*CommandState) UnmarshalJSON

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

type ConnectToSourceMySqlTaskInput

type ConnectToSourceMySqlTaskInput struct {
	CheckPermissionsGroup *ServerLevelPermissionsGroup `json:"checkPermissionsGroup,omitempty"`
	SourceConnectionInfo  MySqlConnectionInfo          `json:"sourceConnectionInfo"`
	TargetPlatform        *MySqlTargetPlatformType     `json:"targetPlatform,omitempty"`
}

type ConnectToSourceMySqlTaskProperties

type ConnectToSourceMySqlTaskProperties struct {
	Input  *ConnectToSourceMySqlTaskInput     `json:"input,omitempty"`
	Output *[]ConnectToSourceNonSqlTaskOutput `json:"output,omitempty"`

	// Fields inherited from ProjectTaskProperties
	Commands *[]CommandProperties `json:"commands,omitempty"`
	Errors   *[]ODataError        `json:"errors,omitempty"`
	State    *TaskState           `json:"state,omitempty"`
}

func (ConnectToSourceMySqlTaskProperties) MarshalJSON

func (s ConnectToSourceMySqlTaskProperties) MarshalJSON() ([]byte, error)

type ConnectToSourceMySqlTasksClient

type ConnectToSourceMySqlTasksClient struct {
	Client *resourcemanager.Client
}

func NewConnectToSourceMySqlTasksClientWithBaseURI

func NewConnectToSourceMySqlTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectToSourceMySqlTasksClient, error)

type ConnectToSourceNonSqlTaskOutput

type ConnectToSourceNonSqlTaskOutput struct {
	Databases                *[]string              `json:"databases,omitempty"`
	Id                       *string                `json:"id,omitempty"`
	ServerProperties         *ServerProperties      `json:"serverProperties,omitempty"`
	SourceServerBrandVersion *string                `json:"sourceServerBrandVersion,omitempty"`
	ValidationErrors         *[]ReportableException `json:"validationErrors,omitempty"`
}

type ConnectionInfo

type ConnectionInfo interface {
}

type MySqlConnectionInfo

type MySqlConnectionInfo struct {
	Port       int64  `json:"port"`
	ServerName string `json:"serverName"`

	// Fields inherited from ConnectionInfo
	Password *string `json:"password,omitempty"`
	UserName *string `json:"userName,omitempty"`
}

func (MySqlConnectionInfo) MarshalJSON

func (s MySqlConnectionInfo) MarshalJSON() ([]byte, error)

type MySqlTargetPlatformType

type MySqlTargetPlatformType string
const (
	MySqlTargetPlatformTypeAzureDbForMySQL MySqlTargetPlatformType = "AzureDbForMySQL"
	MySqlTargetPlatformTypeSqlServer       MySqlTargetPlatformType = "SqlServer"
)

func (*MySqlTargetPlatformType) UnmarshalJSON

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

type ODataError

type ODataError struct {
	Code    *string       `json:"code,omitempty"`
	Details *[]ODataError `json:"details,omitempty"`
	Message *string       `json:"message,omitempty"`
}

type ProjectTaskProperties

type ProjectTaskProperties interface {
}

type RawConnectionInfoImpl

type RawConnectionInfoImpl struct {
	Type   string
	Values map[string]interface{}
}

RawConnectionInfoImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawProjectTaskPropertiesImpl

type RawProjectTaskPropertiesImpl struct {
	Type   string
	Values map[string]interface{}
}

RawProjectTaskPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type ReportableException

type ReportableException struct {
	ActionableMessage *string `json:"actionableMessage,omitempty"`
	FilePath          *string `json:"filePath,omitempty"`
	HResult           *int64  `json:"hResult,omitempty"`
	LineNumber        *string `json:"lineNumber,omitempty"`
	Message           *string `json:"message,omitempty"`
	StackTrace        *string `json:"stackTrace,omitempty"`
}

type ServerLevelPermissionsGroup

type ServerLevelPermissionsGroup string
const (
	ServerLevelPermissionsGroupDefault                             ServerLevelPermissionsGroup = "Default"
	ServerLevelPermissionsGroupMigrationFromMySQLToAzureDBForMySQL ServerLevelPermissionsGroup = "MigrationFromMySQLToAzureDBForMySQL"
	ServerLevelPermissionsGroupMigrationFromSqlServerToAzureDB     ServerLevelPermissionsGroup = "MigrationFromSqlServerToAzureDB"
	ServerLevelPermissionsGroupMigrationFromSqlServerToAzureMI     ServerLevelPermissionsGroup = "MigrationFromSqlServerToAzureMI"
)

func (*ServerLevelPermissionsGroup) UnmarshalJSON

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

type ServerProperties

type ServerProperties struct {
	ServerDatabaseCount          *int64  `json:"serverDatabaseCount,omitempty"`
	ServerEdition                *string `json:"serverEdition,omitempty"`
	ServerName                   *string `json:"serverName,omitempty"`
	ServerOperatingSystemVersion *string `json:"serverOperatingSystemVersion,omitempty"`
	ServerPlatform               *string `json:"serverPlatform,omitempty"`
	ServerVersion                *string `json:"serverVersion,omitempty"`
}

type TaskState

type TaskState string
const (
	TaskStateCanceled              TaskState = "Canceled"
	TaskStateFailed                TaskState = "Failed"
	TaskStateFailedInputValidation TaskState = "FailedInputValidation"
	TaskStateFaulted               TaskState = "Faulted"
	TaskStateQueued                TaskState = "Queued"
	TaskStateRunning               TaskState = "Running"
	TaskStateSucceeded             TaskState = "Succeeded"
	TaskStateUnknown               TaskState = "Unknown"
)

func (*TaskState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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