sqlvirtualmachines

package
v0.20240712.1145105 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MPL-2.0 Imports: 16 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines Documentation

The sqlvirtualmachines SDK allows for interaction with the Azure Resource Manager Service sqlvirtualmachine (API Version 2023-10-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines"

Client Initialization

client := sqlvirtualmachines.NewSqlVirtualMachinesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlVirtualMachinesClient.CreateOrUpdate

ctx := context.TODO()
id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue")

payload := sqlvirtualmachines.SqlVirtualMachine{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: SqlVirtualMachinesClient.Delete

ctx := context.TODO()
id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: SqlVirtualMachinesClient.FetchDCAssessment

ctx := context.TODO()
id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue")

payload := sqlvirtualmachines.DiskConfigAssessmentRequest{
	// ...
}


if err := client.FetchDCAssessmentThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: SqlVirtualMachinesClient.Get

ctx := context.TODO()
id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue")

read, err := client.Get(ctx, id, sqlvirtualmachines.DefaultGetOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SqlVirtualMachinesClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: SqlVirtualMachinesClient.ListByResourceGroup

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

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

Example Usage: SqlVirtualMachinesClient.ListBySqlVMGroup

ctx := context.TODO()
id := sqlvirtualmachines.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue")

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

Example Usage: SqlVirtualMachinesClient.Redeploy

ctx := context.TODO()
id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue")

if err := client.RedeployThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: SqlVirtualMachinesClient.StartAssessment

ctx := context.TODO()
id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue")

if err := client.StartAssessmentThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: SqlVirtualMachinesClient.Update

ctx := context.TODO()
id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue")

payload := sqlvirtualmachines.SqlVirtualMachineUpdate{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAdditionalOsPatch

func PossibleValuesForAdditionalOsPatch() []string

func PossibleValuesForAdditionalVMPatch

func PossibleValuesForAdditionalVMPatch() []string

func PossibleValuesForAssessmentDayOfWeek

func PossibleValuesForAssessmentDayOfWeek() []string

func PossibleValuesForAutoBackupDaysOfWeek

func PossibleValuesForAutoBackupDaysOfWeek() []string

func PossibleValuesForBackupScheduleType

func PossibleValuesForBackupScheduleType() []string

func PossibleValuesForConnectivityType

func PossibleValuesForConnectivityType() []string

func PossibleValuesForDayOfWeek

func PossibleValuesForDayOfWeek() []string

func PossibleValuesForDiskConfigurationType

func PossibleValuesForDiskConfigurationType() []string

func PossibleValuesForFullBackupFrequencyType

func PossibleValuesForFullBackupFrequencyType() []string

func PossibleValuesForIdentityType

func PossibleValuesForIdentityType() []string

func PossibleValuesForLeastPrivilegeMode

func PossibleValuesForLeastPrivilegeMode() []string

func PossibleValuesForOsType

func PossibleValuesForOsType() []string

func PossibleValuesForSqlImageSku

func PossibleValuesForSqlImageSku() []string

func PossibleValuesForSqlManagementMode

func PossibleValuesForSqlManagementMode() []string

func PossibleValuesForSqlServerLicenseType

func PossibleValuesForSqlServerLicenseType() []string

func PossibleValuesForSqlWorkloadType

func PossibleValuesForSqlWorkloadType() []string

func PossibleValuesForStorageWorkloadType

func PossibleValuesForStorageWorkloadType() []string

func PossibleValuesForTroubleshootingScenario

func PossibleValuesForTroubleshootingScenario() []string

func PossibleValuesForVMIdentityType

func PossibleValuesForVMIdentityType() []string

func ValidateSqlVirtualMachineGroupID

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

ValidateSqlVirtualMachineGroupID checks that 'input' can be parsed as a Sql Virtual Machine Group ID

func ValidateSqlVirtualMachineID

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

ValidateSqlVirtualMachineID checks that 'input' can be parsed as a Sql Virtual Machine ID

Types

type AADAuthenticationSettings

type AADAuthenticationSettings struct {
	ClientId *string `json:"clientId,omitempty"`
}

type AdditionalFeaturesServerConfigurations

type AdditionalFeaturesServerConfigurations struct {
	IsRServicesEnabled *bool `json:"isRServicesEnabled,omitempty"`
}

type AdditionalOsPatch

type AdditionalOsPatch string
const (
	AdditionalOsPatchWSUS AdditionalOsPatch = "WSUS"
	AdditionalOsPatchWU   AdditionalOsPatch = "WU"
	AdditionalOsPatchWUMU AdditionalOsPatch = "WUMU"
)

func (*AdditionalOsPatch) UnmarshalJSON

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

type AdditionalVMPatch

type AdditionalVMPatch string
const (
	AdditionalVMPatchMicrosoftUpdate AdditionalVMPatch = "MicrosoftUpdate"
	AdditionalVMPatchNotSet          AdditionalVMPatch = "NotSet"
)

func (*AdditionalVMPatch) UnmarshalJSON

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

type AssessmentDayOfWeek

type AssessmentDayOfWeek string
const (
	AssessmentDayOfWeekFriday    AssessmentDayOfWeek = "Friday"
	AssessmentDayOfWeekMonday    AssessmentDayOfWeek = "Monday"
	AssessmentDayOfWeekSaturday  AssessmentDayOfWeek = "Saturday"
	AssessmentDayOfWeekSunday    AssessmentDayOfWeek = "Sunday"
	AssessmentDayOfWeekThursday  AssessmentDayOfWeek = "Thursday"
	AssessmentDayOfWeekTuesday   AssessmentDayOfWeek = "Tuesday"
	AssessmentDayOfWeekWednesday AssessmentDayOfWeek = "Wednesday"
)

func (*AssessmentDayOfWeek) UnmarshalJSON

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

type AssessmentSettings

type AssessmentSettings struct {
	Enable         *bool     `json:"enable,omitempty"`
	RunImmediately *bool     `json:"runImmediately,omitempty"`
	Schedule       *Schedule `json:"schedule,omitempty"`
}

type AutoBackupDaysOfWeek

type AutoBackupDaysOfWeek string
const (
	AutoBackupDaysOfWeekFriday    AutoBackupDaysOfWeek = "Friday"
	AutoBackupDaysOfWeekMonday    AutoBackupDaysOfWeek = "Monday"
	AutoBackupDaysOfWeekSaturday  AutoBackupDaysOfWeek = "Saturday"
	AutoBackupDaysOfWeekSunday    AutoBackupDaysOfWeek = "Sunday"
	AutoBackupDaysOfWeekThursday  AutoBackupDaysOfWeek = "Thursday"
	AutoBackupDaysOfWeekTuesday   AutoBackupDaysOfWeek = "Tuesday"
	AutoBackupDaysOfWeekWednesday AutoBackupDaysOfWeek = "Wednesday"
)

func (*AutoBackupDaysOfWeek) UnmarshalJSON

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

type AutoBackupSettings

type AutoBackupSettings struct {
	BackupScheduleType    *BackupScheduleType      `json:"backupScheduleType,omitempty"`
	BackupSystemDbs       *bool                    `json:"backupSystemDbs,omitempty"`
	DaysOfWeek            *[]AutoBackupDaysOfWeek  `json:"daysOfWeek,omitempty"`
	Enable                *bool                    `json:"enable,omitempty"`
	EnableEncryption      *bool                    `json:"enableEncryption,omitempty"`
	FullBackupFrequency   *FullBackupFrequencyType `json:"fullBackupFrequency,omitempty"`
	FullBackupStartTime   *int64                   `json:"fullBackupStartTime,omitempty"`
	FullBackupWindowHours *int64                   `json:"fullBackupWindowHours,omitempty"`
	LogBackupFrequency    *int64                   `json:"logBackupFrequency,omitempty"`
	Password              *string                  `json:"password,omitempty"`
	RetentionPeriod       *int64                   `json:"retentionPeriod,omitempty"`
	StorageAccessKey      *string                  `json:"storageAccessKey,omitempty"`
	StorageAccountUrl     *string                  `json:"storageAccountUrl,omitempty"`
	StorageContainerName  *string                  `json:"storageContainerName,omitempty"`
}

type AutoPatchingSettings

type AutoPatchingSettings struct {
	AdditionalVMPatch             *AdditionalVMPatch `json:"additionalVmPatch,omitempty"`
	DayOfWeek                     *DayOfWeek         `json:"dayOfWeek,omitempty"`
	Enable                        *bool              `json:"enable,omitempty"`
	MaintenanceWindowDuration     *int64             `json:"maintenanceWindowDuration,omitempty"`
	MaintenanceWindowStartingHour *int64             `json:"maintenanceWindowStartingHour,omitempty"`
}

type BackupScheduleType

type BackupScheduleType string
const (
	BackupScheduleTypeAutomated BackupScheduleType = "Automated"
	BackupScheduleTypeManual    BackupScheduleType = "Manual"
)

func (*BackupScheduleType) UnmarshalJSON

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

type ConnectivityType

type ConnectivityType string
const (
	ConnectivityTypeLOCAL   ConnectivityType = "LOCAL"
	ConnectivityTypePRIVATE ConnectivityType = "PRIVATE"
	ConnectivityTypePUBLIC  ConnectivityType = "PUBLIC"
)

func (*ConnectivityType) UnmarshalJSON

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SqlVirtualMachine
}

type DayOfWeek

type DayOfWeek string
const (
	DayOfWeekEveryday  DayOfWeek = "Everyday"
	DayOfWeekFriday    DayOfWeek = "Friday"
	DayOfWeekMonday    DayOfWeek = "Monday"
	DayOfWeekSaturday  DayOfWeek = "Saturday"
	DayOfWeekSunday    DayOfWeek = "Sunday"
	DayOfWeekThursday  DayOfWeek = "Thursday"
	DayOfWeekTuesday   DayOfWeek = "Tuesday"
	DayOfWeekWednesday DayOfWeek = "Wednesday"
)

func (*DayOfWeek) UnmarshalJSON

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

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DiskConfigAssessmentRequest

type DiskConfigAssessmentRequest struct {
	RunDiskConfigRules *bool `json:"runDiskConfigRules,omitempty"`
}

type DiskConfigurationType

type DiskConfigurationType string
const (
	DiskConfigurationTypeADD    DiskConfigurationType = "ADD"
	DiskConfigurationTypeEXTEND DiskConfigurationType = "EXTEND"
	DiskConfigurationTypeNEW    DiskConfigurationType = "NEW"
)

func (*DiskConfigurationType) UnmarshalJSON

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

type FetchDCAssessmentOperationResponse

type FetchDCAssessmentOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type FullBackupFrequencyType

type FullBackupFrequencyType string
const (
	FullBackupFrequencyTypeDaily  FullBackupFrequencyType = "Daily"
	FullBackupFrequencyTypeWeekly FullBackupFrequencyType = "Weekly"
)

func (*FullBackupFrequencyType) UnmarshalJSON

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

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders

func (o GetOperationOptions) ToHeaders() *client.Headers

func (GetOperationOptions) ToOData

func (o GetOperationOptions) ToOData() *odata.Query

func (GetOperationOptions) ToQuery

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

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

type IdentityType

type IdentityType string
const (
	IdentityTypeNone                       IdentityType = "None"
	IdentityTypeSystemAssigned             IdentityType = "SystemAssigned"
	IdentityTypeSystemAssignedUserAssigned IdentityType = "SystemAssigned,UserAssigned"
	IdentityTypeUserAssigned               IdentityType = "UserAssigned"
)

func (*IdentityType) UnmarshalJSON

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

type KeyVaultCredentialSettings

type KeyVaultCredentialSettings struct {
	AzureKeyVaultUrl       *string `json:"azureKeyVaultUrl,omitempty"`
	CredentialName         *string `json:"credentialName,omitempty"`
	Enable                 *bool   `json:"enable,omitempty"`
	ServicePrincipalName   *string `json:"servicePrincipalName,omitempty"`
	ServicePrincipalSecret *string `json:"servicePrincipalSecret,omitempty"`
}

type LeastPrivilegeMode

type LeastPrivilegeMode string
const (
	LeastPrivilegeModeEnabled LeastPrivilegeMode = "Enabled"
	LeastPrivilegeModeNotSet  LeastPrivilegeMode = "NotSet"
)

func (*LeastPrivilegeMode) UnmarshalJSON

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

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SqlVirtualMachine
}

type ListByResourceGroupCustomPager added in v0.20240628.1153531

type ListByResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SqlVirtualMachine
}

type ListBySqlVMGroupCompleteResult

type ListBySqlVMGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SqlVirtualMachine
}

