You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/spanner_v1.projects.instanceConfigs.html
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,7 @@ <h3>Method Details</h3>
141
141
"type": "A String", # The type of replica.
142
142
},
143
143
],
144
+
"quorumType": "A String", # Output only. The `QuorumType` of the instance configuration.
144
145
"reconciling": True or False, # Output only. If true, the instance config is being created or updated. If false, there are no ongoing operations for the instance config.
145
146
"replicas": [ # The geographic placement of nodes in this instance configuration and their replication properties.
146
147
{
@@ -239,6 +240,7 @@ <h3>Method Details</h3>
239
240
"type": "A String", # The type of replica.
240
241
},
241
242
],
243
+
"quorumType": "A String", # Output only. The `QuorumType` of the instance configuration.
242
244
"reconciling": True or False, # Output only. If true, the instance config is being created or updated. If false, there are no ongoing operations for the instance config.
243
245
"replicas": [ # The geographic placement of nodes in this instance configuration and their replication properties.
244
246
{
@@ -290,6 +292,7 @@ <h3>Method Details</h3>
290
292
"type": "A String", # The type of replica.
291
293
},
292
294
],
295
+
"quorumType": "A String", # Output only. The `QuorumType` of the instance configuration.
293
296
"reconciling": True or False, # Output only. If true, the instance config is being created or updated. If false, there are no ongoing operations for the instance config.
294
297
"replicas": [ # The geographic placement of nodes in this instance configuration and their replication properties.
295
298
{
@@ -350,6 +353,7 @@ <h3>Method Details</h3>
350
353
"type": "A String", # The type of replica.
351
354
},
352
355
],
356
+
"quorumType": "A String", # Output only. The `QuorumType` of the instance configuration.
353
357
"reconciling": True or False, # Output only. If true, the instance config is being created or updated. If false, there are no ongoing operations for the instance config.
354
358
"replicas": [ # The geographic placement of nodes in this instance configuration and their replication properties.
<pclass="firstline">ChangeQuorum is strictly restricted to databases that use dual region instance configurations. Initiates a background operation to change quorum a database from dual-region mode to single-region mode and vice versa. The returned long-running operation will have 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>
<pclass="firstline">Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned long-running operation will have a name of the format `/operations/` and can be used to track execution of the schema change(s). The metadata field type is UpdateDatabaseDdlMetadata. The operation has no response.</p>
<pre>ChangeQuorum is strictly restricted to databases that use dual region instance configurations. Initiates a background operation to change quorum a database from dual-region mode to single-region mode and vice versa. The returned long-running operation will have 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.
141
+
142
+
Args:
143
+
name: string, Required. Name of the database in which to apply the ChangeQuorum. Values are of the form `projects//instances//databases/`. (required)
144
+
body: object, The request body.
145
+
The object takes the form of:
146
+
147
+
{ # The request for ChangeQuorum.
148
+
"etag": "A String", # Optional. The etag is the hash of the QuorumInfo. The ChangeQuorum operation will only be performed if the etag matches that of the QuorumInfo in the current database resource. Otherwise the API will return an `ABORTED` error. The etag is used for optimistic concurrency control as a way to help prevent simultaneous change quorum requests that could create a race condition.
149
+
"name": "A String", # Required. Name of the database in which to apply the ChangeQuorum. Values are of the form `projects//instances//databases/`.
150
+
"quorumType": { # Information about the database quorum type. this applies only for dual region instance configs. # Required. The type of this Quorum.
151
+
"dualRegion": { # Message type for a dual-region quorum. Currently this type has no options. # Dual region quorum type.
152
+
},
153
+
"singleRegion": { # Message type for a single-region quorum. # Single region quorum type.
154
+
"servingLocation": "A String", # Required. The location of the serving region, e.g. "us-central1". The location must be one of the regions within the dual region instance configuration of your database. The list of valid locations is available via [GetInstanceConfig[InstanceAdmin.GetInstanceConfig] API. This should only be used if you plan to change quorum in single-region quorum type.
155
+
},
156
+
},
157
+
}
158
+
159
+
x__xgafv: string, V1 error format.
160
+
Allowed values
161
+
1 - v1 error format
162
+
2 - v2 error format
163
+
164
+
Returns:
165
+
An object of the form:
166
+
167
+
{ # This resource represents a long-running operation that is the result of a network API call.
168
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
169
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
170
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
171
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
172
+
{
173
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
174
+
},
175
+
],
176
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
177
+
},
178
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
179
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
180
+
},
181
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
182
+
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
183
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
184
+
},
185
+
}</pre>
186
+
</div>
187
+
135
188
<divclass="method">
136
189
<codeclass="details" id="close">close()</code>
137
190
<pre>Close httplib2 connections.</pre>
@@ -250,6 +303,18 @@ <h3>Method Details</h3>
250
303
},
251
304
],
252
305
"name": "A String", # Required. The name of the database. Values are of the form `projects//instances//databases/`, where `` is as specified in the `CREATE DATABASE` statement. This name can be passed to other API methods to identify the database.
306
+
"quorumInfo": { # Information about the dual region quorum. # Output only. Applicable only for databases that use dual region instance configurations. Contains information about the quorum.
307
+
"etag": "A String", # Output only. The etag is used for optimistic concurrency control as a way to help prevent simultaneous ChangeQuorum requests that could create a race condition.
308
+
"initiator": "A String", # Output only. Whether this ChangeQuorum is a Google or User initiated.
309
+
"quorumType": { # Information about the database quorum type. this applies only for dual region instance configs. # Output only. The type of this quorum. See QuorumType for more information about quorum type specifications.
310
+
"dualRegion": { # Message type for a dual-region quorum. Currently this type has no options. # Dual region quorum type.
311
+
},
312
+
"singleRegion": { # Message type for a single-region quorum. # Single region quorum type.
313
+
"servingLocation": "A String", # Required. The location of the serving region, e.g. "us-central1". The location must be one of the regions within the dual region instance configuration of your database. The list of valid locations is available via [GetInstanceConfig[InstanceAdmin.GetInstanceConfig] API. This should only be used if you plan to change quorum in single-region quorum type.
314
+
},
315
+
},
316
+
"startTime": "A String", # Output only. The timestamp when the request was triggered.
317
+
},
253
318
"reconciling": True or False, # Output only. If true, the database is being updated. If false, there are no ongoing update operations for the database.
254
319
"restoreInfo": { # Information about the database restore. # Output only. Applicable only for restored databases. Contains information about the restore source.
255
320
"backupInfo": { # Information about a backup. # Information about the backup used to restore the database. The backup may no longer exist.
@@ -581,6 +646,18 @@ <h3>Method Details</h3>
581
646
},
582
647
],
583
648
"name": "A String", # Required. The name of the database. Values are of the form `projects//instances//databases/`, where `` is as specified in the `CREATE DATABASE` statement. This name can be passed to other API methods to identify the database.
649
+
"quorumInfo": { # Information about the dual region quorum. # Output only. Applicable only for databases that use dual region instance configurations. Contains information about the quorum.
650
+
"etag": "A String", # Output only. The etag is used for optimistic concurrency control as a way to help prevent simultaneous ChangeQuorum requests that could create a race condition.
651
+
"initiator": "A String", # Output only. Whether this ChangeQuorum is a Google or User initiated.
652
+
"quorumType": { # Information about the database quorum type. this applies only for dual region instance configs. # Output only. The type of this quorum. See QuorumType for more information about quorum type specifications.
653
+
"dualRegion": { # Message type for a dual-region quorum. Currently this type has no options. # Dual region quorum type.
654
+
},
655
+
"singleRegion": { # Message type for a single-region quorum. # Single region quorum type.
656
+
"servingLocation": "A String", # Required. The location of the serving region, e.g. "us-central1". The location must be one of the regions within the dual region instance configuration of your database. The list of valid locations is available via [GetInstanceConfig[InstanceAdmin.GetInstanceConfig] API. This should only be used if you plan to change quorum in single-region quorum type.
657
+
},
658
+
},
659
+
"startTime": "A String", # Output only. The timestamp when the request was triggered.
660
+
},
584
661
"reconciling": True or False, # Output only. If true, the database is being updated. If false, there are no ongoing update operations for the database.
585
662
"restoreInfo": { # Information about the database restore. # Output only. Applicable only for restored databases. Contains information about the restore source.
586
663
"backupInfo": { # Information about a backup. # Information about the backup used to restore the database. The backup may no longer exist.
@@ -650,6 +727,18 @@ <h3>Method Details</h3>
650
727
},
651
728
],
652
729
"name": "A String", # Required. The name of the database. Values are of the form `projects//instances//databases/`, where `` is as specified in the `CREATE DATABASE` statement. This name can be passed to other API methods to identify the database.
730
+
"quorumInfo": { # Information about the dual region quorum. # Output only. Applicable only for databases that use dual region instance configurations. Contains information about the quorum.
731
+
"etag": "A String", # Output only. The etag is used for optimistic concurrency control as a way to help prevent simultaneous ChangeQuorum requests that could create a race condition.
732
+
"initiator": "A String", # Output only. Whether this ChangeQuorum is a Google or User initiated.
733
+
"quorumType": { # Information about the database quorum type. this applies only for dual region instance configs. # Output only. The type of this quorum. See QuorumType for more information about quorum type specifications.
734
+
"dualRegion": { # Message type for a dual-region quorum. Currently this type has no options. # Dual region quorum type.
735
+
},
736
+
"singleRegion": { # Message type for a single-region quorum. # Single region quorum type.
737
+
"servingLocation": "A String", # Required. The location of the serving region, e.g. "us-central1". The location must be one of the regions within the dual region instance configuration of your database. The list of valid locations is available via [GetInstanceConfig[InstanceAdmin.GetInstanceConfig] API. This should only be used if you plan to change quorum in single-region quorum type.
738
+
},
739
+
},
740
+
"startTime": "A String", # Output only. The timestamp when the request was triggered.
741
+
},
653
742
"reconciling": True or False, # Output only. If true, the database is being updated. If false, there are no ongoing update operations for the database.
654
743
"restoreInfo": { # Information about the database restore. # Output only. Applicable only for restored databases. Contains information about the restore source.
655
744
"backupInfo": { # Information about a backup. # Information about the backup used to restore the database. The backup may no longer exist.
0 commit comments