Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- OAuth Scopes
- API Declaration
- Resources
- sql.backupRuns.delete
- sql.backupRuns.get
- sql.backupRuns.insert
- sql.backupRuns.list
- sql.databases.delete
- sql.databases.get
- sql.databases.insert
- sql.databases.list
- sql.databases.patch
- sql.databases.update
- sql.flags.list
- sql.instances.addServerCa
- sql.instances.clone
- sql.instances.delete
- sql.instances.demoteMaster
- sql.instances.export
- sql.instances.failover
- sql.instances.get
- sql.instances.import
- sql.instances.insert
- sql.instances.list
- sql.instances.listServerCas
- sql.instances.patch
- sql.instances.promoteReplica
- sql.instances.resetSslConfig
- sql.instances.restart
- sql.instances.restoreBackup
- sql.instances.rotateServerCa
- sql.instances.startReplica
- sql.instances.stopReplica
- sql.instances.truncateLog
- sql.instances.update
- sql.operations.get
- sql.operations.list
- sql.sslCerts.createEphemeral
- sql.sslCerts.delete
- sql.sslCerts.get
- sql.sslCerts.insert
- sql.sslCerts.list
- sql.tiers.list
- sql.users.delete
- sql.users.insert
- sql.users.list
- sql.users.update
- Types
- DemoteMasterMySQLReplicaConfiguration
- SSLCert
- DatabasesListResponse
- InstancesExportRequest
- InstancesListServerCasResponse
- ExportContextSQLExportOptionsMysqlExportOptions
- OnPremisesConfiguration
- OperationsListResponse
- APIWarning
- ImportContext
- Operation
- Settings
- InstancesRotateServerCaRequest
- IPMApping
- Database
- SSLCertsCreateEphemeralRequest
- BinLogCoordinates
- DatabaseInstanceFailoverReplica
- TiersListResponse
- UsersListResponse
- ExportContext
- OperationErrors
- SSLCertsListResponse
- SSLCertsInsertRequest
- IPConfiguration
- MaintenanceWindow
- ImportContextCSVImportOptions
- RotateServerCaContext
- ExportContextCSVExportOptions
- User
- DatabaseInstance
- CloneContext
- Flag
- InstancesFailoverRequest
- BackupRun
- ACLEntry
- DatabaseFlags
- Tier
- MySQLReplicaConfiguration
- SSLCertDetail
- InstancesRestoreBackupRequest
- InstancesDemoteMasterRequest
- BackupRunsListResponse
- OperationError
- TruncateLogContext
- InstancesCloneRequest
- ReplicaConfiguration
- FailoverContext
- SSLCertsInsertResponse
- InstancesListResponse
- DemoteMasterConfiguration
- BackupConfiguration
- InstancesImportRequest
- LocationPreference
- FlagsListResponse
- InstancesTruncateLogRequest
- ExportContextSQLExportOptions
- RestoreBackupContext
- DemoteMasterContext
- SettingsUserLabels
Creates and manages Cloud SQL instances, which provide fully managed MySQL or PostgreSQL databases.
Synopsis
- sQLAdminService :: ServiceConfig
- sqlServiceAdminScope :: Proxy '["https://www.googleapis.com/auth/sqlservice.admin"]
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- type SQLAdminAPI = FlagsListResource :<|> (UsersInsertResource :<|> (UsersListResource :<|> (UsersDeleteResource :<|> (UsersUpdateResource :<|> (TiersListResource :<|> (BackupRunsInsertResource :<|> (BackupRunsListResource :<|> (BackupRunsGetResource :<|> (BackupRunsDeleteResource :<|> (SSLCertsInsertResource :<|> (SSLCertsListResource :<|> (SSLCertsGetResource :<|> (SSLCertsCreateEphemeralResource :<|> (SSLCertsDeleteResource :<|> (InstancesExportResource :<|> (InstancesInsertResource :<|> (InstancesListResource :<|> (InstancesStartReplicaResource :<|> (InstancesCloneResource :<|> (InstancesPatchResource :<|> (InstancesDemoteMasterResource :<|> (InstancesGetResource :<|> (InstancesListServerCasResource :<|> (InstancesRestoreBackupResource :<|> (InstancesAddServerCaResource :<|> (InstancesFailoverResource :<|> (InstancesRestartResource :<|> (InstancesTruncateLogResource :<|> (InstancesImportResource :<|> (InstancesStopReplicaResource :<|> (InstancesResetSSLConfigResource :<|> (InstancesPromoteReplicaResource :<|> (InstancesRotateServerCaResource :<|> (InstancesDeleteResource :<|> (InstancesUpdateResource :<|> (OperationsListResource :<|> (OperationsGetResource :<|> (DatabasesInsertResource :<|> (DatabasesListResource :<|> (DatabasesPatchResource :<|> (DatabasesGetResource :<|> (DatabasesDeleteResource :<|> DatabasesUpdateResource))))))))))))))))))))))))))))))))))))))))))
- module Network.Google.Resource.SQL.BackupRuns.Delete
- module Network.Google.Resource.SQL.BackupRuns.Get
- module Network.Google.Resource.SQL.BackupRuns.Insert
- module Network.Google.Resource.SQL.BackupRuns.List
- module Network.Google.Resource.SQL.Databases.Delete
- module Network.Google.Resource.SQL.Databases.Get
- module Network.Google.Resource.SQL.Databases.Insert
- module Network.Google.Resource.SQL.Databases.List
- module Network.Google.Resource.SQL.Databases.Patch
- module Network.Google.Resource.SQL.Databases.Update
- module Network.Google.Resource.SQL.Flags.List
- module Network.Google.Resource.SQL.Instances.AddServerCa
- module Network.Google.Resource.SQL.Instances.Clone
- module Network.Google.Resource.SQL.Instances.Delete
- module Network.Google.Resource.SQL.Instances.DemoteMaster
- module Network.Google.Resource.SQL.Instances.Export
- module Network.Google.Resource.SQL.Instances.Failover
- module Network.Google.Resource.SQL.Instances.Get
- module Network.Google.Resource.SQL.Instances.Import
- module Network.Google.Resource.SQL.Instances.Insert
- module Network.Google.Resource.SQL.Instances.List
- module Network.Google.Resource.SQL.Instances.ListServerCas
- module Network.Google.Resource.SQL.Instances.Patch
- module Network.Google.Resource.SQL.Instances.PromoteReplica
- module Network.Google.Resource.SQL.Instances.ResetSSLConfig
- module Network.Google.Resource.SQL.Instances.Restart
- module Network.Google.Resource.SQL.Instances.RestoreBackup
- module Network.Google.Resource.SQL.Instances.RotateServerCa
- module Network.Google.Resource.SQL.Instances.StartReplica
- module Network.Google.Resource.SQL.Instances.StopReplica
- module Network.Google.Resource.SQL.Instances.TruncateLog
- module Network.Google.Resource.SQL.Instances.Update
- module Network.Google.Resource.SQL.Operations.Get
- module Network.Google.Resource.SQL.Operations.List
- module Network.Google.Resource.SQL.SSLCerts.CreateEphemeral
- module Network.Google.Resource.SQL.SSLCerts.Delete
- module Network.Google.Resource.SQL.SSLCerts.Get
- module Network.Google.Resource.SQL.SSLCerts.Insert
- module Network.Google.Resource.SQL.SSLCerts.List
- module Network.Google.Resource.SQL.Tiers.List
- module Network.Google.Resource.SQL.Users.Delete
- module Network.Google.Resource.SQL.Users.Insert
- module Network.Google.Resource.SQL.Users.List
- module Network.Google.Resource.SQL.Users.Update
- data DemoteMasterMySQLReplicaConfiguration
- demoteMasterMySQLReplicaConfiguration :: DemoteMasterMySQLReplicaConfiguration
- dmmsqlrcKind :: Lens' DemoteMasterMySQLReplicaConfiguration Text
- dmmsqlrcClientKey :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text)
- dmmsqlrcUsername :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text)
- dmmsqlrcClientCertificate :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text)
- dmmsqlrcCaCertificate :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text)
- dmmsqlrcPassword :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text)
- data SSLCert
- sslCert :: SSLCert
- scCommonName :: Lens' SSLCert (Maybe Text)
- scKind :: Lens' SSLCert Text
- scCertSerialNumber :: Lens' SSLCert (Maybe Text)
- scSelfLink :: Lens' SSLCert (Maybe Text)
- scCert :: Lens' SSLCert (Maybe Text)
- scSha1Fingerprint :: Lens' SSLCert (Maybe Text)
- scExpirationTime :: Lens' SSLCert (Maybe UTCTime)
- scCreateTime :: Lens' SSLCert (Maybe UTCTime)
- scInstance :: Lens' SSLCert (Maybe Text)
- data DatabasesListResponse
- databasesListResponse :: DatabasesListResponse
- dlrKind :: Lens' DatabasesListResponse Text
- dlrItems :: Lens' DatabasesListResponse [Database]
- data InstancesExportRequest
- instancesExportRequest :: InstancesExportRequest
- ierExportContext :: Lens' InstancesExportRequest (Maybe ExportContext)
- data InstancesListServerCasResponse
- instancesListServerCasResponse :: InstancesListServerCasResponse
- ilscrKind :: Lens' InstancesListServerCasResponse Text
- ilscrCerts :: Lens' InstancesListServerCasResponse [SSLCert]
- ilscrActiveVersion :: Lens' InstancesListServerCasResponse (Maybe Text)
- data ExportContextSQLExportOptionsMysqlExportOptions
- exportContextSQLExportOptionsMysqlExportOptions :: ExportContextSQLExportOptionsMysqlExportOptions
- ecsqleomeoMasterData :: Lens' ExportContextSQLExportOptionsMysqlExportOptions (Maybe Int32)
- data OnPremisesConfiguration
- onPremisesConfiguration :: OnPremisesConfiguration
- opcKind :: Lens' OnPremisesConfiguration Text
- opcHostPort :: Lens' OnPremisesConfiguration (Maybe Text)
- data OperationsListResponse
- operationsListResponse :: OperationsListResponse
- olrNextPageToken :: Lens' OperationsListResponse (Maybe Text)
- olrKind :: Lens' OperationsListResponse Text
- olrItems :: Lens' OperationsListResponse [Operation]
- data APIWarning
- apiWarning :: APIWarning
- awCode :: Lens' APIWarning (Maybe Text)
- awMessage :: Lens' APIWarning (Maybe Text)
- data ImportContext
- importContext :: ImportContext
- icDatabase :: Lens' ImportContext (Maybe Text)
- icKind :: Lens' ImportContext Text
- icCSVImportOptions :: Lens' ImportContext (Maybe ImportContextCSVImportOptions)
- icURI :: Lens' ImportContext (Maybe Text)
- icFileType :: Lens' ImportContext (Maybe Text)
- icImportUser :: Lens' ImportContext (Maybe Text)
- data Operation
- operation :: Operation
- oTargetId :: Lens' Operation (Maybe Text)
- oTargetProject :: Lens' Operation (Maybe Text)
- oStatus :: Lens' Operation (Maybe Text)
- oInsertTime :: Lens' Operation (Maybe UTCTime)
- oImportContext :: Lens' Operation (Maybe ImportContext)
- oStartTime :: Lens' Operation (Maybe UTCTime)
- oKind :: Lens' Operation Text
- oError :: Lens' Operation (Maybe OperationErrors)
- oExportContext :: Lens' Operation (Maybe ExportContext)
- oUser :: Lens' Operation (Maybe Text)
- oSelfLink :: Lens' Operation (Maybe Text)
- oName :: Lens' Operation (Maybe Text)
- oEndTime :: Lens' Operation (Maybe UTCTime)
- oOperationType :: Lens' Operation (Maybe Text)
- oTargetLink :: Lens' Operation (Maybe Text)
- data Settings
- settings :: Settings
- sStorageAutoResize :: Lens' Settings (Maybe Bool)
- sReplicationType :: Lens' Settings (Maybe Text)
- sActivationPolicy :: Lens' Settings (Maybe Text)
- sSettingsVersion :: Lens' Settings (Maybe Int64)
- sDataDiskSizeGb :: Lens' Settings (Maybe Int64)
- sAuthorizedGaeApplications :: Lens' Settings [Text]
- sKind :: Lens' Settings Text
- sPricingPlan :: Lens' Settings (Maybe Text)
- sIPConfiguration :: Lens' Settings (Maybe IPConfiguration)
- sMaintenanceWindow :: Lens' Settings (Maybe MaintenanceWindow)
- sDatabaseReplicationEnabled :: Lens' Settings (Maybe Bool)
- sUserLabels :: Lens' Settings (Maybe SettingsUserLabels)
- sTier :: Lens' Settings (Maybe Text)
- sDatabaseFlags :: Lens' Settings [DatabaseFlags]
- sDataDiskType :: Lens' Settings (Maybe Text)
- sCrashSafeReplicationEnabled :: Lens' Settings (Maybe Bool)
- sLocationPreference :: Lens' Settings (Maybe LocationPreference)
- sBackupConfiguration :: Lens' Settings (Maybe BackupConfiguration)
- sAvailabilityType :: Lens' Settings (Maybe Text)
- sStorageAutoResizeLimit :: Lens' Settings (Maybe Int64)
- data InstancesRotateServerCaRequest
- instancesRotateServerCaRequest :: InstancesRotateServerCaRequest
- irscrRotateServerCaContext :: Lens' InstancesRotateServerCaRequest (Maybe RotateServerCaContext)
- data IPMApping
- ipMApping :: IPMApping
- imaIPAddress :: Lens' IPMApping (Maybe Text)
- imaTimeToRetire :: Lens' IPMApping (Maybe UTCTime)
- imaType :: Lens' IPMApping (Maybe Text)
- data Database
- database :: Database
- dEtag :: Lens' Database (Maybe Text)
- dProject :: Lens' Database (Maybe Text)
- dKind :: Lens' Database Text
- dCollation :: Lens' Database (Maybe Text)
- dSelfLink :: Lens' Database (Maybe Text)
- dName :: Lens' Database (Maybe Text)
- dCharSet :: Lens' Database (Maybe Text)
- dInstance :: Lens' Database (Maybe Text)
- data SSLCertsCreateEphemeralRequest
- sslCertsCreateEphemeralRequest :: SSLCertsCreateEphemeralRequest
- sccerPublicKey :: Lens' SSLCertsCreateEphemeralRequest (Maybe Text)
- data BinLogCoordinates
- binLogCoordinates :: BinLogCoordinates
- blcBinLogPosition :: Lens' BinLogCoordinates (Maybe Int64)
- blcKind :: Lens' BinLogCoordinates Text
- blcBinLogFileName :: Lens' BinLogCoordinates (Maybe Text)
- data DatabaseInstanceFailoverReplica
- databaseInstanceFailoverReplica :: DatabaseInstanceFailoverReplica
- difrName :: Lens' DatabaseInstanceFailoverReplica (Maybe Text)
- difrAvailable :: Lens' DatabaseInstanceFailoverReplica (Maybe Bool)
- data TiersListResponse
- tiersListResponse :: TiersListResponse
- tlrKind :: Lens' TiersListResponse Text
- tlrItems :: Lens' TiersListResponse [Tier]
- data UsersListResponse
- usersListResponse :: UsersListResponse
- ulrNextPageToken :: Lens' UsersListResponse (Maybe Text)
- ulrKind :: Lens' UsersListResponse Text
- ulrItems :: Lens' UsersListResponse [User]
- data ExportContext
- exportContext :: ExportContext
- ecCSVExportOptions :: Lens' ExportContext (Maybe ExportContextCSVExportOptions)
- ecKind :: Lens' ExportContext Text
- ecURI :: Lens' ExportContext (Maybe Text)
- ecFileType :: Lens' ExportContext (Maybe Text)
- ecSQLExportOptions :: Lens' ExportContext (Maybe ExportContextSQLExportOptions)
- ecDatabases :: Lens' ExportContext [Text]
- data OperationErrors
- operationErrors :: OperationErrors
- oeKind :: Lens' OperationErrors Text
- oeErrors :: Lens' OperationErrors [OperationError]
- data SSLCertsListResponse
- sslCertsListResponse :: SSLCertsListResponse
- sclrKind :: Lens' SSLCertsListResponse Text
- sclrItems :: Lens' SSLCertsListResponse [SSLCert]
- data SSLCertsInsertRequest
- sslCertsInsertRequest :: SSLCertsInsertRequest
- scirCommonName :: Lens' SSLCertsInsertRequest (Maybe Text)
- data IPConfiguration
- ipConfiguration :: IPConfiguration
- icAuthorizedNetworks :: Lens' IPConfiguration [ACLEntry]
- icPrivateNetwork :: Lens' IPConfiguration (Maybe Text)
- icRequireSSL :: Lens' IPConfiguration (Maybe Bool)
- icIPv4Enabled :: Lens' IPConfiguration (Maybe Bool)
- data MaintenanceWindow
- maintenanceWindow :: MaintenanceWindow
- mwKind :: Lens' MaintenanceWindow Text
- mwDay :: Lens' MaintenanceWindow (Maybe Int32)
- mwHour :: Lens' MaintenanceWindow (Maybe Int32)
- mwUpdateTrack :: Lens' MaintenanceWindow (Maybe Text)
- data ImportContextCSVImportOptions
- importContextCSVImportOptions :: ImportContextCSVImportOptions
- iccioColumns :: Lens' ImportContextCSVImportOptions [Text]
- iccioTable :: Lens' ImportContextCSVImportOptions (Maybe Text)
- data RotateServerCaContext
- rotateServerCaContext :: RotateServerCaContext
- rsccNextVersion :: Lens' RotateServerCaContext (Maybe Text)
- rsccKind :: Lens' RotateServerCaContext Text
- data ExportContextCSVExportOptions
- exportContextCSVExportOptions :: ExportContextCSVExportOptions
- ecceoSelectQuery :: Lens' ExportContextCSVExportOptions (Maybe Text)
- data User
- user :: User
- uEtag :: Lens' User (Maybe Text)
- uProject :: Lens' User (Maybe Text)
- uKind :: Lens' User Text
- uName :: Lens' User (Maybe Text)
- uPassword :: Lens' User (Maybe Text)
- uHost :: Lens' User (Maybe Text)
- uInstance :: Lens' User (Maybe Text)
- data DatabaseInstance
- databaseInstance :: DatabaseInstance
- datBackendType :: Lens' DatabaseInstance (Maybe Text)
- datMaxDiskSize :: Lens' DatabaseInstance (Maybe Int64)
- datOnPremisesConfiguration :: Lens' DatabaseInstance (Maybe OnPremisesConfiguration)
- datGceZone :: Lens' DatabaseInstance (Maybe Text)
- datEtag :: Lens' DatabaseInstance (Maybe Text)
- datState :: Lens' DatabaseInstance (Maybe Text)
- datIPv6Address :: Lens' DatabaseInstance (Maybe Text)
- datServerCaCert :: Lens' DatabaseInstance (Maybe SSLCert)
- datDatabaseVersion :: Lens' DatabaseInstance (Maybe Text)
- datProject :: Lens' DatabaseInstance (Maybe Text)
- datSettings :: Lens' DatabaseInstance (Maybe Settings)
- datKind :: Lens' DatabaseInstance Text
- datConnectionName :: Lens' DatabaseInstance (Maybe Text)
- datCurrentDiskSize :: Lens' DatabaseInstance (Maybe Int64)
- datInstanceType :: Lens' DatabaseInstance (Maybe Text)
- datReplicaNames :: Lens' DatabaseInstance [Text]
- datSelfLink :: Lens' DatabaseInstance (Maybe Text)
- datFailoverReplica :: Lens' DatabaseInstance (Maybe DatabaseInstanceFailoverReplica)
- datName :: Lens' DatabaseInstance (Maybe Text)
- datMasterInstanceName :: Lens' DatabaseInstance (Maybe Text)
- datReplicaConfiguration :: Lens' DatabaseInstance (Maybe ReplicaConfiguration)
- datRegion :: Lens' DatabaseInstance (Maybe Text)
- datServiceAccountEmailAddress :: Lens' DatabaseInstance (Maybe Text)
- datIPAddresses :: Lens' DatabaseInstance [IPMApping]
- datSuspensionReason :: Lens' DatabaseInstance [Text]
- data CloneContext
- cloneContext :: CloneContext
- ccPitrTimestampMs :: Lens' CloneContext (Maybe Int64)
- ccDestinationInstanceName :: Lens' CloneContext (Maybe Text)
- ccBinLogCoordinates :: Lens' CloneContext (Maybe BinLogCoordinates)
- ccKind :: Lens' CloneContext Text
- data Flag
- flag :: Flag
- fMaxValue :: Lens' Flag (Maybe Int64)
- fKind :: Lens' Flag Text
- fAppliesTo :: Lens' Flag [Text]
- fName :: Lens' Flag (Maybe Text)
- fAllowedStringValues :: Lens' Flag [Text]
- fType :: Lens' Flag (Maybe Text)
- fMinValue :: Lens' Flag (Maybe Int64)
- fRequiresRestart :: Lens' Flag (Maybe Bool)
- data InstancesFailoverRequest
- instancesFailoverRequest :: InstancesFailoverRequest
- ifrFailoverContext :: Lens' InstancesFailoverRequest (Maybe FailoverContext)
- data BackupRun
- backupRun :: BackupRun
- brStatus :: Lens' BackupRun (Maybe Text)
- brStartTime :: Lens' BackupRun (Maybe UTCTime)
- brKind :: Lens' BackupRun Text
- brError :: Lens' BackupRun (Maybe OperationError)
- brWindowStartTime :: Lens' BackupRun (Maybe UTCTime)
- brSelfLink :: Lens' BackupRun (Maybe Text)
- brEndTime :: Lens' BackupRun (Maybe UTCTime)
- brId :: Lens' BackupRun (Maybe Int64)
- brType :: Lens' BackupRun (Maybe Text)
- brEnQueuedTime :: Lens' BackupRun (Maybe UTCTime)
- brDescription :: Lens' BackupRun (Maybe Text)
- brInstance :: Lens' BackupRun (Maybe Text)
- data ACLEntry
- aclEntry :: ACLEntry
- aeKind :: Lens' ACLEntry Text
- aeValue :: Lens' ACLEntry (Maybe Text)
- aeName :: Lens' ACLEntry (Maybe Text)
- aeExpirationTime :: Lens' ACLEntry (Maybe UTCTime)
- data DatabaseFlags
- databaseFlags :: DatabaseFlags
- dfValue :: Lens' DatabaseFlags (Maybe Text)
- dfName :: Lens' DatabaseFlags (Maybe Text)
- data Tier
- tier :: Tier
- tKind :: Lens' Tier Text
- tTier :: Lens' Tier (Maybe Text)
- tRegion :: Lens' Tier [Text]
- tDiskQuota :: Lens' Tier (Maybe Int64)
- tRAM :: Lens' Tier (Maybe Int64)
- data MySQLReplicaConfiguration
- mySQLReplicaConfiguration :: MySQLReplicaConfiguration
- msqlrcVerifyServerCertificate :: Lens' MySQLReplicaConfiguration (Maybe Bool)
- msqlrcKind :: Lens' MySQLReplicaConfiguration Text
- msqlrcClientKey :: Lens' MySQLReplicaConfiguration (Maybe Text)
- msqlrcUsername :: Lens' MySQLReplicaConfiguration (Maybe Text)
- msqlrcSSLCipher :: Lens' MySQLReplicaConfiguration (Maybe Text)
- msqlrcMasterHeartbeatPeriod :: Lens' MySQLReplicaConfiguration (Maybe Int64)
- msqlrcConnectRetryInterval :: Lens' MySQLReplicaConfiguration (Maybe Int32)
- msqlrcClientCertificate :: Lens' MySQLReplicaConfiguration (Maybe Text)
- msqlrcCaCertificate :: Lens' MySQLReplicaConfiguration (Maybe Text)
- msqlrcDumpFilePath :: Lens' MySQLReplicaConfiguration (Maybe Text)
- msqlrcPassword :: Lens' MySQLReplicaConfiguration (Maybe Text)
- data SSLCertDetail
- sslCertDetail :: SSLCertDetail
- scdCertInfo :: Lens' SSLCertDetail (Maybe SSLCert)
- scdCertPrivateKey :: Lens' SSLCertDetail (Maybe Text)
- data InstancesRestoreBackupRequest
- instancesRestoreBackupRequest :: InstancesRestoreBackupRequest
- irbrRestoreBackupContext :: Lens' InstancesRestoreBackupRequest (Maybe RestoreBackupContext)
- data InstancesDemoteMasterRequest
- instancesDemoteMasterRequest :: InstancesDemoteMasterRequest
- idmrDemoteMasterContext :: Lens' InstancesDemoteMasterRequest (Maybe DemoteMasterContext)
- data BackupRunsListResponse
- backupRunsListResponse :: BackupRunsListResponse
- brlrNextPageToken :: Lens' BackupRunsListResponse (Maybe Text)
- brlrKind :: Lens' BackupRunsListResponse Text
- brlrItems :: Lens' BackupRunsListResponse [BackupRun]
- data OperationError
- operationError :: OperationError
- opeKind :: Lens' OperationError Text
- opeCode :: Lens' OperationError (Maybe Text)
- opeMessage :: Lens' OperationError (Maybe Text)
- data TruncateLogContext
- truncateLogContext :: TruncateLogContext
- tlcKind :: Lens' TruncateLogContext Text
- tlcLogType :: Lens' TruncateLogContext (Maybe Text)
- data InstancesCloneRequest
- instancesCloneRequest :: InstancesCloneRequest
- icrCloneContext :: Lens' InstancesCloneRequest (Maybe CloneContext)
- data ReplicaConfiguration
- replicaConfiguration :: ReplicaConfiguration
- rcFailoverTarget :: Lens' ReplicaConfiguration (Maybe Bool)
- rcKind :: Lens' ReplicaConfiguration Text
- rcMysqlReplicaConfiguration :: Lens' ReplicaConfiguration (Maybe MySQLReplicaConfiguration)
- data FailoverContext
- failoverContext :: FailoverContext
- fcSettingsVersion :: Lens' FailoverContext (Maybe Int64)
- fcKind :: Lens' FailoverContext Text
- data SSLCertsInsertResponse
- sslCertsInsertResponse :: SSLCertsInsertResponse
- scirServerCaCert :: Lens' SSLCertsInsertResponse (Maybe SSLCert)
- scirOperation :: Lens' SSLCertsInsertResponse (Maybe Operation)
- scirKind :: Lens' SSLCertsInsertResponse Text
- scirClientCert :: Lens' SSLCertsInsertResponse (Maybe SSLCertDetail)
- data InstancesListResponse
- instancesListResponse :: InstancesListResponse
- ilrNextPageToken :: Lens' InstancesListResponse (Maybe Text)
- ilrKind :: Lens' InstancesListResponse Text
- ilrItems :: Lens' InstancesListResponse [DatabaseInstance]
- ilrWarnings :: Lens' InstancesListResponse [APIWarning]
- data DemoteMasterConfiguration
- demoteMasterConfiguration :: DemoteMasterConfiguration
- dmcKind :: Lens' DemoteMasterConfiguration Text
- dmcMysqlReplicaConfiguration :: Lens' DemoteMasterConfiguration (Maybe DemoteMasterMySQLReplicaConfiguration)
- data BackupConfiguration
- backupConfiguration :: BackupConfiguration
- bcReplicationLogArchivingEnabled :: Lens' BackupConfiguration (Maybe Bool)
- bcEnabled :: Lens' BackupConfiguration (Maybe Bool)
- bcStartTime :: Lens' BackupConfiguration (Maybe Text)
- bcKind :: Lens' BackupConfiguration Text
- bcBinaryLogEnabled :: Lens' BackupConfiguration (Maybe Bool)
- data InstancesImportRequest
- instancesImportRequest :: InstancesImportRequest
- iirImportContext :: Lens' InstancesImportRequest (Maybe ImportContext)
- data LocationPreference
- locationPreference :: LocationPreference
- lpKind :: Lens' LocationPreference Text
- lpFollowGaeApplication :: Lens' LocationPreference (Maybe Text)
- lpZone :: Lens' LocationPreference (Maybe Text)
- data FlagsListResponse
- flagsListResponse :: FlagsListResponse
- flrKind :: Lens' FlagsListResponse Text
- flrItems :: Lens' FlagsListResponse [Flag]
- data InstancesTruncateLogRequest
- instancesTruncateLogRequest :: InstancesTruncateLogRequest
- itlrTruncateLogContext :: Lens' InstancesTruncateLogRequest (Maybe TruncateLogContext)
- data ExportContextSQLExportOptions
- exportContextSQLExportOptions :: ExportContextSQLExportOptions
- ecsqleoSchemaOnly :: Lens' ExportContextSQLExportOptions (Maybe Bool)
- ecsqleoMysqlExportOptions :: Lens' ExportContextSQLExportOptions (Maybe ExportContextSQLExportOptionsMysqlExportOptions)
- ecsqleoTables :: Lens' ExportContextSQLExportOptions [Text]
- data RestoreBackupContext
- restoreBackupContext :: RestoreBackupContext
- rbcInstanceId :: Lens' RestoreBackupContext (Maybe Text)
- rbcBackupRunId :: Lens' RestoreBackupContext (Maybe Int64)
- rbcKind :: Lens' RestoreBackupContext Text
- data DemoteMasterContext
- demoteMasterContext :: DemoteMasterContext
- demVerifyGtidConsistency :: Lens' DemoteMasterContext (Maybe Bool)
- demKind :: Lens' DemoteMasterContext Text
- demMasterInstanceName :: Lens' DemoteMasterContext (Maybe Text)
- demReplicaConfiguration :: Lens' DemoteMasterContext (Maybe DemoteMasterConfiguration)
- data SettingsUserLabels
- settingsUserLabels :: HashMap Text Text -> SettingsUserLabels
- sulAddtional :: Lens' SettingsUserLabels (HashMap Text Text)
Service Configuration
sQLAdminService :: ServiceConfig Source #
Default request referring to version v1beta4
of the Cloud SQL Admin API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
sqlServiceAdminScope :: Proxy '["https://www.googleapis.com/auth/sqlservice.admin"] Source #
Manage your Google SQL Service instances
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
API Declaration
type SQLAdminAPI = FlagsListResource :<|> (UsersInsertResource :<|> (UsersListResource :<|> (UsersDeleteResource :<|> (UsersUpdateResource :<|> (TiersListResource :<|> (BackupRunsInsertResource :<|> (BackupRunsListResource :<|> (BackupRunsGetResource :<|> (BackupRunsDeleteResource :<|> (SSLCertsInsertResource :<|> (SSLCertsListResource :<|> (SSLCertsGetResource :<|> (SSLCertsCreateEphemeralResource :<|> (SSLCertsDeleteResource :<|> (InstancesExportResource :<|> (InstancesInsertResource :<|> (InstancesListResource :<|> (InstancesStartReplicaResource :<|> (InstancesCloneResource :<|> (InstancesPatchResource :<|> (InstancesDemoteMasterResource :<|> (InstancesGetResource :<|> (InstancesListServerCasResource :<|> (InstancesRestoreBackupResource :<|> (InstancesAddServerCaResource :<|> (InstancesFailoverResource :<|> (InstancesRestartResource :<|> (InstancesTruncateLogResource :<|> (InstancesImportResource :<|> (InstancesStopReplicaResource :<|> (InstancesResetSSLConfigResource :<|> (InstancesPromoteReplicaResource :<|> (InstancesRotateServerCaResource :<|> (InstancesDeleteResource :<|> (InstancesUpdateResource :<|> (OperationsListResource :<|> (OperationsGetResource :<|> (DatabasesInsertResource :<|> (DatabasesListResource :<|> (DatabasesPatchResource :<|> (DatabasesGetResource :<|> (DatabasesDeleteResource :<|> DatabasesUpdateResource)))))))))))))))))))))))))))))))))))))))))) Source #
Represents the entirety of the methods and resources available for the Cloud SQL Admin API service.
Resources
sql.backupRuns.delete
sql.backupRuns.get
sql.backupRuns.insert
sql.backupRuns.list
sql.databases.delete
sql.databases.get
sql.databases.insert
sql.databases.list
sql.databases.patch
sql.databases.update
sql.flags.list
sql.instances.addServerCa
sql.instances.clone
sql.instances.delete
sql.instances.demoteMaster
sql.instances.export
sql.instances.failover
sql.instances.get
sql.instances.import
sql.instances.insert
sql.instances.list
sql.instances.listServerCas
sql.instances.patch
sql.instances.promoteReplica
sql.instances.resetSslConfig
sql.instances.restart
sql.instances.restoreBackup
sql.instances.rotateServerCa
sql.instances.startReplica
sql.instances.stopReplica
sql.instances.truncateLog
sql.instances.update
sql.operations.get
sql.operations.list
sql.sslCerts.createEphemeral
sql.sslCerts.delete
sql.sslCerts.get
sql.sslCerts.insert
sql.sslCerts.list
sql.tiers.list
sql.users.delete
sql.users.insert
sql.users.list
sql.users.update
Types
DemoteMasterMySQLReplicaConfiguration
data DemoteMasterMySQLReplicaConfiguration Source #
Read-replica configuration specific to MySQL databases.
See: demoteMasterMySQLReplicaConfiguration
smart constructor.
Instances
demoteMasterMySQLReplicaConfiguration :: DemoteMasterMySQLReplicaConfiguration Source #
Creates a value of DemoteMasterMySQLReplicaConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dmmsqlrcKind :: Lens' DemoteMasterMySQLReplicaConfiguration Text Source #
This is always sql#demoteMasterMysqlReplicaConfiguration.
dmmsqlrcUsername :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text) Source #
The username for the replication connection.
dmmsqlrcClientCertificate :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text) Source #
PEM representation of the slave's x509 certificate.
dmmsqlrcCaCertificate :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text) Source #
PEM representation of the trusted CA's x509 certificate.
dmmsqlrcPassword :: Lens' DemoteMasterMySQLReplicaConfiguration (Maybe Text) Source #
The password for the replication connection.
SSLCert
SslCerts Resource
See: sslCert
smart constructor.
Instances
Creates a value of SSLCert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
scCommonName :: Lens' SSLCert (Maybe Text) Source #
User supplied name. Constrained to [a-zA-Z.-_ ]+.
scCertSerialNumber :: Lens' SSLCert (Maybe Text) Source #
Serial number, as extracted from the certificate.
scExpirationTime :: Lens' SSLCert (Maybe UTCTime) Source #
The time when the certificate expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
scCreateTime :: Lens' SSLCert (Maybe UTCTime) Source #
The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z
DatabasesListResponse
data DatabasesListResponse Source #
Database list response.
See: databasesListResponse
smart constructor.
Instances
databasesListResponse :: DatabasesListResponse Source #
Creates a value of DatabasesListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dlrItems :: Lens' DatabasesListResponse [Database] Source #
List of database resources in the instance.
InstancesExportRequest
data InstancesExportRequest Source #
Database instance export request.
See: instancesExportRequest
smart constructor.
Instances
instancesExportRequest :: InstancesExportRequest Source #
Creates a value of InstancesExportRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ierExportContext :: Lens' InstancesExportRequest (Maybe ExportContext) Source #
Contains details about the export operation.
InstancesListServerCasResponse
data InstancesListServerCasResponse Source #
Instances ListServerCas response.
See: instancesListServerCasResponse
smart constructor.
Instances
instancesListServerCasResponse :: InstancesListServerCasResponse Source #
Creates a value of InstancesListServerCasResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ilscrKind :: Lens' InstancesListServerCasResponse Text Source #
This is always sql#instancesListServerCas.
ilscrCerts :: Lens' InstancesListServerCasResponse [SSLCert] Source #
List of server CA certificates for the instance.
ExportContextSQLExportOptionsMysqlExportOptions
data ExportContextSQLExportOptionsMysqlExportOptions Source #
Options for exporting from MySQL.
See: exportContextSQLExportOptionsMysqlExportOptions
smart constructor.
Instances
exportContextSQLExportOptionsMysqlExportOptions :: ExportContextSQLExportOptionsMysqlExportOptions Source #
Creates a value of ExportContextSQLExportOptionsMysqlExportOptions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ecsqleomeoMasterData :: Lens' ExportContextSQLExportOptionsMysqlExportOptions (Maybe Int32) Source #
Option to include SQL statement required to set up replication. If set to 1, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates. If set to 2, the CHANGE MASTER TO statement is written as a SQL comment, and has no effect. All other values are ignored.
OnPremisesConfiguration
data OnPremisesConfiguration Source #
On-premises instance configuration.
See: onPremisesConfiguration
smart constructor.
Instances
onPremisesConfiguration :: OnPremisesConfiguration Source #
Creates a value of OnPremisesConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
opcHostPort :: Lens' OnPremisesConfiguration (Maybe Text) Source #
The host and port of the on-premises instance in host:port format
OperationsListResponse
data OperationsListResponse Source #
Database instance list operations response.
See: operationsListResponse
smart constructor.
Instances
operationsListResponse :: OperationsListResponse Source #
Creates a value of OperationsListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
olrNextPageToken :: Lens' OperationsListResponse (Maybe Text) Source #
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
APIWarning
data APIWarning Source #
An Admin API warning message.
See: apiWarning
smart constructor.
Instances
apiWarning :: APIWarning Source #
Creates a value of APIWarning
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ImportContext
data ImportContext Source #
Database instance import context.
See: importContext
smart constructor.
Instances
importContext :: ImportContext Source #
Creates a value of ImportContext
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
icDatabase :: Lens' ImportContext (Maybe Text) Source #
The target database for the import. If fileType is SQL, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If fileType is CSV, one database must be specified.
icCSVImportOptions :: Lens' ImportContext (Maybe ImportContextCSVImportOptions) Source #
Options for importing data as CSV. Importing CSV data using the Cloud SQL Admin API is not supported for PostgreSQL instances.
icURI :: Lens' ImportContext (Maybe Text) Source #
Path to the import file in Cloud Storage, in the form gs://bucketName/fileName. Compressed gzip files (.gz) are supported when fileType is SQL. The instance must have write permissions to the bucket and read access to the file.
icFileType :: Lens' ImportContext (Maybe Text) Source #
The file type for the specified uri. SQL: The file contains SQL statements. CSV: The file contains CSV data. Importing CSV data using the Cloud SQL Admin API is not supported for PostgreSQL instances.
icImportUser :: Lens' ImportContext (Maybe Text) Source #
The PostgreSQL user for this import operation. Defaults to cloudsqlsuperuser. PostgreSQL instances only.
Operation
An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
See: operation
smart constructor.
Instances
operation :: Operation Source #
Creates a value of Operation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oTargetId :: Lens' Operation (Maybe Text) Source #
Name of the database instance related to this operation.
oTargetProject :: Lens' Operation (Maybe Text) Source #
The project ID of the target instance related to this operation.
oStatus :: Lens' Operation (Maybe Text) Source #
The status of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN.
oInsertTime :: Lens' Operation (Maybe UTCTime) Source #
The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
oImportContext :: Lens' Operation (Maybe ImportContext) Source #
The context for import operation, if applicable.
oStartTime :: Lens' Operation (Maybe UTCTime) Source #
The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
oError :: Lens' Operation (Maybe OperationErrors) Source #
If errors occurred during processing of this operation, this field will be populated.
oExportContext :: Lens' Operation (Maybe ExportContext) Source #
The context for export operation, if applicable.
oUser :: Lens' Operation (Maybe Text) Source #
The email address of the user who initiated this operation.
oName :: Lens' Operation (Maybe Text) Source #
An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
oEndTime :: Lens' Operation (Maybe UTCTime) Source #
The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
oOperationType :: Lens' Operation (Maybe Text) Source #
The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME, CREATE_USER, DELETE_USER, CREATE_DATABASE, DELETE_DATABASE .
Settings
Database instance settings.
See: settings
smart constructor.
Instances
Creates a value of Settings
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sStorageAutoResize
sReplicationType
sActivationPolicy
sSettingsVersion
sDataDiskSizeGb
sAuthorizedGaeApplications
sKind
sPricingPlan
sIPConfiguration
sMaintenanceWindow
sDatabaseReplicationEnabled
sUserLabels
sTier
sDatabaseFlags
sDataDiskType
sCrashSafeReplicationEnabled
sLocationPreference
sBackupConfiguration
sAvailabilityType
sStorageAutoResizeLimit
sStorageAutoResize :: Lens' Settings (Maybe Bool) Source #
Configuration to increase storage size automatically. The default value is true. Not used for First Generation instances.
sReplicationType :: Lens' Settings (Maybe Text) Source #
The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS. This property is only applicable to First Generation instances.
sActivationPolicy :: Lens' Settings (Maybe Text) Source #
The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: ALWAYS: The instance is on, and remains so even in the absence of connection requests. NEVER: The instance is off; it is not activated, even if a connection request arrives. ON_DEMAND: First Generation instances only. The instance responds to incoming requests, and turns itself off when not in use. Instances with PER_USE pricing turn off after 15 minutes of inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours of inactivity.
sSettingsVersion :: Lens' Settings (Maybe Int64) Source #
The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
sDataDiskSizeGb :: Lens' Settings (Maybe Int64) Source #
The size of data disk, in GB. The data disk size minimum is 10GB. Not used for First Generation instances.
sAuthorizedGaeApplications :: Lens' Settings [Text] Source #
The App Engine app IDs that can access this instance. First Generation instances only.
sPricingPlan :: Lens' Settings (Maybe Text) Source #
The pricing plan for this instance. This can be either PER_USE or PACKAGE. Only PER_USE is supported for Second Generation instances.
sIPConfiguration :: Lens' Settings (Maybe IPConfiguration) Source #
The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
sMaintenanceWindow :: Lens' Settings (Maybe MaintenanceWindow) Source #
The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. Not used for First Generation instances.
sDatabaseReplicationEnabled :: Lens' Settings (Maybe Bool) Source #
Configuration specific to read replica instances. Indicates whether replication is enabled or not.
sUserLabels :: Lens' Settings (Maybe SettingsUserLabels) Source #
User-provided labels, represented as a dictionary where each label is a single key value pair.
sTier :: Lens' Settings (Maybe Text) Source #
The tier (or machine type) for this instance, for example db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For MySQL instances, this property determines whether the instance is First or Second Generation. For more information, see Instance Settings.
sDatabaseFlags :: Lens' Settings [DatabaseFlags] Source #
The database flags passed to the instance at startup.
sDataDiskType :: Lens' Settings (Maybe Text) Source #
The type of data disk: PD_SSD (default) or PD_HDD. Not used for First Generation instances.
sCrashSafeReplicationEnabled :: Lens' Settings (Maybe Bool) Source #
Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property is only applicable to First Generation instances.
sLocationPreference :: Lens' Settings (Maybe LocationPreference) Source #
The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location is only applicable to First Generation instances.
sBackupConfiguration :: Lens' Settings (Maybe BackupConfiguration) Source #
The daily backup configuration for the instance.
sAvailabilityType :: Lens' Settings (Maybe Text) Source #
Availability type (PostgreSQL instances only). Potential values: ZONAL: The instance serves data from only one zone. Outages in that zone affect data accessibility. REGIONAL: The instance can serve data from more than one zone in a region (it is highly available). For more information, see Overview of the High Availability Configuration.
sStorageAutoResizeLimit :: Lens' Settings (Maybe Int64) Source #
The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. Not used for First Generation instances.
InstancesRotateServerCaRequest
data InstancesRotateServerCaRequest Source #
Rotate Server CA request.
See: instancesRotateServerCaRequest
smart constructor.
Instances
instancesRotateServerCaRequest :: InstancesRotateServerCaRequest Source #
Creates a value of InstancesRotateServerCaRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
irscrRotateServerCaContext :: Lens' InstancesRotateServerCaRequest (Maybe RotateServerCaContext) Source #
Contains details about the rotate server CA operation.
IPMApping
Database instance IP Mapping.
See: ipMApping
smart constructor.
Instances
Eq IPMApping Source # | |
Data IPMApping Source # | |
Defined in Network.Google.SQLAdmin.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> IPMApping -> c IPMApping # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c IPMApping # toConstr :: IPMApping -> Constr # dataTypeOf :: IPMApping -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c IPMApping) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c IPMApping) # gmapT :: (forall b. Data b => b -> b) -> IPMApping -> IPMApping # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> IPMApping -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> IPMApping -> r # gmapQ :: (forall d. Data d => d -> u) -> IPMApping -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> IPMApping -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> IPMApping -> m IPMApping # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> IPMApping -> m IPMApping # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> IPMApping -> m IPMApping # | |
Show IPMApping Source # | |
Generic IPMApping Source # | |
ToJSON IPMApping Source # | |
Defined in Network.Google.SQLAdmin.Types.Product | |
FromJSON IPMApping Source # | |
type Rep IPMApping Source # | |
Defined in Network.Google.SQLAdmin.Types.Product type Rep IPMApping = D1 (MetaData "IPMApping" "Network.Google.SQLAdmin.Types.Product" "gogol-sqladmin-0.4.0-E7PrzlfFsl19SfOpZznMc2" False) (C1 (MetaCons "IPMApping'" PrefixI True) (S1 (MetaSel (Just "_imaIPAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_imaTimeToRetire") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_imaType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
ipMApping :: IPMApping Source #
Creates a value of IPMApping
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
imaTimeToRetire :: Lens' IPMApping (Maybe UTCTime) Source #
The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.
imaType :: Lens' IPMApping (Maybe Text) Source #
The type of this IP address. A PRIMARY address is an address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported.
Database
Represents a SQL database on the Cloud SQL instance.
See: database
smart constructor.
Instances
dEtag :: Lens' Database (Maybe Text) Source #
This field is deprecated and will be removed from a future version of the API.
dProject :: Lens' Database (Maybe Text) Source #
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
dName :: Lens' Database (Maybe Text) Source #
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
dInstance :: Lens' Database (Maybe Text) Source #
The name of the Cloud SQL instance. This does not include the project ID.
SSLCertsCreateEphemeralRequest
data SSLCertsCreateEphemeralRequest Source #
SslCerts create ephemeral certificate request.
See: sslCertsCreateEphemeralRequest
smart constructor.
Instances
sslCertsCreateEphemeralRequest :: SSLCertsCreateEphemeralRequest Source #
Creates a value of SSLCertsCreateEphemeralRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sccerPublicKey :: Lens' SSLCertsCreateEphemeralRequest (Maybe Text) Source #
PEM encoded public key to include in the signed certificate.
BinLogCoordinates
data BinLogCoordinates Source #
Binary log coordinates.
See: binLogCoordinates
smart constructor.
Instances
binLogCoordinates :: BinLogCoordinates Source #
Creates a value of BinLogCoordinates
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
blcBinLogPosition :: Lens' BinLogCoordinates (Maybe Int64) Source #
Position (offset) within the binary log file.
blcBinLogFileName :: Lens' BinLogCoordinates (Maybe Text) Source #
Name of the binary log file for a Cloud SQL instance.
DatabaseInstanceFailoverReplica
data DatabaseInstanceFailoverReplica Source #
The name and status of the failover replica. This property is applicable only to Second Generation instances.
See: databaseInstanceFailoverReplica
smart constructor.
Instances
databaseInstanceFailoverReplica :: DatabaseInstanceFailoverReplica Source #
Creates a value of DatabaseInstanceFailoverReplica
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
difrName :: Lens' DatabaseInstanceFailoverReplica (Maybe Text) Source #
The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID. This property is applicable only to Second Generation instances.
difrAvailable :: Lens' DatabaseInstanceFailoverReplica (Maybe Bool) Source #
The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The master can only failover to the falover replica when the status is true.
TiersListResponse
data TiersListResponse Source #
Tiers list response.
See: tiersListResponse
smart constructor.
Instances
tiersListResponse :: TiersListResponse Source #
Creates a value of TiersListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
UsersListResponse
data UsersListResponse Source #
User list response.
See: usersListResponse
smart constructor.
Instances
usersListResponse :: UsersListResponse Source #
Creates a value of UsersListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ulrNextPageToken :: Lens' UsersListResponse (Maybe Text) Source #
An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
ExportContext
data ExportContext Source #
Database instance export context.
See: exportContext
smart constructor.
Instances
exportContext :: ExportContext Source #
Creates a value of ExportContext
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ecCSVExportOptions :: Lens' ExportContext (Maybe ExportContextCSVExportOptions) Source #
Options for exporting data as CSV. Exporting in CSV format using the Cloud SQL Admin API is not supported for PostgreSQL instances.
ecURI :: Lens' ExportContext (Maybe Text) Source #
The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form gs://bucketName/fileName. If the file already exists, the requests succeeds, but the operation fails. If fileType is SQL and the filename ends with .gz, the contents are compressed.
ecFileType :: Lens' ExportContext (Maybe Text) Source #
The file type for the specified uri. SQL: The file contains SQL statements. CSV: The file contains CSV data. CSV is not supported for PostgreSQL instances.
ecSQLExportOptions :: Lens' ExportContext (Maybe ExportContextSQLExportOptions) Source #
Options for exporting data as SQL statements.
ecDatabases :: Lens' ExportContext [Text] Source #
Databases to be exported. MySQL instances: If fileType is SQL and no database is specified, all databases are exported, except for the mysql system database. If fileType is CSV, you can specify one database, either by using this property or by using the csvExportOptions.selectQuery property, which takes precedence over this property. PostgreSQL instances: If fileType is SQL, you must specify one database to be exported. A fileType of CSV is not supported for PostgreSQL instances.
OperationErrors
data OperationErrors Source #
Database instance operation errors list wrapper.
See: operationErrors
smart constructor.
Instances
operationErrors :: OperationErrors Source #
Creates a value of OperationErrors
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
oeErrors :: Lens' OperationErrors [OperationError] Source #
The list of errors encountered while processing this operation.
SSLCertsListResponse
data SSLCertsListResponse Source #
SslCerts list response.
See: sslCertsListResponse
smart constructor.
Instances
sslCertsListResponse :: SSLCertsListResponse Source #
Creates a value of SSLCertsListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sclrItems :: Lens' SSLCertsListResponse [SSLCert] Source #
List of client certificates for the instance.
SSLCertsInsertRequest
data SSLCertsInsertRequest Source #
SslCerts insert request.
See: sslCertsInsertRequest
smart constructor.
Instances
sslCertsInsertRequest :: SSLCertsInsertRequest Source #
Creates a value of SSLCertsInsertRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
scirCommonName :: Lens' SSLCertsInsertRequest (Maybe Text) Source #
User supplied name. Must be a distinct name from the other certificates for this instance.
IPConfiguration
data IPConfiguration Source #
IP Management configuration.
See: ipConfiguration
smart constructor.
Instances
ipConfiguration :: IPConfiguration Source #
Creates a value of IPConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
icAuthorizedNetworks :: Lens' IPConfiguration [ACLEntry] Source #
The list of external networks that are allowed to connect to the instance using the IP. In CIDR notation, also known as 'slash' notation (e.g. 192.168.100.0/24).
icPrivateNetwork :: Lens' IPConfiguration (Maybe Text) Source #
The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, /projects/myProject/global/networks/default. This setting can be updated, but it cannot be removed after it is set.
icRequireSSL :: Lens' IPConfiguration (Maybe Bool) Source #
Whether SSL connections over IP should be enforced or not.
icIPv4Enabled :: Lens' IPConfiguration (Maybe Bool) Source #
Whether the instance should be assigned an IP address or not.
MaintenanceWindow
data MaintenanceWindow Source #
Maintenance window. This specifies when a v2 Cloud SQL instance should preferably be restarted for system maintenance purposes.
See: maintenanceWindow
smart constructor.
Instances
maintenanceWindow :: MaintenanceWindow Source #
Creates a value of MaintenanceWindow
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mwUpdateTrack :: Lens' MaintenanceWindow (Maybe Text) Source #
Maintenance timing setting: canary (Earlier) or stable (Later). Learn more.
ImportContextCSVImportOptions
data ImportContextCSVImportOptions Source #
Options for importing data as CSV. Importing CSV data using the Cloud SQL Admin API is not supported for PostgreSQL instances.
See: importContextCSVImportOptions
smart constructor.
Instances
importContextCSVImportOptions :: ImportContextCSVImportOptions Source #
Creates a value of ImportContextCSVImportOptions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
iccioColumns :: Lens' ImportContextCSVImportOptions [Text] Source #
The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
iccioTable :: Lens' ImportContextCSVImportOptions (Maybe Text) Source #
The table to which CSV data is imported.
RotateServerCaContext
data RotateServerCaContext Source #
Instance rotate server CA context.
See: rotateServerCaContext
smart constructor.
Instances
rotateServerCaContext :: RotateServerCaContext Source #
Creates a value of RotateServerCaContext
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rsccNextVersion :: Lens' RotateServerCaContext (Maybe Text) Source #
The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version.
ExportContextCSVExportOptions
data ExportContextCSVExportOptions Source #
Options for exporting data as CSV. Exporting in CSV format using the Cloud SQL Admin API is not supported for PostgreSQL instances.
See: exportContextCSVExportOptions
smart constructor.
Instances
exportContextCSVExportOptions :: ExportContextCSVExportOptions Source #
Creates a value of ExportContextCSVExportOptions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ecceoSelectQuery :: Lens' ExportContextCSVExportOptions (Maybe Text) Source #
The select query used to extract the data.
User
A Cloud SQL user resource.
See: user
smart constructor.
Instances
uEtag :: Lens' User (Maybe Text) Source #
This field is deprecated and will be removed from a future version of the API.
uProject :: Lens' User (Maybe Text) Source #
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for update since it is already specified on the URL.
uName :: Lens' User (Maybe Text) Source #
The name of the user in the Cloud SQL instance. Can be omitted for update since it is already specified in the URL.
uHost :: Lens' User (Maybe Text) Source #
The host name from which the user can connect. For insert operations, host defaults to an empty string. For update operations, host is specified as part of the request URL. The host name cannot be updated after insertion.
uInstance :: Lens' User (Maybe Text) Source #
The name of the Cloud SQL instance. This does not include the project ID. Can be omitted for update since it is already specified on the URL.
DatabaseInstance
data DatabaseInstance Source #
A Cloud SQL instance resource.
See: databaseInstance
smart constructor.
Instances
databaseInstance :: DatabaseInstance Source #
Creates a value of DatabaseInstance
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
datBackendType
datMaxDiskSize
datOnPremisesConfiguration
datGceZone
datEtag
datState
datIPv6Address
datServerCaCert
datDatabaseVersion
datProject
datSettings
datKind
datConnectionName
datCurrentDiskSize
datInstanceType
datReplicaNames
datSelfLink
datFailoverReplica
datName
datMasterInstanceName
datReplicaConfiguration
datRegion
datServiceAccountEmailAddress
datIPAddresses
datSuspensionReason
datBackendType :: Lens' DatabaseInstance (Maybe Text) Source #
FIRST_GEN: First Generation instance. MySQL only. SECOND_GEN: Second Generation instance or PostgreSQL instance. EXTERNAL: A database server that is not managed by Google. This property is read-only; use the tier property in the settings object to determine the database type and Second or First Generation.
datMaxDiskSize :: Lens' DatabaseInstance (Maybe Int64) Source #
The maximum disk size of the instance in bytes.
datOnPremisesConfiguration :: Lens' DatabaseInstance (Maybe OnPremisesConfiguration) Source #
Configuration specific to on-premises instances.
datGceZone :: Lens' DatabaseInstance (Maybe Text) Source #
The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone.
datEtag :: Lens' DatabaseInstance (Maybe Text) Source #
This field is deprecated and will be removed from a future version of the API. Use the settings.settingsVersion field instead.
datState :: Lens' DatabaseInstance (Maybe Text) Source #
The current serving state of the Cloud SQL instance. This can be one of the following. RUNNABLE: The instance is running, or is ready to run when accessed. SUSPENDED: The instance is not available, for example due to problems with billing. PENDING_CREATE: The instance is being created. MAINTENANCE: The instance is down for maintenance. FAILED: The instance creation failed. UNKNOWN_STATE: The state of the instance is unknown.
datIPv6Address :: Lens' DatabaseInstance (Maybe Text) Source #
The IPv6 address assigned to the instance. This property is applicable only to First Generation instances.
datServerCaCert :: Lens' DatabaseInstance (Maybe SSLCert) Source #
SSL configuration.
datDatabaseVersion :: Lens' DatabaseInstance (Maybe Text) Source #
The database engine type and version. The databaseVersion field can not be changed after instance creation. MySQL Second Generation instances: MYSQL_5_7 (default) or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6 MySQL First Generation instances: MYSQL_5_6 (default) or MYSQL_5_5
datProject :: Lens' DatabaseInstance (Maybe Text) Source #
The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
datSettings :: Lens' DatabaseInstance (Maybe Settings) Source #
The user settings.
datConnectionName :: Lens' DatabaseInstance (Maybe Text) Source #
Connection name of the Cloud SQL instance used in connection strings.
datCurrentDiskSize :: Lens' DatabaseInstance (Maybe Int64) Source #
The current disk usage of the instance in bytes. This property has been deprecated. Users should use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see this announcement for details.
datInstanceType :: Lens' DatabaseInstance (Maybe Text) Source #
The instance type. This can be one of the following. CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a master. ON_PREMISES_INSTANCE: An instance running on the customer's premises. READ_REPLICA_INSTANCE: A Cloud SQL instance configured as a read-replica.
datReplicaNames :: Lens' DatabaseInstance [Text] Source #
The replicas of the instance.
datSelfLink :: Lens' DatabaseInstance (Maybe Text) Source #
The URI of this resource.
datFailoverReplica :: Lens' DatabaseInstance (Maybe DatabaseInstanceFailoverReplica) Source #
The name and status of the failover replica. This property is applicable only to Second Generation instances.
datName :: Lens' DatabaseInstance (Maybe Text) Source #
Name of the Cloud SQL instance. This does not include the project ID.
datMasterInstanceName :: Lens' DatabaseInstance (Maybe Text) Source #
The name of the instance which will act as master in the replication setup.
datReplicaConfiguration :: Lens' DatabaseInstance (Maybe ReplicaConfiguration) Source #
Configuration specific to failover replicas and read replicas.
datRegion :: Lens' DatabaseInstance (Maybe Text) Source #
The geographical region. Can be us-central (FIRST_GEN instances only), us-central1 (SECOND_GEN instances only), asia-east1 or europe-west1. Defaults to us-central or us-central1 depending on the instance type (First Generation or Second Generation). The region can not be changed after instance creation.
datServiceAccountEmailAddress :: Lens' DatabaseInstance (Maybe Text) Source #
The service account email address assigned to the instance. This property is applicable only to Second Generation instances.
datIPAddresses :: Lens' DatabaseInstance [IPMApping] Source #
The assigned IP addresses for the instance.
datSuspensionReason :: Lens' DatabaseInstance [Text] Source #
If the instance state is SUSPENDED, the reason for the suspension.
CloneContext
data CloneContext Source #
Database instance clone context.
See: cloneContext
smart constructor.
Instances
cloneContext :: CloneContext Source #
Creates a value of CloneContext
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccPitrTimestampMs :: Lens' CloneContext (Maybe Int64) Source #
Reserved for future use.
ccDestinationInstanceName :: Lens' CloneContext (Maybe Text) Source #
Name of the Cloud SQL instance to be created as a clone.
ccBinLogCoordinates :: Lens' CloneContext (Maybe BinLogCoordinates) Source #
Binary log coordinates, if specified, identify the position up to which the source instance should be cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
Flag
A flag resource.
See: flag
smart constructor.
Instances
Creates a value of Flag
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fAppliesTo :: Lens' Flag [Text] Source #
The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or MYSQL_5_7. MYSQL_5_7 is applicable only to Second Generation instances.
fName :: Lens' Flag (Maybe Text) Source #
This is the name of the flag. Flag names always use underscores, not hyphens, e.g. max_allowed_packet
fAllowedStringValues :: Lens' Flag [Text] Source #
For STRING flags, a list of strings that the value can be set to.
fType :: Lens' Flag (Maybe Text) Source #
The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags which do not take a value, such as skip_grant_tables.
fRequiresRestart :: Lens' Flag (Maybe Bool) Source #
Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.
InstancesFailoverRequest
data InstancesFailoverRequest Source #
Instance failover request.
See: instancesFailoverRequest
smart constructor.
Instances
instancesFailoverRequest :: InstancesFailoverRequest Source #
Creates a value of InstancesFailoverRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ifrFailoverContext :: Lens' InstancesFailoverRequest (Maybe FailoverContext) Source #
Failover Context.
BackupRun
A BackupRun resource.
See: backupRun
smart constructor.
Instances
backupRun :: BackupRun Source #
Creates a value of BackupRun
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
brStartTime :: Lens' BackupRun (Maybe UTCTime) Source #
The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
brError :: Lens' BackupRun (Maybe OperationError) Source #
Information about why the backup operation failed. This is only present if the run has the FAILED status.
brWindowStartTime :: Lens' BackupRun (Maybe UTCTime) Source #
The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
brEndTime :: Lens' BackupRun (Maybe UTCTime) Source #
The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
brId :: Lens' BackupRun (Maybe Int64) Source #
The identifier for this backup run. Unique only for a specific Cloud SQL instance.
brType :: Lens' BackupRun (Maybe Text) Source #
The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
brEnQueuedTime :: Lens' BackupRun (Maybe UTCTime) Source #
The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
brDescription :: Lens' BackupRun (Maybe Text) Source #
The description of this run, only applicable to on-demand backups.
ACLEntry
An entry for an Access Control list.
See: aclEntry
smart constructor.
Instances
Eq ACLEntry Source # | |
Data ACLEntry Source # | |
Defined in Network.Google.SQLAdmin.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ACLEntry -> c ACLEntry # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ACLEntry # toConstr :: ACLEntry -> Constr # dataTypeOf :: ACLEntry -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ACLEntry) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ACLEntry) # gmapT :: (forall b. Data b => b -> b) -> ACLEntry -> ACLEntry # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ACLEntry -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ACLEntry -> r # gmapQ :: (forall d. Data d => d -> u) -> ACLEntry -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ACLEntry -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ACLEntry -> m ACLEntry # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ACLEntry -> m ACLEntry # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ACLEntry -> m ACLEntry # | |
Show ACLEntry Source # | |
Generic ACLEntry Source # | |
ToJSON ACLEntry Source # | |
Defined in Network.Google.SQLAdmin.Types.Product | |
FromJSON ACLEntry Source # | |
type Rep ACLEntry Source # | |
Defined in Network.Google.SQLAdmin.Types.Product type Rep ACLEntry = D1 (MetaData "ACLEntry" "Network.Google.SQLAdmin.Types.Product" "gogol-sqladmin-0.4.0-E7PrzlfFsl19SfOpZznMc2" False) (C1 (MetaCons "ACLEntry'" PrefixI True) ((S1 (MetaSel (Just "_aeKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aeValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_aeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_aeExpirationTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))))) |
Creates a value of ACLEntry
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aeExpirationTime :: Lens' ACLEntry (Maybe UTCTime) Source #
The time when this access control entry expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
DatabaseFlags
data DatabaseFlags Source #
Database flags for Cloud SQL instances.
See: databaseFlags
smart constructor.
Instances
databaseFlags :: DatabaseFlags Source #
Creates a value of DatabaseFlags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dfValue :: Lens' DatabaseFlags (Maybe Text) Source #
The value of the flag. Booleans should be set to on for true and off for false. This field must be omitted if the flag doesn't take a value.
dfName :: Lens' DatabaseFlags (Maybe Text) Source #
The name of the flag. These flags are passed at instance startup, so include both server options and system variables for MySQL. Flags should be specified with underscores, not hyphens. For more information, see Configuring Database Flags in the Cloud SQL documentation.
Tier
A Google Cloud SQL service tier resource.
See: tier
smart constructor.
Instances
Eq Tier Source # | |
Data Tier Source # | |
Defined in Network.Google.SQLAdmin.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Tier -> c Tier # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Tier # dataTypeOf :: Tier -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Tier) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Tier) # gmapT :: (forall b. Data b => b -> b) -> Tier -> Tier # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Tier -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Tier -> r # gmapQ :: (forall d. Data d => d -> u) -> Tier -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Tier -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Tier -> m Tier # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Tier -> m Tier # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Tier -> m Tier # | |
Show Tier Source # | |
Generic Tier Source # | |
ToJSON Tier Source # | |
Defined in Network.Google.SQLAdmin.Types.Product | |
FromJSON Tier Source # | |
type Rep Tier Source # | |
Defined in Network.Google.SQLAdmin.Types.Product type Rep Tier = D1 (MetaData "Tier" "Network.Google.SQLAdmin.Types.Product" "gogol-sqladmin-0.4.0-E7PrzlfFsl19SfOpZznMc2" False) (C1 (MetaCons "Tier'" PrefixI True) ((S1 (MetaSel (Just "_tKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tTier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_tRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_tDiskQuota") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_tRAM") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))) |
tTier :: Lens' Tier (Maybe Text) Source #
An identifier for the machine type, for example, db-n1-standard-1. For related information, see Pricing.
MySQLReplicaConfiguration
data MySQLReplicaConfiguration Source #
Read-replica configuration specific to MySQL databases.
See: mySQLReplicaConfiguration
smart constructor.
Instances
mySQLReplicaConfiguration :: MySQLReplicaConfiguration Source #
Creates a value of MySQLReplicaConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
msqlrcVerifyServerCertificate :: Lens' MySQLReplicaConfiguration (Maybe Bool) Source #
Whether or not to check the master's Common Name value in the certificate that it sends during the SSL handshake.
msqlrcKind :: Lens' MySQLReplicaConfiguration Text Source #
This is always sql#mysqlReplicaConfiguration.
msqlrcClientKey :: Lens' MySQLReplicaConfiguration (Maybe Text) Source #
PEM representation of the slave's private key. The corresponsing public key is encoded in the client's certificate.
msqlrcUsername :: Lens' MySQLReplicaConfiguration (Maybe Text) Source #
The username for the replication connection.
msqlrcSSLCipher :: Lens' MySQLReplicaConfiguration (Maybe Text) Source #
A list of permissible ciphers to use for SSL encryption.
msqlrcMasterHeartbeatPeriod :: Lens' MySQLReplicaConfiguration (Maybe Int64) Source #
Interval in milliseconds between replication heartbeats.
msqlrcConnectRetryInterval :: Lens' MySQLReplicaConfiguration (Maybe Int32) Source #
Seconds to wait between connect retries. MySQL's default is 60 seconds.
msqlrcClientCertificate :: Lens' MySQLReplicaConfiguration (Maybe Text) Source #
PEM representation of the slave's x509 certificate.
msqlrcCaCertificate :: Lens' MySQLReplicaConfiguration (Maybe Text) Source #
PEM representation of the trusted CA's x509 certificate.
msqlrcDumpFilePath :: Lens' MySQLReplicaConfiguration (Maybe Text) Source #
Path to a SQL dump file in Google Cloud Storage from which the slave instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps should have the binlog co-ordinates from which replication should begin. This can be accomplished by setting --master-data to 1 when using mysqldump.
msqlrcPassword :: Lens' MySQLReplicaConfiguration (Maybe Text) Source #
The password for the replication connection.
SSLCertDetail
data SSLCertDetail Source #
SslCertDetail.
See: sslCertDetail
smart constructor.
Instances
sslCertDetail :: SSLCertDetail Source #
Creates a value of SSLCertDetail
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
scdCertInfo :: Lens' SSLCertDetail (Maybe SSLCert) Source #
The public information about the cert.
scdCertPrivateKey :: Lens' SSLCertDetail (Maybe Text) Source #
The private key for the client cert, in pem format. Keep private in order to protect your security.
InstancesRestoreBackupRequest
data InstancesRestoreBackupRequest Source #
Database instance restore backup request.
See: instancesRestoreBackupRequest
smart constructor.
Instances
instancesRestoreBackupRequest :: InstancesRestoreBackupRequest Source #
Creates a value of InstancesRestoreBackupRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
irbrRestoreBackupContext :: Lens' InstancesRestoreBackupRequest (Maybe RestoreBackupContext) Source #
Parameters required to perform the restore backup operation.
InstancesDemoteMasterRequest
data InstancesDemoteMasterRequest Source #
Database demote master request.
See: instancesDemoteMasterRequest
smart constructor.
Instances
instancesDemoteMasterRequest :: InstancesDemoteMasterRequest Source #
Creates a value of InstancesDemoteMasterRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
idmrDemoteMasterContext :: Lens' InstancesDemoteMasterRequest (Maybe DemoteMasterContext) Source #
Contains details about the demoteMaster operation.
BackupRunsListResponse
data BackupRunsListResponse Source #
Backup run list results.
See: backupRunsListResponse
smart constructor.
Instances
backupRunsListResponse :: BackupRunsListResponse Source #
Creates a value of BackupRunsListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
brlrNextPageToken :: Lens' BackupRunsListResponse (Maybe Text) Source #
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
brlrItems :: Lens' BackupRunsListResponse [BackupRun] Source #
A list of backup runs in reverse chronological order of the enqueued time.
OperationError
data OperationError Source #
Database instance operation error.
See: operationError
smart constructor.
Instances
operationError :: OperationError Source #
Creates a value of OperationError
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
opeMessage :: Lens' OperationError (Maybe Text) Source #
Additional information about the error encountered.
TruncateLogContext
data TruncateLogContext Source #
Database Instance truncate log context.
See: truncateLogContext
smart constructor.
Instances
truncateLogContext :: TruncateLogContext Source #
Creates a value of TruncateLogContext
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tlcLogType :: Lens' TruncateLogContext (Maybe Text) Source #
The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and MYSQL_SLOW_TABLE.
InstancesCloneRequest
data InstancesCloneRequest Source #
Database instance clone request.
See: instancesCloneRequest
smart constructor.
Instances
instancesCloneRequest :: InstancesCloneRequest Source #
Creates a value of InstancesCloneRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
icrCloneContext :: Lens' InstancesCloneRequest (Maybe CloneContext) Source #
Contains details about the clone operation.
ReplicaConfiguration
data ReplicaConfiguration Source #
Read-replica configuration for connecting to the master.
See: replicaConfiguration
smart constructor.
Instances
replicaConfiguration :: ReplicaConfiguration Source #
Creates a value of ReplicaConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rcFailoverTarget :: Lens' ReplicaConfiguration (Maybe Bool) Source #
Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. In case the master instance fails, the replica instance will be promoted as the new master instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the master instance.
rcMysqlReplicaConfiguration :: Lens' ReplicaConfiguration (Maybe MySQLReplicaConfiguration) Source #
MySQL specific configuration when replicating from a MySQL on-premises master. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named master.info in the data directory.
FailoverContext
data FailoverContext Source #
Database instance failover context.
See: failoverContext
smart constructor.
Instances
failoverContext :: FailoverContext Source #
Creates a value of FailoverContext
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
fcSettingsVersion :: Lens' FailoverContext (Maybe Int64) Source #
The current settings version of this instance. Request will be rejected if this version doesn't match the current settings version.
SSLCertsInsertResponse
data SSLCertsInsertResponse Source #
SslCert insert response.
See: sslCertsInsertResponse
smart constructor.
Instances
sslCertsInsertResponse :: SSLCertsInsertResponse Source #
Creates a value of SSLCertsInsertResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
scirServerCaCert :: Lens' SSLCertsInsertResponse (Maybe SSLCert) Source #
The server Certificate Authority's certificate. If this is missing you can force a new one to be generated by calling resetSslConfig method on instances resource.
scirOperation :: Lens' SSLCertsInsertResponse (Maybe Operation) Source #
The operation to track the ssl certs insert request.
scirClientCert :: Lens' SSLCertsInsertResponse (Maybe SSLCertDetail) Source #
The new client certificate and private key. For First Generation instances, the new certificate does not take effect until the instance is restarted.
InstancesListResponse
data InstancesListResponse Source #
Database instances list response.
See: instancesListResponse
smart constructor.
Instances
instancesListResponse :: InstancesListResponse Source #
Creates a value of InstancesListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ilrNextPageToken :: Lens' InstancesListResponse (Maybe Text) Source #
The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
ilrItems :: Lens' InstancesListResponse [DatabaseInstance] Source #
List of database instance resources.
ilrWarnings :: Lens' InstancesListResponse [APIWarning] Source #
List of warnings that ocurred while handling the request.
DemoteMasterConfiguration
data DemoteMasterConfiguration Source #
Read-replica configuration for connecting to the on-premises master.
See: demoteMasterConfiguration
smart constructor.
Instances
demoteMasterConfiguration :: DemoteMasterConfiguration Source #
Creates a value of DemoteMasterConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dmcKind :: Lens' DemoteMasterConfiguration Text Source #
This is always sql#demoteMasterConfiguration.
dmcMysqlReplicaConfiguration :: Lens' DemoteMasterConfiguration (Maybe DemoteMasterMySQLReplicaConfiguration) Source #
MySQL specific configuration when replicating from a MySQL on-premises master. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named master.info in the data directory.
BackupConfiguration
data BackupConfiguration Source #
Database instance backup configuration.
See: backupConfiguration
smart constructor.
Instances
backupConfiguration :: BackupConfiguration Source #
Creates a value of BackupConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bcReplicationLogArchivingEnabled :: Lens' BackupConfiguration (Maybe Bool) Source #
Reserved for future use.
bcStartTime :: Lens' BackupConfiguration (Maybe Text) Source #
Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.
bcBinaryLogEnabled :: Lens' BackupConfiguration (Maybe Bool) Source #
Whether binary log is enabled. If backup configuration is disabled, binary log must be disabled as well.
InstancesImportRequest
data InstancesImportRequest Source #
Database instance import request.
See: instancesImportRequest
smart constructor.
Instances
instancesImportRequest :: InstancesImportRequest Source #
Creates a value of InstancesImportRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
iirImportContext :: Lens' InstancesImportRequest (Maybe ImportContext) Source #
Contains details about the import operation.
LocationPreference
data LocationPreference Source #
Preferred location. This specifies where a Cloud SQL instance should preferably be located, either in a specific Compute Engine zone, or co-located with an App Engine application. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified.
See: locationPreference
smart constructor.
Instances
locationPreference :: LocationPreference Source #
Creates a value of LocationPreference
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lpFollowGaeApplication :: Lens' LocationPreference (Maybe Text) Source #
The AppEngine application to follow, it must be in the same region as the Cloud SQL instance.
lpZone :: Lens' LocationPreference (Maybe Text) Source #
The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b, etc.).
FlagsListResponse
data FlagsListResponse Source #
Flags list response.
See: flagsListResponse
smart constructor.
Instances
flagsListResponse :: FlagsListResponse Source #
Creates a value of FlagsListResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
InstancesTruncateLogRequest
data InstancesTruncateLogRequest Source #
Instance truncate log request.
See: instancesTruncateLogRequest
smart constructor.
Instances
instancesTruncateLogRequest :: InstancesTruncateLogRequest Source #
Creates a value of InstancesTruncateLogRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
itlrTruncateLogContext :: Lens' InstancesTruncateLogRequest (Maybe TruncateLogContext) Source #
Contains details about the truncate log operation.
ExportContextSQLExportOptions
data ExportContextSQLExportOptions Source #
Options for exporting data as SQL statements.
See: exportContextSQLExportOptions
smart constructor.
Instances
exportContextSQLExportOptions :: ExportContextSQLExportOptions Source #
Creates a value of ExportContextSQLExportOptions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ecsqleoSchemaOnly :: Lens' ExportContextSQLExportOptions (Maybe Bool) Source #
Export only schemas.
ecsqleoMysqlExportOptions :: Lens' ExportContextSQLExportOptions (Maybe ExportContextSQLExportOptionsMysqlExportOptions) Source #
Options for exporting from MySQL.
ecsqleoTables :: Lens' ExportContextSQLExportOptions [Text] Source #
Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.
RestoreBackupContext
data RestoreBackupContext Source #
Database instance restore from backup context.
See: restoreBackupContext
smart constructor.
Instances
restoreBackupContext :: RestoreBackupContext Source #
Creates a value of RestoreBackupContext
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rbcInstanceId :: Lens' RestoreBackupContext (Maybe Text) Source #
The ID of the instance that the backup was taken from.
rbcBackupRunId :: Lens' RestoreBackupContext (Maybe Int64) Source #
The ID of the backup run to restore from.
DemoteMasterContext
data DemoteMasterContext Source #
Database instance demote master context.
See: demoteMasterContext
smart constructor.
Instances
demoteMasterContext :: DemoteMasterContext Source #
Creates a value of DemoteMasterContext
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
demVerifyGtidConsistency :: Lens' DemoteMasterContext (Maybe Bool) Source #
Verify GTID consistency for demote operation. Default value: True. Second Generation instances only. Setting this flag to false enables you to bypass GTID consistency check between on-premises master and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
demMasterInstanceName :: Lens' DemoteMasterContext (Maybe Text) Source #
The name of the instance which will act as on-premises master in the replication setup.
demReplicaConfiguration :: Lens' DemoteMasterContext (Maybe DemoteMasterConfiguration) Source #
Configuration specific to read-replicas replicating from the on-premises master.
SettingsUserLabels
data SettingsUserLabels Source #
User-provided labels, represented as a dictionary where each label is a single key value pair.
See: settingsUserLabels
smart constructor.
Instances
Creates a value of SettingsUserLabels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sulAddtional :: Lens' SettingsUserLabels (HashMap Text Text) Source #
An individual label entry, composed of a key and a value.