Skip to content

Commit acdb8fc

Browse files
feat(spanner): update the api
#### spanner:v1 The following keys were added: - schemas.Database.properties.defaultLeader (Total Keys: 2) - schemas.InstanceConfig.properties.leaderOptions (Total Keys: 2)
1 parent 9841a39 commit acdb8fc

File tree

4 files changed

+66
-54
lines changed

4 files changed

+66
-54
lines changed

docs/dyn/spanner_v1.projects.instanceConfigs.html

+6
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ <h3>Method Details</h3>
108108

109109
{ # A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.
110110
&quot;displayName&quot;: &quot;A String&quot;, # The name of this instance configuration as it appears in UIs.
111+
&quot;leaderOptions&quot;: [ # Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
112+
&quot;A String&quot;,
113+
],
111114
&quot;name&quot;: &quot;A String&quot;, # A unique identifier for the instance configuration. Values are of the form `projects//instanceConfigs/a-z*`
112115
&quot;replicas&quot;: [ # The geographic placement of nodes in this instance configuration and their replication properties.
113116
{
@@ -139,6 +142,9 @@ <h3>Method Details</h3>
139142
&quot;instanceConfigs&quot;: [ # The list of requested instance configurations.
140143
{ # A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.
141144
&quot;displayName&quot;: &quot;A String&quot;, # The name of this instance configuration as it appears in UIs.
145+
&quot;leaderOptions&quot;: [ # Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
146+
&quot;A String&quot;,
147+
],
142148
&quot;name&quot;: &quot;A String&quot;, # A unique identifier for the instance configuration. Values are of the form `projects//instanceConfigs/a-z*`
143149
&quot;replicas&quot;: [ # The geographic placement of nodes in this instance configuration and their replication properties.
144150
{

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

+2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ <h3>Method Details</h3>
211211

212212
{ # A Cloud Spanner database.
213213
&quot;createTime&quot;: &quot;A String&quot;, # Output only. If exists, the time at which the database creation started.
214+
&quot;defaultLeader&quot;: &quot;A String&quot;, # Output only. The read-write region which contains the database&#x27;s leader replicas. This is the same as the value of default_leader database option set using DatabaseAdmin.CreateDatabase or DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty.
214215
&quot;earliestVersionTime&quot;: &quot;A String&quot;, # Output only. Earliest timestamp at which older versions of the data can be read. This value is continuously updated by Cloud Spanner and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
215216
&quot;encryptionConfig&quot;: { # Encryption configuration for a Cloud Spanner database. # Output only. For databases that are using customer managed encryption, this field contains the encryption configuration for the database. For databases that are using Google default or other types of encryption, this field is empty.
216217
&quot;kmsKeyName&quot;: &quot;A String&quot;, # The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
@@ -534,6 +535,7 @@ <h3>Method Details</h3>
534535
&quot;databases&quot;: [ # Databases that matched the request.
535536
{ # A Cloud Spanner database.
536537
&quot;createTime&quot;: &quot;A String&quot;, # Output only. If exists, the time at which the database creation started.
538+
&quot;defaultLeader&quot;: &quot;A String&quot;, # Output only. The read-write region which contains the database&#x27;s leader replicas. This is the same as the value of default_leader database option set using DatabaseAdmin.CreateDatabase or DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty.
537539
&quot;earliestVersionTime&quot;: &quot;A String&quot;, # Output only. Earliest timestamp at which older versions of the data can be read. This value is continuously updated by Cloud Spanner and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery.
538540
&quot;encryptionConfig&quot;: { # Encryption configuration for a Cloud Spanner database. # Output only. For databases that are using customer managed encryption, this field contains the encryption configuration for the database. For databases that are using Google default or other types of encryption, this field is empty.
539541
&quot;kmsKeyName&quot;: &quot;A String&quot;, # The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form `projects//locations//keyRings//cryptoKeys/`.

0 commit comments

Comments
 (0)