type ListBySqlVMGroupCustomPager added in v0.20240628.1153531

type ListBySqlVMGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListBySqlVMGroupCustomPager) NextPageLink() *odata.Link

type ListBySqlVMGroupOperationResponse

type ListBySqlVMGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SqlVirtualMachine
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SqlVirtualMachine
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SqlVirtualMachine
}

type OsType

type OsType string
const (
	OsTypeLinux   OsType = "Linux"
	OsTypeWindows OsType = "Windows"
)

func (*OsType) UnmarshalJSON

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

type RedeployOperationResponse

type RedeployOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ResourceIdentity

type ResourceIdentity struct {
	PrincipalId *string       `json:"principalId,omitempty"`
	TenantId    *string       `json:"tenantId,omitempty"`
	Type        *IdentityType `json:"type,omitempty"`
}

type SQLInstanceSettings

type SQLInstanceSettings struct {
	Collation                          *string `json:"collation,omitempty"`
	IsIfiEnabled                       *bool   `json:"isIfiEnabled,omitempty"`
	IsLpimEnabled                      *bool   `json:"isLpimEnabled,omitempty"`
	IsOptimizeForAdHocWorkloadsEnabled *bool   `json:"isOptimizeForAdHocWorkloadsEnabled,omitempty"`
	MaxDop                             *int64  `json:"maxDop,omitempty"`
	MaxServerMemoryMB                  *int64  `json:"maxServerMemoryMB,omitempty"`
	MinServerMemoryMB                  *int64  `json:"minServerMemoryMB,omitempty"`
}

