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:
- schemas.ConnectSettings.properties.region.description
- schemas.ConnectSettings.properties.region.type
- schemas.ExportContext.properties.csvExportOptions.properties.escapeCharacter.description
- schemas.ExportContext.properties.csvExportOptions.properties.escapeCharacter.type
- schemas.ExportContext.properties.csvExportOptions.properties.fieldsTerminatedBy.description
- schemas.ExportContext.properties.csvExportOptions.properties.fieldsTerminatedBy.type
- schemas.ExportContext.properties.csvExportOptions.properties.linesTerminatedBy.description
- schemas.ExportContext.properties.csvExportOptions.properties.linesTerminatedBy.type
- schemas.ExportContext.properties.csvExportOptions.properties.quoteCharacter.description
- schemas.ExportContext.properties.csvExportOptions.properties.quoteCharacter.type
- schemas.ImportContext.properties.csvImportOptions.properties.escapeCharacter.description
- schemas.ImportContext.properties.csvImportOptions.properties.escapeCharacter.type
- schemas.ImportContext.properties.csvImportOptions.properties.fieldsTerminatedBy.description
- schemas.ImportContext.properties.csvImportOptions.properties.fieldsTerminatedBy.type
- schemas.ImportContext.properties.csvImportOptions.properties.linesTerminatedBy.description
- schemas.ImportContext.properties.csvImportOptions.properties.linesTerminatedBy.type
- schemas.ImportContext.properties.csvImportOptions.properties.quoteCharacter.description
- schemas.ImportContext.properties.csvImportOptions.properties.quoteCharacter.type
- schemas.Settings.properties.sqlServerAuditConfig.$ref
- schemas.Settings.properties.sqlServerAuditConfig.description
- schemas.SqlInstancesVerifyExternalSyncSettingsRequest.properties.verifyReplicationOnly.description
- schemas.SqlInstancesVerifyExternalSyncSettingsRequest.properties.verifyReplicationOnly.type
- schemas.SqlServerAuditConfig.description
- schemas.SqlServerAuditConfig.id
- schemas.SqlServerAuditConfig.properties.bucket.description
- schemas.SqlServerAuditConfig.properties.bucket.type
- schemas.SqlServerAuditConfig.properties.kind.description
- schemas.SqlServerAuditConfig.properties.kind.type
- schemas.SqlServerAuditConfig.type

#### sqladmin:v1

The following keys were added:
- schemas.ConnectSettings.properties.region.description
- schemas.ConnectSettings.properties.region.type
- schemas.ExportContext.properties.csvExportOptions.properties.escapeCharacter.description
- schemas.ExportContext.properties.csvExportOptions.properties.escapeCharacter.type
- schemas.ExportContext.properties.csvExportOptions.properties.fieldsTerminatedBy.description
- schemas.ExportContext.properties.csvExportOptions.properties.fieldsTerminatedBy.type
- schemas.ExportContext.properties.csvExportOptions.properties.linesTerminatedBy.description
- schemas.ExportContext.properties.csvExportOptions.properties.linesTerminatedBy.type
- schemas.ExportContext.properties.csvExportOptions.properties.quoteCharacter.description
- schemas.ExportContext.properties.csvExportOptions.properties.quoteCharacter.type
- schemas.ImportContext.properties.csvImportOptions.properties.escapeCharacter.description
- schemas.ImportContext.properties.csvImportOptions.properties.escapeCharacter.type
- schemas.ImportContext.properties.csvImportOptions.properties.fieldsTerminatedBy.description
- schemas.ImportContext.properties.csvImportOptions.properties.fieldsTerminatedBy.type
- schemas.ImportContext.properties.csvImportOptions.properties.linesTerminatedBy.description
- schemas.ImportContext.properties.csvImportOptions.properties.linesTerminatedBy.type
- schemas.ImportContext.properties.csvImportOptions.properties.quoteCharacter.description
- schemas.ImportContext.properties.csvImportOptions.properties.quoteCharacter.type
- schemas.Settings.properties.sqlServerAuditConfig.$ref
- schemas.Settings.properties.sqlServerAuditConfig.description
- schemas.SqlInstancesVerifyExternalSyncSettingsRequest.properties.verifyReplicationOnly.description
- schemas.SqlInstancesVerifyExternalSyncSettingsRequest.properties.verifyReplicationOnly.type
- schemas.SqlServerAuditConfig.description
- schemas.SqlServerAuditConfig.id
- schemas.SqlServerAuditConfig.properties.bucket.description
- schemas.SqlServerAuditConfig.properties.bucket.type
- schemas.SqlServerAuditConfig.properties.kind.description
- schemas.SqlServerAuditConfig.properties.kind.type
- schemas.SqlServerAuditConfig.type
  • Loading branch information
