google-cloud-spanner-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-spanner-v1.rb +21 -0
  7. data/lib/google/cloud/spanner/v1.rb +35 -0
  8. data/lib/google/cloud/spanner/v1/spanner.rb +52 -0
  9. data/lib/google/cloud/spanner/v1/spanner/client.rb +1947 -0
  10. data/lib/google/cloud/spanner/v1/spanner/credentials.rb +52 -0
  11. data/lib/google/cloud/spanner/v1/spanner/paths.rb +73 -0
  12. data/lib/google/cloud/spanner/v1/version.rb +28 -0
  13. data/lib/google/spanner/v1/keys_pb.rb +37 -0
  14. data/lib/google/spanner/v1/mutation_pb.rb +42 -0
  15. data/lib/google/spanner/v1/query_plan_pb.rb +51 -0
  16. data/lib/google/spanner/v1/result_set_pb.rb +51 -0
  17. data/lib/google/spanner/v1/spanner_pb.rb +182 -0
  18. data/lib/google/spanner/v1/spanner_services_pb.rb +180 -0
  19. data/lib/google/spanner/v1/transaction_pb.rb +59 -0
  20. data/lib/google/spanner/v1/type_pb.rb +47 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/field_behavior.rb +59 -0
  23. data/proto_docs/google/api/resource.rb +247 -0
  24. data/proto_docs/google/protobuf/any.rb +138 -0
  25. data/proto_docs/google/protobuf/duration.rb +98 -0
  26. data/proto_docs/google/protobuf/empty.rb +36 -0
  27. data/proto_docs/google/protobuf/struct.rb +96 -0
  28. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  29. data/proto_docs/google/rpc/status.rb +46 -0
  30. data/proto_docs/google/spanner/v1/keys.rb +162 -0
  31. data/proto_docs/google/spanner/v1/mutation.rb +110 -0
  32. data/proto_docs/google/spanner/v1/query_plan.rb +148 -0
  33. data/proto_docs/google/spanner/v1/result_set.rb +208 -0
  34. data/proto_docs/google/spanner/v1/spanner.rb +681 -0
  35. data/proto_docs/google/spanner/v1/transaction.rb +457 -0
  36. data/proto_docs/google/spanner/v1/type.rb +127 -0
  37. metadata +218 -0