type SQLStorageSettings

type SQLStorageSettings struct {
	DefaultFilePath *string  `json:"defaultFilePath,omitempty"`
	Luns            *[]int64 `json:"luns,omitempty"`
	UseStoragePool  *bool    `json:"useStoragePool,omitempty"`
}

type SQLTempDbSettings

type SQLTempDbSettings struct {
	DataFileCount     *int64   `json:"dataFileCount,omitempty"`
	DataFileSize      *int64   `json:"dataFileSize,omitempty"`
	DataGrowth        *int64   `json:"dataGrowth,omitempty"`
	DefaultFilePath   *string  `json:"defaultFilePath,omitempty"`
	LogFileSize       *int64   `json:"logFileSize,omitempty"`
	LogGrowth         *int64   `json:"logGrowth,omitempty"`
	Luns              *[]int64 `json:"luns,omitempty"`
	PersistFolder     *bool    `json:"persistFolder,omitempty"`
	PersistFolderPath *string  `json:"persistFolderPath,omitempty"`
	UseStoragePool    *bool    `json:"useStoragePool,omitempty"`
}

type Schedule

type Schedule struct {
	DayOfWeek         *AssessmentDayOfWeek `json:"dayOfWeek,omitempty"`
	Enable            *bool                `json:"enable,omitempty"`
	MonthlyOccurrence *int64               `json:"monthlyOccurrence,omitempty"`
	StartTime         *string              `json:"startTime,omitempty"`
	WeeklyInterval    *int64               `json:"weeklyInterval,omitempty"`
}

