commons

package
v0.20240320.1000025 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/commons Documentation

The commons SDK allows for interaction with the Azure Resource Manager Service datamigration (API Version 2021-06-30).

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/2021-06-30/commons"

Client Initialization

client := commons.NewCommonsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAuthenticationType

func PossibleValuesForAuthenticationType() []string

func PossibleValuesForSqlSourcePlatform

func PossibleValuesForSqlSourcePlatform() []string

Types

type AuthenticationType

type AuthenticationType string
const (
	AuthenticationTypeActiveDirectoryIntegrated AuthenticationType = "ActiveDirectoryIntegrated"
	AuthenticationTypeActiveDirectoryPassword   AuthenticationType = "ActiveDirectoryPassword"
	AuthenticationTypeNone                      AuthenticationType = "None"
	AuthenticationTypeSqlAuthentication         AuthenticationType = "SqlAuthentication"
	AuthenticationTypeWindowsAuthentication     AuthenticationType = "WindowsAuthentication"
)

func (*AuthenticationType) UnmarshalJSON

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

type CommonsClient

type CommonsClient struct {
	Client *resourcemanager.Client
}

func NewCommonsClientWithBaseURI

func NewCommonsClientWithBaseURI(sdkApi sdkEnv.Api) (*CommonsClient, error)

type ConnectionInfo

type ConnectionInfo interface {
}

type MiSqlConnectionInfo

type MiSqlConnectionInfo struct {
	ManagedInstanceResourceId string `json:"managedInstanceResourceId"`

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

func (MiSqlConnectionInfo) MarshalJSON

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

type MongoDbConnectionInfo

type MongoDbConnectionInfo struct {
	ConnectionString string  `json:"connectionString"`
	Password         *string `json:"password,omitempty"`
	Type             string  `json:"type"`
	UserName         *string `json:"userName,omitempty"`
}

type MySqlConnectionInfo

type MySqlConnectionInfo struct {
	EncryptConnection *bool  `json:"encryptConnection,omitempty"`
	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 OracleConnectionInfo

type OracleConnectionInfo struct {
	DataSource string `json:"dataSource"`

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

func (OracleConnectionInfo) MarshalJSON

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

type PostgreSqlConnectionInfo

type PostgreSqlConnectionInfo struct {
	DatabaseName           *string `json:"databaseName,omitempty"`
	EncryptConnection      *bool   `json:"encryptConnection,omitempty"`
	Port                   int64   `json:"port"`
	ServerName             string  `json:"serverName"`
	TrustServerCertificate *bool   `json:"trustServerCertificate,omitempty"`

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

func (PostgreSqlConnectionInfo) MarshalJSON

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

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 SqlConnectionInfo

type SqlConnectionInfo struct {
	AdditionalSettings     *string             `json:"additionalSettings,omitempty"`
	Authentication         *AuthenticationType `json:"authentication,omitempty"`
	DataSource             string              `json:"dataSource"`
	EncryptConnection      *bool               `json:"encryptConnection,omitempty"`
	Platform               *SqlSourcePlatform  `json:"platform,omitempty"`
	TrustServerCertificate *bool               `json:"trustServerCertificate,omitempty"`

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

func (SqlConnectionInfo) MarshalJSON

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

type SqlSourcePlatform

type SqlSourcePlatform string
const (
	SqlSourcePlatformSqlOnPrem SqlSourcePlatform = "SqlOnPrem"
)

func (*SqlSourcePlatform) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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