@@ -0,0 +1,127 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Spanner
23
+ module V1
24
+ # `Type` indicates the type of a Cloud Spanner value, as might be stored in a
25
+ # table cell or returned from an SQL query.
26
+ # @!attribute [rw] code
27
+ # @return [::Google::Cloud::Spanner::V1::TypeCode]
28
+ # Required. The {::Google::Cloud::Spanner::V1::TypeCode TypeCode} for this type.
29
+ # @!attribute [rw] array_element_type
30
+ # @return [::Google::Cloud::Spanner::V1::Type]
31
+ # If {::Google::Cloud::Spanner::V1::Type#code code} == {::Google::Cloud::Spanner::V1::TypeCode::ARRAY ARRAY}, then `array_element_type`
32
+ # is the type of the array elements.
33
+ # @!attribute [rw] struct_type
34
+ # @return [::Google::Cloud::Spanner::V1::StructType]
35
+ # If {::Google::Cloud::Spanner::V1::Type#code code} == {::Google::Cloud::Spanner::V1::TypeCode::STRUCT STRUCT}, then `struct_type`
36
+ # provides type information for the struct's fields.
37
+ class Type
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+ end
41
+
42
+ # `StructType` defines the fields of a {::Google::Cloud::Spanner::V1::TypeCode::STRUCT STRUCT} type.
43
+ # @!attribute [rw] fields
44
+ # @return [::Array<::Google::Cloud::Spanner::V1::StructType::Field>]
45
+ # The list of fields that make up this struct. Order is
46
+ # significant, because values of this struct type are represented as
47
+ # lists, where the order of field values matches the order of
48
+ # fields in the {::Google::Cloud::Spanner::V1::StructType StructType}. In turn, the order of fields
49
+ # matches the order of columns in a read request, or the order of
50
+ # fields in the `SELECT` clause of a query.
51
+ class StructType
52
+ include ::Google::Protobuf::MessageExts
53
+ extend ::Google::Protobuf::MessageExts::ClassMethods
54
+
55
+ # Message representing a single field of a struct.
56
+ # @!attribute [rw] name
57
+ # @return [::String]
58
+ # The name of the field. For reads, this is the column name. For
59
+ # SQL queries, it is the column alias (e.g., `"Word"` in the
60
+ # query `"SELECT 'hello' AS Word"`), or the column name (e.g.,
61
+ # `"ColName"` in the query `"SELECT ColName FROM Table"`). Some
62
+ # columns might have an empty name (e.g., !"SELECT
63
+ # UPPER(ColName)"`). Note that a query result can contain
64
+ # multiple fields with the same name.
65
+ # @!attribute [rw] type
66
+ # @return [::Google::Cloud::Spanner::V1::Type]
67
+ # The type of the field.
68
+ class Field
69
+ include ::Google::Protobuf::MessageExts
70
+ extend ::Google::Protobuf::MessageExts::ClassMethods
71
+ end
72
+ end
73
+
74
+ # `TypeCode` is used as part of {::Google::Cloud::Spanner::V1::Type Type} to
75
+ # indicate the type of a Cloud Spanner value.
76
+ #
77
+ # Each legal value of a type can be encoded to or decoded from a JSON
78
+ # value, using the encodings described below. All Cloud Spanner values can
79
+ # be `null`, regardless of type; `null`s are always encoded as a JSON
80
+ # `null`.
81
+ module TypeCode
82
+ # Not specified.
83
+ TYPE_CODE_UNSPECIFIED = 0
84
+
85
+ # Encoded as JSON `true` or `false`.
86
+ BOOL = 1
87
+
88
+ # Encoded as `string`, in decimal format.
89
+ INT64 = 2
90
+
91
+ # Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
92
+ # `"-Infinity"`.
93
+ FLOAT64 = 3
94
+
95
+ # Encoded as `string` in RFC 3339 timestamp format. The time zone
96
+ # must be present, and must be `"Z"`.
97
+ #
98
+ # If the schema has the column option
99
+ # `allow_commit_timestamp=true`, the placeholder string
100
+ # `"spanner.commit_timestamp()"` can be used to instruct the system
101
+ # to insert the commit timestamp associated with the transaction
102
+ # commit.
103
+ TIMESTAMP = 4
104
+
105
+ # Encoded as `string` in RFC 3339 date format.
106
+ DATE = 5
107
+
108
+ # Encoded as `string`.
109
+ STRING = 6
110
+
111
+ # Encoded as a base64-encoded `string`, as described in RFC 4648,
112
+ # section 4.
113
+ BYTES = 7
114
+
115
+ # Encoded as `list`, where the list elements are represented
116
+ # according to
117
+ # {::Google::Cloud::Spanner::V1::Type#array_element_type array_element_type}.
118
+ ARRAY = 8
119
+
120
+ # Encoded as `list`, where list element `i` is represented according
121
+ # to [struct_type.fields[i]][google.spanner.v1.StructType.fields].
122
+ STRUCT = 9
123
+ end
124
+ end
125
+ end
126
+ end
127
+ end
metadata ADDED
@@ -0,0 +1,218 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-cloud-spanner-v1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gapic-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: google-cloud-errors
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: google-style
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.24.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.24.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.14'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '12.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '12.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: redcarpet
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.18'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.18'
139
+ - !ruby/object:Gem::Dependency
140
+ name: yard
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.9'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.9'
153
+ description: Cloud Spanner is a managed, mission-critical, globally consistent and
154
+ scalable relational database service.
155
+ email: googleapis-packages@google.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".yardopts"
161
+ - AUTHENTICATION.md
162
+ - LICENSE.md
163
+ - README.md
164
+ - lib/google-cloud-spanner-v1.rb
165
+ - lib/google/cloud/spanner/v1.rb
166
+ - lib/google/cloud/spanner/v1/spanner.rb
167
+ - lib/google/cloud/spanner/v1/spanner/client.rb
168
+ - lib/google/cloud/spanner/v1/spanner/credentials.rb
169
+ - lib/google/cloud/spanner/v1/spanner/paths.rb
170
+ - lib/google/cloud/spanner/v1/version.rb
171
+ - lib/google/spanner/v1/keys_pb.rb
172
+ - lib/google/spanner/v1/mutation_pb.rb
173
+ - lib/google/spanner/v1/query_plan_pb.rb
174
+ - lib/google/spanner/v1/result_set_pb.rb
175
+ - lib/google/spanner/v1/spanner_pb.rb
176
+ - lib/google/spanner/v1/spanner_services_pb.rb
177
+ - lib/google/spanner/v1/transaction_pb.rb
178
+ - lib/google/spanner/v1/type_pb.rb
179
+ - proto_docs/README.md
180
+ - proto_docs/google/api/field_behavior.rb
181
+ - proto_docs/google/api/resource.rb
182
+ - proto_docs/google/protobuf/any.rb
183
+ - proto_docs/google/protobuf/duration.rb
184
+ - proto_docs/google/protobuf/empty.rb
185
+ - proto_docs/google/protobuf/struct.rb
186
+ - proto_docs/google/protobuf/timestamp.rb
187
+ - proto_docs/google/rpc/status.rb
188
+ - proto_docs/google/spanner/v1/keys.rb
189
+ - proto_docs/google/spanner/v1/mutation.rb
190
+ - proto_docs/google/spanner/v1/query_plan.rb
191
+ - proto_docs/google/spanner/v1/result_set.rb
192
+ - proto_docs/google/spanner/v1/spanner.rb
193
+ - proto_docs/google/spanner/v1/transaction.rb
194
+ - proto_docs/google/spanner/v1/type.rb
195
+ homepage: https://github.com/googleapis/google-cloud-ruby
196
+ licenses:
197
+ - Apache-2.0
198
+ metadata: {}
199
+ post_install_message:
200
+ rdoc_options: []
201
+ require_paths:
202
+ - lib
203
+ required_ruby_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '2.4'
208
+ required_rubygems_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
213
+ requirements: []
214
+ rubygems_version: 3.1.3
215
+ signing_key:
216
+ specification_version: 4
217
+ summary: API Client library for the Cloud Spanner V1 API
218
+ test_files: []