type ServerConfigurationsManagementSettings

type ServerConfigurationsManagementSettings struct {
	AdditionalFeaturesServerConfigurations *AdditionalFeaturesServerConfigurations `json:"additionalFeaturesServerConfigurations,omitempty"`
	AzureAdAuthenticationSettings          *AADAuthenticationSettings              `json:"azureAdAuthenticationSettings,omitempty"`
	SqlConnectivityUpdateSettings          *SqlConnectivityUpdateSettings          `json:"sqlConnectivityUpdateSettings,omitempty"`
	SqlInstanceSettings                    *SQLInstanceSettings                    `json:"sqlInstanceSettings,omitempty"`
	SqlStorageUpdateSettings               *SqlStorageUpdateSettings               `json:"sqlStorageUpdateSettings,omitempty"`
	SqlWorkloadTypeUpdateSettings          *SqlWorkloadTypeUpdateSettings          `json:"sqlWorkloadTypeUpdateSettings,omitempty"`
}

type SqlConnectivityUpdateSettings

type SqlConnectivityUpdateSettings struct {
	ConnectivityType      *ConnectivityType `json:"connectivityType,omitempty"`
	Port                  *int64            `json:"port,omitempty"`
	SqlAuthUpdatePassword *string           `json:"sqlAuthUpdatePassword,omitempty"`
	SqlAuthUpdateUserName *string           `json:"sqlAuthUpdateUserName,omitempty"`
}

