sqlvirtualmachine

package
v63.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sqlvirtualmachine implements the Azure ARM Sqlvirtualmachine service API version 2021-11-01-preview.

The SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Sqlvirtualmachine
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AdditionalFeaturesServerConfigurations

type AdditionalFeaturesServerConfigurations struct {
	// IsRServicesEnabled - Enable or disable R services (SQL 2016 onwards).
	IsRServicesEnabled *bool `json:"isRServicesEnabled,omitempty"`
}

AdditionalFeaturesServerConfigurations additional SQL Server feature settings.

type AgConfiguration

type AgConfiguration struct {
	// Replicas - READ-ONLY; Replica configurations.
	Replicas *[]AgReplica `json:"replicas,omitempty"`
}

AgConfiguration availability group configuration.

func (AgConfiguration) MarshalJSON

func (ac AgConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AgConfiguration.

type AgReplica

type AgReplica struct {
	// SQLVirtualMachineInstanceID - Sql VirtualMachine Instance Id.
	SQLVirtualMachineInstanceID *string `json:"sqlVirtualMachineInstanceId,omitempty"`
	// Role - Replica Role in availability group. Possible values include: 'RolePRIMARY', 'RoleSECONDARY'
	Role Role `json:"role,omitempty"`
	// Commit - Replica commit mode in availability group. Possible values include: 'CommitSYNCHRONOUSCOMMIT', 'CommitASYNCHRONOUSCOMMIT'
	Commit Commit `json:"commit,omitempty"`
	// Failover - Replica failover mode in availability group. Possible values include: 'FailoverAUTOMATIC', 'FailoverMANUAL'
	Failover Failover `json:"failover,omitempty"`
	// ReadableSecondary - Replica readable secondary mode in availability group. Possible values include: 'ReadableSecondaryNO', 'ReadableSecondaryALL', 'ReadableSecondaryREADONLY'
	ReadableSecondary ReadableSecondary `json:"readableSecondary,omitempty"`
}

AgReplica availability group replica configuration.

type AssessmentSettings

type AssessmentSettings struct {
	// Enable - Enable or disable assessment feature on SQL virtual machine.
	Enable *bool `json:"enable,omitempty"`
	// RunImmediately - Run assessment immediately on SQL virtual machine.
	RunImmediately *bool `json:"runImmediately,omitempty"`
	// Schedule - Schedule for Assessment.
	Schedule *Schedule `json:"schedule,omitempty"`
}

AssessmentSettings configure assessment for databases in your SQL virtual machine.

type AutoBackupSettings

type AutoBackupSettings struct {
	// Enable - Enable or disable autobackup on SQL virtual machine.
	Enable *bool `json:"enable,omitempty"`
	// EnableEncryption - Enable or disable encryption for backup on SQL virtual machine.
	EnableEncryption *bool `json:"enableEncryption,omitempty"`
	// RetentionPeriod - Retention period of backup: 1-90 days.
	RetentionPeriod *int32 `json:"retentionPeriod,omitempty"`
	// StorageAccountURL - Storage account url where backup will be taken to.
	StorageAccountURL *string `json:"storageAccountUrl,omitempty"`
	// StorageContainerName - Storage container name where backup will be taken to.
	StorageContainerName *string `json:"storageContainerName,omitempty"`
	// StorageAccessKey - Storage account key where backup will be taken to.
	StorageAccessKey *string `json:"storageAccessKey,omitempty"`
	// Password - Password for encryption on backup.
	Password *string `json:"password,omitempty"`
	// BackupSystemDbs - Include or exclude system databases from auto backup.
	BackupSystemDbs *bool `json:"backupSystemDbs,omitempty"`
	// BackupScheduleType - Backup schedule type. Possible values include: 'BackupScheduleTypeManual', 'BackupScheduleTypeAutomated'
	BackupScheduleType BackupScheduleType `json:"backupScheduleType,omitempty"`
	// FullBackupFrequency - Frequency of full backups. In both cases, full backups begin during the next scheduled time window. Possible values include: 'FullBackupFrequencyTypeDaily', 'FullBackupFrequencyTypeWeekly'
	FullBackupFrequency FullBackupFrequencyType `json:"fullBackupFrequency,omitempty"`
	// DaysOfWeek - Days of the week for the backups when FullBackupFrequency is set to Weekly.
	DaysOfWeek *[]DaysOfWeek `json:"daysOfWeek,omitempty"`
	// FullBackupStartTime - Start time of a given day during which full backups can take place. 0-23 hours.
	FullBackupStartTime *int32 `json:"fullBackupStartTime,omitempty"`
	// FullBackupWindowHours - Duration of the time window of a given day during which full backups can take place. 1-23 hours.
	FullBackupWindowHours *int32 `json:"fullBackupWindowHours,omitempty"`
	// LogBackupFrequency - Frequency of log backups. 5-60 minutes.
	LogBackupFrequency *int32 `json:"logBackupFrequency,omitempty"`
}

AutoBackupSettings configure backups for databases in your SQL virtual machine.

type AutoPatchingSettings

type AutoPatchingSettings struct {
	// Enable - Enable or disable autopatching on SQL virtual machine.
	Enable *bool `json:"enable,omitempty"`
	// DayOfWeek - Day of week to apply the patch on. Possible values include: 'DayOfWeekMonday', 'DayOfWeekTuesday', 'DayOfWeekWednesday', 'DayOfWeekThursday', 'DayOfWeekFriday', 'DayOfWeekSaturday', 'DayOfWeekSunday'
	DayOfWeek DayOfWeek `json:"dayOfWeek,omitempty"`
	// MaintenanceWindowStartingHour - Hour of the day when patching is initiated. Local VM time.
	MaintenanceWindowStartingHour *int32 `json:"maintenanceWindowStartingHour,omitempty"`
	// MaintenanceWindowDuration - Duration of patching.
	MaintenanceWindowDuration *int32 `json:"maintenanceWindowDuration,omitempty"`
}

AutoPatchingSettings set a patching window during which Windows and SQL patches will be applied.

type AvailabilityGroupListener

type AvailabilityGroupListener struct {
	autorest.Response `json:"-"`
	// AvailabilityGroupListenerProperties - Resource properties.
	*AvailabilityGroupListenerProperties `json:"properties,omitempty"`
	// SystemData - READ-ONLY
	SystemData *SystemData `json:"systemData,omitempty"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

AvailabilityGroupListener a SQL Server availability group listener.

func (AvailabilityGroupListener) MarshalJSON

func (agl AvailabilityGroupListener) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AvailabilityGroupListener.

func (*AvailabilityGroupListener) UnmarshalJSON

func (agl *AvailabilityGroupListener) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AvailabilityGroupListener struct.

type AvailabilityGroupListenerListResult

type AvailabilityGroupListenerListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]AvailabilityGroupListener `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

AvailabilityGroupListenerListResult a list of availability group listeners.

func (AvailabilityGroupListenerListResult) IsEmpty

func (agllr AvailabilityGroupListenerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (AvailabilityGroupListenerListResult) MarshalJSON

func (agllr AvailabilityGroupListenerListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AvailabilityGroupListenerListResult.

type AvailabilityGroupListenerListResultIterator

type AvailabilityGroupListenerListResultIterator struct {
	// contains filtered or unexported fields
}

AvailabilityGroupListenerListResultIterator provides access to a complete listing of AvailabilityGroupListener values.

func NewAvailabilityGroupListenerListResultIterator

func NewAvailabilityGroupListenerListResultIterator(page AvailabilityGroupListenerListResultPage) AvailabilityGroupListenerListResultIterator

Creates a new instance of the AvailabilityGroupListenerListResultIterator type.

func (*AvailabilityGroupListenerListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AvailabilityGroupListenerListResultIterator) NextWithContext

func (iter *AvailabilityGroupListenerListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AvailabilityGroupListenerListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (AvailabilityGroupListenerListResultIterator) Response

Response returns the raw server response from the last page request.

func (AvailabilityGroupListenerListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AvailabilityGroupListenerListResultPage

type AvailabilityGroupListenerListResultPage struct {
	// contains filtered or unexported fields
}

AvailabilityGroupListenerListResultPage contains a page of AvailabilityGroupListener values.

func NewAvailabilityGroupListenerListResultPage

Creates a new instance of the AvailabilityGroupListenerListResultPage type.

func (*AvailabilityGroupListenerListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AvailabilityGroupListenerListResultPage) NextWithContext

func (page *AvailabilityGroupListenerListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AvailabilityGroupListenerListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AvailabilityGroupListenerListResultPage) Response

Response returns the raw server response from the last page request.

func (AvailabilityGroupListenerListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type AvailabilityGroupListenerProperties

type AvailabilityGroupListenerProperties struct {
	// ProvisioningState - READ-ONLY; Provisioning state to track the async operation status.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// AvailabilityGroupName - Name of the availability group.
	AvailabilityGroupName *string `json:"availabilityGroupName,omitempty"`
	// LoadBalancerConfigurations - List of load balancer configurations for an availability group listener.
	LoadBalancerConfigurations *[]LoadBalancerConfiguration `json:"loadBalancerConfigurations,omitempty"`
	// CreateDefaultAvailabilityGroupIfNotExist - Create a default availability group if it does not exist.
	CreateDefaultAvailabilityGroupIfNotExist *bool `json:"createDefaultAvailabilityGroupIfNotExist,omitempty"`
	// Port - Listener port.
	Port *int32 `json:"port,omitempty"`
	// AvailabilityGroupConfiguration - Availability Group configuration.
	AvailabilityGroupConfiguration *AgConfiguration `json:"availabilityGroupConfiguration,omitempty"`
}

AvailabilityGroupListenerProperties the properties of an availability group listener.

func (AvailabilityGroupListenerProperties) MarshalJSON

func (aglp AvailabilityGroupListenerProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AvailabilityGroupListenerProperties.

type AvailabilityGroupListenersClient

type AvailabilityGroupListenersClient struct {
	BaseClient
}

AvailabilityGroupListenersClient is the the SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener.

func NewAvailabilityGroupListenersClient

func NewAvailabilityGroupListenersClient(subscriptionID string) AvailabilityGroupListenersClient

NewAvailabilityGroupListenersClient creates an instance of the AvailabilityGroupListenersClient client.

func NewAvailabilityGroupListenersClientWithBaseURI

func NewAvailabilityGroupListenersClientWithBaseURI(baseURI string, subscriptionID string) AvailabilityGroupListenersClient

NewAvailabilityGroupListenersClientWithBaseURI creates an instance of the AvailabilityGroupListenersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AvailabilityGroupListenersClient) CreateOrUpdate

func (client AvailabilityGroupListenersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, availabilityGroupListenerName string, parameters AvailabilityGroupListener) (result AvailabilityGroupListenersCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an availability group listener. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group. availabilityGroupListenerName - name of the availability group listener. parameters - the availability group listener.

func (AvailabilityGroupListenersClient) CreateOrUpdatePreparer

func (client AvailabilityGroupListenersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, availabilityGroupListenerName string, parameters AvailabilityGroupListener) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AvailabilityGroupListenersClient) CreateOrUpdateResponder

func (client AvailabilityGroupListenersClient) CreateOrUpdateResponder(resp *http.Response) (result AvailabilityGroupListener, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AvailabilityGroupListenersClient) CreateOrUpdateSender

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (AvailabilityGroupListenersClient) Delete

func (client AvailabilityGroupListenersClient) Delete(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, availabilityGroupListenerName string) (result AvailabilityGroupListenersDeleteFuture, err error)

Delete deletes an availability group listener. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group. availabilityGroupListenerName - name of the availability group listener.

func (AvailabilityGroupListenersClient) DeletePreparer

func (client AvailabilityGroupListenersClient) DeletePreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, availabilityGroupListenerName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AvailabilityGroupListenersClient) DeleteResponder

func (client AvailabilityGroupListenersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AvailabilityGroupListenersClient) DeleteSender

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AvailabilityGroupListenersClient) Get

func (client AvailabilityGroupListenersClient) Get(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, availabilityGroupListenerName string, expand string) (result AvailabilityGroupListener, err error)

Get gets an availability group listener. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group. availabilityGroupListenerName - name of the availability group listener. expand - the child resources to include in the response.

func (AvailabilityGroupListenersClient) GetPreparer

func (client AvailabilityGroupListenersClient) GetPreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, availabilityGroupListenerName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AvailabilityGroupListenersClient) GetResponder

func (client AvailabilityGroupListenersClient) GetResponder(resp *http.Response) (result AvailabilityGroupListener, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AvailabilityGroupListenersClient) GetSender

func (client AvailabilityGroupListenersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AvailabilityGroupListenersClient) ListByGroup

func (client AvailabilityGroupListenersClient) ListByGroup(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (result AvailabilityGroupListenerListResultPage, err error)

ListByGroup lists all availability group listeners in a SQL virtual machine group. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group.

func (AvailabilityGroupListenersClient) ListByGroupComplete

func (client AvailabilityGroupListenersClient) ListByGroupComplete(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (result AvailabilityGroupListenerListResultIterator, err error)

ListByGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (AvailabilityGroupListenersClient) ListByGroupPreparer

func (client AvailabilityGroupListenersClient) ListByGroupPreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (*http.Request, error)

ListByGroupPreparer prepares the ListByGroup request.

func (AvailabilityGroupListenersClient) ListByGroupResponder

func (client AvailabilityGroupListenersClient) ListByGroupResponder(resp *http.Response) (result AvailabilityGroupListenerListResult, err error)

ListByGroupResponder handles the response to the ListByGroup request. The method always closes the http.Response Body.

func (AvailabilityGroupListenersClient) ListByGroupSender

func (client AvailabilityGroupListenersClient) ListByGroupSender(req *http.Request) (*http.Response, error)

ListByGroupSender sends the ListByGroup request. The method will close the http.Response Body if it receives an error.

type AvailabilityGroupListenersCreateOrUpdateFuture

type AvailabilityGroupListenersCreateOrUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AvailabilityGroupListenersClient) (AvailabilityGroupListener, error)
}

AvailabilityGroupListenersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AvailabilityGroupListenersCreateOrUpdateFuture) UnmarshalJSON

func (future *AvailabilityGroupListenersCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type AvailabilityGroupListenersDeleteFuture

type AvailabilityGroupListenersDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(AvailabilityGroupListenersClient) (autorest.Response, error)
}

AvailabilityGroupListenersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AvailabilityGroupListenersDeleteFuture) UnmarshalJSON

func (future *AvailabilityGroupListenersDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type BackupScheduleType

type BackupScheduleType string

BackupScheduleType enumerates the values for backup schedule type.

const (
	// BackupScheduleTypeAutomated ...
	BackupScheduleTypeAutomated BackupScheduleType = "Automated"
	// BackupScheduleTypeManual ...
	BackupScheduleTypeManual BackupScheduleType = "Manual"
)

func PossibleBackupScheduleTypeValues

func PossibleBackupScheduleTypeValues() []BackupScheduleType

PossibleBackupScheduleTypeValues returns an array of possible values for the BackupScheduleType const type.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Sqlvirtualmachine.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type ClusterConfiguration

type ClusterConfiguration string

ClusterConfiguration enumerates the values for cluster configuration.

const (
	// ClusterConfigurationDomainful ...
	ClusterConfigurationDomainful ClusterConfiguration = "Domainful"
)

func PossibleClusterConfigurationValues

func PossibleClusterConfigurationValues() []ClusterConfiguration

PossibleClusterConfigurationValues returns an array of possible values for the ClusterConfiguration const type.

type ClusterManagerType

type ClusterManagerType string

ClusterManagerType enumerates the values for cluster manager type.

const (
	// ClusterManagerTypeWSFC ...
	ClusterManagerTypeWSFC ClusterManagerType = "WSFC"
)

func PossibleClusterManagerTypeValues

func PossibleClusterManagerTypeValues() []ClusterManagerType

PossibleClusterManagerTypeValues returns an array of possible values for the ClusterManagerType const type.

type Commit

type Commit string

Commit enumerates the values for commit.

const (
	// CommitASYNCHRONOUSCOMMIT ...
	CommitASYNCHRONOUSCOMMIT Commit = "ASYNCHRONOUS_COMMIT"
	// CommitSYNCHRONOUSCOMMIT ...
	CommitSYNCHRONOUSCOMMIT Commit = "SYNCHRONOUS_COMMIT"
)

func PossibleCommitValues

func PossibleCommitValues() []Commit

PossibleCommitValues returns an array of possible values for the Commit const type.

type ConnectivityType

type ConnectivityType string

ConnectivityType enumerates the values for connectivity type.

const (
	// ConnectivityTypeLOCAL ...
	ConnectivityTypeLOCAL ConnectivityType = "LOCAL"
	// ConnectivityTypePRIVATE ...
	ConnectivityTypePRIVATE ConnectivityType = "PRIVATE"
	// ConnectivityTypePUBLIC ...
	ConnectivityTypePUBLIC ConnectivityType = "PUBLIC"
)

func PossibleConnectivityTypeValues

func PossibleConnectivityTypeValues() []ConnectivityType

PossibleConnectivityTypeValues returns an array of possible values for the ConnectivityType const type.

type CreatedByType

type CreatedByType string

CreatedByType enumerates the values for created by type.

const (
	// CreatedByTypeApplication ...
	CreatedByTypeApplication CreatedByType = "Application"
	// CreatedByTypeKey ...
	CreatedByTypeKey CreatedByType = "Key"
	// CreatedByTypeManagedIdentity ...
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	// CreatedByTypeUser ...
	CreatedByTypeUser CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.

type DayOfWeek

type DayOfWeek string

DayOfWeek enumerates the values for day of week.

const (
	// DayOfWeekFriday ...
	DayOfWeekFriday DayOfWeek = "Friday"
	// DayOfWeekMonday ...
	DayOfWeekMonday DayOfWeek = "Monday"
	// DayOfWeekSaturday ...
	DayOfWeekSaturday DayOfWeek = "Saturday"
	// DayOfWeekSunday ...
	DayOfWeekSunday DayOfWeek = "Sunday"
	// DayOfWeekThursday ...
	DayOfWeekThursday DayOfWeek = "Thursday"
	// DayOfWeekTuesday ...
	DayOfWeekTuesday DayOfWeek = "Tuesday"
	// DayOfWeekWednesday ...
	DayOfWeekWednesday DayOfWeek = "Wednesday"
)

func PossibleDayOfWeekValues

func PossibleDayOfWeekValues() []DayOfWeek

PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.

type DaysOfWeek

type DaysOfWeek string

DaysOfWeek enumerates the values for days of week.

const (
	// DaysOfWeekFriday ...
	DaysOfWeekFriday DaysOfWeek = "Friday"
	// DaysOfWeekMonday ...
	DaysOfWeekMonday DaysOfWeek = "Monday"
	// DaysOfWeekSaturday ...
	DaysOfWeekSaturday DaysOfWeek = "Saturday"
	// DaysOfWeekSunday ...
	DaysOfWeekSunday DaysOfWeek = "Sunday"
	// DaysOfWeekThursday ...
	DaysOfWeekThursday DaysOfWeek = "Thursday"
	// DaysOfWeekTuesday ...
	DaysOfWeekTuesday DaysOfWeek = "Tuesday"
	// DaysOfWeekWednesday ...
	DaysOfWeekWednesday DaysOfWeek = "Wednesday"
)

func PossibleDaysOfWeekValues

func PossibleDaysOfWeekValues() []DaysOfWeek

PossibleDaysOfWeekValues returns an array of possible values for the DaysOfWeek const type.

type DiskConfigurationType

type DiskConfigurationType string

DiskConfigurationType enumerates the values for disk configuration type.

const (
	// DiskConfigurationTypeADD ...
	DiskConfigurationTypeADD DiskConfigurationType = "ADD"
	// DiskConfigurationTypeEXTEND ...
	DiskConfigurationTypeEXTEND DiskConfigurationType = "EXTEND"
	// DiskConfigurationTypeNEW ...
	DiskConfigurationTypeNEW DiskConfigurationType = "NEW"
)

func PossibleDiskConfigurationTypeValues

func PossibleDiskConfigurationTypeValues() []DiskConfigurationType

PossibleDiskConfigurationTypeValues returns an array of possible values for the DiskConfigurationType const type.

type Failover

type Failover string

Failover enumerates the values for failover.

const (
	// FailoverAUTOMATIC ...
	FailoverAUTOMATIC Failover = "AUTOMATIC"
	// FailoverMANUAL ...
	FailoverMANUAL Failover = "MANUAL"
)

func PossibleFailoverValues

func PossibleFailoverValues() []Failover

PossibleFailoverValues returns an array of possible values for the Failover const type.

type FullBackupFrequencyType

type FullBackupFrequencyType string

FullBackupFrequencyType enumerates the values for full backup frequency type.

const (
	// FullBackupFrequencyTypeDaily ...
	FullBackupFrequencyTypeDaily FullBackupFrequencyType = "Daily"
	// FullBackupFrequencyTypeWeekly ...
	FullBackupFrequencyTypeWeekly FullBackupFrequencyType = "Weekly"
)

func PossibleFullBackupFrequencyTypeValues

func PossibleFullBackupFrequencyTypeValues() []FullBackupFrequencyType

PossibleFullBackupFrequencyTypeValues returns an array of possible values for the FullBackupFrequencyType const type.

type Group

type Group struct {
	autorest.Response `json:"-"`
	// GroupProperties - Resource properties.
	*GroupProperties `json:"properties,omitempty"`
	// SystemData - READ-ONLY
	SystemData *SystemData `json:"systemData,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Group a SQL virtual machine group.

func (Group) MarshalJSON

func (g Group) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Group.

func (*Group) UnmarshalJSON

func (g *Group) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Group struct.

type GroupListResult

type GroupListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]Group `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

GroupListResult a list of SQL virtual machine groups.

func (GroupListResult) IsEmpty

func (glr GroupListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (GroupListResult) MarshalJSON

func (glr GroupListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GroupListResult.

type GroupListResultIterator

type GroupListResultIterator struct {
	// contains filtered or unexported fields
}

GroupListResultIterator provides access to a complete listing of Group values.

func NewGroupListResultIterator

func NewGroupListResultIterator(page GroupListResultPage) GroupListResultIterator

Creates a new instance of the GroupListResultIterator type.

func (*GroupListResultIterator) Next

func (iter *GroupListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*GroupListResultIterator) NextWithContext

func (iter *GroupListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (GroupListResultIterator) NotDone

func (iter GroupListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (GroupListResultIterator) Response

func (iter GroupListResultIterator) Response() GroupListResult

Response returns the raw server response from the last page request.

func (GroupListResultIterator) Value

func (iter GroupListResultIterator) Value() Group

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type GroupListResultPage

type GroupListResultPage struct {
	// contains filtered or unexported fields
}

GroupListResultPage contains a page of Group values.

func NewGroupListResultPage

func NewGroupListResultPage(cur GroupListResult, getNextPage func(context.Context, GroupListResult) (GroupListResult, error)) GroupListResultPage

Creates a new instance of the GroupListResultPage type.

func (*GroupListResultPage) Next

func (page *GroupListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*GroupListResultPage) NextWithContext

func (page *GroupListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (GroupListResultPage) NotDone

func (page GroupListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (GroupListResultPage) Response

func (page GroupListResultPage) Response() GroupListResult

Response returns the raw server response from the last page request.

func (GroupListResultPage) Values

func (page GroupListResultPage) Values() []Group

Values returns the slice of values for the current page or nil if there are no values.

type GroupProperties

type GroupProperties struct {
	// ProvisioningState - READ-ONLY; Provisioning state to track the async operation status.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// SQLImageOffer - SQL image offer. Examples may include SQL2016-WS2016, SQL2017-WS2016.
	SQLImageOffer *string `json:"sqlImageOffer,omitempty"`
	// SQLImageSku - SQL image sku. Possible values include: 'SQLVMGroupImageSkuDeveloper', 'SQLVMGroupImageSkuEnterprise'
	SQLImageSku SQLVMGroupImageSku `json:"sqlImageSku,omitempty"`
	// ScaleType - READ-ONLY; Scale type. Possible values include: 'ScaleTypeHA'
	ScaleType ScaleType `json:"scaleType,omitempty"`
	// ClusterManagerType - READ-ONLY; Type of cluster manager: Windows Server Failover Cluster (WSFC), implied by the scale type of the group and the OS type. Possible values include: 'ClusterManagerTypeWSFC'
	ClusterManagerType ClusterManagerType `json:"clusterManagerType,omitempty"`
	// ClusterConfiguration - READ-ONLY; Cluster type. Possible values include: 'ClusterConfigurationDomainful'
	ClusterConfiguration ClusterConfiguration `json:"clusterConfiguration,omitempty"`
	// WsfcDomainProfile - Cluster Active Directory domain profile.
	WsfcDomainProfile *WsfcDomainProfile `json:"wsfcDomainProfile,omitempty"`
}

GroupProperties the properties of a SQL virtual machine group.

func (GroupProperties) MarshalJSON

func (gp GroupProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GroupProperties.

type GroupUpdate

type GroupUpdate struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

GroupUpdate an update to a SQL virtual machine group.

func (GroupUpdate) MarshalJSON

func (gu GroupUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GroupUpdate.

type GroupsClient

type GroupsClient struct {
	BaseClient
}

GroupsClient is the the SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener.

func NewGroupsClient

func NewGroupsClient(subscriptionID string) GroupsClient

NewGroupsClient creates an instance of the GroupsClient client.

func NewGroupsClientWithBaseURI

func NewGroupsClientWithBaseURI(baseURI string, subscriptionID string) GroupsClient

NewGroupsClientWithBaseURI creates an instance of the GroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (GroupsClient) CreateOrUpdate

func (client GroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, parameters Group) (result GroupsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates a SQL virtual machine group. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group. parameters - the SQL virtual machine group.

func (GroupsClient) CreateOrUpdatePreparer

func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, parameters Group) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (GroupsClient) CreateOrUpdateResponder

func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result Group, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (GroupsClient) CreateOrUpdateSender

func (client GroupsClient) CreateOrUpdateSender(req *http.Request) (future GroupsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) Delete

func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (result GroupsDeleteFuture, err error)

Delete deletes a SQL virtual machine group. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group.

func (GroupsClient) DeletePreparer

func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GroupsClient) DeleteResponder

func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GroupsClient) DeleteSender

func (client GroupsClient) DeleteSender(req *http.Request) (future GroupsDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) Get

func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (result Group, err error)

Get gets a SQL virtual machine group. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group.

func (GroupsClient) GetPreparer

func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (GroupsClient) GetResponder

func (client GroupsClient) GetResponder(resp *http.Response) (result Group, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (GroupsClient) GetSender

func (client GroupsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) List

func (client GroupsClient) List(ctx context.Context) (result GroupListResultPage, err error)

List gets all SQL virtual machine groups in a subscription.

func (GroupsClient) ListByResourceGroup

func (client GroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result GroupListResultPage, err error)

ListByResourceGroup gets all SQL virtual machine groups in a resource group. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (GroupsClient) ListByResourceGroupComplete

func (client GroupsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result GroupListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (GroupsClient) ListByResourceGroupPreparer

func (client GroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (GroupsClient) ListByResourceGroupResponder

func (client GroupsClient) ListByResourceGroupResponder(resp *http.Response) (result GroupListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (GroupsClient) ListByResourceGroupSender

func (client GroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) ListComplete

func (client GroupsClient) ListComplete(ctx context.Context) (result GroupListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (GroupsClient) ListPreparer

func (client GroupsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (GroupsClient) ListResponder

func (client GroupsClient) ListResponder(resp *http.Response) (result GroupListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (GroupsClient) ListSender

func (client GroupsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (GroupsClient) Update

func (client GroupsClient) Update(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, parameters GroupUpdate) (result GroupsUpdateFuture, err error)

Update updates SQL virtual machine group tags. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group. parameters - the SQL virtual machine group.

func (GroupsClient) UpdatePreparer

func (client GroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string, parameters GroupUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (GroupsClient) UpdateResponder

func (client GroupsClient) UpdateResponder(resp *http.Response) (result Group, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (GroupsClient) UpdateSender

func (client GroupsClient) UpdateSender(req *http.Request) (future GroupsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type GroupsCreateOrUpdateFuture

type GroupsCreateOrUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(GroupsClient) (Group, error)
}

GroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*GroupsCreateOrUpdateFuture) UnmarshalJSON

func (future *GroupsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type GroupsDeleteFuture

type GroupsDeleteFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(GroupsClient) (autorest.Response, error)
}

GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*GroupsDeleteFuture) UnmarshalJSON

func (future *GroupsDeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type GroupsUpdateFuture

type GroupsUpdateFuture struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(GroupsClient) (Group, error)
}

GroupsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*GroupsUpdateFuture) UnmarshalJSON

func (future *GroupsUpdateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type IdentityType

type IdentityType string

IdentityType enumerates the values for identity type.

const (
	// IdentityTypeNone ...
	IdentityTypeNone IdentityType = "None"
	// IdentityTypeSystemAssigned ...
	IdentityTypeSystemAssigned IdentityType = "SystemAssigned"
)

func PossibleIdentityTypeValues

func PossibleIdentityTypeValues() []IdentityType

PossibleIdentityTypeValues returns an array of possible values for the IdentityType const type.

type KeyVaultCredentialSettings

type KeyVaultCredentialSettings struct {
	// Enable - Enable or disable key vault credential setting.
	Enable *bool `json:"enable,omitempty"`
	// CredentialName - Credential name.
	CredentialName *string `json:"credentialName,omitempty"`
	// AzureKeyVaultURL - Azure Key Vault url.
	AzureKeyVaultURL *string `json:"azureKeyVaultUrl,omitempty"`
	// ServicePrincipalName - Service principal name to access key vault.
	ServicePrincipalName *string `json:"servicePrincipalName,omitempty"`
	// ServicePrincipalSecret - Service principal name secret to access key vault.
	ServicePrincipalSecret *string `json:"servicePrincipalSecret,omitempty"`
}

KeyVaultCredentialSettings configure your SQL virtual machine to be able to connect to the Azure Key Vault service.

type ListResult

type ListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]SQLVirtualMachine `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ListResult a list of SQL virtual machines.

func (ListResult) IsEmpty

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ListResult) MarshalJSON

func (lr ListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ListResult.

type ListResultIterator

type ListResultIterator struct {
	// contains filtered or unexported fields
}

ListResultIterator provides access to a complete listing of SQLVirtualMachine values.

func NewListResultIterator

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next

func (iter *ListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultIterator) NextWithContext

func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ListResultIterator) NotDone

func (iter ListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ListResultIterator) Response

func (iter ListResultIterator) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ListResultPage

type ListResultPage struct {
	// contains filtered or unexported fields
}

ListResultPage contains a page of SQLVirtualMachine values.

func NewListResultPage

func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next

func (page *ListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultPage) NextWithContext

func (page *ListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ListResultPage) NotDone

func (page ListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ListResultPage) Response

func (page ListResultPage) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultPage) Values

func (page ListResultPage) Values() []SQLVirtualMachine

Values returns the slice of values for the current page or nil if there are no values.

type LoadBalancerConfiguration

type LoadBalancerConfiguration struct {
	// PrivateIPAddress - Private IP address.
	PrivateIPAddress *PrivateIPAddress `json:"privateIpAddress,omitempty"`
	// PublicIPAddressResourceID - Resource id of the public IP.
	PublicIPAddressResourceID *string `json:"publicIpAddressResourceId,omitempty"`
	// LoadBalancerResourceID - Resource id of the load balancer.
	LoadBalancerResourceID *string `json:"loadBalancerResourceId,omitempty"`
	// ProbePort - Probe port.
	ProbePort *int32 `json:"probePort,omitempty"`
	// SQLVirtualMachineInstances - List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.
	SQLVirtualMachineInstances *[]string `json:"sqlVirtualMachineInstances,omitempty"`
}

LoadBalancerConfiguration a load balancer configuration for an availability group listener.

type Operation

type Operation struct {
	// Name - READ-ONLY; The name of the operation being performed on this particular object.
	Name *string `json:"name,omitempty"`
	// Display - READ-ONLY; The localized display information for this particular operation / action.
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - READ-ONLY; The intended executor of the operation. Possible values include: 'OperationOriginUser', 'OperationOriginSystem'
	Origin OperationOrigin `json:"origin,omitempty"`
	// Properties - READ-ONLY; Additional descriptions for the operation.
	Properties map[string]interface{} `json:"properties"`
}

Operation SQL REST API operation definition.

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; The localized friendly form of the resource provider name.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The localized friendly form of the resource type related to this action/operation.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; The localized friendly name for the operation.
	Operation *string `json:"operation,omitempty"`
	// Description - READ-ONLY; The localized friendly description for the operation.
	Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

func (OperationDisplay) MarshalJSON

func (od OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationDisplay.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; Array of results.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to retrieve next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list SQL operations.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (OperationListResult) MarshalJSON

func (olr OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationListResult.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationOrigin

type OperationOrigin string

OperationOrigin enumerates the values for operation origin.

const (
	// OperationOriginSystem ...
	OperationOriginSystem OperationOrigin = "system"
	// OperationOriginUser ...
	OperationOriginUser OperationOrigin = "user"
)

func PossibleOperationOriginValues

func PossibleOperationOriginValues() []OperationOrigin

PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the the SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available SQL Virtual Machine Rest API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PrivateIPAddress

type PrivateIPAddress struct {
	// IPAddress - Private IP address bound to the availability group listener.
	IPAddress *string `json:"ipAddress,omitempty"`
	// SubnetResourceID - Subnet used to include private IP.
	SubnetResourceID *string `json:"subnetResourceId,omitempty"`
}

PrivateIPAddress a private IP address bound to the availability group listener.

type Properties

type Properties struct {
	// VirtualMachineResourceID - ARM Resource id of underlying virtual machine created from SQL marketplace image.
	VirtualMachineResourceID *string `json:"virtualMachineResourceId,omitempty"`
	// ProvisioningState - READ-ONLY; Provisioning state to track the async operation status.
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// SQLImageOffer - SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.
	SQLImageOffer *string `json:"sqlImageOffer,omitempty"`
	// SQLServerLicenseType - SQL Server license type. Possible values include: 'SQLServerLicenseTypePAYG', 'SQLServerLicenseTypeAHUB', 'SQLServerLicenseTypeDR'
	SQLServerLicenseType SQLServerLicenseType `json:"sqlServerLicenseType,omitempty"`
	// SQLManagement - SQL Server Management type. Possible values include: 'SQLManagementModeFull', 'SQLManagementModeLightWeight', 'SQLManagementModeNoAgent'
	SQLManagement SQLManagementMode `json:"sqlManagement,omitempty"`
	// SQLImageSku - SQL Server edition type. Possible values include: 'SQLImageSkuDeveloper', 'SQLImageSkuExpress', 'SQLImageSkuStandard', 'SQLImageSkuEnterprise', 'SQLImageSkuWeb'
	SQLImageSku SQLImageSku `json:"sqlImageSku,omitempty"`
	// SQLVirtualMachineGroupResourceID - ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.
	SQLVirtualMachineGroupResourceID *string `json:"sqlVirtualMachineGroupResourceId,omitempty"`
	// WsfcDomainCredentials - Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
	WsfcDomainCredentials *WsfcDomainCredentials `json:"wsfcDomainCredentials,omitempty"`
	// AutoPatchingSettings - Auto patching settings for applying critical security updates to SQL virtual machine.
	AutoPatchingSettings *AutoPatchingSettings `json:"autoPatchingSettings,omitempty"`
	// AutoBackupSettings - Auto backup settings for SQL Server.
	AutoBackupSettings *AutoBackupSettings `json:"autoBackupSettings,omitempty"`
	// KeyVaultCredentialSettings - Key vault credential settings.
	KeyVaultCredentialSettings *KeyVaultCredentialSettings `json:"keyVaultCredentialSettings,omitempty"`
	// ServerConfigurationsManagementSettings - SQL Server configuration management settings.
	ServerConfigurationsManagementSettings *ServerConfigurationsManagementSettings `json:"serverConfigurationsManagementSettings,omitempty"`
	// StorageConfigurationSettings - Storage Configuration Settings.
	StorageConfigurationSettings *StorageConfigurationSettings `json:"storageConfigurationSettings,omitempty"`
	// AssessmentSettings - Assessment Settings.
	AssessmentSettings *AssessmentSettings `json:"assessmentSettings,omitempty"`
}

Properties the SQL virtual machine properties.

func (Properties) MarshalJSON

func (p Properties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Properties.

type ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ProxyResource ARM proxy resource.

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type ReadableSecondary

type ReadableSecondary string

ReadableSecondary enumerates the values for readable secondary.

const (
	// ReadableSecondaryALL ...
	ReadableSecondaryALL ReadableSecondary = "ALL"
	// ReadableSecondaryNO ...
	ReadableSecondaryNO ReadableSecondary = "NO"
	// ReadableSecondaryREADONLY ...
	ReadableSecondaryREADONLY ReadableSecondary = "READ_ONLY"
)

func PossibleReadableSecondaryValues

func PossibleReadableSecondaryValues() []ReadableSecondary

PossibleReadableSecondaryValues returns an array of possible values for the ReadableSecondary const type.

type Resource

type Resource struct {
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Resource ARM resource.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceIdentity

type ResourceIdentity struct {
	// PrincipalID - READ-ONLY; The Azure Active Directory principal id.
	PrincipalID *uuid.UUID `json:"principalId,omitempty"`
	// Type - The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource. Possible values include: 'IdentityTypeNone', 'IdentityTypeSystemAssigned'
	Type IdentityType `json:"type,omitempty"`
	// TenantID - READ-ONLY; The Azure Active Directory tenant id.
	TenantID *uuid.UUID `json:"tenantId,omitempty"`
}

ResourceIdentity azure Active Directory identity configuration for a resource.

func (ResourceIdentity) MarshalJSON

func (ri ResourceIdentity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceIdentity.

type Role

type Role string

Role enumerates the values for role.

const (
	// RolePRIMARY ...
	RolePRIMARY Role = "PRIMARY"
	// RoleSECONDARY ...
	RoleSECONDARY Role = "SECONDARY"
)

func PossibleRoleValues

func PossibleRoleValues() []Role

PossibleRoleValues returns an array of possible values for the Role const type.

type SQLConnectivityUpdateSettings

type SQLConnectivityUpdateSettings struct {
	// ConnectivityType - SQL Server connectivity option. Possible values include: 'ConnectivityTypeLOCAL', 'ConnectivityTypePRIVATE', 'ConnectivityTypePUBLIC'
	ConnectivityType ConnectivityType `json:"connectivityType,omitempty"`
	// Port - SQL Server port.
	Port *int32 `json:"port,omitempty"`
	// SQLAuthUpdateUserName - SQL Server sysadmin login to create.
	SQLAuthUpdateUserName *string `json:"sqlAuthUpdateUserName,omitempty"`
	// SQLAuthUpdatePassword - SQL Server sysadmin login password.
	SQLAuthUpdatePassword *string `json:"sqlAuthUpdatePassword,omitempty"`
}

SQLConnectivityUpdateSettings set the access level and network port settings for SQL Server.

type SQLImageSku

type SQLImageSku string

SQLImageSku enumerates the values for sql image sku.

const (
	// SQLImageSkuDeveloper ...
	SQLImageSkuDeveloper SQLImageSku = "Developer"
	// SQLImageSkuEnterprise ...
	SQLImageSkuEnterprise SQLImageSku = "Enterprise"
	// SQLImageSkuExpress ...
	SQLImageSkuExpress SQLImageSku = "Express"
	// SQLImageSkuStandard ...
	SQLImageSkuStandard SQLImageSku = "Standard"
	// SQLImageSkuWeb ...
	SQLImageSkuWeb SQLImageSku = "Web"
)

func PossibleSQLImageSkuValues

func PossibleSQLImageSkuValues() []SQLImageSku

PossibleSQLImageSkuValues returns an array of possible values for the SQLImageSku const type.

type SQLInstanceSettings

type SQLInstanceSettings struct {
	// Collation - SQL Server Collation.
	Collation *string `json:"collation,omitempty"`
	// MaxDop - SQL Server MAXDOP.
	MaxDop *int32 `json:"maxDop,omitempty"`
	// IsOptimizeForAdHocWorkloadsEnabled - SQL Server Optimize for Adhoc workloads.
	IsOptimizeForAdHocWorkloadsEnabled *bool `json:"isOptimizeForAdHocWorkloadsEnabled,omitempty"`
	// MinServerMemoryMB - SQL Server minimum memory.
	MinServerMemoryMB *int32 `json:"minServerMemoryMB,omitempty"`
	// MaxServerMemoryMB - SQL Server maximum memory.
	MaxServerMemoryMB *int32 `json:"maxServerMemoryMB,omitempty"`
}

SQLInstanceSettings set the server/instance-level settings for SQL Server.

type SQLManagementMode

type SQLManagementMode string

SQLManagementMode enumerates the values for sql management mode.

const (
	// SQLManagementModeFull ...
	SQLManagementModeFull SQLManagementMode = "Full"
	// SQLManagementModeLightWeight ...
	SQLManagementModeLightWeight SQLManagementMode = "LightWeight"
	// SQLManagementModeNoAgent ...
	SQLManagementModeNoAgent SQLManagementMode = "NoAgent"
)

func PossibleSQLManagementModeValues

func PossibleSQLManagementModeValues() []SQLManagementMode

PossibleSQLManagementModeValues returns an array of possible values for the SQLManagementMode const type.

type SQLServerLicenseType

type SQLServerLicenseType string

SQLServerLicenseType enumerates the values for sql server license type.

const (
	// SQLServerLicenseTypeAHUB ...
	SQLServerLicenseTypeAHUB SQLServerLicenseType = "AHUB"
	// SQLServerLicenseTypeDR ...
	SQLServerLicenseTypeDR SQLServerLicenseType = "DR"
	// SQLServerLicenseTypePAYG ...
	SQLServerLicenseTypePAYG SQLServerLicenseType = "PAYG"
)

func PossibleSQLServerLicenseTypeValues

func PossibleSQLServerLicenseTypeValues() []SQLServerLicenseType

PossibleSQLServerLicenseTypeValues returns an array of possible values for the SQLServerLicenseType const type.

type SQLStorageSettings

type SQLStorageSettings struct {
	// Luns - Logical Unit Numbers for the disks.
	Luns *[]int32 `json:"luns,omitempty"`
	// DefaultFilePath - SQL Server default file path
	DefaultFilePath *string `json:"defaultFilePath,omitempty"`
}

SQLStorageSettings set disk storage settings for SQL Server.

type SQLStorageUpdateSettings

type SQLStorageUpdateSettings struct {
	// DiskCount - Virtual machine disk count.
	DiskCount *int32 `json:"diskCount,omitempty"`
	// StartingDeviceID - Device id of the first disk to be updated.
	StartingDeviceID *int32 `json:"startingDeviceId,omitempty"`
	// DiskConfigurationType - Disk configuration to apply to SQL Server. Possible values include: 'DiskConfigurationTypeNEW', 'DiskConfigurationTypeEXTEND', 'DiskConfigurationTypeADD'
	DiskConfigurationType DiskConfigurationType `json:"diskConfigurationType,omitempty"`
}

SQLStorageUpdateSettings set disk storage settings for SQL Server.

type SQLTempDbSettings

type SQLTempDbSettings struct {
	// DataFileSize - SQL Server default file size
	DataFileSize *int32 `json:"dataFileSize,omitempty"`
	// DataGrowth - SQL Server default file autoGrowth size
	DataGrowth *int32 `json:"dataGrowth,omitempty"`
	// LogFileSize - SQL Server default file size
	LogFileSize *int32 `json:"logFileSize,omitempty"`
	// LogGrowth - SQL Server default file autoGrowth size
	LogGrowth *int32 `json:"logGrowth,omitempty"`
	// DataFileCount - SQL Server default file count
	DataFileCount *int32 `json:"dataFileCount,omitempty"`
	// Luns - Logical Unit Numbers for the disks.
	Luns *[]int32 `json:"luns,omitempty"`
	// DefaultFilePath - SQL Server default file path
	DefaultFilePath *string `json:"defaultFilePath,omitempty"`
}

SQLTempDbSettings ...

type SQLVMGroupImageSku

type SQLVMGroupImageSku string

SQLVMGroupImageSku enumerates the values for sqlvm group image sku.

const (
	// SQLVMGroupImageSkuDeveloper ...
	SQLVMGroupImageSkuDeveloper SQLVMGroupImageSku = "Developer"
	// SQLVMGroupImageSkuEnterprise ...
	SQLVMGroupImageSkuEnterprise SQLVMGroupImageSku = "Enterprise"
)

func PossibleSQLVMGroupImageSkuValues

func PossibleSQLVMGroupImageSkuValues() []SQLVMGroupImageSku

PossibleSQLVMGroupImageSkuValues returns an array of possible values for the SQLVMGroupImageSku const type.

type SQLVirtualMachine

type SQLVirtualMachine struct {
	autorest.Response `json:"-"`
	// Identity - Azure Active Directory identity of the server.
	Identity *ResourceIdentity `json:"identity,omitempty"`
	// Properties - Resource properties.
	*Properties `json:"properties,omitempty"`
	// SystemData - READ-ONLY
	SystemData *SystemData `json:"systemData,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

SQLVirtualMachine a SQL virtual machine.

func (SQLVirtualMachine) MarshalJSON

func (svm SQLVirtualMachine) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SQLVirtualMachine.

func (*SQLVirtualMachine) UnmarshalJSON

func (svm *SQLVirtualMachine) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SQLVirtualMachine struct.

type SQLVirtualMachinesClient

type SQLVirtualMachinesClient struct {
	BaseClient
}

SQLVirtualMachinesClient is the the SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener.

func NewSQLVirtualMachinesClient

func NewSQLVirtualMachinesClient(subscriptionID string) SQLVirtualMachinesClient

NewSQLVirtualMachinesClient creates an instance of the SQLVirtualMachinesClient client.

func NewSQLVirtualMachinesClientWithBaseURI

func NewSQLVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string) SQLVirtualMachinesClient

NewSQLVirtualMachinesClientWithBaseURI creates an instance of the SQLVirtualMachinesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SQLVirtualMachinesClient) CreateOrUpdate

func (client SQLVirtualMachinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string, parameters SQLVirtualMachine) (result SQLVirtualMachinesCreateOrUpdateFutureType, err error)

CreateOrUpdate creates or updates a SQL virtual machine. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineName - name of the SQL virtual machine. parameters - the SQL virtual machine.

func (SQLVirtualMachinesClient) CreateOrUpdatePreparer

func (client SQLVirtualMachinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string, parameters SQLVirtualMachine) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (SQLVirtualMachinesClient) CreateOrUpdateResponder

func (client SQLVirtualMachinesClient) CreateOrUpdateResponder(resp *http.Response) (result SQLVirtualMachine, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) CreateOrUpdateSender

func (client SQLVirtualMachinesClient) CreateOrUpdateSender(req *http.Request) (future SQLVirtualMachinesCreateOrUpdateFutureType, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (SQLVirtualMachinesClient) Delete

func (client SQLVirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string) (result SQLVirtualMachinesDeleteFutureType, err error)

Delete deletes a SQL virtual machine. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineName - name of the SQL virtual machine.

func (SQLVirtualMachinesClient) DeletePreparer

func (client SQLVirtualMachinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SQLVirtualMachinesClient) DeleteResponder

func (client SQLVirtualMachinesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) DeleteSender

func (client SQLVirtualMachinesClient) DeleteSender(req *http.Request) (future SQLVirtualMachinesDeleteFutureType, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SQLVirtualMachinesClient) Get

func (client SQLVirtualMachinesClient) Get(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string, expand string) (result SQLVirtualMachine, err error)

Get gets a SQL virtual machine. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineName - name of the SQL virtual machine. expand - the child resources to include in the response.

func (SQLVirtualMachinesClient) GetPreparer

func (client SQLVirtualMachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SQLVirtualMachinesClient) GetResponder

func (client SQLVirtualMachinesClient) GetResponder(resp *http.Response) (result SQLVirtualMachine, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) GetSender

func (client SQLVirtualMachinesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SQLVirtualMachinesClient) List

func (client SQLVirtualMachinesClient) List(ctx context.Context) (result ListResultPage, err error)

List gets all SQL virtual machines in a subscription.

func (SQLVirtualMachinesClient) ListByResourceGroup

func (client SQLVirtualMachinesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error)

ListByResourceGroup gets all SQL virtual machines in a resource group. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

func (SQLVirtualMachinesClient) ListByResourceGroupComplete

func (client SQLVirtualMachinesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (SQLVirtualMachinesClient) ListByResourceGroupPreparer

func (client SQLVirtualMachinesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (SQLVirtualMachinesClient) ListByResourceGroupResponder

func (client SQLVirtualMachinesClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) ListByResourceGroupSender

func (client SQLVirtualMachinesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (SQLVirtualMachinesClient) ListBySQLVMGroup

func (client SQLVirtualMachinesClient) ListBySQLVMGroup(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (result ListResultPage, err error)

ListBySQLVMGroup gets the list of sql virtual machines in a SQL virtual machine group. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineGroupName - name of the SQL virtual machine group.

func (SQLVirtualMachinesClient) ListBySQLVMGroupComplete

func (client SQLVirtualMachinesClient) ListBySQLVMGroupComplete(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (result ListResultIterator, err error)

ListBySQLVMGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (SQLVirtualMachinesClient) ListBySQLVMGroupPreparer

func (client SQLVirtualMachinesClient) ListBySQLVMGroupPreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineGroupName string) (*http.Request, error)

ListBySQLVMGroupPreparer prepares the ListBySQLVMGroup request.

func (SQLVirtualMachinesClient) ListBySQLVMGroupResponder

func (client SQLVirtualMachinesClient) ListBySQLVMGroupResponder(resp *http.Response) (result ListResult, err error)

ListBySQLVMGroupResponder handles the response to the ListBySQLVMGroup request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) ListBySQLVMGroupSender

func (client SQLVirtualMachinesClient) ListBySQLVMGroupSender(req *http.Request) (*http.Response, error)

ListBySQLVMGroupSender sends the ListBySQLVMGroup request. The method will close the http.Response Body if it receives an error.

func (SQLVirtualMachinesClient) ListComplete

func (client SQLVirtualMachinesClient) ListComplete(ctx context.Context) (result ListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (SQLVirtualMachinesClient) ListPreparer

func (client SQLVirtualMachinesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (SQLVirtualMachinesClient) ListResponder

func (client SQLVirtualMachinesClient) ListResponder(resp *http.Response) (result ListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) ListSender

func (client SQLVirtualMachinesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (SQLVirtualMachinesClient) Redeploy

func (client SQLVirtualMachinesClient) Redeploy(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string) (result SQLVirtualMachinesRedeployFutureType, err error)

Redeploy uninstalls and reinstalls the SQL Iaas Extension. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineName - name of the SQL virtual machine.

func (SQLVirtualMachinesClient) RedeployPreparer

func (client SQLVirtualMachinesClient) RedeployPreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string) (*http.Request, error)

RedeployPreparer prepares the Redeploy request.

func (SQLVirtualMachinesClient) RedeployResponder

func (client SQLVirtualMachinesClient) RedeployResponder(resp *http.Response) (result autorest.Response, err error)

RedeployResponder handles the response to the Redeploy request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) RedeploySender

func (client SQLVirtualMachinesClient) RedeploySender(req *http.Request) (future SQLVirtualMachinesRedeployFutureType, err error)

RedeploySender sends the Redeploy request. The method will close the http.Response Body if it receives an error.

func (SQLVirtualMachinesClient) StartAssessment

func (client SQLVirtualMachinesClient) StartAssessment(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string) (result SQLVirtualMachinesStartAssessmentFutureType, err error)

StartAssessment starts Assessment on SQL virtual machine. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineName - name of the SQL virtual machine.

func (SQLVirtualMachinesClient) StartAssessmentPreparer

func (client SQLVirtualMachinesClient) StartAssessmentPreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string) (*http.Request, error)

StartAssessmentPreparer prepares the StartAssessment request.

func (SQLVirtualMachinesClient) StartAssessmentResponder

func (client SQLVirtualMachinesClient) StartAssessmentResponder(resp *http.Response) (result autorest.Response, err error)

StartAssessmentResponder handles the response to the StartAssessment request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) StartAssessmentSender

func (client SQLVirtualMachinesClient) StartAssessmentSender(req *http.Request) (future SQLVirtualMachinesStartAssessmentFutureType, err error)

StartAssessmentSender sends the StartAssessment request. The method will close the http.Response Body if it receives an error.

func (SQLVirtualMachinesClient) Update

func (client SQLVirtualMachinesClient) Update(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string, parameters Update) (result SQLVirtualMachinesUpdateFutureType, err error)

Update updates a SQL virtual machine. Parameters: resourceGroupName - name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. SQLVirtualMachineName - name of the SQL virtual machine. parameters - the SQL virtual machine.

func (SQLVirtualMachinesClient) UpdatePreparer

func (client SQLVirtualMachinesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, SQLVirtualMachineName string, parameters Update) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SQLVirtualMachinesClient) UpdateResponder

func (client SQLVirtualMachinesClient) UpdateResponder(resp *http.Response) (result SQLVirtualMachine, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (SQLVirtualMachinesClient) UpdateSender

func (client SQLVirtualMachinesClient) UpdateSender(req *http.Request) (future SQLVirtualMachinesUpdateFutureType, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type SQLVirtualMachinesCreateOrUpdateFutureType

type SQLVirtualMachinesCreateOrUpdateFutureType struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(SQLVirtualMachinesClient) (SQLVirtualMachine, error)
}

SQLVirtualMachinesCreateOrUpdateFutureType an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SQLVirtualMachinesCreateOrUpdateFutureType) UnmarshalJSON

func (future *SQLVirtualMachinesCreateOrUpdateFutureType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SQLVirtualMachinesDeleteFutureType

type SQLVirtualMachinesDeleteFutureType struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(SQLVirtualMachinesClient) (autorest.Response, error)
}

SQLVirtualMachinesDeleteFutureType an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SQLVirtualMachinesDeleteFutureType) UnmarshalJSON

func (future *SQLVirtualMachinesDeleteFutureType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SQLVirtualMachinesRedeployFutureType

type SQLVirtualMachinesRedeployFutureType struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(SQLVirtualMachinesClient) (autorest.Response, error)
}

SQLVirtualMachinesRedeployFutureType an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SQLVirtualMachinesRedeployFutureType) UnmarshalJSON

func (future *SQLVirtualMachinesRedeployFutureType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SQLVirtualMachinesStartAssessmentFutureType

type SQLVirtualMachinesStartAssessmentFutureType struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(SQLVirtualMachinesClient) (autorest.Response, error)
}

SQLVirtualMachinesStartAssessmentFutureType an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SQLVirtualMachinesStartAssessmentFutureType) UnmarshalJSON

func (future *SQLVirtualMachinesStartAssessmentFutureType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SQLVirtualMachinesUpdateFutureType

type SQLVirtualMachinesUpdateFutureType struct {
	azure.FutureAPI
	// Result returns the result of the asynchronous operation.
	// If the operation has not completed it will return an error.
	Result func(SQLVirtualMachinesClient) (SQLVirtualMachine, error)
}

SQLVirtualMachinesUpdateFutureType an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SQLVirtualMachinesUpdateFutureType) UnmarshalJSON

func (future *SQLVirtualMachinesUpdateFutureType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type SQLWorkloadType

type SQLWorkloadType string

SQLWorkloadType enumerates the values for sql workload type.

const (
	// SQLWorkloadTypeDW ...
	SQLWorkloadTypeDW SQLWorkloadType = "DW"
	// SQLWorkloadTypeGENERAL ...
	SQLWorkloadTypeGENERAL SQLWorkloadType = "GENERAL"
	// SQLWorkloadTypeOLTP ...
	SQLWorkloadTypeOLTP SQLWorkloadType = "OLTP"
)

func PossibleSQLWorkloadTypeValues

func PossibleSQLWorkloadTypeValues() []SQLWorkloadType

PossibleSQLWorkloadTypeValues returns an array of possible values for the SQLWorkloadType const type.

type SQLWorkloadTypeUpdateSettings

type SQLWorkloadTypeUpdateSettings struct {
	// SQLWorkloadType - SQL Server workload type. Possible values include: 'SQLWorkloadTypeGENERAL', 'SQLWorkloadTypeOLTP', 'SQLWorkloadTypeDW'
	SQLWorkloadType SQLWorkloadType `json:"sqlWorkloadType,omitempty"`
}

SQLWorkloadTypeUpdateSettings set workload type to optimize storage for SQL Server.

type ScaleType

type ScaleType string

ScaleType enumerates the values for scale type.

const (
	// ScaleTypeHA ...
	ScaleTypeHA ScaleType = "HA"
)

func PossibleScaleTypeValues

func PossibleScaleTypeValues() []ScaleType

PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.

type Schedule

type Schedule struct {
	// Enable - Enable or disable assessment schedule on SQL virtual machine.
	Enable *bool `json:"enable,omitempty"`
	// WeeklyInterval - Number of weeks to schedule between 2 assessment runs. Takes value from 1-6
	WeeklyInterval *int32 `json:"weeklyInterval,omitempty"`
	// MonthlyOccurrence - Occurrence of the DayOfWeek day within a month to schedule assessment. Takes values: 1,2,3,4 and -1. Use -1 for last DayOfWeek day of the month
	MonthlyOccurrence *int32 `json:"monthlyOccurrence,omitempty"`
	// DayOfWeek - Day of the week to run assessment. Possible values include: 'DayOfWeekMonday', 'DayOfWeekTuesday', 'DayOfWeekWednesday', 'DayOfWeekThursday', 'DayOfWeekFriday', 'DayOfWeekSaturday', 'DayOfWeekSunday'
	DayOfWeek DayOfWeek `json:"dayOfWeek,omitempty"`
	// StartTime - Time of the day in HH:mm format. Eg. 17:30
	StartTime *string `json:"startTime,omitempty"`
}

Schedule ...

type ServerConfigurationsManagementSettings

type ServerConfigurationsManagementSettings struct {
	// SQLConnectivityUpdateSettings - SQL connectivity type settings.
	SQLConnectivityUpdateSettings *SQLConnectivityUpdateSettings `json:"sqlConnectivityUpdateSettings,omitempty"`
	// SQLWorkloadTypeUpdateSettings - SQL workload type settings.
	SQLWorkloadTypeUpdateSettings *SQLWorkloadTypeUpdateSettings `json:"sqlWorkloadTypeUpdateSettings,omitempty"`
	// SQLStorageUpdateSettings - SQL storage update settings.
	SQLStorageUpdateSettings *SQLStorageUpdateSettings `json:"sqlStorageUpdateSettings,omitempty"`
	// AdditionalFeaturesServerConfigurations - Additional SQL feature settings.
	AdditionalFeaturesServerConfigurations *AdditionalFeaturesServerConfigurations `json:"additionalFeaturesServerConfigurations,omitempty"`
	// SQLInstanceSettings - SQL Instance settings.
	SQLInstanceSettings *SQLInstanceSettings `json:"sqlInstanceSettings,omitempty"`
}

ServerConfigurationsManagementSettings set the connectivity, storage and workload settings.

type StorageConfigurationSettings

type StorageConfigurationSettings struct {
	// SQLDataSettings - SQL Server Data Storage Settings.
	SQLDataSettings *SQLStorageSettings `json:"sqlDataSettings,omitempty"`
	// SQLLogSettings - SQL Server Log Storage Settings.
	SQLLogSettings *SQLStorageSettings `json:"sqlLogSettings,omitempty"`
	// SQLTempDbSettings - SQL Server TempDb Storage Settings.
	SQLTempDbSettings *SQLTempDbSettings `json:"sqlTempDbSettings,omitempty"`
	// SQLSystemDbOnDataDisk - SQL Server SystemDb Storage on DataPool if true.
	SQLSystemDbOnDataDisk *bool `json:"sqlSystemDbOnDataDisk,omitempty"`
	// DiskConfigurationType - Disk configuration to apply to SQL Server. Possible values include: 'DiskConfigurationTypeNEW', 'DiskConfigurationTypeEXTEND', 'DiskConfigurationTypeADD'
	DiskConfigurationType DiskConfigurationType `json:"diskConfigurationType,omitempty"`
	// StorageWorkloadType - Storage workload type. Possible values include: 'StorageWorkloadTypeGENERAL', 'StorageWorkloadTypeOLTP', 'StorageWorkloadTypeDW'
	StorageWorkloadType StorageWorkloadType `json:"storageWorkloadType,omitempty"`
}

StorageConfigurationSettings storage Configurations for SQL Data, Log and TempDb.

type StorageWorkloadType

type StorageWorkloadType string

StorageWorkloadType enumerates the values for storage workload type.

const (
	// StorageWorkloadTypeDW ...
	StorageWorkloadTypeDW StorageWorkloadType = "DW"
	// StorageWorkloadTypeGENERAL ...
	StorageWorkloadTypeGENERAL StorageWorkloadType = "GENERAL"
	// StorageWorkloadTypeOLTP ...
	StorageWorkloadTypeOLTP StorageWorkloadType = "OLTP"
)

func PossibleStorageWorkloadTypeValues

func PossibleStorageWorkloadTypeValues() []StorageWorkloadType

PossibleStorageWorkloadTypeValues returns an array of possible values for the StorageWorkloadType const type.

type SystemData

type SystemData struct {
	// CreatedBy - The identity that created the resource.
	CreatedBy *string `json:"createdBy,omitempty"`
	// CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
	CreatedByType CreatedByType `json:"createdByType,omitempty"`
	// CreatedAt - The timestamp of resource creation (UTC).
	CreatedAt *date.Time `json:"createdAt,omitempty"`
	// LastModifiedBy - The identity that last modified the resource.
	LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
	// LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey'
	LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"`
	// LastModifiedAt - The timestamp of resource last modification (UTC)
	LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"`
}

SystemData metadata pertaining to creation and last modification of the resource.

type TrackedResource

type TrackedResource struct {
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ID - READ-ONLY; Resource ID.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

TrackedResource ARM tracked top level resource.

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type Update

type Update struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

Update an update to a SQL virtual machine.

func (Update) MarshalJSON

func (u Update) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Update.

type WsfcDomainCredentials

type WsfcDomainCredentials struct {
	// ClusterBootstrapAccountPassword - Cluster bootstrap account password.
	ClusterBootstrapAccountPassword *string `json:"clusterBootstrapAccountPassword,omitempty"`
	// ClusterOperatorAccountPassword - Cluster operator account password.
	ClusterOperatorAccountPassword *string `json:"clusterOperatorAccountPassword,omitempty"`
	// SQLServiceAccountPassword - SQL service account password.
	SQLServiceAccountPassword *string `json:"sqlServiceAccountPassword,omitempty"`
}

WsfcDomainCredentials domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

type WsfcDomainProfile

type WsfcDomainProfile struct {
	// DomainFqdn - Fully qualified name of the domain.
	DomainFqdn *string `json:"domainFqdn,omitempty"`
	// OuPath - Organizational Unit path in which the nodes and cluster will be present.
	OuPath *string `json:"ouPath,omitempty"`
	// ClusterBootstrapAccount - Account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain).
	ClusterBootstrapAccount *string `json:"clusterBootstrapAccount,omitempty"`
	// ClusterOperatorAccount - Account name used for operating cluster i.e. will be part of administrators group on all the participating virtual machines in the cluster.
	ClusterOperatorAccount *string `json:"clusterOperatorAccount,omitempty"`
	// SQLServiceAccount - Account name under which SQL service will run on all participating SQL virtual machines in the cluster.
	SQLServiceAccount *string `json:"sqlServiceAccount,omitempty"`
	// FileShareWitnessPath - Optional path for fileshare witness.
	FileShareWitnessPath *string `json:"fileShareWitnessPath,omitempty"`
	// StorageAccountURL - Fully qualified ARM resource id of the witness storage account.
	StorageAccountURL *string `json:"storageAccountUrl,omitempty"`
	// StorageAccountPrimaryKey - Primary key of the witness storage account.
	StorageAccountPrimaryKey *string `json:"storageAccountPrimaryKey,omitempty"`
}

WsfcDomainProfile active Directory account details to operate Windows Server Failover Cluster.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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