yoshi-automation authored and bcoe committed Sep 14, 2021
1 parent 0df4267 commit e147dbf
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 8 deletions.
61 changes: 60 additions & 1 deletion discovery/sqladmin-v1.json
Expand Up @@ -1877,7 +1877,7 @@
}
}
},
"revision": "20210816",
"revision": "20210902",
"rootUrl": "https://sqladmin.googleapis.com/",
"schemas": {
"AclEntry": {
Expand Down Expand Up @@ -2281,6 +2281,10 @@
"description": "This is always `sql#connectSettings`.",
"type": "string"
},
"region": {
"description": "The cloud region for the instance. e.g. **us-central1**, **europe-west1**. The region cannot be changed after instance creation.",
"type": "string"
},
"serverCaCert": {
"$ref": "SslCert",
"description": "SSL configuration."
Expand Down Expand Up @@ -2752,6 +2756,22 @@
"csvExportOptions": {
"description": "Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.",
"properties": {
"escapeCharacter": {
"description": "Specifies the character that should appear before a data character that needs to be escaped.",
"type": "string"
},
"fieldsTerminatedBy": {
"description": "Specifies the character that separates columns within each row (line) of the file.",
"type": "string"
},
"linesTerminatedBy": {
"description": "This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.",
"type": "string"
},
"quoteCharacter": {
"description": "Specifies the quoting character to be used when a data value is quoted.",
"type": "string"
},
"selectQuery": {
"description": "The select query used to extract the data.",
"type": "string"
Expand Down Expand Up @@ -3046,6 +3066,22 @@
},
"type": "array"
},
"escapeCharacter": {
"description": "Specifies the character that should appear before a data character that needs to be escaped.",
"type": "string"
},
"fieldsTerminatedBy": {
"description": "Specifies the character that separates columns within each row (line) of the file.",
"type": "string"
},
"linesTerminatedBy": {
"description": "This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.",
"type": "string"
},
"quoteCharacter": {
"description": "Specifies the quoting character to be used when a data value is quoted.",
"type": "string"
},
"table": {
"description": "The table to which CSV data is imported.",
"type": "string"
Expand Down Expand Up @@ -3958,6 +3994,10 @@
"format": "int64",
"type": "string"
},
"sqlServerAuditConfig": {
"$ref": "SqlServerAuditConfig",
"description": "SQL Server specific audit configuration."
},
"storageAutoResize": {
"description": "Configuration to increase storage size automatically. The default value is true.",
"type": "boolean"
Expand Down Expand Up @@ -4132,6 +4172,10 @@
"verifyConnectionOnly": {
"description": "Flag to enable verifying connection only",
"type": "boolean"
},
"verifyReplicationOnly": {
"description": "Optional. Flag to verify settings required by replication setup only",
"type": "boolean"
}
},
"type": "object"
Expand Down Expand Up @@ -4211,6 +4255,21 @@
},
"type": "object"
},
"SqlServerAuditConfig": {
"description": "SQL Server specific audit configuration.",
"id": "SqlServerAuditConfig",
"properties": {
"bucket": {
"description": "The name of the destination bucket (e.g., gs://mybucket).",
"type": "string"
},
"kind": {
"description": "This is always sql#sqlServerAuditConfig",
"type": "string"
}
},
"type": "object"
},
"SqlServerDatabaseDetails": {
"description": "Represents a Sql Server database on the Cloud SQL instance.",
"id": "SqlServerDatabaseDetails",
Expand Down
61 changes: 60 additions & 1 deletion discovery/sqladmin-v1beta4.json
Expand Up @@ -1877,7 +1877,7 @@
}
}
},
"revision": "20210816",
"revision": "20210902",
"rootUrl": "https://sqladmin.googleapis.com/",
"schemas": {
"AclEntry": {
Expand Down Expand Up @@ -2283,6 +2283,10 @@
"description": "This is always `sql#connectSettings`.",
"type": "string"
},
"region": {
"description": "The cloud region for the instance. e.g. **us-central1**, **europe-west1**. The region cannot be changed after instance creation.",
"type": "string"
},
"serverCaCert": {
"$ref": "SslCert",
"description": "SSL configuration."
Expand Down Expand Up @@ -2756,6 +2760,22 @@
"csvExportOptions": {
"description": "Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.",
"properties": {
"escapeCharacter": {
"description": "Specifies the character that should appear before a data character that needs to be escaped.",
"type": "string"
},
"fieldsTerminatedBy": {
"description": "Specifies the character that separates columns within each row (line) of the file.",
"type": "string"
},
"linesTerminatedBy": {
"description": "This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.",
"type": "string"
},
"quoteCharacter": {
"description": "Specifies the quoting character to be used when a data value is quoted.",
"type": "string"
},
"selectQuery": {
"description": "The select query used to extract the data.",
"type": "string"
Expand Down Expand Up @@ -3052,6 +3072,22 @@
},
"type": "array"
},
"escapeCharacter": {
"description": "Specifies the character that should appear before a data character that needs to be escaped.",
"type": "string"
},
"fieldsTerminatedBy": {
"description": "Specifies the character that separates columns within each row (line) of the file.",
"type": "string"
},
"linesTerminatedBy": {
"description": "This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.",
"type": "string"
},
"quoteCharacter": {
"description": "Specifies the quoting character to be used when a data value is quoted.",
"type": "string"
},
"table": {
"description": "The table to which CSV data is imported.",
"type": "string"
Expand Down Expand Up @@ -3964,6 +4000,10 @@
"format": "int64",
"type": "string"
},
"sqlServerAuditConfig": {
"$ref": "SqlServerAuditConfig",
"description": "SQL Server specific audit configuration."
},
"storageAutoResize": {
"description": "Configuration to increase storage size automatically. The default value is true.",
"type": "boolean"
Expand Down Expand Up @@ -4136,6 +4176,10 @@
"verifyConnectionOnly": {
"description": "Flag to enable verifying connection only",
"type": "boolean"
},
"verifyReplicationOnly": {
"description": "Optional. Flag to verify settings required by replication setup only",
"type": "boolean"
}
},
"type": "object"
Expand Down Expand Up @@ -4215,6 +4259,21 @@
},
"type": "object"
},
"SqlServerAuditConfig": {
"description": "SQL Server specific audit configuration.",
"id": "SqlServerAuditConfig",
"properties": {
"bucket": {
"description": "The name of the destination bucket (e.g., gs://mybucket).",
"type": "string"
},
"kind": {
"description": "This is always sql#sqlServerAuditConfig",
"type": "string"
}
},
"type": "object"
},
"SqlServerDatabaseDetails": {
"description": "Represents a Sql Server database on the Cloud SQL instance.",
"id": "SqlServerDatabaseDetails",
Expand Down
46 changes: 43 additions & 3 deletions src/apis/sqladmin/v1.ts
Expand Up @@ -396,6 +396,10 @@ export namespace sqladmin_v1 {
* This is always `sql#connectSettings`.
*/
kind?: string | null;
/**
* The cloud region for the instance. e.g. **us-central1**, **europe-west1**. The region cannot be changed after instance creation.
*/
region?: string | null;
/**
* SSL configuration.
*/
Expand Down Expand Up @@ -719,7 +723,13 @@ export namespace sqladmin_v1 {
/**
* Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
*/
csvExportOptions?: {selectQuery?: string} | null;
csvExportOptions?: {
escapeCharacter?: string;
fieldsTerminatedBy?: string;
linesTerminatedBy?: string;
quoteCharacter?: string;
selectQuery?: string;
} | null;
/**
* 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:** You must specify one database to be exported. If **fileType** is **CSV**, this database must match the one specified in the **csvExportOptions.selectQuery** property. **SQL Server instances:** You must specify one database to be exported, and the **fileType** must be **BAK**.
*/
Expand Down Expand Up @@ -863,7 +873,14 @@ export namespace sqladmin_v1 {
/**
* Options for importing data as CSV.
*/
csvImportOptions?: {columns?: string[]; table?: string} | null;
csvImportOptions?: {
columns?: string[];
escapeCharacter?: string;
fieldsTerminatedBy?: string;
linesTerminatedBy?: string;
quoteCharacter?: string;
table?: string;
} | null;
/**
* 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.
*/
Expand Down Expand Up @@ -1475,6 +1492,10 @@ export namespace sqladmin_v1 {
* 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.
*/
settingsVersion?: string | null;
/**
* SQL Server specific audit configuration.
*/
sqlServerAuditConfig?: Schema$SqlServerAuditConfig;
/**
* Configuration to increase storage size automatically. The default value is true.
*/
Expand Down Expand Up @@ -1564,6 +1585,10 @@ export namespace sqladmin_v1 {
* Flag to enable verifying connection only
*/
verifyConnectionOnly?: boolean | null;
/**
* Optional. Flag to verify settings required by replication setup only
*/
verifyReplicationOnly?: boolean | null;
}
/**
* Instance verify external sync settings response.
Expand Down Expand Up @@ -1613,6 +1638,19 @@ export namespace sqladmin_v1 {
*/
startTime?: string | null;
}
/**
* SQL Server specific audit configuration.
*/
export interface Schema$SqlServerAuditConfig {
/**
* The name of the destination bucket (e.g., gs://mybucket).
*/
bucket?: string | null;
/**
* This is always sql#sqlServerAuditConfig
*/
kind?: string | null;
}
/**
* Represents a Sql Server database on the Cloud SQL instance.
*/
Expand Down Expand Up @@ -2759,6 +2797,7 @@ export namespace sqladmin_v1 {
* // "databaseVersion": "my_databaseVersion",
* // "ipAddresses": [],
* // "kind": "my_kind",
* // "region": "my_region",
* // "serverCaCert": {}
* // }
* }
Expand Down Expand Up @@ -8343,7 +8382,8 @@ export namespace sqladmin_v1 {
* // {
* // "mysqlSyncConfig": {},
* // "syncMode": "my_syncMode",
* // "verifyConnectionOnly": false
* // "verifyConnectionOnly": false,
* // "verifyReplicationOnly": false
* // }
* },
* });
Expand Down

0 comments on commit e147dbf

Please sign in to comment.