type SqlImageSku

type SqlImageSku string
const (
	SqlImageSkuDeveloper  SqlImageSku = "Developer"
	SqlImageSkuEnterprise SqlImageSku = "Enterprise"
	SqlImageSkuExpress    SqlImageSku = "Express"
	SqlImageSkuStandard   SqlImageSku = "Standard"
	SqlImageSkuWeb        SqlImageSku = "Web"
)

func (*SqlImageSku) UnmarshalJSON

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

type SqlManagementMode

type SqlManagementMode string
const (
	SqlManagementModeFull        SqlManagementMode = "Full"
	SqlManagementModeLightWeight SqlManagementMode = "LightWeight"
	SqlManagementModeNoAgent     SqlManagementMode = "NoAgent"
)

func (*SqlManagementMode) UnmarshalJSON

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

type SqlServerLicenseType

type SqlServerLicenseType string
const (
	SqlServerLicenseTypeAHUB SqlServerLicenseType = "AHUB"
	SqlServerLicenseTypeDR   SqlServerLicenseType = "DR"
	SqlServerLicenseTypePAYG SqlServerLicenseType = "PAYG"
)

func (*SqlServerLicenseType) UnmarshalJSON

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

type SqlStorageUpdateSettings

type SqlStorageUpdateSettings struct {
	DiskConfigurationType *DiskConfigurationType `json:"diskConfigurationType,omitempty"`
	DiskCount             *int64                 `json:"diskCount,omitempty"`
	StartingDeviceId      *int64                 `json:"startingDeviceId,omitempty"`
}

type SqlVirtualMachine

type SqlVirtualMachine struct {
	Id         *string                      `json:"id,omitempty"`
	Identity   *ResourceIdentity            `json:"identity,omitempty"`
	Location   string                       `json:"location"`
	Name       *string                      `json:"name,omitempty"`
	Properties *SqlVirtualMachineProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData       `json:"systemData,omitempty"`
	Tags       *map[string]string           `json:"tags,omitempty"`
	Type       *string                      `json:"type,omitempty"`
}

type SqlVirtualMachineGroupId

type SqlVirtualMachineGroupId struct {
	SubscriptionId             string
	ResourceGroupName          string
	SqlVirtualMachineGroupName string
}

SqlVirtualMachineGroupId is a struct representing the Resource ID for a Sql Virtual Machine Group

func NewSqlVirtualMachineGroupID

func NewSqlVirtualMachineGroupID(subscriptionId string, resourceGroupName string, sqlVirtualMachineGroupName string) SqlVirtualMachineGroupId

NewSqlVirtualMachineGroupID returns a new SqlVirtualMachineGroupId struct

func ParseSqlVirtualMachineGroupID

func ParseSqlVirtualMachineGroupID(input string) (*SqlVirtualMachineGroupId, error)

ParseSqlVirtualMachineGroupID parses 'input' into a SqlVirtualMachineGroupId

func ParseSqlVirtualMachineGroupIDInsensitively

func ParseSqlVirtualMachineGroupIDInsensitively(input string) (*SqlVirtualMachineGroupId, error)

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

func (*SqlVirtualMachineGroupId) FromParseResult

func (id *SqlVirtualMachineGroupId) FromParseResult(input resourceids.ParseResult) error

func (SqlVirtualMachineGroupId) ID

ID returns the formatted Sql Virtual Machine Group ID

func (SqlVirtualMachineGroupId) Segments

