google-api-client 0.9.28 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/CHANGELOG.md +10 -0
- data/api_names.yaml +36512 -36326
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +3 -3
- data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
- data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
- data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
- data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
- data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
- data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
- data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
- data/generated/google/apis/cloudtrace_v1.rb +8 -8
- data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +406 -31
- data/generated/google/apis/compute_beta/representations.rb +154 -0
- data/generated/google/apis/compute_beta/service.rb +262 -9
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +17 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
- data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
- data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
- data/generated/google/apis/dataproc_v1/representations.rb +262 -244
- data/generated/google/apis/dataproc_v1/service.rb +298 -243
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +728 -728
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +932 -932
- data/generated/google/apis/genomics_v1/representations.rb +205 -205
- data/generated/google/apis/genomics_v1/service.rb +1228 -1228
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +60 -60
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +21 -21
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +232 -232
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
- data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
- data/generated/google/apis/logging_v2beta1/service.rb +331 -306
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +253 -253
- data/generated/google/apis/monitoring_v3/representations.rb +58 -58
- data/generated/google/apis/monitoring_v3/service.rb +135 -135
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +985 -855
- data/generated/google/apis/people_v1/representations.rb +227 -220
- data/generated/google/apis/people_v1/service.rb +58 -52
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +257 -257
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +390 -390
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +149 -141
- data/generated/google/apis/script_v1/representations.rb +26 -27
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
- data/generated/google/apis/sheets_v4/representations.rb +850 -834
- data/generated/google/apis/sheets_v4/service.rb +192 -192
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +927 -800
- data/generated/google/apis/slides_v1/representations.rb +253 -211
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
- data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
- data/generated/google/apis/speech_v1beta1/service.rb +51 -54
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +888 -885
- data/generated/google/apis/vision_v1/representations.rb +139 -139
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
- data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
- data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
- data/google-api-client.gemspec +2 -2
- data/lib/google/apis/core/api_command.rb +1 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- metadata +36 -30
|
@@ -26,13 +26,13 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/datastore/
|
|
27
27
|
module DatastoreV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
30
|
-
|
|
31
|
-
# View and manage your data across Google Cloud Platform services
|
|
32
|
-
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
29
|
+
REVISION = '20170206'
|
|
33
30
|
|
|
34
31
|
# View and manage your Google Cloud Datastore data
|
|
35
32
|
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
|
33
|
+
|
|
34
|
+
# View and manage your data across Google Cloud Platform services
|
|
35
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
end
|
|
@@ -22,18 +22,215 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module DatastoreV1
|
|
24
24
|
|
|
25
|
+
# The response for Datastore.AllocateIds.
|
|
26
|
+
class AllocateIdsResponse
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# The keys specified in the request (in the same order), each with
|
|
30
|
+
# its key path completed with a newly allocated ID.
|
|
31
|
+
# Corresponds to the JSON property `keys`
|
|
32
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
33
|
+
attr_accessor :keys
|
|
34
|
+
|
|
35
|
+
def initialize(**args)
|
|
36
|
+
update!(**args)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Update properties of this object
|
|
40
|
+
def update!(**args)
|
|
41
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# A query for entities.
|
|
46
|
+
class Query
|
|
47
|
+
include Google::Apis::Core::Hashable
|
|
48
|
+
|
|
49
|
+
# The number of results to skip. Applies before limit, but after all other
|
|
50
|
+
# constraints. Optional. Must be >= 0 if specified.
|
|
51
|
+
# Corresponds to the JSON property `offset`
|
|
52
|
+
# @return [Fixnum]
|
|
53
|
+
attr_accessor :offset
|
|
54
|
+
|
|
55
|
+
# A starting point for the query results. Query cursors are
|
|
56
|
+
# returned in query result batches and
|
|
57
|
+
# [can only be used to continue the same query](https://cloud.google.com/
|
|
58
|
+
# datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
|
59
|
+
# Corresponds to the JSON property `startCursor`
|
|
60
|
+
# @return [String]
|
|
61
|
+
attr_accessor :start_cursor
|
|
62
|
+
|
|
63
|
+
# The kinds to query (if empty, returns entities of all kinds).
|
|
64
|
+
# Currently at most 1 kind may be specified.
|
|
65
|
+
# Corresponds to the JSON property `kind`
|
|
66
|
+
# @return [Array<Google::Apis::DatastoreV1::KindExpression>]
|
|
67
|
+
attr_accessor :kind
|
|
68
|
+
|
|
69
|
+
# The properties to make distinct. The query results will contain the first
|
|
70
|
+
# result for each distinct combination of values for the given properties
|
|
71
|
+
# (if empty, all results are returned).
|
|
72
|
+
# Corresponds to the JSON property `distinctOn`
|
|
73
|
+
# @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
|
|
74
|
+
attr_accessor :distinct_on
|
|
75
|
+
|
|
76
|
+
# The order to apply to the query results (if empty, order is unspecified).
|
|
77
|
+
# Corresponds to the JSON property `order`
|
|
78
|
+
# @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
|
|
79
|
+
attr_accessor :order
|
|
80
|
+
|
|
81
|
+
# The projection to return. Defaults to returning all properties.
|
|
82
|
+
# Corresponds to the JSON property `projection`
|
|
83
|
+
# @return [Array<Google::Apis::DatastoreV1::Projection>]
|
|
84
|
+
attr_accessor :projection
|
|
85
|
+
|
|
86
|
+
# An ending point for the query results. Query cursors are
|
|
87
|
+
# returned in query result batches and
|
|
88
|
+
# [can only be used to limit the same query](https://cloud.google.com/datastore/
|
|
89
|
+
# docs/concepts/queries#cursors_limits_and_offsets).
|
|
90
|
+
# Corresponds to the JSON property `endCursor`
|
|
91
|
+
# @return [String]
|
|
92
|
+
attr_accessor :end_cursor
|
|
93
|
+
|
|
94
|
+
# The maximum number of results to return. Applies after all other
|
|
95
|
+
# constraints. Optional.
|
|
96
|
+
# Unspecified is interpreted as no limit.
|
|
97
|
+
# Must be >= 0 if specified.
|
|
98
|
+
# Corresponds to the JSON property `limit`
|
|
99
|
+
# @return [Fixnum]
|
|
100
|
+
attr_accessor :limit
|
|
101
|
+
|
|
102
|
+
# A holder for any type of filter.
|
|
103
|
+
# Corresponds to the JSON property `filter`
|
|
104
|
+
# @return [Google::Apis::DatastoreV1::Filter]
|
|
105
|
+
attr_accessor :filter
|
|
106
|
+
|
|
107
|
+
def initialize(**args)
|
|
108
|
+
update!(**args)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Update properties of this object
|
|
112
|
+
def update!(**args)
|
|
113
|
+
@offset = args[:offset] if args.key?(:offset)
|
|
114
|
+
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
|
|
115
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
116
|
+
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
|
117
|
+
@order = args[:order] if args.key?(:order)
|
|
118
|
+
@projection = args[:projection] if args.key?(:projection)
|
|
119
|
+
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
120
|
+
@limit = args[:limit] if args.key?(:limit)
|
|
121
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# A filter on a specific property.
|
|
126
|
+
class PropertyFilter
|
|
127
|
+
include Google::Apis::Core::Hashable
|
|
128
|
+
|
|
129
|
+
# A message that can hold any of the supported value types and associated
|
|
130
|
+
# metadata.
|
|
131
|
+
# Corresponds to the JSON property `value`
|
|
132
|
+
# @return [Google::Apis::DatastoreV1::Value]
|
|
133
|
+
attr_accessor :value
|
|
134
|
+
|
|
135
|
+
# A reference to a property relative to the kind expressions.
|
|
136
|
+
# Corresponds to the JSON property `property`
|
|
137
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
138
|
+
attr_accessor :property
|
|
139
|
+
|
|
140
|
+
# The operator to filter by.
|
|
141
|
+
# Corresponds to the JSON property `op`
|
|
142
|
+
# @return [String]
|
|
143
|
+
attr_accessor :op
|
|
144
|
+
|
|
145
|
+
def initialize(**args)
|
|
146
|
+
update!(**args)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Update properties of this object
|
|
150
|
+
def update!(**args)
|
|
151
|
+
@value = args[:value] if args.key?(:value)
|
|
152
|
+
@property = args[:property] if args.key?(:property)
|
|
153
|
+
@op = args[:op] if args.key?(:op)
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# The result of fetching an entity from Datastore.
|
|
158
|
+
class EntityResult
|
|
159
|
+
include Google::Apis::Core::Hashable
|
|
160
|
+
|
|
161
|
+
# A cursor that points to the position after the result entity.
|
|
162
|
+
# Set only when the `EntityResult` is part of a `QueryResultBatch` message.
|
|
163
|
+
# Corresponds to the JSON property `cursor`
|
|
164
|
+
# @return [String]
|
|
165
|
+
attr_accessor :cursor
|
|
166
|
+
|
|
167
|
+
# The version of the entity, a strictly positive number that monotonically
|
|
168
|
+
# increases with changes to the entity.
|
|
169
|
+
# This field is set for `FULL` entity
|
|
170
|
+
# results.
|
|
171
|
+
# For missing entities in `LookupResponse`, this
|
|
172
|
+
# is the version of the snapshot that was used to look up the entity, and it
|
|
173
|
+
# is always set except for eventually consistent reads.
|
|
174
|
+
# Corresponds to the JSON property `version`
|
|
175
|
+
# @return [String]
|
|
176
|
+
attr_accessor :version
|
|
177
|
+
|
|
178
|
+
# A Datastore data object.
|
|
179
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
180
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
181
|
+
# message.
|
|
182
|
+
# Corresponds to the JSON property `entity`
|
|
183
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
184
|
+
attr_accessor :entity
|
|
185
|
+
|
|
186
|
+
def initialize(**args)
|
|
187
|
+
update!(**args)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Update properties of this object
|
|
191
|
+
def update!(**args)
|
|
192
|
+
@cursor = args[:cursor] if args.key?(:cursor)
|
|
193
|
+
@version = args[:version] if args.key?(:version)
|
|
194
|
+
@entity = args[:entity] if args.key?(:entity)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# The response for Datastore.Commit.
|
|
199
|
+
class CommitResponse
|
|
200
|
+
include Google::Apis::Core::Hashable
|
|
201
|
+
|
|
202
|
+
# The number of index entries updated during the commit, or zero if none were
|
|
203
|
+
# updated.
|
|
204
|
+
# Corresponds to the JSON property `indexUpdates`
|
|
205
|
+
# @return [Fixnum]
|
|
206
|
+
attr_accessor :index_updates
|
|
207
|
+
|
|
208
|
+
# The result of performing the mutations.
|
|
209
|
+
# The i-th mutation result corresponds to the i-th mutation in the request.
|
|
210
|
+
# Corresponds to the JSON property `mutationResults`
|
|
211
|
+
# @return [Array<Google::Apis::DatastoreV1::MutationResult>]
|
|
212
|
+
attr_accessor :mutation_results
|
|
213
|
+
|
|
214
|
+
def initialize(**args)
|
|
215
|
+
update!(**args)
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Update properties of this object
|
|
219
|
+
def update!(**args)
|
|
220
|
+
@index_updates = args[:index_updates] if args.key?(:index_updates)
|
|
221
|
+
@mutation_results = args[:mutation_results] if args.key?(:mutation_results)
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
25
225
|
# A message that can hold any of the supported value types and associated
|
|
26
226
|
# metadata.
|
|
27
227
|
class Value
|
|
28
228
|
include Google::Apis::Core::Hashable
|
|
29
229
|
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
|
|
34
|
-
# Corresponds to the JSON property `stringValue`
|
|
35
|
-
# @return [String]
|
|
36
|
-
attr_accessor :string_value
|
|
230
|
+
# The `meaning` field should only be populated for backwards compatibility.
|
|
231
|
+
# Corresponds to the JSON property `meaning`
|
|
232
|
+
# @return [Fixnum]
|
|
233
|
+
attr_accessor :meaning
|
|
37
234
|
|
|
38
235
|
# An array value.
|
|
39
236
|
# Corresponds to the JSON property `arrayValue`
|
|
@@ -48,29 +245,6 @@ module Google
|
|
|
48
245
|
# @return [Google::Apis::DatastoreV1::Entity]
|
|
49
246
|
attr_accessor :entity_value
|
|
50
247
|
|
|
51
|
-
# The `meaning` field should only be populated for backwards compatibility.
|
|
52
|
-
# Corresponds to the JSON property `meaning`
|
|
53
|
-
# @return [Fixnum]
|
|
54
|
-
attr_accessor :meaning
|
|
55
|
-
|
|
56
|
-
# An integer value.
|
|
57
|
-
# Corresponds to the JSON property `integerValue`
|
|
58
|
-
# @return [String]
|
|
59
|
-
attr_accessor :integer_value
|
|
60
|
-
|
|
61
|
-
# A double value.
|
|
62
|
-
# Corresponds to the JSON property `doubleValue`
|
|
63
|
-
# @return [Float]
|
|
64
|
-
attr_accessor :double_value
|
|
65
|
-
|
|
66
|
-
# A blob value.
|
|
67
|
-
# May have at most 1,000,000 bytes.
|
|
68
|
-
# When `exclude_from_indexes` is false, may have at most 1500 bytes.
|
|
69
|
-
# In JSON requests, must be base64-encoded.
|
|
70
|
-
# Corresponds to the JSON property `blobValue`
|
|
71
|
-
# @return [String]
|
|
72
|
-
attr_accessor :blob_value
|
|
73
|
-
|
|
74
248
|
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
75
249
|
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
76
250
|
# specified otherwise, this must conform to the
|
|
@@ -112,17 +286,6 @@ module Google
|
|
|
112
286
|
# @return [Google::Apis::DatastoreV1::LatLng]
|
|
113
287
|
attr_accessor :geo_point_value
|
|
114
288
|
|
|
115
|
-
# A null value.
|
|
116
|
-
# Corresponds to the JSON property `nullValue`
|
|
117
|
-
# @return [String]
|
|
118
|
-
attr_accessor :null_value
|
|
119
|
-
|
|
120
|
-
# A boolean value.
|
|
121
|
-
# Corresponds to the JSON property `booleanValue`
|
|
122
|
-
# @return [Boolean]
|
|
123
|
-
attr_accessor :boolean_value
|
|
124
|
-
alias_method :boolean_value?, :boolean_value
|
|
125
|
-
|
|
126
289
|
# A unique identifier for an entity.
|
|
127
290
|
# If a key's partition ID or any of its path kinds or names are
|
|
128
291
|
# reserved/read-only, the key is reserved/read-only.
|
|
@@ -131,315 +294,107 @@ module Google
|
|
|
131
294
|
# @return [Google::Apis::DatastoreV1::Key]
|
|
132
295
|
attr_accessor :key_value
|
|
133
296
|
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
-
|
|
138
|
-
attr_accessor :exclude_from_indexes
|
|
139
|
-
alias_method :exclude_from_indexes?, :exclude_from_indexes
|
|
297
|
+
# An integer value.
|
|
298
|
+
# Corresponds to the JSON property `integerValue`
|
|
299
|
+
# @return [String]
|
|
300
|
+
attr_accessor :integer_value
|
|
140
301
|
|
|
141
|
-
# A
|
|
302
|
+
# A UTF-8 encoded string value.
|
|
303
|
+
# When `exclude_from_indexes` is false (it is indexed) , may have at most 1500
|
|
304
|
+
# bytes.
|
|
305
|
+
# Otherwise, may be set to at least 1,000,000 bytes.
|
|
306
|
+
# Corresponds to the JSON property `stringValue`
|
|
307
|
+
# @return [String]
|
|
308
|
+
attr_accessor :string_value
|
|
309
|
+
|
|
310
|
+
# If the value should be excluded from all indexes including those defined
|
|
311
|
+
# explicitly.
|
|
312
|
+
# Corresponds to the JSON property `excludeFromIndexes`
|
|
313
|
+
# @return [Boolean]
|
|
314
|
+
attr_accessor :exclude_from_indexes
|
|
315
|
+
alias_method :exclude_from_indexes?, :exclude_from_indexes
|
|
316
|
+
|
|
317
|
+
# A double value.
|
|
318
|
+
# Corresponds to the JSON property `doubleValue`
|
|
319
|
+
# @return [Float]
|
|
320
|
+
attr_accessor :double_value
|
|
321
|
+
|
|
322
|
+
# A timestamp value.
|
|
142
323
|
# When stored in the Datastore, precise only to microseconds;
|
|
143
324
|
# any additional precision is rounded down.
|
|
144
325
|
# Corresponds to the JSON property `timestampValue`
|
|
145
326
|
# @return [String]
|
|
146
327
|
attr_accessor :timestamp_value
|
|
147
328
|
|
|
329
|
+
# A boolean value.
|
|
330
|
+
# Corresponds to the JSON property `booleanValue`
|
|
331
|
+
# @return [Boolean]
|
|
332
|
+
attr_accessor :boolean_value
|
|
333
|
+
alias_method :boolean_value?, :boolean_value
|
|
334
|
+
|
|
335
|
+
# A null value.
|
|
336
|
+
# Corresponds to the JSON property `nullValue`
|
|
337
|
+
# @return [String]
|
|
338
|
+
attr_accessor :null_value
|
|
339
|
+
|
|
340
|
+
# A blob value.
|
|
341
|
+
# May have at most 1,000,000 bytes.
|
|
342
|
+
# When `exclude_from_indexes` is false, may have at most 1500 bytes.
|
|
343
|
+
# In JSON requests, must be base64-encoded.
|
|
344
|
+
# Corresponds to the JSON property `blobValue`
|
|
345
|
+
# @return [String]
|
|
346
|
+
attr_accessor :blob_value
|
|
347
|
+
|
|
148
348
|
def initialize(**args)
|
|
149
349
|
update!(**args)
|
|
150
350
|
end
|
|
151
351
|
|
|
152
352
|
# Update properties of this object
|
|
153
353
|
def update!(**args)
|
|
154
|
-
@
|
|
354
|
+
@meaning = args[:meaning] if args.key?(:meaning)
|
|
155
355
|
@array_value = args[:array_value] if args.key?(:array_value)
|
|
156
356
|
@entity_value = args[:entity_value] if args.key?(:entity_value)
|
|
157
|
-
@meaning = args[:meaning] if args.key?(:meaning)
|
|
158
|
-
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
159
|
-
@double_value = args[:double_value] if args.key?(:double_value)
|
|
160
|
-
@blob_value = args[:blob_value] if args.key?(:blob_value)
|
|
161
357
|
@geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
|
|
162
|
-
@null_value = args[:null_value] if args.key?(:null_value)
|
|
163
|
-
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
|
|
164
358
|
@key_value = args[:key_value] if args.key?(:key_value)
|
|
359
|
+
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
360
|
+
@string_value = args[:string_value] if args.key?(:string_value)
|
|
165
361
|
@exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
|
|
362
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
|
166
363
|
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
|
|
364
|
+
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
|
|
365
|
+
@null_value = args[:null_value] if args.key?(:null_value)
|
|
366
|
+
@blob_value = args[:blob_value] if args.key?(:blob_value)
|
|
167
367
|
end
|
|
168
368
|
end
|
|
169
369
|
|
|
170
|
-
#
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
def initialize(**args)
|
|
188
|
-
update!(**args)
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
# Update properties of this object
|
|
192
|
-
def update!(**args)
|
|
193
|
-
@transaction = args[:transaction] if args.key?(:transaction)
|
|
194
|
-
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
|
195
|
-
end
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# The desired order for a specific property.
|
|
199
|
-
class PropertyOrder
|
|
200
|
-
include Google::Apis::Core::Hashable
|
|
201
|
-
|
|
202
|
-
# The direction to order by. Defaults to `ASCENDING`.
|
|
203
|
-
# Corresponds to the JSON property `direction`
|
|
204
|
-
# @return [String]
|
|
205
|
-
attr_accessor :direction
|
|
206
|
-
|
|
207
|
-
# A reference to a property relative to the kind expressions.
|
|
208
|
-
# Corresponds to the JSON property `property`
|
|
209
|
-
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
210
|
-
attr_accessor :property
|
|
211
|
-
|
|
212
|
-
def initialize(**args)
|
|
213
|
-
update!(**args)
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
# Update properties of this object
|
|
217
|
-
def update!(**args)
|
|
218
|
-
@direction = args[:direction] if args.key?(:direction)
|
|
219
|
-
@property = args[:property] if args.key?(:property)
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# The request for Datastore.Commit.
|
|
224
|
-
class CommitRequest
|
|
225
|
-
include Google::Apis::Core::Hashable
|
|
226
|
-
|
|
227
|
-
# The identifier of the transaction associated with the commit. A
|
|
228
|
-
# transaction identifier is returned by a call to
|
|
229
|
-
# Datastore.BeginTransaction.
|
|
230
|
-
# Corresponds to the JSON property `transaction`
|
|
231
|
-
# @return [String]
|
|
232
|
-
attr_accessor :transaction
|
|
233
|
-
|
|
234
|
-
# The type of commit to perform. Defaults to `TRANSACTIONAL`.
|
|
235
|
-
# Corresponds to the JSON property `mode`
|
|
236
|
-
# @return [String]
|
|
237
|
-
attr_accessor :mode
|
|
238
|
-
|
|
239
|
-
# The mutations to perform.
|
|
240
|
-
# When mode is `TRANSACTIONAL`, mutations affecting a single entity are
|
|
241
|
-
# applied in order. The following sequences of mutations affecting a single
|
|
242
|
-
# entity are not permitted in a single `Commit` request:
|
|
243
|
-
# - `insert` followed by `insert`
|
|
244
|
-
# - `update` followed by `insert`
|
|
245
|
-
# - `upsert` followed by `insert`
|
|
246
|
-
# - `delete` followed by `update`
|
|
247
|
-
# When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
|
|
248
|
-
# entity.
|
|
249
|
-
# Corresponds to the JSON property `mutations`
|
|
250
|
-
# @return [Array<Google::Apis::DatastoreV1::Mutation>]
|
|
251
|
-
attr_accessor :mutations
|
|
252
|
-
|
|
253
|
-
def initialize(**args)
|
|
254
|
-
update!(**args)
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
# Update properties of this object
|
|
258
|
-
def update!(**args)
|
|
259
|
-
@transaction = args[:transaction] if args.key?(:transaction)
|
|
260
|
-
@mode = args[:mode] if args.key?(:mode)
|
|
261
|
-
@mutations = args[:mutations] if args.key?(:mutations)
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
# A query for entities.
|
|
266
|
-
class Query
|
|
267
|
-
include Google::Apis::Core::Hashable
|
|
268
|
-
|
|
269
|
-
# The maximum number of results to return. Applies after all other
|
|
270
|
-
# constraints. Optional.
|
|
271
|
-
# Unspecified is interpreted as no limit.
|
|
272
|
-
# Must be >= 0 if specified.
|
|
273
|
-
# Corresponds to the JSON property `limit`
|
|
274
|
-
# @return [Fixnum]
|
|
275
|
-
attr_accessor :limit
|
|
276
|
-
|
|
277
|
-
# A holder for any type of filter.
|
|
278
|
-
# Corresponds to the JSON property `filter`
|
|
279
|
-
# @return [Google::Apis::DatastoreV1::Filter]
|
|
280
|
-
attr_accessor :filter
|
|
281
|
-
|
|
282
|
-
# An ending point for the query results. Query cursors are
|
|
283
|
-
# returned in query result batches and
|
|
284
|
-
# [can only be used to limit the same query](https://cloud.google.com/datastore/
|
|
285
|
-
# docs/concepts/queries#cursors_limits_and_offsets).
|
|
286
|
-
# Corresponds to the JSON property `endCursor`
|
|
287
|
-
# @return [String]
|
|
288
|
-
attr_accessor :end_cursor
|
|
289
|
-
|
|
290
|
-
# The properties to make distinct. The query results will contain the first
|
|
291
|
-
# result for each distinct combination of values for the given properties
|
|
292
|
-
# (if empty, all results are returned).
|
|
293
|
-
# Corresponds to the JSON property `distinctOn`
|
|
294
|
-
# @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
|
|
295
|
-
attr_accessor :distinct_on
|
|
296
|
-
|
|
297
|
-
# The number of results to skip. Applies before limit, but after all other
|
|
298
|
-
# constraints. Optional. Must be >= 0 if specified.
|
|
299
|
-
# Corresponds to the JSON property `offset`
|
|
300
|
-
# @return [Fixnum]
|
|
301
|
-
attr_accessor :offset
|
|
302
|
-
|
|
303
|
-
# The projection to return. Defaults to returning all properties.
|
|
304
|
-
# Corresponds to the JSON property `projection`
|
|
305
|
-
# @return [Array<Google::Apis::DatastoreV1::Projection>]
|
|
306
|
-
attr_accessor :projection
|
|
307
|
-
|
|
308
|
-
# The order to apply to the query results (if empty, order is unspecified).
|
|
309
|
-
# Corresponds to the JSON property `order`
|
|
310
|
-
# @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
|
|
311
|
-
attr_accessor :order
|
|
312
|
-
|
|
313
|
-
# A starting point for the query results. Query cursors are
|
|
314
|
-
# returned in query result batches and
|
|
315
|
-
# [can only be used to continue the same query](https://cloud.google.com/
|
|
316
|
-
# datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
|
317
|
-
# Corresponds to the JSON property `startCursor`
|
|
318
|
-
# @return [String]
|
|
319
|
-
attr_accessor :start_cursor
|
|
320
|
-
|
|
321
|
-
# The kinds to query (if empty, returns entities of all kinds).
|
|
322
|
-
# Currently at most 1 kind may be specified.
|
|
323
|
-
# Corresponds to the JSON property `kind`
|
|
324
|
-
# @return [Array<Google::Apis::DatastoreV1::KindExpression>]
|
|
325
|
-
attr_accessor :kind
|
|
326
|
-
|
|
327
|
-
def initialize(**args)
|
|
328
|
-
update!(**args)
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
# Update properties of this object
|
|
332
|
-
def update!(**args)
|
|
333
|
-
@limit = args[:limit] if args.key?(:limit)
|
|
334
|
-
@filter = args[:filter] if args.key?(:filter)
|
|
335
|
-
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
336
|
-
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
|
337
|
-
@offset = args[:offset] if args.key?(:offset)
|
|
338
|
-
@projection = args[:projection] if args.key?(:projection)
|
|
339
|
-
@order = args[:order] if args.key?(:order)
|
|
340
|
-
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
|
|
341
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
342
|
-
end
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
# The request for Datastore.Rollback.
|
|
346
|
-
class RollbackRequest
|
|
347
|
-
include Google::Apis::Core::Hashable
|
|
348
|
-
|
|
349
|
-
# The transaction identifier, returned by a call to
|
|
350
|
-
# Datastore.BeginTransaction.
|
|
351
|
-
# Corresponds to the JSON property `transaction`
|
|
352
|
-
# @return [String]
|
|
353
|
-
attr_accessor :transaction
|
|
354
|
-
|
|
355
|
-
def initialize(**args)
|
|
356
|
-
update!(**args)
|
|
357
|
-
end
|
|
358
|
-
|
|
359
|
-
# Update properties of this object
|
|
360
|
-
def update!(**args)
|
|
361
|
-
@transaction = args[:transaction] if args.key?(:transaction)
|
|
362
|
-
end
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
# The result of fetching an entity from Datastore.
|
|
366
|
-
class EntityResult
|
|
370
|
+
# A partition ID identifies a grouping of entities. The grouping is always
|
|
371
|
+
# by project and namespace, however the namespace ID may be empty.
|
|
372
|
+
# A partition ID contains several dimensions:
|
|
373
|
+
# project ID and namespace ID.
|
|
374
|
+
# Partition dimensions:
|
|
375
|
+
# - May be `""`.
|
|
376
|
+
# - Must be valid UTF-8 bytes.
|
|
377
|
+
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
378
|
+
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
379
|
+
# reserved/read-only.
|
|
380
|
+
# A reserved/read-only partition ID is forbidden in certain documented
|
|
381
|
+
# contexts.
|
|
382
|
+
# Foreign partition IDs (in which the project ID does
|
|
383
|
+
# not match the context project ID ) are discouraged.
|
|
384
|
+
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
385
|
+
# active state.
|
|
386
|
+
class PartitionId
|
|
367
387
|
include Google::Apis::Core::Hashable
|
|
368
388
|
|
|
369
|
-
#
|
|
370
|
-
#
|
|
371
|
-
# Corresponds to the JSON property `cursor`
|
|
372
|
-
# @return [String]
|
|
373
|
-
attr_accessor :cursor
|
|
374
|
-
|
|
375
|
-
# A Datastore data object.
|
|
376
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
377
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
378
|
-
# message.
|
|
379
|
-
# Corresponds to the JSON property `entity`
|
|
380
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
381
|
-
attr_accessor :entity
|
|
382
|
-
|
|
383
|
-
# The version of the entity, a strictly positive number that monotonically
|
|
384
|
-
# increases with changes to the entity.
|
|
385
|
-
# This field is set for `FULL` entity
|
|
386
|
-
# results.
|
|
387
|
-
# For missing entities in `LookupResponse`, this
|
|
388
|
-
# is the version of the snapshot that was used to look up the entity, and it
|
|
389
|
-
# is always set except for eventually consistent reads.
|
|
390
|
-
# Corresponds to the JSON property `version`
|
|
389
|
+
# The ID of the project to which the entities belong.
|
|
390
|
+
# Corresponds to the JSON property `projectId`
|
|
391
391
|
# @return [String]
|
|
392
|
-
attr_accessor :
|
|
393
|
-
|
|
394
|
-
def initialize(**args)
|
|
395
|
-
update!(**args)
|
|
396
|
-
end
|
|
397
|
-
|
|
398
|
-
# Update properties of this object
|
|
399
|
-
def update!(**args)
|
|
400
|
-
@cursor = args[:cursor] if args.key?(:cursor)
|
|
401
|
-
@entity = args[:entity] if args.key?(:entity)
|
|
402
|
-
@version = args[:version] if args.key?(:version)
|
|
403
|
-
end
|
|
404
|
-
end
|
|
405
|
-
|
|
406
|
-
# A binding parameter for a GQL query.
|
|
407
|
-
class GqlQueryParameter
|
|
408
|
-
include Google::Apis::Core::Hashable
|
|
409
|
-
|
|
410
|
-
# A message that can hold any of the supported value types and associated
|
|
411
|
-
# metadata.
|
|
412
|
-
# Corresponds to the JSON property `value`
|
|
413
|
-
# @return [Google::Apis::DatastoreV1::Value]
|
|
414
|
-
attr_accessor :value
|
|
392
|
+
attr_accessor :project_id
|
|
415
393
|
|
|
416
|
-
#
|
|
417
|
-
#
|
|
418
|
-
# Corresponds to the JSON property `cursor`
|
|
394
|
+
# If not empty, the ID of the namespace to which the entities belong.
|
|
395
|
+
# Corresponds to the JSON property `namespaceId`
|
|
419
396
|
# @return [String]
|
|
420
|
-
attr_accessor :
|
|
421
|
-
|
|
422
|
-
def initialize(**args)
|
|
423
|
-
update!(**args)
|
|
424
|
-
end
|
|
425
|
-
|
|
426
|
-
# Update properties of this object
|
|
427
|
-
def update!(**args)
|
|
428
|
-
@value = args[:value] if args.key?(:value)
|
|
429
|
-
@cursor = args[:cursor] if args.key?(:cursor)
|
|
430
|
-
end
|
|
431
|
-
end
|
|
432
|
-
|
|
433
|
-
# An array value.
|
|
434
|
-
class ArrayValue
|
|
435
|
-
include Google::Apis::Core::Hashable
|
|
436
|
-
|
|
437
|
-
# Values in the array.
|
|
438
|
-
# The order of this array may not be preserved if it contains a mix of
|
|
439
|
-
# indexed and unindexed values.
|
|
440
|
-
# Corresponds to the JSON property `values`
|
|
441
|
-
# @return [Array<Google::Apis::DatastoreV1::Value>]
|
|
442
|
-
attr_accessor :values
|
|
397
|
+
attr_accessor :namespace_id
|
|
443
398
|
|
|
444
399
|
def initialize(**args)
|
|
445
400
|
update!(**args)
|
|
@@ -447,43 +402,35 @@ module Google
|
|
|
447
402
|
|
|
448
403
|
# Update properties of this object
|
|
449
404
|
def update!(**args)
|
|
450
|
-
@
|
|
405
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
|
406
|
+
@namespace_id = args[:namespace_id] if args.key?(:namespace_id)
|
|
451
407
|
end
|
|
452
408
|
end
|
|
453
409
|
|
|
454
|
-
# A
|
|
455
|
-
|
|
410
|
+
# A Datastore data object.
|
|
411
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
412
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
413
|
+
# message.
|
|
414
|
+
class Entity
|
|
456
415
|
include Google::Apis::Core::Hashable
|
|
457
416
|
|
|
458
|
-
# A
|
|
459
|
-
#
|
|
460
|
-
#
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
#
|
|
464
|
-
|
|
465
|
-
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
466
|
-
attr_accessor :composite_filter
|
|
467
|
-
|
|
468
|
-
def initialize(**args)
|
|
469
|
-
update!(**args)
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
# Update properties of this object
|
|
473
|
-
def update!(**args)
|
|
474
|
-
@property_filter = args[:property_filter] if args.key?(:property_filter)
|
|
475
|
-
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
476
|
-
end
|
|
477
|
-
end
|
|
478
|
-
|
|
479
|
-
# The response for Datastore.BeginTransaction.
|
|
480
|
-
class BeginTransactionResponse
|
|
481
|
-
include Google::Apis::Core::Hashable
|
|
417
|
+
# A unique identifier for an entity.
|
|
418
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
419
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
420
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
421
|
+
# Corresponds to the JSON property `key`
|
|
422
|
+
# @return [Google::Apis::DatastoreV1::Key]
|
|
423
|
+
attr_accessor :key
|
|
482
424
|
|
|
483
|
-
# The
|
|
484
|
-
#
|
|
485
|
-
#
|
|
486
|
-
|
|
425
|
+
# The entity's properties.
|
|
426
|
+
# The map's keys are property names.
|
|
427
|
+
# A property name matching regex `__.*__` is reserved.
|
|
428
|
+
# A reserved property name is forbidden in certain documented contexts.
|
|
429
|
+
# The name must not contain more than 500 characters.
|
|
430
|
+
# The name cannot be `""`.
|
|
431
|
+
# Corresponds to the JSON property `properties`
|
|
432
|
+
# @return [Hash<String,Google::Apis::DatastoreV1::Value>]
|
|
433
|
+
attr_accessor :properties
|
|
487
434
|
|
|
488
435
|
def initialize(**args)
|
|
489
436
|
update!(**args)
|
|
@@ -491,38 +438,24 @@ module Google
|
|
|
491
438
|
|
|
492
439
|
# Update properties of this object
|
|
493
440
|
def update!(**args)
|
|
494
|
-
@
|
|
441
|
+
@key = args[:key] if args.key?(:key)
|
|
442
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
495
443
|
end
|
|
496
444
|
end
|
|
497
445
|
|
|
498
|
-
#
|
|
499
|
-
|
|
500
|
-
# A partition ID contains several dimensions:
|
|
501
|
-
# project ID and namespace ID.
|
|
502
|
-
# Partition dimensions:
|
|
503
|
-
# - May be `""`.
|
|
504
|
-
# - Must be valid UTF-8 bytes.
|
|
505
|
-
# - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
|
|
506
|
-
# If the value of any dimension matches regex `__.*__`, the partition is
|
|
507
|
-
# reserved/read-only.
|
|
508
|
-
# A reserved/read-only partition ID is forbidden in certain documented
|
|
509
|
-
# contexts.
|
|
510
|
-
# Foreign partition IDs (in which the project ID does
|
|
511
|
-
# not match the context project ID ) are discouraged.
|
|
512
|
-
# Reads and writes of foreign partition IDs may fail if the project is not in an
|
|
513
|
-
# active state.
|
|
514
|
-
class PartitionId
|
|
446
|
+
# The request for Datastore.Lookup.
|
|
447
|
+
class LookupRequest
|
|
515
448
|
include Google::Apis::Core::Hashable
|
|
516
449
|
|
|
517
|
-
#
|
|
518
|
-
# Corresponds to the JSON property `
|
|
519
|
-
# @return [
|
|
520
|
-
attr_accessor :
|
|
521
|
-
|
|
522
|
-
#
|
|
523
|
-
# Corresponds to the JSON property `
|
|
524
|
-
# @return [
|
|
525
|
-
attr_accessor :
|
|
450
|
+
# The options shared by read requests.
|
|
451
|
+
# Corresponds to the JSON property `readOptions`
|
|
452
|
+
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
453
|
+
attr_accessor :read_options
|
|
454
|
+
|
|
455
|
+
# Keys of entities to look up.
|
|
456
|
+
# Corresponds to the JSON property `keys`
|
|
457
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
458
|
+
attr_accessor :keys
|
|
526
459
|
|
|
527
460
|
def initialize(**args)
|
|
528
461
|
update!(**args)
|
|
@@ -530,8 +463,8 @@ module Google
|
|
|
530
463
|
|
|
531
464
|
# Update properties of this object
|
|
532
465
|
def update!(**args)
|
|
533
|
-
@
|
|
534
|
-
@
|
|
466
|
+
@read_options = args[:read_options] if args.key?(:read_options)
|
|
467
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
535
468
|
end
|
|
536
469
|
end
|
|
537
470
|
|
|
@@ -539,6 +472,16 @@ module Google
|
|
|
539
472
|
class QueryResultBatch
|
|
540
473
|
include Google::Apis::Core::Hashable
|
|
541
474
|
|
|
475
|
+
# The state of the query after the current batch.
|
|
476
|
+
# Corresponds to the JSON property `moreResults`
|
|
477
|
+
# @return [String]
|
|
478
|
+
attr_accessor :more_results
|
|
479
|
+
|
|
480
|
+
# A cursor that points to the position after the last result in the batch.
|
|
481
|
+
# Corresponds to the JSON property `endCursor`
|
|
482
|
+
# @return [String]
|
|
483
|
+
attr_accessor :end_cursor
|
|
484
|
+
|
|
542
485
|
# The version number of the snapshot this batch was returned from.
|
|
543
486
|
# This applies to the range of results from the query's `start_cursor` (or
|
|
544
487
|
# the beginning of the query if no cursor was given) to this batch's
|
|
@@ -551,152 +494,119 @@ module Google
|
|
|
551
494
|
# @return [String]
|
|
552
495
|
attr_accessor :snapshot_version
|
|
553
496
|
|
|
554
|
-
# A cursor that points to the position after the last result in the batch.
|
|
555
|
-
# Corresponds to the JSON property `endCursor`
|
|
556
|
-
# @return [String]
|
|
557
|
-
attr_accessor :end_cursor
|
|
558
|
-
|
|
559
497
|
# A cursor that points to the position after the last skipped result.
|
|
560
498
|
# Will be set when `skipped_results` != 0.
|
|
561
499
|
# Corresponds to the JSON property `skippedCursor`
|
|
562
500
|
# @return [String]
|
|
563
501
|
attr_accessor :skipped_cursor
|
|
564
502
|
|
|
503
|
+
# The number of results skipped, typically because of an offset.
|
|
504
|
+
# Corresponds to the JSON property `skippedResults`
|
|
505
|
+
# @return [Fixnum]
|
|
506
|
+
attr_accessor :skipped_results
|
|
507
|
+
|
|
565
508
|
# The result type for every entity in `entity_results`.
|
|
566
509
|
# Corresponds to the JSON property `entityResultType`
|
|
567
510
|
# @return [String]
|
|
568
511
|
attr_accessor :entity_result_type
|
|
569
512
|
|
|
570
|
-
# The state of the query after the current batch.
|
|
571
|
-
# Corresponds to the JSON property `moreResults`
|
|
572
|
-
# @return [String]
|
|
573
|
-
attr_accessor :more_results
|
|
574
|
-
|
|
575
513
|
# The results for this batch.
|
|
576
514
|
# Corresponds to the JSON property `entityResults`
|
|
577
515
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
578
516
|
attr_accessor :entity_results
|
|
579
517
|
|
|
580
|
-
# The number of results skipped, typically because of an offset.
|
|
581
|
-
# Corresponds to the JSON property `skippedResults`
|
|
582
|
-
# @return [Fixnum]
|
|
583
|
-
attr_accessor :skipped_results
|
|
584
|
-
|
|
585
518
|
def initialize(**args)
|
|
586
519
|
update!(**args)
|
|
587
520
|
end
|
|
588
521
|
|
|
589
522
|
# Update properties of this object
|
|
590
523
|
def update!(**args)
|
|
591
|
-
@
|
|
524
|
+
@more_results = args[:more_results] if args.key?(:more_results)
|
|
592
525
|
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
526
|
+
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
|
593
527
|
@skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
|
|
528
|
+
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
|
594
529
|
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
|
595
|
-
@more_results = args[:more_results] if args.key?(:more_results)
|
|
596
530
|
@entity_results = args[:entity_results] if args.key?(:entity_results)
|
|
597
|
-
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
|
598
531
|
end
|
|
599
532
|
end
|
|
600
533
|
|
|
601
|
-
#
|
|
602
|
-
|
|
534
|
+
# A (kind, ID/name) pair used to construct a key path.
|
|
535
|
+
# If either name or ID is set, the element is complete.
|
|
536
|
+
# If neither is set, the element is incomplete.
|
|
537
|
+
class PathElement
|
|
603
538
|
include Google::Apis::Core::Hashable
|
|
604
539
|
|
|
605
|
-
#
|
|
606
|
-
#
|
|
607
|
-
#
|
|
608
|
-
#
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
def initialize(**args)
|
|
612
|
-
update!(**args)
|
|
613
|
-
end
|
|
614
|
-
|
|
615
|
-
# Update properties of this object
|
|
616
|
-
def update!(**args)
|
|
617
|
-
@keys = args[:keys] if args.key?(:keys)
|
|
618
|
-
end
|
|
619
|
-
end
|
|
620
|
-
|
|
621
|
-
# A representation of a kind.
|
|
622
|
-
class KindExpression
|
|
623
|
-
include Google::Apis::Core::Hashable
|
|
540
|
+
# The auto-allocated ID of the entity.
|
|
541
|
+
# Never equal to zero. Values less than zero are discouraged and may not
|
|
542
|
+
# be supported in the future.
|
|
543
|
+
# Corresponds to the JSON property `id`
|
|
544
|
+
# @return [String]
|
|
545
|
+
attr_accessor :id
|
|
624
546
|
|
|
625
|
-
# The name of the
|
|
547
|
+
# The name of the entity.
|
|
548
|
+
# A name matching regex `__.*__` is reserved/read-only.
|
|
549
|
+
# A name must not be more than 1500 bytes when UTF-8 encoded.
|
|
550
|
+
# Cannot be `""`.
|
|
626
551
|
# Corresponds to the JSON property `name`
|
|
627
552
|
# @return [String]
|
|
628
553
|
attr_accessor :name
|
|
629
554
|
|
|
555
|
+
# The kind of the entity.
|
|
556
|
+
# A kind matching regex `__.*__` is reserved/read-only.
|
|
557
|
+
# A kind must not contain more than 1500 bytes when UTF-8 encoded.
|
|
558
|
+
# Cannot be `""`.
|
|
559
|
+
# Corresponds to the JSON property `kind`
|
|
560
|
+
# @return [String]
|
|
561
|
+
attr_accessor :kind
|
|
562
|
+
|
|
630
563
|
def initialize(**args)
|
|
631
564
|
update!(**args)
|
|
632
565
|
end
|
|
633
566
|
|
|
634
567
|
# Update properties of this object
|
|
635
568
|
def update!(**args)
|
|
569
|
+
@id = args[:id] if args.key?(:id)
|
|
636
570
|
@name = args[:name] if args.key?(:name)
|
|
571
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
637
572
|
end
|
|
638
573
|
end
|
|
639
574
|
|
|
640
|
-
# A
|
|
641
|
-
class
|
|
575
|
+
# A binding parameter for a GQL query.
|
|
576
|
+
class GqlQueryParameter
|
|
642
577
|
include Google::Apis::Core::Hashable
|
|
643
578
|
|
|
579
|
+
# A query cursor. Query cursors are returned in query
|
|
580
|
+
# result batches.
|
|
581
|
+
# Corresponds to the JSON property `cursor`
|
|
582
|
+
# @return [String]
|
|
583
|
+
attr_accessor :cursor
|
|
584
|
+
|
|
644
585
|
# A message that can hold any of the supported value types and associated
|
|
645
586
|
# metadata.
|
|
646
587
|
# Corresponds to the JSON property `value`
|
|
647
588
|
# @return [Google::Apis::DatastoreV1::Value]
|
|
648
589
|
attr_accessor :value
|
|
649
590
|
|
|
650
|
-
# The operator to filter by.
|
|
651
|
-
# Corresponds to the JSON property `op`
|
|
652
|
-
# @return [String]
|
|
653
|
-
attr_accessor :op
|
|
654
|
-
|
|
655
|
-
# A reference to a property relative to the kind expressions.
|
|
656
|
-
# Corresponds to the JSON property `property`
|
|
657
|
-
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
658
|
-
attr_accessor :property
|
|
659
|
-
|
|
660
591
|
def initialize(**args)
|
|
661
592
|
update!(**args)
|
|
662
593
|
end
|
|
663
594
|
|
|
664
595
|
# Update properties of this object
|
|
665
596
|
def update!(**args)
|
|
597
|
+
@cursor = args[:cursor] if args.key?(:cursor)
|
|
666
598
|
@value = args[:value] if args.key?(:value)
|
|
667
|
-
@op = args[:op] if args.key?(:op)
|
|
668
|
-
@property = args[:property] if args.key?(:property)
|
|
669
599
|
end
|
|
670
600
|
end
|
|
671
601
|
|
|
672
|
-
#
|
|
673
|
-
|
|
674
|
-
# If neither is set, the element is incomplete.
|
|
675
|
-
class PathElement
|
|
602
|
+
# The response for Datastore.BeginTransaction.
|
|
603
|
+
class BeginTransactionResponse
|
|
676
604
|
include Google::Apis::Core::Hashable
|
|
677
605
|
|
|
678
|
-
# The
|
|
679
|
-
#
|
|
680
|
-
# A kind must not contain more than 1500 bytes when UTF-8 encoded.
|
|
681
|
-
# Cannot be `""`.
|
|
682
|
-
# Corresponds to the JSON property `kind`
|
|
683
|
-
# @return [String]
|
|
684
|
-
attr_accessor :kind
|
|
685
|
-
|
|
686
|
-
# The auto-allocated ID of the entity.
|
|
687
|
-
# Never equal to zero. Values less than zero are discouraged and may not
|
|
688
|
-
# be supported in the future.
|
|
689
|
-
# Corresponds to the JSON property `id`
|
|
690
|
-
# @return [String]
|
|
691
|
-
attr_accessor :id
|
|
692
|
-
|
|
693
|
-
# The name of the entity.
|
|
694
|
-
# A name matching regex `__.*__` is reserved/read-only.
|
|
695
|
-
# A name must not be more than 1500 bytes when UTF-8 encoded.
|
|
696
|
-
# Cannot be `""`.
|
|
697
|
-
# Corresponds to the JSON property `name`
|
|
606
|
+
# The transaction identifier (always present).
|
|
607
|
+
# Corresponds to the JSON property `transaction`
|
|
698
608
|
# @return [String]
|
|
699
|
-
attr_accessor :
|
|
609
|
+
attr_accessor :transaction
|
|
700
610
|
|
|
701
611
|
def initialize(**args)
|
|
702
612
|
update!(**args)
|
|
@@ -704,35 +614,54 @@ module Google
|
|
|
704
614
|
|
|
705
615
|
# Update properties of this object
|
|
706
616
|
def update!(**args)
|
|
707
|
-
@
|
|
708
|
-
@id = args[:id] if args.key?(:id)
|
|
709
|
-
@name = args[:name] if args.key?(:name)
|
|
617
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
710
618
|
end
|
|
711
619
|
end
|
|
712
620
|
|
|
713
|
-
# The
|
|
714
|
-
|
|
715
|
-
class RollbackResponse
|
|
621
|
+
# The request for Datastore.AllocateIds.
|
|
622
|
+
class AllocateIdsRequest
|
|
716
623
|
include Google::Apis::Core::Hashable
|
|
717
624
|
|
|
625
|
+
# A list of keys with incomplete key paths for which to allocate IDs.
|
|
626
|
+
# No key may be reserved/read-only.
|
|
627
|
+
# Corresponds to the JSON property `keys`
|
|
628
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
629
|
+
attr_accessor :keys
|
|
630
|
+
|
|
718
631
|
def initialize(**args)
|
|
719
632
|
update!(**args)
|
|
720
633
|
end
|
|
721
634
|
|
|
722
635
|
# Update properties of this object
|
|
723
636
|
def update!(**args)
|
|
637
|
+
@keys = args[:keys] if args.key?(:keys)
|
|
724
638
|
end
|
|
725
639
|
end
|
|
726
640
|
|
|
727
|
-
#
|
|
728
|
-
class
|
|
641
|
+
# The response for Datastore.Lookup.
|
|
642
|
+
class LookupResponse
|
|
729
643
|
include Google::Apis::Core::Hashable
|
|
730
644
|
|
|
731
|
-
# The
|
|
732
|
-
#
|
|
733
|
-
#
|
|
734
|
-
#
|
|
735
|
-
|
|
645
|
+
# Entities found as `ResultType.FULL` entities. The order of results in this
|
|
646
|
+
# field is undefined and has no relation to the order of the keys in the
|
|
647
|
+
# input.
|
|
648
|
+
# Corresponds to the JSON property `found`
|
|
649
|
+
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
650
|
+
attr_accessor :found
|
|
651
|
+
|
|
652
|
+
# Entities not found as `ResultType.KEY_ONLY` entities. The order of results
|
|
653
|
+
# in this field is undefined and has no relation to the order of the keys
|
|
654
|
+
# in the input.
|
|
655
|
+
# Corresponds to the JSON property `missing`
|
|
656
|
+
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
657
|
+
attr_accessor :missing
|
|
658
|
+
|
|
659
|
+
# A list of keys that were not looked up due to resource constraints. The
|
|
660
|
+
# order of results in this field is undefined and has no relation to the
|
|
661
|
+
# order of the keys in the input.
|
|
662
|
+
# Corresponds to the JSON property `deferred`
|
|
663
|
+
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
664
|
+
attr_accessor :deferred
|
|
736
665
|
|
|
737
666
|
def initialize(**args)
|
|
738
667
|
update!(**args)
|
|
@@ -740,18 +669,25 @@ module Google
|
|
|
740
669
|
|
|
741
670
|
# Update properties of this object
|
|
742
671
|
def update!(**args)
|
|
743
|
-
@
|
|
672
|
+
@found = args[:found] if args.key?(:found)
|
|
673
|
+
@missing = args[:missing] if args.key?(:missing)
|
|
674
|
+
@deferred = args[:deferred] if args.key?(:deferred)
|
|
744
675
|
end
|
|
745
676
|
end
|
|
746
677
|
|
|
747
|
-
#
|
|
748
|
-
class
|
|
678
|
+
# The response for Datastore.RunQuery.
|
|
679
|
+
class RunQueryResponse
|
|
749
680
|
include Google::Apis::Core::Hashable
|
|
750
681
|
|
|
751
|
-
# A
|
|
752
|
-
# Corresponds to the JSON property `
|
|
753
|
-
# @return [Google::Apis::DatastoreV1::
|
|
754
|
-
attr_accessor :
|
|
682
|
+
# A batch of results produced by a query.
|
|
683
|
+
# Corresponds to the JSON property `batch`
|
|
684
|
+
# @return [Google::Apis::DatastoreV1::QueryResultBatch]
|
|
685
|
+
attr_accessor :batch
|
|
686
|
+
|
|
687
|
+
# A query for entities.
|
|
688
|
+
# Corresponds to the JSON property `query`
|
|
689
|
+
# @return [Google::Apis::DatastoreV1::Query]
|
|
690
|
+
attr_accessor :query
|
|
755
691
|
|
|
756
692
|
def initialize(**args)
|
|
757
693
|
update!(**args)
|
|
@@ -759,37 +695,40 @@ module Google
|
|
|
759
695
|
|
|
760
696
|
# Update properties of this object
|
|
761
697
|
def update!(**args)
|
|
762
|
-
@
|
|
698
|
+
@batch = args[:batch] if args.key?(:batch)
|
|
699
|
+
@query = args[:query] if args.key?(:query)
|
|
763
700
|
end
|
|
764
701
|
end
|
|
765
702
|
|
|
766
|
-
# The
|
|
767
|
-
class
|
|
703
|
+
# The request for Datastore.Commit.
|
|
704
|
+
class CommitRequest
|
|
768
705
|
include Google::Apis::Core::Hashable
|
|
769
706
|
|
|
770
|
-
#
|
|
771
|
-
#
|
|
772
|
-
#
|
|
773
|
-
#
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
# A unique identifier for an entity.
|
|
778
|
-
# If a key's partition ID or any of its path kinds or names are
|
|
779
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
780
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
781
|
-
# Corresponds to the JSON property `key`
|
|
782
|
-
# @return [Google::Apis::DatastoreV1::Key]
|
|
783
|
-
attr_accessor :key
|
|
707
|
+
# The identifier of the transaction associated with the commit. A
|
|
708
|
+
# transaction identifier is returned by a call to
|
|
709
|
+
# Datastore.BeginTransaction.
|
|
710
|
+
# Corresponds to the JSON property `transaction`
|
|
711
|
+
# @return [String]
|
|
712
|
+
attr_accessor :transaction
|
|
784
713
|
|
|
785
|
-
# The
|
|
786
|
-
#
|
|
787
|
-
# be the version of the current entity or, if no entity is present, a version
|
|
788
|
-
# that is strictly greater than the version of any previous entity and less
|
|
789
|
-
# than the version of any possible future entity.
|
|
790
|
-
# Corresponds to the JSON property `version`
|
|
714
|
+
# The type of commit to perform. Defaults to `TRANSACTIONAL`.
|
|
715
|
+
# Corresponds to the JSON property `mode`
|
|
791
716
|
# @return [String]
|
|
792
|
-
attr_accessor :
|
|
717
|
+
attr_accessor :mode
|
|
718
|
+
|
|
719
|
+
# The mutations to perform.
|
|
720
|
+
# When mode is `TRANSACTIONAL`, mutations affecting a single entity are
|
|
721
|
+
# applied in order. The following sequences of mutations affecting a single
|
|
722
|
+
# entity are not permitted in a single `Commit` request:
|
|
723
|
+
# - `insert` followed by `insert`
|
|
724
|
+
# - `update` followed by `insert`
|
|
725
|
+
# - `upsert` followed by `insert`
|
|
726
|
+
# - `delete` followed by `update`
|
|
727
|
+
# When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
|
|
728
|
+
# entity.
|
|
729
|
+
# Corresponds to the JSON property `mutations`
|
|
730
|
+
# @return [Array<Google::Apis::DatastoreV1::Mutation>]
|
|
731
|
+
attr_accessor :mutations
|
|
793
732
|
|
|
794
733
|
def initialize(**args)
|
|
795
734
|
update!(**args)
|
|
@@ -797,56 +736,58 @@ module Google
|
|
|
797
736
|
|
|
798
737
|
# Update properties of this object
|
|
799
738
|
def update!(**args)
|
|
800
|
-
@
|
|
801
|
-
@
|
|
802
|
-
@
|
|
739
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
740
|
+
@mode = args[:mode] if args.key?(:mode)
|
|
741
|
+
@mutations = args[:mutations] if args.key?(:mutations)
|
|
803
742
|
end
|
|
804
743
|
end
|
|
805
744
|
|
|
806
|
-
# The
|
|
807
|
-
class
|
|
745
|
+
# The request for Datastore.BeginTransaction.
|
|
746
|
+
class BeginTransactionRequest
|
|
808
747
|
include Google::Apis::Core::Hashable
|
|
809
748
|
|
|
810
|
-
# The keys specified in the request (in the same order), each with
|
|
811
|
-
# its key path completed with a newly allocated ID.
|
|
812
|
-
# Corresponds to the JSON property `keys`
|
|
813
|
-
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
814
|
-
attr_accessor :keys
|
|
815
|
-
|
|
816
749
|
def initialize(**args)
|
|
817
750
|
update!(**args)
|
|
818
751
|
end
|
|
819
752
|
|
|
820
753
|
# Update properties of this object
|
|
821
754
|
def update!(**args)
|
|
822
|
-
@keys = args[:keys] if args.key?(:keys)
|
|
823
755
|
end
|
|
824
756
|
end
|
|
825
757
|
|
|
826
|
-
# The
|
|
827
|
-
class
|
|
758
|
+
# The desired order for a specific property.
|
|
759
|
+
class PropertyOrder
|
|
828
760
|
include Google::Apis::Core::Hashable
|
|
829
761
|
|
|
830
|
-
#
|
|
831
|
-
#
|
|
832
|
-
#
|
|
833
|
-
|
|
834
|
-
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
835
|
-
attr_accessor :found
|
|
762
|
+
# A reference to a property relative to the kind expressions.
|
|
763
|
+
# Corresponds to the JSON property `property`
|
|
764
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
765
|
+
attr_accessor :property
|
|
836
766
|
|
|
837
|
-
#
|
|
838
|
-
#
|
|
839
|
-
#
|
|
840
|
-
|
|
841
|
-
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
842
|
-
attr_accessor :missing
|
|
767
|
+
# The direction to order by. Defaults to `ASCENDING`.
|
|
768
|
+
# Corresponds to the JSON property `direction`
|
|
769
|
+
# @return [String]
|
|
770
|
+
attr_accessor :direction
|
|
843
771
|
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
#
|
|
849
|
-
|
|
772
|
+
def initialize(**args)
|
|
773
|
+
update!(**args)
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
# Update properties of this object
|
|
777
|
+
def update!(**args)
|
|
778
|
+
@property = args[:property] if args.key?(:property)
|
|
779
|
+
@direction = args[:direction] if args.key?(:direction)
|
|
780
|
+
end
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# A representation of a kind.
|
|
784
|
+
class KindExpression
|
|
785
|
+
include Google::Apis::Core::Hashable
|
|
786
|
+
|
|
787
|
+
# The name of the kind.
|
|
788
|
+
# Corresponds to the JSON property `name`
|
|
789
|
+
# @return [String]
|
|
790
|
+
attr_accessor :name
|
|
850
791
|
|
|
851
792
|
def initialize(**args)
|
|
852
793
|
update!(**args)
|
|
@@ -854,22 +795,68 @@ module Google
|
|
|
854
795
|
|
|
855
796
|
# Update properties of this object
|
|
856
797
|
def update!(**args)
|
|
857
|
-
@
|
|
858
|
-
@missing = args[:missing] if args.key?(:missing)
|
|
859
|
-
@deferred = args[:deferred] if args.key?(:deferred)
|
|
798
|
+
@name = args[:name] if args.key?(:name)
|
|
860
799
|
end
|
|
861
800
|
end
|
|
862
801
|
|
|
863
|
-
#
|
|
864
|
-
|
|
802
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
803
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
804
|
+
# specified otherwise, this must conform to the
|
|
805
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
806
|
+
# standard</a>. Values must be within normalized ranges.
|
|
807
|
+
# Example of normalization code in Python:
|
|
808
|
+
# def NormalizeLongitude(longitude):
|
|
809
|
+
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
810
|
+
# q, r = divmod(longitude, 360.0)
|
|
811
|
+
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
812
|
+
# return r - 360.0
|
|
813
|
+
# return r
|
|
814
|
+
# def NormalizeLatLng(latitude, longitude):
|
|
815
|
+
# """Wraps decimal degrees latitude and longitude to
|
|
816
|
+
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
817
|
+
# r = latitude % 360.0
|
|
818
|
+
# if r <= 90.0:
|
|
819
|
+
# return r, NormalizeLongitude(longitude)
|
|
820
|
+
# elif r >= 270.0:
|
|
821
|
+
# return r - 360, NormalizeLongitude(longitude)
|
|
822
|
+
# else:
|
|
823
|
+
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
824
|
+
# assert 180.0 == NormalizeLongitude(180.0)
|
|
825
|
+
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
826
|
+
# assert -179.0 == NormalizeLongitude(181.0)
|
|
827
|
+
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
828
|
+
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
829
|
+
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
830
|
+
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
831
|
+
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
832
|
+
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
833
|
+
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
834
|
+
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
835
|
+
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
836
|
+
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
837
|
+
# The code in logs/storage/validator/logs_validator_traits.cc treats this type
|
|
838
|
+
# as if it were annotated as ST_LOCATION.
|
|
839
|
+
class LatLng
|
|
865
840
|
include Google::Apis::Core::Hashable
|
|
866
841
|
|
|
842
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
843
|
+
# Corresponds to the JSON property `longitude`
|
|
844
|
+
# @return [Float]
|
|
845
|
+
attr_accessor :longitude
|
|
846
|
+
|
|
847
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
848
|
+
# Corresponds to the JSON property `latitude`
|
|
849
|
+
# @return [Float]
|
|
850
|
+
attr_accessor :latitude
|
|
851
|
+
|
|
867
852
|
def initialize(**args)
|
|
868
853
|
update!(**args)
|
|
869
854
|
end
|
|
870
855
|
|
|
871
856
|
# Update properties of this object
|
|
872
857
|
def update!(**args)
|
|
858
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
|
859
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
|
873
860
|
end
|
|
874
861
|
end
|
|
875
862
|
|
|
@@ -924,53 +911,173 @@ module Google
|
|
|
924
911
|
|
|
925
912
|
# Update properties of this object
|
|
926
913
|
def update!(**args)
|
|
927
|
-
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
928
|
-
@path = args[:path] if args.key?(:path)
|
|
914
|
+
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
915
|
+
@path = args[:path] if args.key?(:path)
|
|
916
|
+
end
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
# A reference to a property relative to the kind expressions.
|
|
920
|
+
class PropertyReference
|
|
921
|
+
include Google::Apis::Core::Hashable
|
|
922
|
+
|
|
923
|
+
# The name of the property.
|
|
924
|
+
# If name includes "."s, it may be interpreted as a property name path.
|
|
925
|
+
# Corresponds to the JSON property `name`
|
|
926
|
+
# @return [String]
|
|
927
|
+
attr_accessor :name
|
|
928
|
+
|
|
929
|
+
def initialize(**args)
|
|
930
|
+
update!(**args)
|
|
931
|
+
end
|
|
932
|
+
|
|
933
|
+
# Update properties of this object
|
|
934
|
+
def update!(**args)
|
|
935
|
+
@name = args[:name] if args.key?(:name)
|
|
936
|
+
end
|
|
937
|
+
end
|
|
938
|
+
|
|
939
|
+
# A representation of a property in a projection.
|
|
940
|
+
class Projection
|
|
941
|
+
include Google::Apis::Core::Hashable
|
|
942
|
+
|
|
943
|
+
# A reference to a property relative to the kind expressions.
|
|
944
|
+
# Corresponds to the JSON property `property`
|
|
945
|
+
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
946
|
+
attr_accessor :property
|
|
947
|
+
|
|
948
|
+
def initialize(**args)
|
|
949
|
+
update!(**args)
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
# Update properties of this object
|
|
953
|
+
def update!(**args)
|
|
954
|
+
@property = args[:property] if args.key?(:property)
|
|
955
|
+
end
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
# An array value.
|
|
959
|
+
class ArrayValue
|
|
960
|
+
include Google::Apis::Core::Hashable
|
|
961
|
+
|
|
962
|
+
# Values in the array.
|
|
963
|
+
# The order of this array may not be preserved if it contains a mix of
|
|
964
|
+
# indexed and unindexed values.
|
|
965
|
+
# Corresponds to the JSON property `values`
|
|
966
|
+
# @return [Array<Google::Apis::DatastoreV1::Value>]
|
|
967
|
+
attr_accessor :values
|
|
968
|
+
|
|
969
|
+
def initialize(**args)
|
|
970
|
+
update!(**args)
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
# Update properties of this object
|
|
974
|
+
def update!(**args)
|
|
975
|
+
@values = args[:values] if args.key?(:values)
|
|
976
|
+
end
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
# A mutation to apply to an entity.
|
|
980
|
+
class Mutation
|
|
981
|
+
include Google::Apis::Core::Hashable
|
|
982
|
+
|
|
983
|
+
# A unique identifier for an entity.
|
|
984
|
+
# If a key's partition ID or any of its path kinds or names are
|
|
985
|
+
# reserved/read-only, the key is reserved/read-only.
|
|
986
|
+
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
987
|
+
# Corresponds to the JSON property `delete`
|
|
988
|
+
# @return [Google::Apis::DatastoreV1::Key]
|
|
989
|
+
attr_accessor :delete
|
|
990
|
+
|
|
991
|
+
# A Datastore data object.
|
|
992
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
993
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
994
|
+
# message.
|
|
995
|
+
# Corresponds to the JSON property `insert`
|
|
996
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
997
|
+
attr_accessor :insert
|
|
998
|
+
|
|
999
|
+
# The version of the entity that this mutation is being applied to. If this
|
|
1000
|
+
# does not match the current version on the server, the mutation conflicts.
|
|
1001
|
+
# Corresponds to the JSON property `baseVersion`
|
|
1002
|
+
# @return [String]
|
|
1003
|
+
attr_accessor :base_version
|
|
1004
|
+
|
|
1005
|
+
# A Datastore data object.
|
|
1006
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1007
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1008
|
+
# message.
|
|
1009
|
+
# Corresponds to the JSON property `update`
|
|
1010
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1011
|
+
attr_accessor :update
|
|
1012
|
+
|
|
1013
|
+
# A Datastore data object.
|
|
1014
|
+
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1015
|
+
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1016
|
+
# message.
|
|
1017
|
+
# Corresponds to the JSON property `upsert`
|
|
1018
|
+
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1019
|
+
attr_accessor :upsert
|
|
1020
|
+
|
|
1021
|
+
def initialize(**args)
|
|
1022
|
+
update!(**args)
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
# Update properties of this object
|
|
1026
|
+
def update!(**args)
|
|
1027
|
+
@delete = args[:delete] if args.key?(:delete)
|
|
1028
|
+
@insert = args[:insert] if args.key?(:insert)
|
|
1029
|
+
@base_version = args[:base_version] if args.key?(:base_version)
|
|
1030
|
+
@update = args[:update] if args.key?(:update)
|
|
1031
|
+
@upsert = args[:upsert] if args.key?(:upsert)
|
|
1032
|
+
end
|
|
1033
|
+
end
|
|
1034
|
+
|
|
1035
|
+
# The options shared by read requests.
|
|
1036
|
+
class ReadOptions
|
|
1037
|
+
include Google::Apis::Core::Hashable
|
|
1038
|
+
|
|
1039
|
+
# The non-transactional read consistency to use.
|
|
1040
|
+
# Cannot be set to `STRONG` for global queries.
|
|
1041
|
+
# Corresponds to the JSON property `readConsistency`
|
|
1042
|
+
# @return [String]
|
|
1043
|
+
attr_accessor :read_consistency
|
|
1044
|
+
|
|
1045
|
+
# The identifier of the transaction in which to read. A
|
|
1046
|
+
# transaction identifier is returned by a call to
|
|
1047
|
+
# Datastore.BeginTransaction.
|
|
1048
|
+
# Corresponds to the JSON property `transaction`
|
|
1049
|
+
# @return [String]
|
|
1050
|
+
attr_accessor :transaction
|
|
1051
|
+
|
|
1052
|
+
def initialize(**args)
|
|
1053
|
+
update!(**args)
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
# Update properties of this object
|
|
1057
|
+
def update!(**args)
|
|
1058
|
+
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
|
1059
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
929
1060
|
end
|
|
930
1061
|
end
|
|
931
1062
|
|
|
932
|
-
# The response for Datastore.
|
|
933
|
-
|
|
1063
|
+
# The response for Datastore.Rollback.
|
|
1064
|
+
# (an empty message).
|
|
1065
|
+
class RollbackResponse
|
|
934
1066
|
include Google::Apis::Core::Hashable
|
|
935
1067
|
|
|
936
|
-
# A batch of results produced by a query.
|
|
937
|
-
# Corresponds to the JSON property `batch`
|
|
938
|
-
# @return [Google::Apis::DatastoreV1::QueryResultBatch]
|
|
939
|
-
attr_accessor :batch
|
|
940
|
-
|
|
941
|
-
# A query for entities.
|
|
942
|
-
# Corresponds to the JSON property `query`
|
|
943
|
-
# @return [Google::Apis::DatastoreV1::Query]
|
|
944
|
-
attr_accessor :query
|
|
945
|
-
|
|
946
1068
|
def initialize(**args)
|
|
947
1069
|
update!(**args)
|
|
948
1070
|
end
|
|
949
1071
|
|
|
950
1072
|
# Update properties of this object
|
|
951
1073
|
def update!(**args)
|
|
952
|
-
@batch = args[:batch] if args.key?(:batch)
|
|
953
|
-
@query = args[:query] if args.key?(:query)
|
|
954
1074
|
end
|
|
955
1075
|
end
|
|
956
1076
|
|
|
957
|
-
#
|
|
958
|
-
|
|
959
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
960
|
-
# message.
|
|
961
|
-
class Entity
|
|
1077
|
+
# The result of applying a mutation.
|
|
1078
|
+
class MutationResult
|
|
962
1079
|
include Google::Apis::Core::Hashable
|
|
963
1080
|
|
|
964
|
-
# The entity's properties.
|
|
965
|
-
# The map's keys are property names.
|
|
966
|
-
# A property name matching regex `__.*__` is reserved.
|
|
967
|
-
# A reserved property name is forbidden in certain documented contexts.
|
|
968
|
-
# The name must not contain more than 500 characters.
|
|
969
|
-
# The name cannot be `""`.
|
|
970
|
-
# Corresponds to the JSON property `properties`
|
|
971
|
-
# @return [Hash<String,Google::Apis::DatastoreV1::Value>]
|
|
972
|
-
attr_accessor :properties
|
|
973
|
-
|
|
974
1081
|
# A unique identifier for an entity.
|
|
975
1082
|
# If a key's partition ID or any of its path kinds or names are
|
|
976
1083
|
# reserved/read-only, the key is reserved/read-only.
|
|
@@ -979,14 +1086,31 @@ module Google
|
|
|
979
1086
|
# @return [Google::Apis::DatastoreV1::Key]
|
|
980
1087
|
attr_accessor :key
|
|
981
1088
|
|
|
1089
|
+
# The version of the entity on the server after processing the mutation. If
|
|
1090
|
+
# the mutation doesn't change anything on the server, then the version will
|
|
1091
|
+
# be the version of the current entity or, if no entity is present, a version
|
|
1092
|
+
# that is strictly greater than the version of any previous entity and less
|
|
1093
|
+
# than the version of any possible future entity.
|
|
1094
|
+
# Corresponds to the JSON property `version`
|
|
1095
|
+
# @return [String]
|
|
1096
|
+
attr_accessor :version
|
|
1097
|
+
|
|
1098
|
+
# Whether a conflict was detected for this mutation. Always false when a
|
|
1099
|
+
# conflict detection strategy field is not set in the mutation.
|
|
1100
|
+
# Corresponds to the JSON property `conflictDetected`
|
|
1101
|
+
# @return [Boolean]
|
|
1102
|
+
attr_accessor :conflict_detected
|
|
1103
|
+
alias_method :conflict_detected?, :conflict_detected
|
|
1104
|
+
|
|
982
1105
|
def initialize(**args)
|
|
983
1106
|
update!(**args)
|
|
984
1107
|
end
|
|
985
1108
|
|
|
986
1109
|
# Update properties of this object
|
|
987
1110
|
def update!(**args)
|
|
988
|
-
@properties = args[:properties] if args.key?(:properties)
|
|
989
1111
|
@key = args[:key] if args.key?(:key)
|
|
1112
|
+
@version = args[:version] if args.key?(:version)
|
|
1113
|
+
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
|
990
1114
|
end
|
|
991
1115
|
end
|
|
992
1116
|
|
|
@@ -1000,14 +1124,6 @@ module Google
|
|
|
1000
1124
|
# @return [String]
|
|
1001
1125
|
attr_accessor :query_string
|
|
1002
1126
|
|
|
1003
|
-
# For each non-reserved named binding site in the query string, there must be
|
|
1004
|
-
# a named parameter with that name, but not necessarily the inverse.
|
|
1005
|
-
# Key must match regex `A-Za-z_$*`, must not match regex
|
|
1006
|
-
# `__.*__`, and must not be `""`.
|
|
1007
|
-
# Corresponds to the JSON property `namedBindings`
|
|
1008
|
-
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
1009
|
-
attr_accessor :named_bindings
|
|
1010
|
-
|
|
1011
1127
|
# When false, the query string must not contain any literals and instead must
|
|
1012
1128
|
# bind all values. For example,
|
|
1013
1129
|
# `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
|
|
@@ -1017,6 +1133,14 @@ module Google
|
|
|
1017
1133
|
attr_accessor :allow_literals
|
|
1018
1134
|
alias_method :allow_literals?, :allow_literals
|
|
1019
1135
|
|
|
1136
|
+
# For each non-reserved named binding site in the query string, there must be
|
|
1137
|
+
# a named parameter with that name, but not necessarily the inverse.
|
|
1138
|
+
# Key must match regex `A-Za-z_$*`, must not match regex
|
|
1139
|
+
# `__.*__`, and must not be `""`.
|
|
1140
|
+
# Corresponds to the JSON property `namedBindings`
|
|
1141
|
+
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
1142
|
+
attr_accessor :named_bindings
|
|
1143
|
+
|
|
1020
1144
|
# Numbered binding site @1 references the first numbered parameter,
|
|
1021
1145
|
# effectively using 1-based indexing, rather than the usual 0.
|
|
1022
1146
|
# For each binding site numbered i in `query_string`, there must be an i-th
|
|
@@ -1032,83 +1156,25 @@ module Google
|
|
|
1032
1156
|
# Update properties of this object
|
|
1033
1157
|
def update!(**args)
|
|
1034
1158
|
@query_string = args[:query_string] if args.key?(:query_string)
|
|
1035
|
-
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
1036
1159
|
@allow_literals = args[:allow_literals] if args.key?(:allow_literals)
|
|
1160
|
+
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
1037
1161
|
@positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
|
|
1038
1162
|
end
|
|
1039
1163
|
end
|
|
1040
1164
|
|
|
1041
|
-
# A
|
|
1042
|
-
class
|
|
1043
|
-
include Google::Apis::Core::Hashable
|
|
1044
|
-
|
|
1045
|
-
# A Datastore data object.
|
|
1046
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1047
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1048
|
-
# message.
|
|
1049
|
-
# Corresponds to the JSON property `insert`
|
|
1050
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1051
|
-
attr_accessor :insert
|
|
1052
|
-
|
|
1053
|
-
# A Datastore data object.
|
|
1054
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1055
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1056
|
-
# message.
|
|
1057
|
-
# Corresponds to the JSON property `update`
|
|
1058
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1059
|
-
attr_accessor :update
|
|
1060
|
-
|
|
1061
|
-
# The version of the entity that this mutation is being applied to. If this
|
|
1062
|
-
# does not match the current version on the server, the mutation conflicts.
|
|
1063
|
-
# Corresponds to the JSON property `baseVersion`
|
|
1064
|
-
# @return [String]
|
|
1065
|
-
attr_accessor :base_version
|
|
1066
|
-
|
|
1067
|
-
# A Datastore data object.
|
|
1068
|
-
# An entity is limited to 1 megabyte when stored. That _roughly_
|
|
1069
|
-
# corresponds to a limit of 1 megabyte for the serialized form of this
|
|
1070
|
-
# message.
|
|
1071
|
-
# Corresponds to the JSON property `upsert`
|
|
1072
|
-
# @return [Google::Apis::DatastoreV1::Entity]
|
|
1073
|
-
attr_accessor :upsert
|
|
1074
|
-
|
|
1075
|
-
# A unique identifier for an entity.
|
|
1076
|
-
# If a key's partition ID or any of its path kinds or names are
|
|
1077
|
-
# reserved/read-only, the key is reserved/read-only.
|
|
1078
|
-
# A reserved/read-only key is forbidden in certain documented contexts.
|
|
1079
|
-
# Corresponds to the JSON property `delete`
|
|
1080
|
-
# @return [Google::Apis::DatastoreV1::Key]
|
|
1081
|
-
attr_accessor :delete
|
|
1082
|
-
|
|
1083
|
-
def initialize(**args)
|
|
1084
|
-
update!(**args)
|
|
1085
|
-
end
|
|
1086
|
-
|
|
1087
|
-
# Update properties of this object
|
|
1088
|
-
def update!(**args)
|
|
1089
|
-
@insert = args[:insert] if args.key?(:insert)
|
|
1090
|
-
@update = args[:update] if args.key?(:update)
|
|
1091
|
-
@base_version = args[:base_version] if args.key?(:base_version)
|
|
1092
|
-
@upsert = args[:upsert] if args.key?(:upsert)
|
|
1093
|
-
@delete = args[:delete] if args.key?(:delete)
|
|
1094
|
-
end
|
|
1095
|
-
end
|
|
1096
|
-
|
|
1097
|
-
# The response for Datastore.Commit.
|
|
1098
|
-
class CommitResponse
|
|
1165
|
+
# A holder for any type of filter.
|
|
1166
|
+
class Filter
|
|
1099
1167
|
include Google::Apis::Core::Hashable
|
|
1100
1168
|
|
|
1101
|
-
#
|
|
1102
|
-
#
|
|
1103
|
-
#
|
|
1104
|
-
|
|
1105
|
-
attr_accessor :mutation_results
|
|
1169
|
+
# A filter on a specific property.
|
|
1170
|
+
# Corresponds to the JSON property `propertyFilter`
|
|
1171
|
+
# @return [Google::Apis::DatastoreV1::PropertyFilter]
|
|
1172
|
+
attr_accessor :property_filter
|
|
1106
1173
|
|
|
1107
|
-
#
|
|
1108
|
-
#
|
|
1109
|
-
#
|
|
1110
|
-
|
|
1111
|
-
attr_accessor :index_updates
|
|
1174
|
+
# A filter that merges multiple other filters using the given operator.
|
|
1175
|
+
# Corresponds to the JSON property `compositeFilter`
|
|
1176
|
+
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
1177
|
+
attr_accessor :composite_filter
|
|
1112
1178
|
|
|
1113
1179
|
def initialize(**args)
|
|
1114
1180
|
update!(**args)
|
|
@@ -1116,8 +1182,8 @@ module Google
|
|
|
1116
1182
|
|
|
1117
1183
|
# Update properties of this object
|
|
1118
1184
|
def update!(**args)
|
|
1119
|
-
@
|
|
1120
|
-
@
|
|
1185
|
+
@property_filter = args[:property_filter] if args.key?(:property_filter)
|
|
1186
|
+
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
1121
1187
|
end
|
|
1122
1188
|
end
|
|
1123
1189
|
|
|
@@ -1173,80 +1239,15 @@ module Google
|
|
|
1173
1239
|
end
|
|
1174
1240
|
end
|
|
1175
1241
|
|
|
1176
|
-
# The request for Datastore.
|
|
1177
|
-
class
|
|
1178
|
-
include Google::Apis::Core::Hashable
|
|
1179
|
-
|
|
1180
|
-
# The options shared by read requests.
|
|
1181
|
-
# Corresponds to the JSON property `readOptions`
|
|
1182
|
-
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
1183
|
-
attr_accessor :read_options
|
|
1184
|
-
|
|
1185
|
-
# Keys of entities to look up.
|
|
1186
|
-
# Corresponds to the JSON property `keys`
|
|
1187
|
-
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
1188
|
-
attr_accessor :keys
|
|
1189
|
-
|
|
1190
|
-
def initialize(**args)
|
|
1191
|
-
update!(**args)
|
|
1192
|
-
end
|
|
1193
|
-
|
|
1194
|
-
# Update properties of this object
|
|
1195
|
-
def update!(**args)
|
|
1196
|
-
@read_options = args[:read_options] if args.key?(:read_options)
|
|
1197
|
-
@keys = args[:keys] if args.key?(:keys)
|
|
1198
|
-
end
|
|
1199
|
-
end
|
|
1200
|
-
|
|
1201
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
1202
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
1203
|
-
# specified otherwise, this must conform to the
|
|
1204
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
1205
|
-
# standard</a>. Values must be within normalized ranges.
|
|
1206
|
-
# Example of normalization code in Python:
|
|
1207
|
-
# def NormalizeLongitude(longitude):
|
|
1208
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
1209
|
-
# q, r = divmod(longitude, 360.0)
|
|
1210
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
1211
|
-
# return r - 360.0
|
|
1212
|
-
# return r
|
|
1213
|
-
# def NormalizeLatLng(latitude, longitude):
|
|
1214
|
-
# """Wraps decimal degrees latitude and longitude to
|
|
1215
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
1216
|
-
# r = latitude % 360.0
|
|
1217
|
-
# if r <= 90.0:
|
|
1218
|
-
# return r, NormalizeLongitude(longitude)
|
|
1219
|
-
# elif r >= 270.0:
|
|
1220
|
-
# return r - 360, NormalizeLongitude(longitude)
|
|
1221
|
-
# else:
|
|
1222
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
1223
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
|
1224
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
1225
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
|
1226
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
1227
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
1228
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
1229
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
1230
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
1231
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
1232
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
1233
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
1234
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
1235
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
1236
|
-
# The code in logs/storage/validator/logs_validator_traits.cc treats this type
|
|
1237
|
-
# as if it were annotated as ST_LOCATION.
|
|
1238
|
-
class LatLng
|
|
1242
|
+
# The request for Datastore.Rollback.
|
|
1243
|
+
class RollbackRequest
|
|
1239
1244
|
include Google::Apis::Core::Hashable
|
|
1240
1245
|
|
|
1241
|
-
# The
|
|
1242
|
-
#
|
|
1243
|
-
#
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
1247
|
-
# Corresponds to the JSON property `longitude`
|
|
1248
|
-
# @return [Float]
|
|
1249
|
-
attr_accessor :longitude
|
|
1246
|
+
# The transaction identifier, returned by a call to
|
|
1247
|
+
# Datastore.BeginTransaction.
|
|
1248
|
+
# Corresponds to the JSON property `transaction`
|
|
1249
|
+
# @return [String]
|
|
1250
|
+
attr_accessor :transaction
|
|
1250
1251
|
|
|
1251
1252
|
def initialize(**args)
|
|
1252
1253
|
update!(**args)
|
|
@@ -1254,8 +1255,7 @@ module Google
|
|
|
1254
1255
|
|
|
1255
1256
|
# Update properties of this object
|
|
1256
1257
|
def update!(**args)
|
|
1257
|
-
@
|
|
1258
|
-
@longitude = args[:longitude] if args.key?(:longitude)
|
|
1258
|
+
@transaction = args[:transaction] if args.key?(:transaction)
|
|
1259
1259
|
end
|
|
1260
1260
|
end
|
|
1261
1261
|
|