Skip to content

Commit 3bec087

Browse files
feat(spanner): update the api
#### spanner:v1 The following keys were added: - schemas.DatabaseMoveConfig (Total Keys: 4) - schemas.InstanceEncryptionConfig (Total Keys: 5) - schemas.MoveInstanceRequest.properties.targetDatabaseMoveConfigs (Total Keys: 2) The following keys were changed: - endpoints (Total Keys: 1)
1 parent 0ce7cb0 commit 3bec087

File tree

4 files changed

+146
-95
lines changed

4 files changed

+146
-95
lines changed

docs/dyn/spanner_v1.projects.instances.databases.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h2>Instance Methods</h2>
9696

9797
<p class="toc_element">
9898
<code><a href="#addSplitPoints">addSplitPoints(database, body=None, x__xgafv=None)</a></code></p>
99-
<p class="firstline">Adds split points to specified tables, indexes of a database.</p>
99+
<p class="firstline">Adds split points to specified tables and indexes of a database.</p>
100100
<p class="toc_element">
101101
<code><a href="#changequorum">changequorum(name, body=None, x__xgafv=None)</a></code></p>
102102
<p class="firstline">`ChangeQuorum` is strictly restricted to databases that use dual-region instance configurations. Initiates a background operation to change the quorum of a database from dual-region mode to single-region mode or vice versa. The returned long-running operation has a name of the format `projects//instances//databases//operations/` and can be used to track execution of the `ChangeQuorum`. The metadata field type is ChangeQuorumMetadata. Authorization requires `spanner.databases.changequorum` permission on the resource database.</p>
@@ -145,20 +145,20 @@ <h2>Instance Methods</h2>
145145
<h3>Method Details</h3>
146146
<div class="method">
147147
<code class="details" id="addSplitPoints">addSplitPoints(database, body=None, x__xgafv=None)</code>
148-
<pre>Adds split points to specified tables, indexes of a database.
148+
<pre>Adds split points to specified tables and indexes of a database.
149149

150150
Args:
151-
database: string, Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects//instances//databases/`. (required)
151+
database: string, Required. The database on whose tables or indexes the split points are to be added. Values are of the form `projects//instances//databases/`. (required)
152152
body: object, The request body.
153153
The object takes the form of:
154154

155155
{ # The request for AddSplitPoints.
156-
&quot;initiator&quot;: &quot;A String&quot;, # Optional. A user-supplied tag associated with the split points. For example, &quot;initial_data_load&quot;, &quot;special_event_1&quot;. Defaults to &quot;CloudAddSplitPointsAPI&quot; if not specified. The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8 characters are allowed.
156+
&quot;initiator&quot;: &quot;A String&quot;, # Optional. A user-supplied tag associated with the split points. For example, &quot;initial_data_load&quot;, &quot;special_event_1&quot;. Defaults to &quot;CloudAddSplitPointsAPI&quot; if not specified. The length of the tag must not exceed 50 characters, or else it is trimmed. Only valid UTF8 characters are allowed.
157157
&quot;splitPoints&quot;: [ # Required. The split points to add.
158-
{ # The split points of a table/index.
158+
{ # The split points of a table or an index.
159159
&quot;expireTime&quot;: &quot;A String&quot;, # Optional. The expiration timestamp of the split points. A timestamp in the past means immediate expiration. The maximum value can be 30 days in the future. Defaults to 10 days in the future if not specified.
160160
&quot;index&quot;: &quot;A String&quot;, # The index to split. If specified, the `table` field must refer to the index&#x27;s base table.
161-
&quot;keys&quot;: [ # Required. The list of split keys, i.e., the split boundaries.
161+
&quot;keys&quot;: [ # Required. The list of split keys. In essence, the split boundaries.
162162
{ # A split key.
163163
&quot;keyParts&quot;: [ # Required. The column values making up the split key.
164164
&quot;&quot;,

docs/dyn/spanner_v1.projects.instances.databases.sessions.html

Lines changed: 72 additions & 72 deletions
Large diffs are not rendered by default.

docs/dyn/spanner_v1.projects.instances.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,17 @@ <h3>Method Details</h3>
504504

505505
{ # The request for MoveInstance.
506506
&quot;targetConfig&quot;: &quot;A String&quot;, # Required. The target instance configuration where to move the instance. Values are of the form `projects//instanceConfigs/`.
507+
&quot;targetDatabaseMoveConfigs&quot;: [ # Optional. The configuration for each database in the target instance configuration.
508+
{ # The configuration for each database in the target instance configuration.
509+
&quot;databaseId&quot;: &quot;A String&quot;, # Required. The unique identifier of the database resource in the Instance. For example if the database uri is projects/foo/instances/bar/databases/baz, the id to supply here is baz.
510+
&quot;encryptionConfig&quot;: { # Encryption configuration for a Cloud Spanner database. # Optional. Encryption configuration to be used for the database in target configuration. Should be specified for every database which currently uses CMEK encryption. If a database currently uses GOOGLE_MANAGED encryption and a target encryption config is not specified, it defaults to GOOGLE_MANAGED. If a database currently uses Google-managed encryption and a target encryption config is specified, the request is rejected. If a database currently uses CMEK encryption, a target encryption config must be specified. You cannot move a CMEK database to a Google-managed encryption database by MoveInstance.
511+
&quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. `kms_key_name` should only be used if the location of the KMS key matches the database instance’s configuration (location) exactly. E.g. The KMS location is in us-central1 or nam3 and the database instance is also in us-central1 or nam3. The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
512+
&quot;kmsKeyNames&quot;: [ # Optional. Specifies the KMS configuration for one or more keys used to encrypt the database. Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by `kms_key_names` must fully cover all regions of the database&#x27;s instance configuration. Some examples: * For regional (single-region) instance configurations, specify a regional location KMS key. * For multi-region instance configurations of type `GOOGLE_MANAGED`, either specify a multi-region location KMS key or multiple regional location KMS keys that cover all regions in the instance configuration. * For an instance configuration of type `USER_MANAGED`, specify only regional location KMS keys to cover each region in the instance configuration. Multi-region location KMS keys aren&#x27;t supported for `USER_MANAGED` type instance configurations.
513+
&quot;A String&quot;,
514+
],
515+
},
516+
},
517+
],
507518
}
508519

509520
x__xgafv: string, V1 error format.

0 commit comments

Comments
 (0)