Documentation ¶
Index ¶
- func PossibleValuesForCreateMode() []string
- func PossibleValuesForDataEncryptionType() []string
- func PossibleValuesForEnableStatusEnum() []string
- func PossibleValuesForHighAvailabilityMode() []string
- func PossibleValuesForHighAvailabilityState() []string
- func PossibleValuesForManagedServiceIdentityType() []string
- func PossibleValuesForReplicationRole() []string
- func PossibleValuesForServerState() []string
- func PossibleValuesForServerVersion() []string
- func PossibleValuesForSkuTier() []string
- func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error)
- type Backup
- type CreateMode
- type CreateOperationResponse
- type DataEncryption
- type DataEncryptionType
- type DeleteOperationResponse
- type EnableStatusEnum
- type FlexibleServerId
- type GetOperationResponse
- type HighAvailability
- type HighAvailabilityMode
- type HighAvailabilityState
- type Identity
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type MaintenanceWindow
- type ManagedServiceIdentityType
- type Network
- type ReplicasListByServerCompleteResult
- type ReplicasListByServerOperationResponse
- type ReplicationRole
- type Server
- type ServerForUpdate
- type ServerOperationPredicate
- type ServerProperties
- type ServerPropertiesForUpdate
- type ServerState
- type ServerVersion
- type ServersClient
- func (c ServersClient) Create(ctx context.Context, id FlexibleServerId, input Server) (result CreateOperationResponse, err error)
- func (c ServersClient) CreateThenPoll(ctx context.Context, id FlexibleServerId, input Server) error
- func (c ServersClient) Delete(ctx context.Context, id FlexibleServerId) (result DeleteOperationResponse, err error)
- func (c ServersClient) DeleteThenPoll(ctx context.Context, id FlexibleServerId) error
- func (c ServersClient) Get(ctx context.Context, id FlexibleServerId) (result GetOperationResponse, err error)
- func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c ServersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c ServersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ServersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c ServersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServerId) (result ReplicasListByServerOperationResponse, err error)
- func (c ServersClient) ReplicasListByServerComplete(ctx context.Context, id FlexibleServerId) (ReplicasListByServerCompleteResult, error)
- func (c ServersClient) ReplicasListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate ServerOperationPredicate) (result ReplicasListByServerCompleteResult, err error)
- func (c ServersClient) Update(ctx context.Context, id FlexibleServerId, input ServerForUpdate) (result UpdateOperationResponse, err error)
- func (c ServersClient) UpdateThenPoll(ctx context.Context, id FlexibleServerId, input ServerForUpdate) error
- type Sku
- type SkuTier
- type Storage
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCreateMode ¶
func PossibleValuesForCreateMode() []string
func PossibleValuesForDataEncryptionType ¶
func PossibleValuesForDataEncryptionType() []string
func PossibleValuesForEnableStatusEnum ¶
func PossibleValuesForEnableStatusEnum() []string
func PossibleValuesForHighAvailabilityMode ¶
func PossibleValuesForHighAvailabilityMode() []string
func PossibleValuesForHighAvailabilityState ¶
func PossibleValuesForHighAvailabilityState() []string
func PossibleValuesForManagedServiceIdentityType ¶
func PossibleValuesForManagedServiceIdentityType() []string
func PossibleValuesForReplicationRole ¶
func PossibleValuesForReplicationRole() []string
func PossibleValuesForServerState ¶
func PossibleValuesForServerState() []string
func PossibleValuesForServerVersion ¶
func PossibleValuesForServerVersion() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func ValidateFlexibleServerID ¶
ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID
Types ¶
type Backup ¶
type Backup struct { BackupRetentionDays *int64 `json:"backupRetentionDays,omitempty"` EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"` GeoRedundantBackup *EnableStatusEnum `json:"geoRedundantBackup,omitempty"` }
func (*Backup) GetEarliestRestoreDateAsTime ¶
func (*Backup) SetEarliestRestoreDateAsTime ¶
type CreateMode ¶
type CreateMode string
const ( CreateModeDefault CreateMode = "Default" CreateModeGeoRestore CreateMode = "GeoRestore" CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" CreateModeReplica CreateMode = "Replica" )
func (*CreateMode) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *CreateMode) UnmarshalJSON(bytes []byte) error
type CreateOperationResponse ¶
type DataEncryption ¶
type DataEncryption struct { GeoBackupKeyURI *string `json:"geoBackupKeyURI,omitempty"` GeoBackupUserAssignedIdentityId *string `json:"geoBackupUserAssignedIdentityId,omitempty"` PrimaryKeyURI *string `json:"primaryKeyURI,omitempty"` PrimaryUserAssignedIdentityId *string `json:"primaryUserAssignedIdentityId,omitempty"` Type *DataEncryptionType `json:"type,omitempty"` }
type DataEncryptionType ¶
type DataEncryptionType string
const ( DataEncryptionTypeAzureKeyVault DataEncryptionType = "AzureKeyVault" DataEncryptionTypeSystemManaged DataEncryptionType = "SystemManaged" )
func (*DataEncryptionType) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *DataEncryptionType) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type EnableStatusEnum ¶
type EnableStatusEnum string
const ( EnableStatusEnumDisabled EnableStatusEnum = "Disabled" EnableStatusEnumEnabled EnableStatusEnum = "Enabled" )
func (*EnableStatusEnum) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *EnableStatusEnum) UnmarshalJSON(bytes []byte) error
type FlexibleServerId ¶
type FlexibleServerId struct { SubscriptionId string ResourceGroupName string FlexibleServerName string }
FlexibleServerId is a struct representing the Resource ID for a Flexible Server
func NewFlexibleServerID ¶
func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId
NewFlexibleServerID returns a new FlexibleServerId struct
func ParseFlexibleServerID ¶
func ParseFlexibleServerID(input string) (*FlexibleServerId, error)
ParseFlexibleServerID parses 'input' into a FlexibleServerId
func ParseFlexibleServerIDInsensitively ¶
func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error)
ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId note: this method should only be used for API response data and not user input
func (FlexibleServerId) ID ¶
func (id FlexibleServerId) ID() string
ID returns the formatted Flexible Server ID
func (FlexibleServerId) Segments ¶
func (id FlexibleServerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID
func (FlexibleServerId) String ¶
func (id FlexibleServerId) String() string
String returns a human-readable description of this Flexible Server ID
type GetOperationResponse ¶
type HighAvailability ¶
type HighAvailability struct { Mode *HighAvailabilityMode `json:"mode,omitempty"` StandbyAvailabilityZone *string `json:"standbyAvailabilityZone,omitempty"` State *HighAvailabilityState `json:"state,omitempty"` }
type HighAvailabilityMode ¶
type HighAvailabilityMode string
const ( HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" )
func (*HighAvailabilityMode) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *HighAvailabilityMode) UnmarshalJSON(bytes []byte) error
type HighAvailabilityState ¶
type HighAvailabilityState string
const ( HighAvailabilityStateCreatingStandby HighAvailabilityState = "CreatingStandby" HighAvailabilityStateFailingOver HighAvailabilityState = "FailingOver" HighAvailabilityStateHealthy HighAvailabilityState = "Healthy" HighAvailabilityStateNotEnabled HighAvailabilityState = "NotEnabled" HighAvailabilityStateRemovingStandby HighAvailabilityState = "RemovingStandby" )
func (*HighAvailabilityState) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *HighAvailabilityState) UnmarshalJSON(bytes []byte) error
type Identity ¶
type Identity struct { PrincipalId *string `json:"principalId,omitempty"` TenantId *string `json:"tenantId,omitempty"` Type *ManagedServiceIdentityType `json:"type,omitempty"` UserAssignedIdentities *map[string]interface{} `json:"userAssignedIdentities,omitempty"` }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []Server
}
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Server
}
type ListOperationResponse ¶
type MaintenanceWindow ¶
type ManagedServiceIdentityType ¶
type ManagedServiceIdentityType string
const (
ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned"
)
func (*ManagedServiceIdentityType) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *ManagedServiceIdentityType) UnmarshalJSON(bytes []byte) error
type Network ¶
type Network struct { DelegatedSubnetResourceId *string `json:"delegatedSubnetResourceId,omitempty"` PrivateDnsZoneResourceId *string `json:"privateDnsZoneResourceId,omitempty"` PublicNetworkAccess *EnableStatusEnum `json:"publicNetworkAccess,omitempty"` }
type ReplicasListByServerCompleteResult ¶
type ReplicasListByServerCompleteResult struct {
Items []Server
}
type ReplicationRole ¶
type ReplicationRole string
const ( ReplicationRoleNone ReplicationRole = "None" ReplicationRoleReplica ReplicationRole = "Replica" ReplicationRoleSource ReplicationRole = "Source" )
func (*ReplicationRole) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error
type Server ¶
type Server struct { Id *string `json:"id,omitempty"` Identity *Identity `json:"identity,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *ServerProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ServerForUpdate ¶
type ServerForUpdate struct { Identity *Identity `json:"identity,omitempty"` Properties *ServerPropertiesForUpdate `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ServerOperationPredicate ¶
func (ServerOperationPredicate) Matches ¶
func (p ServerOperationPredicate) Matches(input Server) bool
type ServerProperties ¶
type ServerProperties struct { AdministratorLogin *string `json:"administratorLogin,omitempty"` AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` AvailabilityZone *string `json:"availabilityZone,omitempty"` Backup *Backup `json:"backup,omitempty"` CreateMode *CreateMode `json:"createMode,omitempty"` DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` HighAvailability *HighAvailability `json:"highAvailability,omitempty"` MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` Network *Network `json:"network,omitempty"` ReplicaCapacity *int64 `json:"replicaCapacity,omitempty"` ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` RestorePointInTime *string `json:"restorePointInTime,omitempty"` SourceServerResourceId *string `json:"sourceServerResourceId,omitempty"` State *ServerState `json:"state,omitempty"` Storage *Storage `json:"storage,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
func (*ServerProperties) GetRestorePointInTimeAsTime ¶
func (o *ServerProperties) GetRestorePointInTimeAsTime() (*time.Time, error)
func (*ServerProperties) SetRestorePointInTimeAsTime ¶
func (o *ServerProperties) SetRestorePointInTimeAsTime(input time.Time)
type ServerPropertiesForUpdate ¶
type ServerPropertiesForUpdate struct { AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` Backup *Backup `json:"backup,omitempty"` DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` HighAvailability *HighAvailability `json:"highAvailability,omitempty"` MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` Storage *Storage `json:"storage,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
type ServerState ¶
type ServerState string
const ( ServerStateDisabled ServerState = "Disabled" ServerStateDropping ServerState = "Dropping" ServerStateReady ServerState = "Ready" ServerStateStarting ServerState = "Starting" ServerStateStopped ServerState = "Stopped" ServerStateStopping ServerState = "Stopping" ServerStateUpdating ServerState = "Updating" )
func (*ServerState) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *ServerState) UnmarshalJSON(bytes []byte) error
type ServerVersion ¶
type ServerVersion string
const ( ServerVersionEightPointZeroPointTwoOne ServerVersion = "8.0.21" ServerVersionFivePointSeven ServerVersion = "5.7" )
func (*ServerVersion) UnmarshalJSON ¶ added in v0.20230725.1205316
func (s *ServerVersion) UnmarshalJSON(bytes []byte) error
type ServersClient ¶
type ServersClient struct {
Client *resourcemanager.Client
}
func NewServersClientWithBaseURI ¶
func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error)
func (ServersClient) Create ¶
func (c ServersClient) Create(ctx context.Context, id FlexibleServerId, input Server) (result CreateOperationResponse, err error)
Create ...
func (ServersClient) CreateThenPoll ¶
func (c ServersClient) CreateThenPoll(ctx context.Context, id FlexibleServerId, input Server) error
CreateThenPoll performs Create then polls until it's completed
func (ServersClient) Delete ¶
func (c ServersClient) Delete(ctx context.Context, id FlexibleServerId) (result DeleteOperationResponse, err error)
Delete ...
func (ServersClient) DeleteThenPoll ¶
func (c ServersClient) DeleteThenPoll(ctx context.Context, id FlexibleServerId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ServersClient) Get ¶
func (c ServersClient) Get(ctx context.Context, id FlexibleServerId) (result GetOperationResponse, err error)
Get ...
func (ServersClient) List ¶
func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (ServersClient) ListByResourceGroup ¶
func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ServersClient) ListByResourceGroupComplete ¶
func (c ServersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ServersClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ServersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ServerOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ServersClient) ListComplete ¶
func (c ServersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ServersClient) ListCompleteMatchingPredicate ¶
func (c ServersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ServerOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ServersClient) ReplicasListByServer ¶
func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServerId) (result ReplicasListByServerOperationResponse, err error)
ReplicasListByServer ...
func (ServersClient) ReplicasListByServerComplete ¶
func (c ServersClient) ReplicasListByServerComplete(ctx context.Context, id FlexibleServerId) (ReplicasListByServerCompleteResult, error)
ReplicasListByServerComplete retrieves all the results into a single object
func (ServersClient) ReplicasListByServerCompleteMatchingPredicate ¶
func (c ServersClient) ReplicasListByServerCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate ServerOperationPredicate) (result ReplicasListByServerCompleteResult, err error)
ReplicasListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ServersClient) Update ¶
func (c ServersClient) Update(ctx context.Context, id FlexibleServerId, input ServerForUpdate) (result UpdateOperationResponse, err error)
Update ...
func (ServersClient) UpdateThenPoll ¶
func (c ServersClient) UpdateThenPoll(ctx context.Context, id FlexibleServerId, input ServerForUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type Storage ¶
type Storage struct { AutoGrow *EnableStatusEnum `json:"autoGrow,omitempty"` AutoIoScaling *EnableStatusEnum `json:"autoIoScaling,omitempty"` Iops *int64 `json:"iops,omitempty"` LogOnDisk *EnableStatusEnum `json:"logOnDisk,omitempty"` StorageSizeGB *int64 `json:"storageSizeGB,omitempty"` StorageSku *string `json:"storageSku,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_flexibleserver.go
- method_create.go
- method_delete.go
- method_get.go
- method_list.go
- method_listbyresourcegroup.go
- method_replicaslistbyserver.go
- method_update.go
- model_backup.go
- model_dataencryption.go
- model_highavailability.go
- model_identity.go
- model_maintenancewindow.go
- model_network.go
- model_server.go
- model_serverforupdate.go
- model_serverproperties.go
- model_serverpropertiesforupdate.go
- model_sku.go
- model_storage.go
- predicates.go
- version.go