google-apis-spanner_v1 0.21.0 → 0.24.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 +13 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/spanner_v1/classes.rb +35 -5
- 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 +18 -11
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d21118bfea939956c650168df9b62ec3b03602e086c44ac41b9091242a624c9b
|
4
|
+
data.tar.gz: d1f8512a386fa6a10656f8edc4e9de1e3a0be5a2f7e3b51b9c49e8e578d567ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85476a117c020df05d7f1cfa7f7932277bef795df67d90cdb0f831602256ff04ef6859e1eb252c9583d383493b69b31c7264bb307928a88546e93c18b34e0688
|
7
|
+
data.tar.gz: a0142e2d38dc8398b5560b60c43b4bd07e79b84f4e27b0aa9950522fded71c631cac300c05728261ca93de9f34211277810811ddbd532946c83aba1111e8ce6a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-spanner_v1
|
2
2
|
|
3
|
+
### v0.24.0 (2022-02-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220212
|
6
|
+
|
7
|
+
### v0.23.0 (2022-02-03)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220124
|
10
|
+
* Regenerated using generator version 0.4.1
|
11
|
+
|
12
|
+
### v0.22.0 (2021-12-16)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211203
|
15
|
+
|
3
16
|
### v0.21.0 (2021-12-05)
|
4
17
|
|
5
18
|
* Regenerated from discovery document revision 20211202
|
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.
|
@@ -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)
|
@@ -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)
|
@@ -1984,11 +2002,12 @@ module Google
|
|
1984
2002
|
attr_accessor :next_page_token
|
1985
2003
|
|
1986
2004
|
# The list of matching backup long-running operations. Each operation's name
|
1987
|
-
# will be prefixed by the backup's name
|
1988
|
-
#
|
1989
|
-
# or have completed/failed/canceled within the
|
1990
|
-
# are ordered by `operation.metadata.value.
|
1991
|
-
# 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.
|
1992
2011
|
# Corresponds to the JSON property `operations`
|
1993
2012
|
# @return [Array<Google::Apis::SpannerV1::Operation>]
|
1994
2013
|
attr_accessor :operations
|
@@ -4583,6 +4602,16 @@ module Google
|
|
4583
4602
|
# @return [Google::Apis::SpannerV1::StructType]
|
4584
4603
|
attr_accessor :struct_type
|
4585
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
|
+
|
4586
4615
|
def initialize(**args)
|
4587
4616
|
update!(**args)
|
4588
4617
|
end
|
@@ -4592,6 +4621,7 @@ module Google
|
|
4592
4621
|
@array_element_type = args[:array_element_type] if args.key?(:array_element_type)
|
4593
4622
|
@code = args[:code] if args.key?(:code)
|
4594
4623
|
@struct_type = args[:struct_type] if args.key?(:struct_type)
|
4624
|
+
@type_annotation = args[:type_annotation] if args.key?(:type_annotation)
|
4595
4625
|
end
|
4596
4626
|
end
|
4597
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.24.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 = "20220212"
|
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,24 @@ 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.
|
485
|
+
# v1.CreateBackupMetadata`. * `metadata.` - any field in metadata.value. `
|
486
|
+
# metadata.@type` must be specified first if filtering on metadata fields. * `
|
486
487
|
# error` - Error associated with the long-running operation. * `response.@type` -
|
487
488
|
# the type of response. * `response.` - any field in response.value. You can
|
488
489
|
# combine multiple expressions by enclosing each expression in parentheses. By
|
489
490
|
# default, expressions are combined with AND logic, but you can specify AND, OR,
|
490
491
|
# and NOT logic explicitly. Here are a few examples: * `done:true` - The
|
491
|
-
# operation is complete. * `metadata.
|
492
|
-
#
|
493
|
-
# type
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
492
|
+
# operation is complete. * `(metadata.@type=type.googleapis.com/google.spanner.
|
493
|
+
# admin.database.v1.CreateBackupMetadata) AND` \ `metadata.database:prod` -
|
494
|
+
# Returns operations where: * The operation's metadata type is
|
495
|
+
# CreateBackupMetadata. * The database the backup was taken from has a name
|
496
|
+
# containing the string "prod". * `(metadata.@type=type.googleapis.com/google.
|
497
|
+
# spanner.admin.database.v1.CreateBackupMetadata) AND` \ `(metadata.name:howl)
|
498
|
+
# AND` \ `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \ `(
|
499
|
+
# error:*)` - Returns operations where: * The operation's metadata type is
|
500
|
+
# CreateBackupMetadata. * The backup name contains the string "howl". * The
|
501
|
+
# operation started before 2018-03-28T14:50:00Z. * The operation resulted in an
|
502
|
+
# error.
|
499
503
|
# @param [Fixnum] page_size
|
500
504
|
# Number of operations to be returned in the response. If 0 or less, defaults to
|
501
505
|
# the server's maximum allowed page size.
|
@@ -1041,7 +1045,8 @@ module Google
|
|
1041
1045
|
# true. * `metadata.@type` - the type of metadata. For example, the type string
|
1042
1046
|
# for RestoreDatabaseMetadata is `type.googleapis.com/google.spanner.admin.
|
1043
1047
|
# database.v1.RestoreDatabaseMetadata`. * `metadata.` - any field in metadata.
|
1044
|
-
# value.
|
1048
|
+
# value. `metadata.@type` must be specified first, if filtering on metadata
|
1049
|
+
# fields. * `error` - Error associated with the long-running operation. * `
|
1045
1050
|
# response.@type` - the type of response. * `response.` - any field in response.
|
1046
1051
|
# value. You can combine multiple expressions by enclosing each expression in
|
1047
1052
|
# parentheses. By default, expressions are combined with AND logic. However, you
|
@@ -1129,7 +1134,9 @@ module Google
|
|
1129
1134
|
end
|
1130
1135
|
|
1131
1136
|
# Drops (aka deletes) a Cloud Spanner database. Completed backups for the
|
1132
|
-
# database will be retained according to their `expire_time`.
|
1137
|
+
# database will be retained according to their `expire_time`. Note: Cloud
|
1138
|
+
# Spanner might continue to accept requests for a few seconds after the database
|
1139
|
+
# has been deleted.
|
1133
1140
|
# @param [String] database
|
1134
1141
|
# Required. The database to be dropped.
|
1135
1142
|
# @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.24.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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-spanner_v1/v0.24.0
|
62
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: []
|
@@ -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
|