Documentation ¶
Index ¶
- func PossibleValuesForCreateMode() []string
- func PossibleValuesForGeoRedundantBackup() []string
- func PossibleValuesForInfrastructureEncryption() []string
- func PossibleValuesForMinimalTlsVersionEnum() []string
- func PossibleValuesForPrivateEndpointProvisioningState() []string
- func PossibleValuesForPrivateLinkServiceConnectionStateActionsRequire() []string
- func PossibleValuesForPrivateLinkServiceConnectionStateStatus() []string
- func PossibleValuesForPublicNetworkAccessEnum() []string
- func PossibleValuesForServerState() []string
- func PossibleValuesForServerVersion() []string
- func PossibleValuesForSkuTier() []string
- func PossibleValuesForSslEnforcementEnum() []string
- func PossibleValuesForStorageAutogrow() []string
- func ValidateServerID(input interface{}, key string) (warnings []string, errors []error)
- type CreateMode
- type CreateOperationResponse
- type DeleteOperationResponse
- type GeoRedundantBackup
- type GetOperationResponse
- type InfrastructureEncryption
- type ListByResourceGroupOperationResponse
- type ListOperationResponse
- type MinimalTlsVersionEnum
- type PrivateEndpointProperty
- type PrivateEndpointProvisioningState
- type PrivateLinkServiceConnectionStateActionsRequire
- type PrivateLinkServiceConnectionStateStatus
- type PublicNetworkAccessEnum
- type RawServerPropertiesForCreateImpl
- type Server
- type ServerForCreate
- type ServerId
- type ServerListResult
- type ServerPrivateEndpointConnection
- type ServerPrivateEndpointConnectionProperties
- type ServerPrivateLinkServiceConnectionStateProperty
- type ServerProperties
- type ServerPropertiesForCreate
- type ServerPropertiesForDefaultCreate
- type ServerPropertiesForGeoRestore
- type ServerPropertiesForReplica
- type ServerPropertiesForRestore
- type ServerState
- type ServerUpdateParameters
- type ServerUpdateParametersProperties
- type ServerVersion
- type ServersClient
- func (c ServersClient) Create(ctx context.Context, id ServerId, input ServerForCreate) (result CreateOperationResponse, err error)
- func (c ServersClient) CreateThenPoll(ctx context.Context, id ServerId, input ServerForCreate) error
- func (c ServersClient) Delete(ctx context.Context, id ServerId) (result DeleteOperationResponse, err error)
- func (c ServersClient) DeleteThenPoll(ctx context.Context, id ServerId) error
- func (c ServersClient) Get(ctx context.Context, id ServerId) (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) Update(ctx context.Context, id ServerId, input ServerUpdateParameters) (result UpdateOperationResponse, err error)
- func (c ServersClient) UpdateThenPoll(ctx context.Context, id ServerId, input ServerUpdateParameters) error
- type Sku
- type SkuTier
- type SslEnforcementEnum
- type StorageAutogrow
- type StorageProfile
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCreateMode ¶
func PossibleValuesForCreateMode() []string
func PossibleValuesForGeoRedundantBackup ¶
func PossibleValuesForGeoRedundantBackup() []string
func PossibleValuesForInfrastructureEncryption ¶
func PossibleValuesForInfrastructureEncryption() []string
func PossibleValuesForMinimalTlsVersionEnum ¶
func PossibleValuesForMinimalTlsVersionEnum() []string
func PossibleValuesForPrivateEndpointProvisioningState ¶
func PossibleValuesForPrivateEndpointProvisioningState() []string
func PossibleValuesForPrivateLinkServiceConnectionStateActionsRequire ¶
func PossibleValuesForPrivateLinkServiceConnectionStateActionsRequire() []string
func PossibleValuesForPrivateLinkServiceConnectionStateStatus ¶
func PossibleValuesForPrivateLinkServiceConnectionStateStatus() []string
func PossibleValuesForPublicNetworkAccessEnum ¶
func PossibleValuesForPublicNetworkAccessEnum() []string
func PossibleValuesForServerState ¶
func PossibleValuesForServerState() []string
func PossibleValuesForServerVersion ¶
func PossibleValuesForServerVersion() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func PossibleValuesForSslEnforcementEnum ¶
func PossibleValuesForSslEnforcementEnum() []string
func PossibleValuesForStorageAutogrow ¶
func PossibleValuesForStorageAutogrow() []string
func ValidateServerID ¶
ValidateServerID checks that 'input' can be parsed as a Server ID
Types ¶
type CreateMode ¶
type CreateMode string
const ( CreateModeDefault CreateMode = "Default" CreateModeGeoRestore CreateMode = "GeoRestore" CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" CreateModeReplica CreateMode = "Replica" )
type CreateOperationResponse ¶
type CreateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GeoRedundantBackup ¶
type GeoRedundantBackup string
const ( GeoRedundantBackupDisabled GeoRedundantBackup = "Disabled" GeoRedundantBackupEnabled GeoRedundantBackup = "Enabled" )
type GetOperationResponse ¶
type InfrastructureEncryption ¶
type InfrastructureEncryption string
const ( InfrastructureEncryptionDisabled InfrastructureEncryption = "Disabled" InfrastructureEncryptionEnabled InfrastructureEncryption = "Enabled" )
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *ServerListResult }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *ServerListResult }
type MinimalTlsVersionEnum ¶
type MinimalTlsVersionEnum string
const ( MinimalTlsVersionEnumTLSEnforcementDisabled MinimalTlsVersionEnum = "TLSEnforcementDisabled" MinimalTlsVersionEnumTLSOneOne MinimalTlsVersionEnum = "TLS1_1" MinimalTlsVersionEnumTLSOneTwo MinimalTlsVersionEnum = "TLS1_2" MinimalTlsVersionEnumTLSOneZero MinimalTlsVersionEnum = "TLS1_0" )
type PrivateEndpointProperty ¶
type PrivateEndpointProperty struct {
Id *string `json:"id,omitempty"`
}
type PrivateEndpointProvisioningState ¶
type PrivateEndpointProvisioningState string
const ( PrivateEndpointProvisioningStateApproving PrivateEndpointProvisioningState = "Approving" PrivateEndpointProvisioningStateDropping PrivateEndpointProvisioningState = "Dropping" PrivateEndpointProvisioningStateFailed PrivateEndpointProvisioningState = "Failed" PrivateEndpointProvisioningStateReady PrivateEndpointProvisioningState = "Ready" PrivateEndpointProvisioningStateRejecting PrivateEndpointProvisioningState = "Rejecting" )
type PrivateLinkServiceConnectionStateActionsRequire ¶
type PrivateLinkServiceConnectionStateActionsRequire string
const (
PrivateLinkServiceConnectionStateActionsRequireNone PrivateLinkServiceConnectionStateActionsRequire = "None"
)
type PrivateLinkServiceConnectionStateStatus ¶
type PrivateLinkServiceConnectionStateStatus string
const ( PrivateLinkServiceConnectionStateStatusApproved PrivateLinkServiceConnectionStateStatus = "Approved" PrivateLinkServiceConnectionStateStatusDisconnected PrivateLinkServiceConnectionStateStatus = "Disconnected" PrivateLinkServiceConnectionStateStatusPending PrivateLinkServiceConnectionStateStatus = "Pending" PrivateLinkServiceConnectionStateStatusRejected PrivateLinkServiceConnectionStateStatus = "Rejected" )
type PublicNetworkAccessEnum ¶
type PublicNetworkAccessEnum string
const ( PublicNetworkAccessEnumDisabled PublicNetworkAccessEnum = "Disabled" PublicNetworkAccessEnumEnabled PublicNetworkAccessEnum = "Enabled" )
type RawServerPropertiesForCreateImpl ¶ added in v0.20230807.1063129
RawModeOfTransitImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type Server ¶
type Server struct { Id *string `json:"id,omitempty"` Identity *identity.SystemAssigned `json:"identity,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *ServerProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ServerForCreate ¶
type ServerForCreate struct { Identity *identity.SystemAssigned `json:"identity,omitempty"` Location string `json:"location"` Properties ServerPropertiesForCreate `json:"properties"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
func (*ServerForCreate) UnmarshalJSON ¶
func (s *ServerForCreate) UnmarshalJSON(bytes []byte) error
type ServerId ¶
ServerId is a struct representing the Resource ID for a Server
func NewServerID ¶
NewServerID returns a new ServerId struct
func ParseServerID ¶
ParseServerID parses 'input' into a ServerId
func ParseServerIDInsensitively ¶
ParseServerIDInsensitively parses 'input' case-insensitively into a ServerId note: this method should only be used for API response data and not user input
func (ServerId) Segments ¶
func (id ServerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Server ID
type ServerListResult ¶
type ServerListResult struct {
Value *[]Server `json:"value,omitempty"`
}
type ServerPrivateEndpointConnection ¶
type ServerPrivateEndpointConnection struct { Id *string `json:"id,omitempty"` Properties *ServerPrivateEndpointConnectionProperties `json:"properties,omitempty"` }
type ServerPrivateEndpointConnectionProperties ¶
type ServerPrivateEndpointConnectionProperties struct { PrivateEndpoint *PrivateEndpointProperty `json:"privateEndpoint,omitempty"` PrivateLinkServiceConnectionState *ServerPrivateLinkServiceConnectionStateProperty `json:"privateLinkServiceConnectionState,omitempty"` ProvisioningState *PrivateEndpointProvisioningState `json:"provisioningState,omitempty"` }
type ServerPrivateLinkServiceConnectionStateProperty ¶
type ServerPrivateLinkServiceConnectionStateProperty struct { ActionsRequired *PrivateLinkServiceConnectionStateActionsRequire `json:"actionsRequired,omitempty"` Description string `json:"description"` Status PrivateLinkServiceConnectionStateStatus `json:"status"` }
type ServerProperties ¶
type ServerProperties struct { AdministratorLogin *string `json:"administratorLogin,omitempty"` ByokEnforcement *string `json:"byokEnforcement,omitempty"` EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"` FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MasterServerId *string `json:"masterServerId,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PrivateEndpointConnections *[]ServerPrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` ReplicaCapacity *int64 `json:"replicaCapacity,omitempty"` ReplicationRole *string `json:"replicationRole,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` StorageProfile *StorageProfile `json:"storageProfile,omitempty"` UserVisibleState *ServerState `json:"userVisibleState,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
func (*ServerProperties) GetEarliestRestoreDateAsTime ¶
func (o *ServerProperties) GetEarliestRestoreDateAsTime() (*time.Time, error)
func (*ServerProperties) SetEarliestRestoreDateAsTime ¶
func (o *ServerProperties) SetEarliestRestoreDateAsTime(input time.Time)
type ServerPropertiesForCreate ¶
type ServerPropertiesForCreate interface { }
type ServerPropertiesForDefaultCreate ¶
type ServerPropertiesForDefaultCreate struct { AdministratorLogin string `json:"administratorLogin"` AdministratorLoginPassword string `json:"administratorLoginPassword"` // Fields inherited from ServerPropertiesForCreate InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` StorageProfile *StorageProfile `json:"storageProfile,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
func (ServerPropertiesForDefaultCreate) MarshalJSON ¶
func (s ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error)
type ServerPropertiesForGeoRestore ¶
type ServerPropertiesForGeoRestore struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` StorageProfile *StorageProfile `json:"storageProfile,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
func (ServerPropertiesForGeoRestore) MarshalJSON ¶
func (s ServerPropertiesForGeoRestore) MarshalJSON() ([]byte, error)
type ServerPropertiesForReplica ¶
type ServerPropertiesForReplica struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` StorageProfile *StorageProfile `json:"storageProfile,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
func (ServerPropertiesForReplica) MarshalJSON ¶
func (s ServerPropertiesForReplica) MarshalJSON() ([]byte, error)
type ServerPropertiesForRestore ¶
type ServerPropertiesForRestore struct { RestorePointInTime string `json:"restorePointInTime"` SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` StorageProfile *StorageProfile `json:"storageProfile,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
func (ServerPropertiesForRestore) MarshalJSON ¶
func (s ServerPropertiesForRestore) MarshalJSON() ([]byte, error)
type ServerState ¶
type ServerState string
const ( ServerStateDisabled ServerState = "Disabled" ServerStateDropping ServerState = "Dropping" ServerStateInaccessible ServerState = "Inaccessible" ServerStateReady ServerState = "Ready" )
type ServerUpdateParameters ¶
type ServerUpdateParameters struct { Identity *identity.SystemAssigned `json:"identity,omitempty"` Properties *ServerUpdateParametersProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ServerUpdateParametersProperties ¶
type ServerUpdateParametersProperties struct { AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` ReplicationRole *string `json:"replicationRole,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` StorageProfile *StorageProfile `json:"storageProfile,omitempty"` Version *ServerVersion `json:"version,omitempty"` }
type ServerVersion ¶
type ServerVersion string
const ( ServerVersionNinePointFive ServerVersion = "9.5" ServerVersionNinePointSix ServerVersion = "9.6" ServerVersionOneOne ServerVersion = "11" ServerVersionOneZero ServerVersion = "10" ServerVersionOneZeroPointTwo ServerVersion = "10.2" ServerVersionOneZeroPointZero ServerVersion = "10.0" )
type ServersClient ¶
func NewServersClientWithBaseURI ¶
func NewServersClientWithBaseURI(endpoint string) ServersClient
func (ServersClient) Create ¶
func (c ServersClient) Create(ctx context.Context, id ServerId, input ServerForCreate) (result CreateOperationResponse, err error)
Create ...
func (ServersClient) CreateThenPoll ¶
func (c ServersClient) CreateThenPoll(ctx context.Context, id ServerId, input ServerForCreate) error
CreateThenPoll performs Create then polls until it's completed
func (ServersClient) Delete ¶
func (c ServersClient) Delete(ctx context.Context, id ServerId) (result DeleteOperationResponse, err error)
Delete ...
func (ServersClient) DeleteThenPoll ¶
func (c ServersClient) DeleteThenPoll(ctx context.Context, id ServerId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ServersClient) Get ¶
func (c ServersClient) Get(ctx context.Context, id ServerId) (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) Update ¶
func (c ServersClient) Update(ctx context.Context, id ServerId, input ServerUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
func (ServersClient) UpdateThenPoll ¶
func (c ServersClient) UpdateThenPoll(ctx context.Context, id ServerId, input ServerUpdateParameters) error
UpdateThenPoll performs Update then polls until it's completed
type SslEnforcementEnum ¶
type SslEnforcementEnum string
const ( SslEnforcementEnumDisabled SslEnforcementEnum = "Disabled" SslEnforcementEnumEnabled SslEnforcementEnum = "Enabled" )
type StorageAutogrow ¶
type StorageAutogrow string
const ( StorageAutogrowDisabled StorageAutogrow = "Disabled" StorageAutogrowEnabled StorageAutogrow = "Enabled" )
type StorageProfile ¶
type StorageProfile struct { BackupRetentionDays *int64 `json:"backupRetentionDays,omitempty"` GeoRedundantBackup *GeoRedundantBackup `json:"geoRedundantBackup,omitempty"` StorageAutogrow *StorageAutogrow `json:"storageAutogrow,omitempty"` StorageMB *int64 `json:"storageMB,omitempty"` }
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
Source Files ¶
- client.go
- constants.go
- id_server.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_privateendpointproperty.go
- model_server.go
- model_serverforcreate.go
- model_serverlistresult.go
- model_serverprivateendpointconnection.go
- model_serverprivateendpointconnectionproperties.go
- model_serverprivatelinkserviceconnectionstateproperty.go
- model_serverproperties.go
- model_serverpropertiesforcreate.go
- model_serverpropertiesfordefaultcreate.go
- model_serverpropertiesforgeorestore.go
- model_serverpropertiesforreplica.go
- model_serverpropertiesforrestore.go
- model_serverupdateparameters.go
- model_serverupdateparametersproperties.go
- model_sku.go
- model_storageprofile.go
- version.go