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
- SSLCert
- DatabasesListResponse
- InstancesExportRequest
- OnPremisesConfiguration
- OperationsListResponse
- ImportContext
- Operation
- Settings
- IPMApping
- Database
- SSLCertsCreateEphemeralRequest
- BinLogCoordinates
- DatabaseInstanceFailoverReplica
- TiersListResponse
- UsersListResponse
- ExportContext
- OperationErrors
- SSLCertsListResponse
- SSLCertsInsertRequest
- IPConfiguration
- MaintenanceWindow
- ImportContextCSVImportOptions
- ExportContextCSVExportOptions
- User
- DatabaseInstance
- CloneContext
- Flag
- InstancesFailoverRequest
- BackupRun
- ACLEntry
- DatabaseFlags
- Tier
- MySQLReplicaConfiguration
- SSLCertDetail
- InstancesRestoreBackupRequest
- BackupRunsListResponse
- OperationError
- TruncateLogContext
- InstancesCloneRequest
- ReplicaConfiguration
- FailoverContext
- SSLCertsInsertResponse
- InstancesListResponse
- BackupConfiguration
- InstancesImportRequest
- LocationPreference
- FlagsListResponse
- InstancesTruncateLogRequest
- ExportContextSQLExportOptions
- RestoreBackupContext
- sQLAdminService :: ServiceConfig
- sqlServiceAdminScope :: Proxy '["https://www.googleapis.com/auth/sqlservice.admin"]
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- 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 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 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)
- 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)
- 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)
- 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]
- 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 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)
- 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
- 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 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]
- data BackupConfiguration
- backupConfiguration :: BackupConfiguration
- 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)
- ecsqleoTables :: Lens' ExportContextSQLExportOptions [Text]
- data RestoreBackupContext
- restoreBackupContext :: RestoreBackupContext
- rbcInstanceId :: Lens' RestoreBackupContext (Maybe Text)
- rbcBackupRunId :: Lens' RestoreBackupContext (Maybe Int64)
- rbcKind :: Lens' RestoreBackupContext Text
Service Configuration
sQLAdminService :: ServiceConfig Source #
Default request referring to version v1beta4
of the Cloud SQL Administration 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
SSLCert
SslCerts Resource
See: sslCert
smart constructor.
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.
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.
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.
OnPremisesConfiguration
data OnPremisesConfiguration Source #
On-premises instance configuration.
See: onPremisesConfiguration
smart constructor.
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.
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.
ImportContext
data ImportContext Source #
Database instance import context.
See: importContext
smart constructor.
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 database (for example, guestbook) to which the import is made. If fileType is SQL and no database is specified, it is assumed that the database is specified in the file to be imported. If fileType is CSV, it must be specified.
icCSVImportOptions :: Lens' ImportContext (Maybe ImportContextCSVImportOptions) Source #
Options for importing data as CSV.
icURI :: Lens' ImportContext (Maybe Text) Source #
A path to the file in Google Cloud Storage from which the import is made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are supported when fileType is SQL.
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.
Operation
An Operations resource contains information about database instance operations such as create, delete, and restart. Operations resources are created in response to operations that were initiated; you never create them directly.
See: operation
smart constructor.
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 .
oTargetLink :: Lens' Operation (Maybe Text) Source #
The URI of the instance related to the operation.
Settings
Database instance settings.
See: settings
smart constructor.
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 :: Lens' Settings (Maybe Bool) Source #
Configuration to increase storage size automatically. The default value is false. Applies only to Second 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. The activation policy cannot be updated together with other settings for Second Generation instances. Valid values: ALWAYS: The instance is on; it is not deactivated by inactivity. NEVER: The instance is off; it is not activated, even if a connection request arrives. ON_DEMAND: 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. Applies only to Second Generation instances.
sAuthorizedGaeApplications :: Lens' Settings [Text] Source #
The App Engine app IDs that can access this instance. This property is only applicable to First Generation instances.
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 may be restarted for maintenance purposes. Applies only to Second Generation instances.
sDatabaseReplicationEnabled :: Lens' Settings (Maybe Bool) Source #
Configuration specific to read replica instances. Indicates whether replication is enabled or not.
sTier :: Lens' Settings (Maybe Text) Source #
The tier of service for this instance, for example D1, D2. For more information, see pricing.
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. Only supported for Second Generation instances. The default type is PD_SSD. Applies only to Second 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 GCE 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.
IPMApping
Database instance IP Mapping.
See: ipMApping
smart constructor.
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
A database resource inside a Cloud SQL instance.
See: database
smart constructor.
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.
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.
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.
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.
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.
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.
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.
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 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.
ecSQLExportOptions :: Lens' ExportContext (Maybe ExportContextSQLExportOptions) Source #
Options for exporting data as SQL statements.
ecDatabases :: Lens' ExportContext [Text] Source #
Databases (for example, guestbook) from which the export is made. If fileType is SQL and no database is specified, all databases are exported. If fileType is CSV, you can optionally specify at most one database to export. If csvExportOptions.selectQuery also specifies the database, this field will be ignored.
OperationErrors
data OperationErrors Source #
Database instance operation errors list wrapper.
See: operationErrors
smart constructor.
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.
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.
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. New certificates will not be usable until the instance is restarted.
IPConfiguration
data IPConfiguration Source #
IP Management configuration.
See: ipConfiguration
smart constructor.
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).
icRequireSSL :: Lens' IPConfiguration (Maybe Bool) Source #
Whether the mysqld should default to 'REQUIRE X509' for users connecting over IP.
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 puruposes.
See: maintenanceWindow
smart constructor.
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:
ImportContextCSVImportOptions
data ImportContextCSVImportOptions Source #
Options for importing data as CSV.
See: importContextCSVImportOptions
smart constructor.
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.
ExportContextCSVExportOptions
data ExportContextCSVExportOptions Source #
Options for exporting data as CSV.
See: exportContextCSVExportOptions
smart constructor.
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.
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 on 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.
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
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: Basic Cloud SQL instance that runs in a Google-managed container. SECOND_GEN: A newer Cloud SQL backend that runs in a Compute Engine VM. EXTERNAL: A MySQL server that is not managed by Google.
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.
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 can not be changed after instance creation. Can be MYSQL_5_5, MYSQL_5_6 or MYSQL_5_7. Defaults to MYSQL_5_6. MYSQL_5_7 is applicable only to Second Generation instances.
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 https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ 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 read-replicas replicating from on-premises masters.
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.
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:
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, indentify the 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 coordintes.
Flag
A Google Cloud SQL service flag resource.
See: flag
smart constructor.
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.
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 database instance backup run resource.
See: backupRun
smart constructor.
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 #
A unique identifier for this backup run. Note that this is unique only within the scope of a particular 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.
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 #
MySQL flags for Cloud SQL instances.
See: databaseFlags
smart constructor.
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 MySQL server options and MySQL system variables. Flags should be specified with underscores, not hyphens. For more information, see Configuring MySQL Flags in the Google Cloud SQL documentation, as well as the official MySQL documentation for server options and system variables.
Tier
A Google Cloud SQL service tier resource.
See: tier
smart constructor.
tTier :: Lens' Tier (Maybe Text) Source #
An identifier for the service tier, for example D1, D2 etc. For related information, see Pricing.
MySQLReplicaConfiguration
data MySQLReplicaConfiguration Source #
Read-replica configuration specific to MySQL databases.
See: mySQLReplicaConfiguration
smart constructor.
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.
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.
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.
BackupRunsListResponse
data BackupRunsListResponse Source #
Backup run list results.
See: backupRunsListResponse
smart constructor.
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.
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.
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.
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.
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.
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.
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. The new certificate will not work until the instance is restarted for First Generation instances.
InstancesListResponse
data InstancesListResponse Source #
Database instances list response.
See: instancesListResponse
smart constructor.
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.
BackupConfiguration
data BackupConfiguration Source #
Database instance backup configuration.
See: backupConfiguration
smart constructor.
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:
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.
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.
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-centra1-a, us-central1-b, etc.).
FlagsListResponse
data FlagsListResponse Source #
Flags list response.
See: flagsListResponse
smart constructor.
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.
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.
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.
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.
RestoreBackupContext
data RestoreBackupContext Source #
Database instance restore from backup context.
See: restoreBackupContext
smart constructor.
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.