Segments returns a slice of Resource ID Segments which comprise this Sql Virtual Machine Group ID

func (SqlVirtualMachineGroupId) String

func (id SqlVirtualMachineGroupId) String() string

String returns a human-readable description of this Sql Virtual Machine Group ID

type SqlVirtualMachineId

type SqlVirtualMachineId struct {
	SubscriptionId        string
	ResourceGroupName     string
	SqlVirtualMachineName string
}

SqlVirtualMachineId is a struct representing the Resource ID for a Sql Virtual Machine

func NewSqlVirtualMachineID

func NewSqlVirtualMachineID(subscriptionId string, resourceGroupName string, sqlVirtualMachineName string) SqlVirtualMachineId

NewSqlVirtualMachineID returns a new SqlVirtualMachineId struct

func ParseSqlVirtualMachineID

func ParseSqlVirtualMachineID(input string) (*SqlVirtualMachineId, error)

ParseSqlVirtualMachineID parses 'input' into a SqlVirtualMachineId

func ParseSqlVirtualMachineIDInsensitively

func ParseSqlVirtualMachineIDInsensitively(input string) (*SqlVirtualMachineId, error)

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

func (*SqlVirtualMachineId) FromParseResult

func (id *SqlVirtualMachineId) FromParseResult(input resourceids.ParseResult) error

func (SqlVirtualMachineId) ID

func (id SqlVirtualMachineId) ID() string

ID returns the formatted Sql Virtual Machine ID

func (SqlVirtualMachineId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Sql Virtual Machine ID

func (SqlVirtualMachineId) String

func (id SqlVirtualMachineId) String() string

String returns a human-readable description of this Sql Virtual Machine ID

type SqlVirtualMachineOperationPredicate

type SqlVirtualMachineOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (SqlVirtualMachineOperationPredicate) Matches

type SqlVirtualMachineProperties

type SqlVirtualMachineProperties struct {
	AdditionalVMPatch                      *AdditionalOsPatch                      `json:"additionalVmPatch,omitempty"`
	AssessmentSettings                     *AssessmentSettings                     `json:"assessmentSettings,omitempty"`
	AutoBackupSettings                     *AutoBackupSettings                     `json:"autoBackupSettings,omitempty"`
	AutoPatchingSettings                   *AutoPatchingSettings                   `json:"autoPatchingSettings,omitempty"`
	EnableAutomaticUpgrade                 *bool                                   `json:"enableAutomaticUpgrade,omitempty"`
	KeyVaultCredentialSettings             *KeyVaultCredentialSettings             `json:"keyVaultCredentialSettings,omitempty"`
	LeastPrivilegeMode                     *LeastPrivilegeMode                     `json:"leastPrivilegeMode,omitempty"`
	OsType                                 *OsType                                 `json:"osType,omitempty"`
	ProvisioningState                      *string                                 `json:"provisioningState,omitempty"`
	ServerConfigurationsManagementSettings *ServerConfigurationsManagementSettings `json:"serverConfigurationsManagementSettings,omitempty"`
	SqlImageOffer                          *string                                 `json:"sqlImageOffer,omitempty"`
	SqlImageSku                            *SqlImageSku                            `json:"sqlImageSku,omitempty"`
	SqlManagement                          *SqlManagementMode                      `json:"sqlManagement,omitempty"`
	SqlServerLicenseType                   *SqlServerLicenseType                   `json:"sqlServerLicenseType,omitempty"`
	SqlVirtualMachineGroupResourceId       *string                                 `json:"sqlVirtualMachineGroupResourceId,omitempty"`
	StorageConfigurationSettings           *StorageConfigurationSettings           `json:"storageConfigurationSettings,omitempty"`
	TroubleshootingStatus                  *TroubleshootingStatus                  `json:"troubleshootingStatus,omitempty"`
	VirtualMachineIdentitySettings         *VirtualMachineIdentity                 `json:"virtualMachineIdentitySettings,omitempty"`
	VirtualMachineResourceId               *string                                 `json:"virtualMachineResourceId,omitempty"`
	WsfcDomainCredentials                  *WsfcDomainCredentials                  `json:"wsfcDomainCredentials,omitempty"`
	WsfcStaticIP                           *string                                 `json:"wsfcStaticIp,omitempty"`
}

type SqlVirtualMachineUpdate

type SqlVirtualMachineUpdate struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type SqlVirtualMachinesClient

type SqlVirtualMachinesClient struct {
	Client *resourcemanager.Client
}

func NewSqlVirtualMachinesClientWithBaseURI

func NewSqlVirtualMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlVirtualMachinesClient, error)

