Documentation ¶
Index ¶
- func PossibleValuesForActiveDirectoryAuthEnum() []string
- func PossibleValuesForArmServerKeyType() []string
- func PossibleValuesForCreateMode() []string
- func PossibleValuesForCreateModeForUpdate() []string
- func PossibleValuesForGeoRedundantBackupEnum() []string
- func PossibleValuesForHighAvailabilityMode() []string
- func PossibleValuesForIdentityType() []string
- func PossibleValuesForPasswordAuthEnum() []string
- func PossibleValuesForReplicationRole() []string
- func PossibleValuesForServerHAState() []string
- func PossibleValuesForServerPublicNetworkAccessState() []string
- func PossibleValuesForServerState() []string
- func PossibleValuesForServerVersion() []string
- func PossibleValuesForSkuTier() []string
- func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error)
- type ActiveDirectoryAuthEnum
- type ArmServerKeyType
- type AuthConfig
- type Backup
- type CreateMode
- type CreateModeForUpdate
- type CreateOperationResponse
- type DataEncryption
- type DeleteOperationResponse
- type FlexibleServerId
- type GeoRedundantBackupEnum
- type GetOperationResponse
- type HighAvailability
- type HighAvailabilityMode
- type IdentityType
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type MaintenanceWindow
- type Network
- type PasswordAuthEnum
- type ReplicationRole
- type Server
- type ServerForUpdate
- type ServerHAState
- type ServerOperationPredicate
- type ServerProperties
- type ServerPropertiesForUpdate
- type ServerPublicNetworkAccessState
- 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) (resp ListOperationResponse, err error)
- func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp 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, ...) (resp 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, ...) (resp ListCompleteResult, 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
- type UserAssignedIdentity
- type UserIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForActiveDirectoryAuthEnum ¶
func PossibleValuesForActiveDirectoryAuthEnum() []string
func PossibleValuesForArmServerKeyType ¶
func PossibleValuesForArmServerKeyType() []string
func PossibleValuesForCreateMode ¶
func PossibleValuesForCreateMode() []string
func PossibleValuesForCreateModeForUpdate ¶
func PossibleValuesForCreateModeForUpdate() []string
func PossibleValuesForGeoRedundantBackupEnum ¶
func PossibleValuesForGeoRedundantBackupEnum() []string
func PossibleValuesForHighAvailabilityMode ¶
func PossibleValuesForHighAvailabilityMode() []string
func PossibleValuesForIdentityType ¶
func PossibleValuesForIdentityType() []string
func PossibleValuesForPasswordAuthEnum ¶
func PossibleValuesForPasswordAuthEnum() []string
func PossibleValuesForReplicationRole ¶
func PossibleValuesForReplicationRole() []string
func PossibleValuesForServerHAState ¶
func PossibleValuesForServerHAState() []string
func PossibleValuesForServerPublicNetworkAccessState ¶
func PossibleValuesForServerPublicNetworkAccessState() []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 ActiveDirectoryAuthEnum ¶
type ActiveDirectoryAuthEnum string
const ( ActiveDirectoryAuthEnumDisabled ActiveDirectoryAuthEnum = "Disabled" ActiveDirectoryAuthEnumEnabled ActiveDirectoryAuthEnum = "Enabled" )
type ArmServerKeyType ¶
type ArmServerKeyType string
const ( ArmServerKeyTypeAzureKeyVault ArmServerKeyType = "AzureKeyVault" ArmServerKeyTypeSystemAssigned ArmServerKeyType = "SystemAssigned" )
type AuthConfig ¶
type AuthConfig struct { ActiveDirectoryAuth *ActiveDirectoryAuthEnum `json:"activeDirectoryAuth,omitempty"` PasswordAuth *PasswordAuthEnum `json:"passwordAuth,omitempty"` TenantId *string `json:"tenantId,omitempty"` }
type Backup ¶
type Backup struct { BackupRetentionDays *int64 `json:"backupRetentionDays,omitempty"` EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"` GeoRedundantBackup *GeoRedundantBackupEnum `json:"geoRedundantBackup,omitempty"` }
func (*Backup) GetEarliestRestoreDateAsTime ¶
func (*Backup) SetEarliestRestoreDateAsTime ¶
type CreateMode ¶
type CreateMode string
const ( CreateModeCreate CreateMode = "Create" CreateModeDefault CreateMode = "Default" CreateModeGeoRestore CreateMode = "GeoRestore" CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" CreateModeReplica CreateMode = "Replica" CreateModeUpdate CreateMode = "Update" )
type CreateModeForUpdate ¶
type CreateModeForUpdate string
const ( CreateModeForUpdateDefault CreateModeForUpdate = "Default" CreateModeForUpdateUpdate CreateModeForUpdate = "Update" )
type CreateOperationResponse ¶
type CreateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DataEncryption ¶
type DataEncryption struct { PrimaryKeyURI *string `json:"primaryKeyURI,omitempty"` PrimaryUserAssignedIdentityId *string `json:"primaryUserAssignedIdentityId,omitempty"` Type *ArmServerKeyType `json:"type,omitempty"` }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
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 GeoRedundantBackupEnum ¶
type GeoRedundantBackupEnum string
const ( GeoRedundantBackupEnumDisabled GeoRedundantBackupEnum = "Disabled" GeoRedundantBackupEnumEnabled GeoRedundantBackupEnum = "Enabled" )
type GetOperationResponse ¶
type HighAvailability ¶
type HighAvailability struct { Mode *HighAvailabilityMode `json:"mode,omitempty"` StandbyAvailabilityZone *string `json:"standbyAvailabilityZone,omitempty"` State *ServerHAState `json:"state,omitempty"` }
type HighAvailabilityMode ¶
type HighAvailabilityMode string
const ( HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" )
type IdentityType ¶
type IdentityType string
const ( IdentityTypeNone IdentityType = "None" IdentityTypeSystemAssigned IdentityType = "SystemAssigned" IdentityTypeUserAssigned IdentityType = "UserAssigned" )
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []Server
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *[]Server // contains filtered or unexported fields }
func (ListByResourceGroupOperationResponse) HasMore ¶
func (r ListByResourceGroupOperationResponse) HasMore() bool
func (ListByResourceGroupOperationResponse) LoadMore ¶
func (r ListByResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ListByResourceGroupOperationResponse, err error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Server
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]Server // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type MaintenanceWindow ¶
type Network ¶
type Network struct { DelegatedSubnetResourceId *string `json:"delegatedSubnetResourceId,omitempty"` PrivateDnsZoneArmResourceId *string `json:"privateDnsZoneArmResourceId,omitempty"` PublicNetworkAccess *ServerPublicNetworkAccessState `json:"publicNetworkAccess,omitempty"` }
type PasswordAuthEnum ¶
type PasswordAuthEnum string
const ( PasswordAuthEnumDisabled PasswordAuthEnum = "Disabled" PasswordAuthEnumEnabled PasswordAuthEnum = "Enabled" )
type ReplicationRole ¶
type ReplicationRole string
const ( ReplicationRoleAsyncReplica ReplicationRole = "AsyncReplica" ReplicationRoleGeoAsyncReplica ReplicationRole = "GeoAsyncReplica" ReplicationRoleGeoSyncReplica ReplicationRole = "GeoSyncReplica" ReplicationRoleNone ReplicationRole = "None" ReplicationRolePrimary ReplicationRole = "Primary" ReplicationRoleSecondary ReplicationRole = "Secondary" ReplicationRoleSyncReplica ReplicationRole = "SyncReplica" ReplicationRoleWalReplica ReplicationRole = "WalReplica" )
type Server ¶
type Server struct { Id *string `json:"id,omitempty"` Identity *UserAssignedIdentity `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 *UserAssignedIdentity `json:"identity,omitempty"` Properties *ServerPropertiesForUpdate `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ServerHAState ¶
type ServerHAState string
const ( ServerHAStateCreatingStandby ServerHAState = "CreatingStandby" ServerHAStateFailingOver ServerHAState = "FailingOver" ServerHAStateHealthy ServerHAState = "Healthy" ServerHAStateNotEnabled ServerHAState = "NotEnabled" ServerHAStateRemovingStandby ServerHAState = "RemovingStandby" ServerHAStateReplicatingData ServerHAState = "ReplicatingData" )
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"` AuthConfig *AuthConfig `json:"authConfig,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"` MinorVersion *string `json:"minorVersion,omitempty"` Network *Network `json:"network,omitempty"` PointInTimeUTC *string `json:"pointInTimeUTC,omitempty"` ReplicaCapacity *int64 `json:"replicaCapacity,omitempty"` ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` SourceServerResourceId *string `json:"sourceServerResourceId,omitempty"` State *ServerState `json:"state,omitempty"` Storage *Storage `json:"storage,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
func (*ServerProperties) GetPointInTimeUTCAsTime ¶
func (o *ServerProperties) GetPointInTimeUTCAsTime() (*time.Time, error)
func (*ServerProperties) SetPointInTimeUTCAsTime ¶
func (o *ServerProperties) SetPointInTimeUTCAsTime(input time.Time)
type ServerPropertiesForUpdate ¶
type ServerPropertiesForUpdate struct { AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` AuthConfig *AuthConfig `json:"authConfig,omitempty"` Backup *Backup `json:"backup,omitempty"` CreateMode *CreateModeForUpdate `json:"createMode,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 ServerPublicNetworkAccessState ¶
type ServerPublicNetworkAccessState string
const ( ServerPublicNetworkAccessStateDisabled ServerPublicNetworkAccessState = "Disabled" ServerPublicNetworkAccessStateEnabled ServerPublicNetworkAccessState = "Enabled" )
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" )
type ServerVersion ¶
type ServerVersion string
const ( ServerVersionOneFour ServerVersion = "14" ServerVersionOneOne ServerVersion = "11" ServerVersionOneThree ServerVersion = "13" ServerVersionOneTwo ServerVersion = "12" )
type ServersClient ¶
func NewServersClientWithBaseURI ¶
func NewServersClientWithBaseURI(endpoint string) ServersClient
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) (resp ListOperationResponse, err error)
List ...
func (ServersClient) ListByResourceGroup ¶
func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ServersClient) ListByResourceGroupComplete ¶
func (c ServersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all of the results into a single object
func (ServersClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ServersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ServerOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ServersClient) ListComplete ¶
func (c ServersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (ServersClient) ListCompleteMatchingPredicate ¶
func (c ServersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ServerOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied 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 UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type UserAssignedIdentity ¶
type UserAssignedIdentity struct { Type IdentityType `json:"type"` UserAssignedIdentities *map[string]UserIdentity `json:"userAssignedIdentities,omitempty"` }
type UserIdentity ¶
Source Files ¶
- client.go
- constants.go
- id_flexibleserver.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_listbyresourcegroup_autorest.go
- method_update_autorest.go
- model_authconfig.go
- model_backup.go
- model_dataencryption.go
- model_highavailability.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
- model_userassignedidentity.go
- model_useridentity.go
- predicates.go
- version.go