Skip to content

Commit

Permalink
feat(sqladmin): update the API
Browse files Browse the repository at this point in the history
#### sqladmin:v1beta4
The following keys were added:
- fullyEncodeReservedExpansion
- schemas.BackupContext.description
- schemas.BackupContext.id
- schemas.BackupContext.properties.backupId.description
- schemas.BackupContext.properties.backupId.format
- schemas.BackupContext.properties.backupId.type
- schemas.BackupContext.properties.kind.description
- schemas.BackupContext.properties.kind.type
- schemas.BackupContext.type
- schemas.InsightsConfig.description
- schemas.InsightsConfig.id
- schemas.InsightsConfig.properties.queryInsightsEnabled.description
- schemas.InsightsConfig.properties.queryInsightsEnabled.type
- schemas.InsightsConfig.properties.queryStringLength.description
- schemas.InsightsConfig.properties.queryStringLength.format
- schemas.InsightsConfig.properties.queryStringLength.type
- schemas.InsightsConfig.properties.recordApplicationTags.description
- schemas.InsightsConfig.properties.recordApplicationTags.type
- schemas.InsightsConfig.properties.recordClientAddress.description
- schemas.InsightsConfig.properties.recordClientAddress.type
- schemas.InsightsConfig.type
- schemas.Operation.properties.backupContext.$ref
- schemas.Operation.properties.backupContext.description
- schemas.Settings.properties.insightsConfig.$ref
- schemas.Settings.properties.insightsConfig.description

The following keys were changed:
- resources.projects.resources.instances.methods.startExternalSync.parameters.syncMode.description
- schemas.ExportContext.properties.csvExportOptions.description
- schemas.ExportContext.properties.fileType.description
- schemas.ExportContext.properties.sqlExportOptions.properties.mysqlExportOptions.properties.masterData.description
- schemas.Operation.description
- schemas.SqlExternalSyncSettingError.properties.type.enum
- schemas.SqlExternalSyncSettingError.properties.type.enumDescriptions
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 30, 2020
1 parent 10834c4 commit 29f9992
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 37 deletions.
67 changes: 59 additions & 8 deletions discovery/sqladmin-v1beta4.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"description": "API for Cloud SQL database instance management",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/cloud-sql/",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
Expand Down Expand Up @@ -1376,7 +1377,7 @@
"type": "string"
},
"syncMode": {
"description": "External sync mode",
"description": "External sync mode.",
"enum": [
"EXTERNAL_SYNC_MODE_UNSPECIFIED",
"ONLINE",
Expand Down Expand Up @@ -1828,7 +1829,7 @@
}
}
},
"revision": "20201022",
"revision": "20201112",
"rootUrl": "https://sqladmin.googleapis.com/",
"schemas": {
"AclEntry": {
Expand Down Expand Up @@ -1922,6 +1923,22 @@
},
"type": "object"
},
"BackupContext": {
"description": "Backup context.",
"id": "BackupContext",
"properties": {
"backupId": {
"description": "The identifier of the backup.",
"format": "int64",
"type": "string"
},
"kind": {
"description": "This is always *sql#backupContext*.",
"type": "string"
}
},
"type": "object"
},
"BackupRetentionSettings": {
"description": "We currently only support backup retention by specifying the number of backups we will retain.",
"id": "BackupRetentionSettings",
Expand Down Expand Up @@ -2577,7 +2594,7 @@
"id": "ExportContext",
"properties": {
"csvExportOptions": {
"description": "Options for exporting data as CSV.",
"description": "Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.",
"properties": {
"selectQuery": {
"description": "The select query used to extract the data.",
Expand All @@ -2594,7 +2611,7 @@
"type": "array"
},
"fileType": {
"description": "The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data.",
"description": "The file type for the specified uri. *SQL*: The file contains SQL statements. *CSV*: The file contains CSV data. *BAK*: The file contains backup data for a SQL Server instance.",
"enum": [
"SQL_FILE_TYPE_UNSPECIFIED",
"SQL",
Expand Down Expand Up @@ -2624,7 +2641,7 @@
"description": "Options for exporting from MySQL.",
"properties": {
"masterData": {
"description": "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.",
"description": "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, and --set-gtid-purged is set to ON. If set to *2*, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than *1*, --set-gtid-purged is set to OFF.",
"format": "int32",
"type": "integer"
}
Expand Down Expand Up @@ -2878,6 +2895,30 @@
},
"type": "object"
},
"InsightsConfig": {
"description": "Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration.",
"id": "InsightsConfig",
"properties": {
"queryInsightsEnabled": {
"description": "Whether Query Insights feature is enabled.",
"type": "boolean"
},
"queryStringLength": {
"description": "Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more than this field value will be truncated to this value. When unset, query length will be the default value.",
"format": "int32",
"type": "integer"
},
"recordApplicationTags": {
"description": "Whether Query Insights will record application tags from query when enabled.",
"type": "boolean"
},
"recordClientAddress": {
"description": "Whether Query Insights will record client address when enabled.",
"type": "boolean"
}
},
"type": "object"
},
"InstancesCloneRequest": {
"description": "Database instance clone request.",
"id": "InstancesCloneRequest",
Expand Down Expand Up @@ -3227,9 +3268,13 @@
"type": "object"
},
"Operation": {
"description": "An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.",
"description": "An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource. Next field: 18",
"id": "Operation",
"properties": {
"backupContext": {
"$ref": "BackupContext",
"description": "The context for backup operation, if applicable."
},
"endTime": {
"description": "The time this operation finished in UTC timezone in RFC 3339 format, for example *2012-11-15T16:19:00.094Z*.",
"format": "google-datetime",
Expand Down Expand Up @@ -3621,6 +3666,10 @@
},
"type": "array"
},
"insightsConfig": {
"$ref": "InsightsConfig",
"description": "Insights configuration, for now relevant only for Postgres."
},
"ipConfiguration": {
"$ref": "IpConfiguration",
"description": "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."
Expand Down Expand Up @@ -3743,7 +3792,8 @@
"INVALID_DB_PARAM",
"UNSUPPORTED_GTID_MODE",
"SQLSERVER_AGENT_NOT_RUNNING",
"UNSUPPORTED_TABLE_DEFINITION"
"UNSUPPORTED_TABLE_DEFINITION",
"UNSUPPORTED_DEFINER"
],
"enumDescriptions": [
"",
Expand All @@ -3766,7 +3816,8 @@
"The primary instance database parameter setup doesn't allow EM sync.",
"The gtid_mode is not supported, applicable for MySQL.",
"SQL Server Agent is not running.",
"The table definition is not support due to missing primary key or replica identity, applicable for postgres."
"The table definition is not support due to missing primary key or replica identity, applicable for postgres.",
"The customer has a definer that will break EM setup."
],
"type": "string"
}
Expand Down

0 comments on commit 29f9992

Please sign in to comment.