func (SqlVirtualMachinesClient) CreateOrUpdate

CreateOrUpdate ...

func (SqlVirtualMachinesClient) CreateOrUpdateThenPoll

func (c SqlVirtualMachinesClient) CreateOrUpdateThenPoll(ctx context.Context, id SqlVirtualMachineId, input SqlVirtualMachine) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (SqlVirtualMachinesClient) Delete

Delete ...

func (SqlVirtualMachinesClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (SqlVirtualMachinesClient) FetchDCAssessment

FetchDCAssessment ...

func (SqlVirtualMachinesClient) FetchDCAssessmentThenPoll

FetchDCAssessmentThenPoll performs FetchDCAssessment then polls until it's completed

func (SqlVirtualMachinesClient) Get

Get ...

func (SqlVirtualMachinesClient) List

List ...

func (SqlVirtualMachinesClient) ListByResourceGroup

ListByResourceGroup ...

func (SqlVirtualMachinesClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (SqlVirtualMachinesClient) ListByResourceGroupCompleteMatchingPredicate

func (c SqlVirtualMachinesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate SqlVirtualMachineOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlVirtualMachinesClient) ListBySqlVMGroup

ListBySqlVMGroup ...

func (SqlVirtualMachinesClient) ListBySqlVMGroupComplete

ListBySqlVMGroupComplete retrieves all the results into a single object

func (SqlVirtualMachinesClient) ListBySqlVMGroupCompleteMatchingPredicate

func (c SqlVirtualMachinesClient) ListBySqlVMGroupCompleteMatchingPredicate(ctx context.Context, id SqlVirtualMachineGroupId, predicate SqlVirtualMachineOperationPredicate) (result ListBySqlVMGroupCompleteResult, err error)

ListBySqlVMGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlVirtualMachinesClient) ListComplete

ListComplete retrieves all the results into a single object

func (SqlVirtualMachinesClient) ListCompleteMatchingPredicate

func (c SqlVirtualMachinesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate SqlVirtualMachineOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlVirtualMachinesClient) Redeploy

Redeploy ...

func (SqlVirtualMachinesClient) RedeployThenPoll

RedeployThenPoll performs Redeploy then polls until it's completed

func (SqlVirtualMachinesClient) StartAssessment

StartAssessment ...

func (SqlVirtualMachinesClient) StartAssessmentThenPoll

func (c SqlVirtualMachinesClient) StartAssessmentThenPoll(ctx context.Context, id SqlVirtualMachineId) error

StartAssessmentThenPoll performs StartAssessment then polls until it's completed

func (SqlVirtualMachinesClient) Update

Update ...

func (SqlVirtualMachinesClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type SqlWorkloadType

type SqlWorkloadType string
const (
	SqlWorkloadTypeDW      SqlWorkloadType = "DW"
	SqlWorkloadTypeGENERAL SqlWorkloadType = "GENERAL"
	SqlWorkloadTypeOLTP    SqlWorkloadType = "OLTP"
)

func (*SqlWorkloadType) UnmarshalJSON

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

type SqlWorkloadTypeUpdateSettings

type SqlWorkloadTypeUpdateSettings struct {
	SqlWorkloadType *SqlWorkloadType `json:"sqlWorkloadType,omitempty"`
}

type StartAssessmentOperationResponse

type StartAssessmentOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type StorageConfigurationSettings

type StorageConfigurationSettings struct {
	DiskConfigurationType    *DiskConfigurationType `json:"diskConfigurationType,omitempty"`
	EnableStorageConfigBlade *bool                  `json:"enableStorageConfigBlade,omitempty"`
	SqlDataSettings          *SQLStorageSettings    `json:"sqlDataSettings,omitempty"`
	SqlLogSettings           *SQLStorageSettings    `json:"sqlLogSettings,omitempty"`
	SqlSystemDbOnDataDisk    *bool                  `json:"sqlSystemDbOnDataDisk,omitempty"`
	SqlTempDbSettings        *SQLTempDbSettings     `json:"sqlTempDbSettings,omitempty"`
	StorageWorkloadType      *StorageWorkloadType   `json:"storageWorkloadType,omitempty"`
}

type StorageWorkloadType

type StorageWorkloadType string
const (
	StorageWorkloadTypeDW      StorageWorkloadType = "DW"
	StorageWorkloadTypeGENERAL StorageWorkloadType = "GENERAL"
	StorageWorkloadTypeOLTP    StorageWorkloadType = "OLTP"
)

func (*StorageWorkloadType) UnmarshalJSON

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

type TroubleshootingAdditionalProperties

type TroubleshootingAdditionalProperties struct {
	UnhealthyReplicaInfo *UnhealthyReplicaInfo `json:"unhealthyReplicaInfo,omitempty"`
}

type TroubleshootingScenario

type TroubleshootingScenario string
const (
	TroubleshootingScenarioUnhealthyReplica TroubleshootingScenario = "UnhealthyReplica"
)

func (*TroubleshootingScenario) UnmarshalJSON

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

type TroubleshootingStatus

type TroubleshootingStatus struct {
	EndTimeUtc              *string                              `json:"endTimeUtc,omitempty"`
	LastTriggerTimeUtc      *string                              `json:"lastTriggerTimeUtc,omitempty"`
	Properties              *TroubleshootingAdditionalProperties `json:"properties,omitempty"`
	RootCause               *string                              `json:"rootCause,omitempty"`
	StartTimeUtc            *string                              `json:"startTimeUtc,omitempty"`
	TroubleshootingScenario *TroubleshootingScenario             `json:"troubleshootingScenario,omitempty"`
}

func (*TroubleshootingStatus) GetEndTimeUtcAsTime

func (o *TroubleshootingStatus) GetEndTimeUtcAsTime() (*time.Time, error)

func (*TroubleshootingStatus) GetLastTriggerTimeUtcAsTime

func (o *TroubleshootingStatus) GetLastTriggerTimeUtcAsTime() (*time.Time, error)

func (*TroubleshootingStatus) GetStartTimeUtcAsTime

func (o *TroubleshootingStatus) GetStartTimeUtcAsTime() (*time.Time, error)

func (*TroubleshootingStatus) SetEndTimeUtcAsTime

func (o *TroubleshootingStatus) SetEndTimeUtcAsTime(input time.Time)

func (*TroubleshootingStatus) SetLastTriggerTimeUtcAsTime

func (o *TroubleshootingStatus) SetLastTriggerTimeUtcAsTime(input time.Time)

func (*TroubleshootingStatus) SetStartTimeUtcAsTime

func (o *TroubleshootingStatus) SetStartTimeUtcAsTime(input time.Time)

type UnhealthyReplicaInfo

type UnhealthyReplicaInfo struct {
	AvailabilityGroupName *string `json:"availabilityGroupName,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SqlVirtualMachine
}

type VMIdentityType

type VMIdentityType string
const (
	VMIdentityTypeNone           VMIdentityType = "None"
	VMIdentityTypeSystemAssigned VMIdentityType = "SystemAssigned"
	VMIdentityTypeUserAssigned   VMIdentityType = "UserAssigned"
)

func (*VMIdentityType) UnmarshalJSON

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

type VirtualMachineIdentity

type VirtualMachineIdentity struct {
	ResourceId *string         `json:"resourceId,omitempty"`
	Type       *VMIdentityType `json:"type,omitempty"`
}

type WsfcDomainCredentials

type WsfcDomainCredentials struct {
	ClusterBootstrapAccountPassword *string `json:"clusterBootstrapAccountPassword,omitempty"`
	ClusterOperatorAccountPassword  *string `json:"clusterOperatorAccountPassword,omitempty"`
	SqlServiceAccountPassword       *string `json:"sqlServiceAccountPassword,omitempty"`
}

Jump to

Keyboard shortcuts

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