google-apis-spanner_v1 0.19.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/spanner_v1/classes.rb +109 -71
- data/lib/google/apis/spanner_v1/gem_version.rb +3 -3
- data/lib/google/apis/spanner_v1/representations.rb +4 -0
- data/lib/google/apis/spanner_v1/service.rb +20 -15
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 126d7648a42f2a6d43bf9ae2fba6a8cfac3fc9e8afd82c99ce6a18e22f36ecc9
|
4
|
+
data.tar.gz: ed38b3054fbf167f4e0288f64055c71d5b21899a76f098b7db857882f473aa1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adfa1a8bf6924ecd49dc4825b4b5b38f1e72b51a376ab564ab48966fee6edc4d686521b1b91456bd4cf55a212fe0cce282ba18a33df5c059c9afd03a4e9f819b
|
7
|
+
data.tar.gz: 82329684f02b484b621efd96f046474a105208563ba8ae68750de9c17df2de5bf89a05343f691fb41cb4d13bac331afa95bdc2f54344dd794f296692e00ecb5e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-spanner_v1
|
2
2
|
|
3
|
+
### v0.23.0 (2022-02-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220124
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.22.0 (2021-12-16)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20211203
|
11
|
+
|
12
|
+
### v0.21.0 (2021-12-05)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211202
|
15
|
+
|
16
|
+
### v0.20.0 (2021-10-23)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211021
|
19
|
+
* Unspecified changes
|
20
|
+
|
3
21
|
### v0.19.0 (2021-09-27)
|
4
22
|
|
5
23
|
* Regenerated from discovery document revision 20210914
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/spanner_v1"
|
|
51
51
|
client = Google::Apis::SpannerV1::SpannerService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Spanner service in particular.)
|
67
67
|
|
@@ -40,6 +40,11 @@ module Google
|
|
40
40
|
# @return [String]
|
41
41
|
attr_accessor :database
|
42
42
|
|
43
|
+
# Output only. The database dialect information for the backup.
|
44
|
+
# Corresponds to the JSON property `databaseDialect`
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :database_dialect
|
47
|
+
|
43
48
|
# Encryption information for a Cloud Spanner database or backup.
|
44
49
|
# Corresponds to the JSON property `encryptionInfo`
|
45
50
|
# @return [Google::Apis::SpannerV1::EncryptionInfo]
|
@@ -100,6 +105,7 @@ module Google
|
|
100
105
|
def update!(**args)
|
101
106
|
@create_time = args[:create_time] if args.key?(:create_time)
|
102
107
|
@database = args[:database] if args.key?(:database)
|
108
|
+
@database_dialect = args[:database_dialect] if args.key?(:database_dialect)
|
103
109
|
@encryption_info = args[:encryption_info] if args.key?(:encryption_info)
|
104
110
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
105
111
|
@name = args[:name] if args.key?(:name)
|
@@ -381,7 +387,7 @@ module Google
|
|
381
387
|
end
|
382
388
|
end
|
383
389
|
|
384
|
-
# Associates `members
|
390
|
+
# Associates `members`, or principals, with a `role`.
|
385
391
|
class Binding
|
386
392
|
include Google::Apis::Core::Hashable
|
387
393
|
|
@@ -404,7 +410,7 @@ module Google
|
|
404
410
|
# @return [Google::Apis::SpannerV1::Expr]
|
405
411
|
attr_accessor :condition
|
406
412
|
|
407
|
-
# Specifies the
|
413
|
+
# Specifies the principals requesting access for a Cloud Platform resource. `
|
408
414
|
# members` can have the following values: * `allUsers`: A special identifier
|
409
415
|
# that represents anyone who is on the internet; with or without a Google
|
410
416
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -434,8 +440,8 @@ module Google
|
|
434
440
|
# @return [Array<String>]
|
435
441
|
attr_accessor :members
|
436
442
|
|
437
|
-
# Role that is assigned to `members
|
438
|
-
#
|
443
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
444
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
439
445
|
# Corresponds to the JSON property `role`
|
440
446
|
# @return [String]
|
441
447
|
attr_accessor :role
|
@@ -864,6 +870,11 @@ module Google
|
|
864
870
|
# @return [String]
|
865
871
|
attr_accessor :create_statement
|
866
872
|
|
873
|
+
# Optional. The dialect of the Cloud Spanner Database.
|
874
|
+
# Corresponds to the JSON property `databaseDialect`
|
875
|
+
# @return [String]
|
876
|
+
attr_accessor :database_dialect
|
877
|
+
|
867
878
|
# Encryption configuration for a Cloud Spanner database.
|
868
879
|
# Corresponds to the JSON property `encryptionConfig`
|
869
880
|
# @return [Google::Apis::SpannerV1::EncryptionConfig]
|
@@ -884,6 +895,7 @@ module Google
|
|
884
895
|
# Update properties of this object
|
885
896
|
def update!(**args)
|
886
897
|
@create_statement = args[:create_statement] if args.key?(:create_statement)
|
898
|
+
@database_dialect = args[:database_dialect] if args.key?(:database_dialect)
|
887
899
|
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
|
888
900
|
@extra_statements = args[:extra_statements] if args.key?(:extra_statements)
|
889
901
|
end
|
@@ -982,6 +994,11 @@ module Google
|
|
982
994
|
# @return [String]
|
983
995
|
attr_accessor :create_time
|
984
996
|
|
997
|
+
# Output only. The dialect of the Cloud Spanner Database.
|
998
|
+
# Corresponds to the JSON property `databaseDialect`
|
999
|
+
# @return [String]
|
1000
|
+
attr_accessor :database_dialect
|
1001
|
+
|
985
1002
|
# Output only. The read-write region which contains the database's leader
|
986
1003
|
# replicas. This is the same as the value of default_leader database option set
|
987
1004
|
# using DatabaseAdmin.CreateDatabase or DatabaseAdmin.UpdateDatabaseDdl. If not
|
@@ -1046,6 +1063,7 @@ module Google
|
|
1046
1063
|
# Update properties of this object
|
1047
1064
|
def update!(**args)
|
1048
1065
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1066
|
+
@database_dialect = args[:database_dialect] if args.key?(:database_dialect)
|
1049
1067
|
@default_leader = args[:default_leader] if args.key?(:default_leader)
|
1050
1068
|
@earliest_version_time = args[:earliest_version_time] if args.key?(:earliest_version_time)
|
1051
1069
|
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
|
@@ -1562,13 +1580,16 @@ module Google
|
|
1562
1580
|
class GetPolicyOptions
|
1563
1581
|
include Google::Apis::Core::Hashable
|
1564
1582
|
|
1565
|
-
# Optional. The policy
|
1566
|
-
# 3. Requests specifying an invalid value will be
|
1567
|
-
# policies with any conditional bindings must
|
1568
|
-
#
|
1569
|
-
# field unset.
|
1570
|
-
#
|
1571
|
-
#
|
1583
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1584
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1585
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1586
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1587
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1588
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1589
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1590
|
+
# bindings, the response uses version 1. To learn which resources support
|
1591
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1592
|
+
# google.com/iam/help/conditions/resource-policies).
|
1572
1593
|
# Corresponds to the JSON property `requestedPolicyVersion`
|
1573
1594
|
# @return [Fixnum]
|
1574
1595
|
attr_accessor :requested_policy_version
|
@@ -1727,7 +1748,7 @@ module Google
|
|
1727
1748
|
# @return [String]
|
1728
1749
|
attr_accessor :display_name
|
1729
1750
|
|
1730
|
-
# Allowed values of the
|
1751
|
+
# Allowed values of the "default_leader" schema option for databases in
|
1731
1752
|
# instances that use this instance configuration.
|
1732
1753
|
# Corresponds to the JSON property `leaderOptions`
|
1733
1754
|
# @return [Array<String>]
|
@@ -1981,11 +2002,12 @@ module Google
|
|
1981
2002
|
attr_accessor :next_page_token
|
1982
2003
|
|
1983
2004
|
# The list of matching backup long-running operations. Each operation's name
|
1984
|
-
# will be prefixed by the backup's name
|
1985
|
-
#
|
1986
|
-
# or have completed/failed/canceled within the
|
1987
|
-
# are ordered by `operation.metadata.value.
|
1988
|
-
# order starting from the most recently
|
2005
|
+
# will be prefixed by the backup's name. The operation's metadata field type `
|
2006
|
+
# metadata.type_url` describes the type of the metadata. Operations returned
|
2007
|
+
# include those that are pending or have completed/failed/canceled within the
|
2008
|
+
# last 7 days. Operations returned are ordered by `operation.metadata.value.
|
2009
|
+
# progress.start_time` in descending order starting from the most recently
|
2010
|
+
# started operation.
|
1989
2011
|
# Corresponds to the JSON property `operations`
|
1990
2012
|
# @return [Array<Google::Apis::SpannerV1::Operation>]
|
1991
2013
|
attr_accessor :operations
|
@@ -2917,37 +2939,42 @@ module Google
|
|
2917
2939
|
|
2918
2940
|
# An Identity and Access Management (IAM) policy, which specifies access
|
2919
2941
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
2920
|
-
# A `binding` binds one or more `members
|
2921
|
-
# user accounts, service accounts, Google groups, and domains (
|
2922
|
-
# A `role` is a named list of permissions; each `role` can be
|
2923
|
-
# role or a user-created custom role. For some types of Google
|
2924
|
-
# a `binding` can also specify a `condition`, which is a
|
2925
|
-
# allows access to a resource only if the expression
|
2926
|
-
# condition can add constraints based on attributes of
|
2927
|
-
# or both. To learn which resources support
|
2928
|
-
# see the [IAM documentation](https://cloud.
|
2929
|
-
# resource-policies). **JSON example:** ` "
|
2930
|
-
# resourcemanager.organizationAdmin", "members": [
|
2931
|
-
# group:admins@example.com", "domain:google.com", "
|
2932
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
2933
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
2934
|
-
# title": "expirable access", "description": "Does not grant
|
2935
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2936
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2937
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
2938
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2939
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
2940
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
2941
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
2942
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
2943
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
2944
|
-
# google.com/iam/docs/).
|
2942
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
2943
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
2944
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
2945
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
2946
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
2947
|
+
# logical expression that allows access to a resource only if the expression
|
2948
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
2949
|
+
# the request, the resource, or both. To learn which resources support
|
2950
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2951
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
2952
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
2953
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
2954
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
2955
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
2956
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
2957
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2958
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
2959
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
2960
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
2961
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
2962
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
2963
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
2964
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
2965
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
2966
|
+
# cloud.google.com/iam/docs/).
|
2945
2967
|
class Policy
|
2946
2968
|
include Google::Apis::Core::Hashable
|
2947
2969
|
|
2948
|
-
# Associates a list of `members
|
2949
|
-
# condition` that determines how and when the `bindings` are applied.
|
2950
|
-
# the `bindings` must contain at least one
|
2970
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
2971
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
2972
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
2973
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
2974
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
2975
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
2976
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
2977
|
+
# principals to the `bindings` in the `Policy`.
|
2951
2978
|
# Corresponds to the JSON property `bindings`
|
2952
2979
|
# @return [Array<Google::Apis::SpannerV1::Binding>]
|
2953
2980
|
attr_accessor :bindings
|
@@ -3349,7 +3376,7 @@ module Google
|
|
3349
3376
|
# A tag used for statistics collection about this transaction. Both request_tag
|
3350
3377
|
# and transaction_tag can be specified for a read or query that belongs to a
|
3351
3378
|
# transaction. The value of transaction_tag should be the same for all requests
|
3352
|
-
# belonging to the same transaction. If this request doesn
|
3379
|
+
# belonging to the same transaction. If this request doesn't belong to any
|
3353
3380
|
# transaction, transaction_tag will be ignored. Legal characters for `
|
3354
3381
|
# transaction_tag` values are all printable characters (ASCII 32 - 126) and the
|
3355
3382
|
# length of a transaction_tag is limited to 50 characters. Values that exceed
|
@@ -3771,31 +3798,31 @@ module Google
|
|
3771
3798
|
|
3772
3799
|
# An Identity and Access Management (IAM) policy, which specifies access
|
3773
3800
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
3774
|
-
# A `binding` binds one or more `members
|
3775
|
-
# user accounts, service accounts, Google groups, and domains (
|
3776
|
-
# A `role` is a named list of permissions; each `role` can be
|
3777
|
-
# role or a user-created custom role. For some types of Google
|
3778
|
-
# a `binding` can also specify a `condition`, which is a
|
3779
|
-
# allows access to a resource only if the expression
|
3780
|
-
# condition can add constraints based on attributes of
|
3781
|
-
# or both. To learn which resources support
|
3782
|
-
# see the [IAM documentation](https://cloud.
|
3783
|
-
# resource-policies). **JSON example:** ` "
|
3784
|
-
# resourcemanager.organizationAdmin", "members": [
|
3785
|
-
# group:admins@example.com", "domain:google.com", "
|
3786
|
-
# appspot.gserviceaccount.com" ] `, ` "role": "
|
3787
|
-
# organizationViewer", "members": [ "user:eve@example.com"
|
3788
|
-
# title": "expirable access", "description": "Does not grant
|
3789
|
-
# 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
3790
|
-
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
3791
|
-
# members: - user:mike@example.com - group:admins@example.com -
|
3792
|
-
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
3793
|
-
# resourcemanager.organizationAdmin - members: - user:eve@example.
|
3794
|
-
# roles/resourcemanager.organizationViewer condition: title: expirable
|
3795
|
-
# description: Does not grant access after Sep 2020 expression: request.
|
3796
|
-
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
3797
|
-
# description of IAM and its features, see the [IAM documentation](https://
|
3798
|
-
# google.com/iam/docs/).
|
3801
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
3802
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
3803
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
3804
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
3805
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
3806
|
+
# logical expression that allows access to a resource only if the expression
|
3807
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
3808
|
+
# the request, the resource, or both. To learn which resources support
|
3809
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
3810
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
3811
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
3812
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
3813
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
3814
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
3815
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
3816
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
3817
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
|
3818
|
+
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
3819
|
+
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
3820
|
+
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
3821
|
+
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
3822
|
+
# access description: Does not grant access after Sep 2020 expression: request.
|
3823
|
+
# time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
|
3824
|
+
# a description of IAM and its features, see the [IAM documentation](https://
|
3825
|
+
# cloud.google.com/iam/docs/).
|
3799
3826
|
# Corresponds to the JSON property `policy`
|
3800
3827
|
# @return [Google::Apis::SpannerV1::Policy]
|
3801
3828
|
attr_accessor :policy
|
@@ -4575,6 +4602,16 @@ module Google
|
|
4575
4602
|
# @return [Google::Apis::SpannerV1::StructType]
|
4576
4603
|
attr_accessor :struct_type
|
4577
4604
|
|
4605
|
+
# The TypeAnnotationCode that disambiguates SQL type that Spanner will use to
|
4606
|
+
# represent values of this type during query processing. This is necessary for
|
4607
|
+
# some type codes because a single TypeCode can be mapped to different SQL types
|
4608
|
+
# depending on the SQL dialect. type_annotation typically is not needed to
|
4609
|
+
# process the content of a value (it doesn't affect serialization) and clients
|
4610
|
+
# can ignore it on the read path.
|
4611
|
+
# Corresponds to the JSON property `typeAnnotation`
|
4612
|
+
# @return [String]
|
4613
|
+
attr_accessor :type_annotation
|
4614
|
+
|
4578
4615
|
def initialize(**args)
|
4579
4616
|
update!(**args)
|
4580
4617
|
end
|
@@ -4584,6 +4621,7 @@ module Google
|
|
4584
4621
|
@array_element_type = args[:array_element_type] if args.key?(:array_element_type)
|
4585
4622
|
@code = args[:code] if args.key?(:code)
|
4586
4623
|
@struct_type = args[:struct_type] if args.key?(:struct_type)
|
4624
|
+
@type_annotation = args[:type_annotation] if args.key?(:type_annotation)
|
4587
4625
|
end
|
4588
4626
|
end
|
4589
4627
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SpannerV1
|
18
18
|
# Version of the google-apis-spanner_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.23.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220124"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -639,6 +639,7 @@ module Google
|
|
639
639
|
class Representation < Google::Apis::Core::JsonRepresentation
|
640
640
|
property :create_time, as: 'createTime'
|
641
641
|
property :database, as: 'database'
|
642
|
+
property :database_dialect, as: 'databaseDialect'
|
642
643
|
property :encryption_info, as: 'encryptionInfo', class: Google::Apis::SpannerV1::EncryptionInfo, decorator: Google::Apis::SpannerV1::EncryptionInfo::Representation
|
643
644
|
|
644
645
|
property :expire_time, as: 'expireTime'
|
@@ -769,6 +770,7 @@ module Google
|
|
769
770
|
# @private
|
770
771
|
class Representation < Google::Apis::Core::JsonRepresentation
|
771
772
|
property :create_statement, as: 'createStatement'
|
773
|
+
property :database_dialect, as: 'databaseDialect'
|
772
774
|
property :encryption_config, as: 'encryptionConfig', class: Google::Apis::SpannerV1::EncryptionConfig, decorator: Google::Apis::SpannerV1::EncryptionConfig::Representation
|
773
775
|
|
774
776
|
collection :extra_statements, as: 'extraStatements'
|
@@ -807,6 +809,7 @@ module Google
|
|
807
809
|
# @private
|
808
810
|
class Representation < Google::Apis::Core::JsonRepresentation
|
809
811
|
property :create_time, as: 'createTime'
|
812
|
+
property :database_dialect, as: 'databaseDialect'
|
810
813
|
property :default_leader, as: 'defaultLeader'
|
811
814
|
property :earliest_version_time, as: 'earliestVersionTime'
|
812
815
|
property :encryption_config, as: 'encryptionConfig', class: Google::Apis::SpannerV1::EncryptionConfig, decorator: Google::Apis::SpannerV1::EncryptionConfig::Representation
|
@@ -1622,6 +1625,7 @@ module Google
|
|
1622
1625
|
property :code, as: 'code'
|
1623
1626
|
property :struct_type, as: 'structType', class: Google::Apis::SpannerV1::StructType, decorator: Google::Apis::SpannerV1::StructType::Representation
|
1624
1627
|
|
1628
|
+
property :type_annotation, as: 'typeAnnotation'
|
1625
1629
|
end
|
1626
1630
|
end
|
1627
1631
|
|
@@ -482,20 +482,23 @@ module Google
|
|
482
482
|
# long-running operation * `done` - False if the operation is in progress, else
|
483
483
|
# true. * `metadata.@type` - the type of metadata. For example, the type string
|
484
484
|
# for CreateBackupMetadata is `type.googleapis.com/google.spanner.admin.database.
|
485
|
-
# v1.CreateBackupMetadata`. * `metadata.` - any field in metadata.value.
|
486
|
-
#
|
487
|
-
# the
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
485
|
+
# v1.CreateBackupMetadata`. * `metadata.` - any field in metadata.value. `
|
486
|
+
# metadata.type_url` must be specified if filtering on metadata fields. * `error`
|
487
|
+
# - Error associated with the long-running operation. * `response.@type` - the
|
488
|
+
# type of response. * `response.` - any field in response.value. You can combine
|
489
|
+
# multiple expressions by enclosing each expression in parentheses. By default,
|
490
|
+
# expressions are combined with AND logic, but you can specify AND, OR, and NOT
|
491
|
+
# logic explicitly. Here are a few examples: * `done:true` - The operation is
|
492
|
+
# complete. * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.
|
493
|
+
# v1.CreateBackupMetadata) AND` \ `metadata.database:prod` - Returns operations
|
494
|
+
# where: * The operation's metadata type is CreateBackupMetadata. * The database
|
495
|
+
# the backup was taken from has a name containing the string "prod". * `(
|
496
|
+
# metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.
|
497
|
+
# CreateBackupMetadata) AND` \ `(metadata.name:howl) AND` \ `(metadata.progress.
|
498
|
+
# start_time < \"2018-03-28T14:50:00Z\") AND` \ `(error:*)` - Returns operations
|
499
|
+
# where: * The operation's metadata type is CreateBackupMetadata. * The backup
|
500
|
+
# name contains the string "howl". * The operation started before 2018-03-28T14:
|
501
|
+
# 50:00Z. * The operation resulted in an error.
|
499
502
|
# @param [Fixnum] page_size
|
500
503
|
# Number of operations to be returned in the response. If 0 or less, defaults to
|
501
504
|
# the server's maximum allowed page size.
|
@@ -1129,7 +1132,9 @@ module Google
|
|
1129
1132
|
end
|
1130
1133
|
|
1131
1134
|
# Drops (aka deletes) a Cloud Spanner database. Completed backups for the
|
1132
|
-
# database will be retained according to their `expire_time`.
|
1135
|
+
# database will be retained according to their `expire_time`. Note: Cloud
|
1136
|
+
# Spanner might continue to accept requests for a few seconds after the database
|
1137
|
+
# has been deleted.
|
1133
1138
|
# @param [String] database
|
1134
1139
|
# Required. The database to be dropped.
|
1135
1140
|
# @param [String] fields
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-spanner_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-spanner_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.23.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-spanner_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Spanner API V1
|