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.ExportContext.properties.sqlExportOptions.properties.parallel.description
- schemas.ExportContext.properties.sqlExportOptions.properties.parallel.type
- schemas.ExportContext.properties.sqlExportOptions.properties.threads.description
- schemas.ExportContext.properties.sqlExportOptions.properties.threads.format
- schemas.ExportContext.properties.sqlExportOptions.properties.threads.type

The following keys were changed:
- schemas.DatabaseInstance.properties.sqlNetworkArchitecture.enumDescriptions
- schemas.IpConfiguration.properties.sslMode.description
- schemas.SqlExternalSyncSettingError.properties.type.enum
- schemas.SqlExternalSyncSettingError.properties.type.enumDescriptions
- schemas.User.properties.type.enumDescriptions

#### sqladmin:v1

The following keys were added:
- schemas.ExportContext.properties.sqlExportOptions.properties.parallel.description
- schemas.ExportContext.properties.sqlExportOptions.properties.parallel.type
- schemas.ExportContext.properties.sqlExportOptions.properties.threads.description
- schemas.ExportContext.properties.sqlExportOptions.properties.threads.format
- schemas.ExportContext.properties.sqlExportOptions.properties.threads.type

The following keys were changed:
- schemas.DatabaseInstance.properties.sqlNetworkArchitecture.enumDescriptions
- schemas.IpConfiguration.properties.sslMode.description
- schemas.SqlExternalSyncSettingError.properties.type.enum
- schemas.SqlExternalSyncSettingError.properties.type.enumDescriptions
- schemas.User.properties.type.enumDescriptions
  • Loading branch information
yoshi-automation authored and bcoe committed Feb 2, 2024
1 parent d77180a commit a80b25a
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 20 deletions.
31 changes: 22 additions & 9 deletions discovery/sqladmin-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2200,7 +2200,7 @@
}
}
},
"revision": "20231211",
"revision": "20240115",
"rootUrl": "https://sqladmin.googleapis.com/",
"schemas": {
"AclEntry": {
Expand Down Expand Up @@ -3176,8 +3176,8 @@
],
"enumDescriptions": [
"",
"Instance is a Tenancy Unit (TU) instance.",
"Instance is an Umbrella instance."
"The instance uses the new network architecture.",
"The instance uses the old network architecture."
],
"type": "string"
},
Expand Down Expand Up @@ -3520,6 +3520,10 @@
},
"type": "object"
},
"parallel": {
"description": "Optional. Whether or not the export should be parallel.",
"type": "boolean"
},
"schemaOnly": {
"description": "Export only schemas.",
"type": "boolean"
Expand All @@ -3530,6 +3534,11 @@
"type": "string"
},
"type": "array"
},
"threads": {
"description": "Optional. The number of threads to use for parallel export.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
Expand Down Expand Up @@ -4183,7 +4192,7 @@
"type": "boolean"
},
"sslMode": {
"description": "SQL Server uses the `require_ssl` flag. You can set the value for this flag to 'true' or 'false'.",
"description": "Specify how SSL/TLS is enforced in database connections. MySQL and PostgreSQL use the `ssl_mode` flag. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections. SQL Server uses the `require_ssl` flag. You can set the value for this flag to `true` or `false`.",
"enum": [
"SSL_MODE_UNSPECIFIED",
"ALLOW_UNENCRYPTED_AND_ENCRYPTED",
Expand Down Expand Up @@ -5209,7 +5218,9 @@
"LOCAL_INFILE_OFF",
"TURN_ON_PITR_AFTER_PROMOTE",
"INCOMPATIBLE_DATABASE_MINOR_VERSION",
"SOURCE_MAX_SUBSCRIPTIONS"
"SOURCE_MAX_SUBSCRIPTIONS",
"UNABLE_TO_VERIFY_DEFINERS",
"SUBSCRIPTION_CALCULATION_STATUS"
],
"enumDescriptions": [
"",
Expand Down Expand Up @@ -5250,7 +5261,9 @@
"The global variable local_infile is off on external server replica.",
"This code instructs customers to turn on point-in-time recovery manually for the instance after promoting the Cloud SQL for PostgreSQL instance.",
"The minor version of replica database is incompatible with the source.",
"This warning message indicates that Cloud SQL uses the maximum number of subscriptions to migrate data from the source to the destination."
"This warning message indicates that Cloud SQL uses the maximum number of subscriptions to migrate data from the source to the destination.",
"Unable to verify definers on the source for MySQL.",
"If a time out occurs while the subscription counts are calculated, then this value is set to 1. Otherwise, this value is set to 2."
],
"type": "string"
}
Expand Down Expand Up @@ -5799,9 +5812,9 @@
"The database's built-in user type.",
"Cloud IAM user.",
"Cloud IAM service account.",
"Cloud IAM Group non-login user.",
"Cloud IAM Group login user.",
"Cloud IAM Group login service account."
"Cloud IAM group non-login user.",
"Cloud IAM group login user.",
"Cloud IAM group login service account."
],
"type": "string"
}
Expand Down
31 changes: 22 additions & 9 deletions discovery/sqladmin-v1beta4.json
Original file line number Diff line number Diff line change
Expand Up @@ -2200,7 +2200,7 @@
}
}
},
"revision": "20231211",
"revision": "20240201",
"rootUrl": "https://sqladmin.googleapis.com/",
"schemas": {
"AclEntry": {
Expand Down Expand Up @@ -3177,8 +3177,8 @@
],
"enumDescriptions": [
"",
"Instance is a Tenancy Unit (TU) instance.",
"Instance is an Umbrella instance."
"The instance uses the new network architecture.",
"The instance uses the old network architecture."
],
"type": "string"
},
Expand Down Expand Up @@ -3521,6 +3521,10 @@
},
"type": "object"
},
"parallel": {
"description": "Optional. Whether or not the export should be parallel.",
"type": "boolean"
},
"schemaOnly": {
"description": "Export only schemas.",
"type": "boolean"
Expand All @@ -3531,6 +3535,11 @@
"type": "string"
},
"type": "array"
},
"threads": {
"description": "Optional. The number of threads to use for parallel export.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
Expand Down Expand Up @@ -4184,7 +4193,7 @@
"type": "boolean"
},
"sslMode": {
"description": "SQL Server uses the `require_ssl` flag. You can set the value for this flag to 'true' or 'false'.",
"description": "Specify how SSL/TLS is enforced in database connections. MySQL and PostgreSQL use the `ssl_mode` flag. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections. SQL Server uses the `require_ssl` flag. You can set the value for this flag to `true` or `false`.",
"enum": [
"SSL_MODE_UNSPECIFIED",
"ALLOW_UNENCRYPTED_AND_ENCRYPTED",
Expand Down Expand Up @@ -5210,7 +5219,9 @@
"LOCAL_INFILE_OFF",
"TURN_ON_PITR_AFTER_PROMOTE",
"INCOMPATIBLE_DATABASE_MINOR_VERSION",
"SOURCE_MAX_SUBSCRIPTIONS"
"SOURCE_MAX_SUBSCRIPTIONS",
"UNABLE_TO_VERIFY_DEFINERS",
"SUBSCRIPTION_CALCULATION_STATUS"
],
"enumDescriptions": [
"",
Expand Down Expand Up @@ -5251,7 +5262,9 @@
"The global variable local_infile is off on external server replica.",
"This code instructs customers to turn on point-in-time recovery manually for the instance after promoting the Cloud SQL for PostgreSQL instance.",
"The minor version of replica database is incompatible with the source.",
"This warning message indicates that Cloud SQL uses the maximum number of subscriptions to migrate data from the source to the destination."
"This warning message indicates that Cloud SQL uses the maximum number of subscriptions to migrate data from the source to the destination.",
"Unable to verify definers on the source for MySQL.",
"If a time out occurs while the subscription counts are calculated, then this value is set to 1. Otherwise, this value is set to 2."
],
"type": "string"
}
Expand Down Expand Up @@ -5798,9 +5811,9 @@
"The database's built-in user type.",
"Cloud IAM user.",
"Cloud IAM service account.",
"Cloud IAM Group non-login user.",
"Cloud IAM Group login user.",
"Cloud IAM Group service account."
"Cloud IAM group non-login user.",
"Cloud IAM group login user.",
"Cloud IAM group service account."
],
"type": "string"
}
Expand Down
4 changes: 3 additions & 1 deletion src/apis/sqladmin/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,10 @@ export namespace sqladmin_v1 {
*/
sqlExportOptions?: {
mysqlExportOptions?: {masterData?: number};
parallel?: boolean;
schemaOnly?: boolean;
tables?: string[];
threads?: number;
} | null;
/**
* 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 request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
Expand Down Expand Up @@ -1222,7 +1224,7 @@ export namespace sqladmin_v1 {
*/
requireSsl?: boolean | null;
/**
* SQL Server uses the `require_ssl` flag. You can set the value for this flag to 'true' or 'false'.
* Specify how SSL/TLS is enforced in database connections. MySQL and PostgreSQL use the `ssl_mode` flag. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections. SQL Server uses the `require_ssl` flag. You can set the value for this flag to `true` or `false`.
*/
sslMode?: string | null;
}
Expand Down
4 changes: 3 additions & 1 deletion src/apis/sqladmin/v1beta4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,10 @@ export namespace sqladmin_v1beta4 {
*/
sqlExportOptions?: {
mysqlExportOptions?: {masterData?: number};
parallel?: boolean;
schemaOnly?: boolean;
tables?: string[];
threads?: number;
} | null;
/**
* 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 request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
Expand Down Expand Up @@ -1225,7 +1227,7 @@ export namespace sqladmin_v1beta4 {
*/
requireSsl?: boolean | null;
/**
* SQL Server uses the `require_ssl` flag. You can set the value for this flag to 'true' or 'false'.
* Specify how SSL/TLS is enforced in database connections. MySQL and PostgreSQL use the `ssl_mode` flag. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections. SQL Server uses the `require_ssl` flag. You can set the value for this flag to `true` or `false`.
*/
sslMode?: string | null;
}
Expand Down

0 comments on commit a80b25a

Please sign in to comment.