google-apis-datastore_v1 0.19.0 → 0.20.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cae9589ebcb7edb55fea7a66deecd266a8834d539d38cfc6aae70446b55015b
|
4
|
+
data.tar.gz: ceda7925f94b0408aa072ca163d821ae8f20633975f5ae2b94cb86b6535b6ee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78200157aec3ba3e1e6a6452d7233c45e444640ded2b7a179394296f60051c0d7a44ab9a732b3484e35d96f60910b17f7f466275cc7b6e064024218e420b2a41
|
7
|
+
data.tar.gz: 522a405a4b50d65f65917aeb95feb1c655ecb6b4c6abe7ca45d3903dc0c0fdab88ff78dd63386c289823d58f1ead00e0c72f691f18bbb3ecfc328192567b8fda
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-datastore_v1
|
2
2
|
|
3
|
+
### v0.20.0 (2022-10-30)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221018
|
6
|
+
* Regenerated using generator version 0.11.0
|
7
|
+
|
3
8
|
### v0.19.0 (2022-09-20)
|
4
9
|
|
5
10
|
* Regenerated using generator version 0.10.0
|
@@ -22,6 +22,124 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DatastoreV1
|
24
24
|
|
25
|
+
# Defines a aggregation that produces a single result.
|
26
|
+
class Aggregation
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Optional. Optional name of the property to store the result of the aggregation.
|
30
|
+
# If not provided, Datastore will pick a default name following the format `
|
31
|
+
# property_`. For example: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1,
|
32
|
+
# COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT_UP_TO(4) OVER ( ... ); `
|
33
|
+
# `` becomes: ``` AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2) AS
|
34
|
+
# property_1, COUNT_UP_TO(3) AS count_up_to_3, COUNT_UP_TO(4) AS property_2 OVER
|
35
|
+
# ( ... ); ``` Requires: * Must be unique across all aggregation aliases. *
|
36
|
+
# Conform to entity property name limitations.
|
37
|
+
# Corresponds to the JSON property `alias`
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :alias
|
40
|
+
|
41
|
+
# Count of entities that match the query. The `COUNT(*)` aggregation function
|
42
|
+
# operates on the entire entity so it does not require a field reference.
|
43
|
+
# Corresponds to the JSON property `count`
|
44
|
+
# @return [Google::Apis::DatastoreV1::Count]
|
45
|
+
attr_accessor :count
|
46
|
+
|
47
|
+
def initialize(**args)
|
48
|
+
update!(**args)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Update properties of this object
|
52
|
+
def update!(**args)
|
53
|
+
@alias = args[:alias] if args.key?(:alias)
|
54
|
+
@count = args[:count] if args.key?(:count)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# Datastore query for running an aggregation over a Query.
|
59
|
+
class AggregationQuery
|
60
|
+
include Google::Apis::Core::Hashable
|
61
|
+
|
62
|
+
# Optional. Series of aggregations to apply over the results of the `
|
63
|
+
# nested_query`. Requires: * A minimum of one and maximum of five aggregations
|
64
|
+
# per query.
|
65
|
+
# Corresponds to the JSON property `aggregations`
|
66
|
+
# @return [Array<Google::Apis::DatastoreV1::Aggregation>]
|
67
|
+
attr_accessor :aggregations
|
68
|
+
|
69
|
+
# A query for entities.
|
70
|
+
# Corresponds to the JSON property `nestedQuery`
|
71
|
+
# @return [Google::Apis::DatastoreV1::Query]
|
72
|
+
attr_accessor :nested_query
|
73
|
+
|
74
|
+
def initialize(**args)
|
75
|
+
update!(**args)
|
76
|
+
end
|
77
|
+
|
78
|
+
# Update properties of this object
|
79
|
+
def update!(**args)
|
80
|
+
@aggregations = args[:aggregations] if args.key?(:aggregations)
|
81
|
+
@nested_query = args[:nested_query] if args.key?(:nested_query)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# The result of a single bucket from a Datastore aggregation query. The keys of `
|
86
|
+
# aggregate_properties` are the same for all results in an aggregation query,
|
87
|
+
# unlike entity queries which can have different fields present for each result.
|
88
|
+
class AggregationResult
|
89
|
+
include Google::Apis::Core::Hashable
|
90
|
+
|
91
|
+
# The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. The
|
92
|
+
# key is the alias assigned to the aggregation function on input and the size of
|
93
|
+
# this map equals the number of aggregation functions in the query.
|
94
|
+
# Corresponds to the JSON property `aggregateProperties`
|
95
|
+
# @return [Hash<String,Google::Apis::DatastoreV1::Value>]
|
96
|
+
attr_accessor :aggregate_properties
|
97
|
+
|
98
|
+
def initialize(**args)
|
99
|
+
update!(**args)
|
100
|
+
end
|
101
|
+
|
102
|
+
# Update properties of this object
|
103
|
+
def update!(**args)
|
104
|
+
@aggregate_properties = args[:aggregate_properties] if args.key?(:aggregate_properties)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# A batch of aggregation results produced by an aggregation query.
|
109
|
+
class AggregationResultBatch
|
110
|
+
include Google::Apis::Core::Hashable
|
111
|
+
|
112
|
+
# The aggregation results for this batch.
|
113
|
+
# Corresponds to the JSON property `aggregationResults`
|
114
|
+
# @return [Array<Google::Apis::DatastoreV1::AggregationResult>]
|
115
|
+
attr_accessor :aggregation_results
|
116
|
+
|
117
|
+
# The state of the query after the current batch. Only COUNT(*) aggregations are
|
118
|
+
# supported in the initial launch. Therefore, expected result type is limited to
|
119
|
+
# `NO_MORE_RESULTS`.
|
120
|
+
# Corresponds to the JSON property `moreResults`
|
121
|
+
# @return [String]
|
122
|
+
attr_accessor :more_results
|
123
|
+
|
124
|
+
# Read timestamp this batch was returned from. In a single transaction,
|
125
|
+
# subsequent query result batches for the same query can have a greater
|
126
|
+
# timestamp. Each batch's read timestamp is valid for all preceding batches.
|
127
|
+
# Corresponds to the JSON property `readTime`
|
128
|
+
# @return [String]
|
129
|
+
attr_accessor :read_time
|
130
|
+
|
131
|
+
def initialize(**args)
|
132
|
+
update!(**args)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Update properties of this object
|
136
|
+
def update!(**args)
|
137
|
+
@aggregation_results = args[:aggregation_results] if args.key?(:aggregation_results)
|
138
|
+
@more_results = args[:more_results] if args.key?(:more_results)
|
139
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
25
143
|
# The request for Datastore.AllocateIds.
|
26
144
|
class AllocateIdsRequest
|
27
145
|
include Google::Apis::Core::Hashable
|
@@ -240,6 +358,31 @@ module Google
|
|
240
358
|
end
|
241
359
|
end
|
242
360
|
|
361
|
+
# Count of entities that match the query. The `COUNT(*)` aggregation function
|
362
|
+
# operates on the entire entity so it does not require a field reference.
|
363
|
+
class Count
|
364
|
+
include Google::Apis::Core::Hashable
|
365
|
+
|
366
|
+
# Optional. Optional constraint on the maximum number of entities to count. This
|
367
|
+
# provides a way to set an upper bound on the number of entities to scan,
|
368
|
+
# limiting latency and cost. Unspecified is interpreted as no bound. If a zero
|
369
|
+
# value is provided, a count result of zero should always be expected. High-
|
370
|
+
# Level Example: ``` AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); ```
|
371
|
+
# Requires: * Must be non-negative when present.
|
372
|
+
# Corresponds to the JSON property `upTo`
|
373
|
+
# @return [Fixnum]
|
374
|
+
attr_accessor :up_to
|
375
|
+
|
376
|
+
def initialize(**args)
|
377
|
+
update!(**args)
|
378
|
+
end
|
379
|
+
|
380
|
+
# Update properties of this object
|
381
|
+
def update!(**args)
|
382
|
+
@up_to = args[:up_to] if args.key?(:up_to)
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
243
386
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
244
387
|
# messages in your APIs. A typical example is to use it as the request or the
|
245
388
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -2096,6 +2239,84 @@ module Google
|
|
2096
2239
|
end
|
2097
2240
|
end
|
2098
2241
|
|
2242
|
+
# The request for Datastore.RunAggregationQuery.
|
2243
|
+
class RunAggregationQueryRequest
|
2244
|
+
include Google::Apis::Core::Hashable
|
2245
|
+
|
2246
|
+
# Datastore query for running an aggregation over a Query.
|
2247
|
+
# Corresponds to the JSON property `aggregationQuery`
|
2248
|
+
# @return [Google::Apis::DatastoreV1::AggregationQuery]
|
2249
|
+
attr_accessor :aggregation_query
|
2250
|
+
|
2251
|
+
# The ID of the database against which to make the request. '(default)' is not
|
2252
|
+
# allowed; please use empty string '' to refer the default database.
|
2253
|
+
# Corresponds to the JSON property `databaseId`
|
2254
|
+
# @return [String]
|
2255
|
+
attr_accessor :database_id
|
2256
|
+
|
2257
|
+
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
2258
|
+
# Corresponds to the JSON property `gqlQuery`
|
2259
|
+
# @return [Google::Apis::DatastoreV1::GqlQuery]
|
2260
|
+
attr_accessor :gql_query
|
2261
|
+
|
2262
|
+
# A partition ID identifies a grouping of entities. The grouping is always by
|
2263
|
+
# project and namespace, however the namespace ID may be empty. A partition ID
|
2264
|
+
# contains several dimensions: project ID and namespace ID. Partition dimensions:
|
2265
|
+
# - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match
|
2266
|
+
# regex `[A-Za-z\d\.\-_]`1,100`` If the value of any dimension matches regex `__.
|
2267
|
+
# *__`, the partition is reserved/read-only. A reserved/read-only partition ID
|
2268
|
+
# is forbidden in certain documented contexts. Foreign partition IDs (in which
|
2269
|
+
# the project ID does not match the context project ID ) are discouraged. Reads
|
2270
|
+
# and writes of foreign partition IDs may fail if the project is not in an
|
2271
|
+
# active state.
|
2272
|
+
# Corresponds to the JSON property `partitionId`
|
2273
|
+
# @return [Google::Apis::DatastoreV1::PartitionId]
|
2274
|
+
attr_accessor :partition_id
|
2275
|
+
|
2276
|
+
# The options shared by read requests.
|
2277
|
+
# Corresponds to the JSON property `readOptions`
|
2278
|
+
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
2279
|
+
attr_accessor :read_options
|
2280
|
+
|
2281
|
+
def initialize(**args)
|
2282
|
+
update!(**args)
|
2283
|
+
end
|
2284
|
+
|
2285
|
+
# Update properties of this object
|
2286
|
+
def update!(**args)
|
2287
|
+
@aggregation_query = args[:aggregation_query] if args.key?(:aggregation_query)
|
2288
|
+
@database_id = args[:database_id] if args.key?(:database_id)
|
2289
|
+
@gql_query = args[:gql_query] if args.key?(:gql_query)
|
2290
|
+
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
2291
|
+
@read_options = args[:read_options] if args.key?(:read_options)
|
2292
|
+
end
|
2293
|
+
end
|
2294
|
+
|
2295
|
+
# The response for Datastore.RunAggregationQuery.
|
2296
|
+
class RunAggregationQueryResponse
|
2297
|
+
include Google::Apis::Core::Hashable
|
2298
|
+
|
2299
|
+
# A batch of aggregation results produced by an aggregation query.
|
2300
|
+
# Corresponds to the JSON property `batch`
|
2301
|
+
# @return [Google::Apis::DatastoreV1::AggregationResultBatch]
|
2302
|
+
attr_accessor :batch
|
2303
|
+
|
2304
|
+
# Datastore query for running an aggregation over a Query.
|
2305
|
+
# Corresponds to the JSON property `query`
|
2306
|
+
# @return [Google::Apis::DatastoreV1::AggregationQuery]
|
2307
|
+
attr_accessor :query
|
2308
|
+
|
2309
|
+
def initialize(**args)
|
2310
|
+
update!(**args)
|
2311
|
+
end
|
2312
|
+
|
2313
|
+
# Update properties of this object
|
2314
|
+
def update!(**args)
|
2315
|
+
@batch = args[:batch] if args.key?(:batch)
|
2316
|
+
@query = args[:query] if args.key?(:query)
|
2317
|
+
end
|
2318
|
+
end
|
2319
|
+
|
2099
2320
|
# The request for Datastore.RunQuery.
|
2100
2321
|
class RunQueryRequest
|
2101
2322
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DatastoreV1
|
18
18
|
# Version of the google-apis-datastore_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.20.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221018"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,30 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DatastoreV1
|
24
24
|
|
25
|
+
class Aggregation
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AggregationQuery
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class AggregationResult
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class AggregationResultBatch
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
25
49
|
class AllocateIdsRequest
|
26
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
51
|
|
@@ -70,6 +94,12 @@ module Google
|
|
70
94
|
include Google::Apis::Core::JsonObjectSupport
|
71
95
|
end
|
72
96
|
|
97
|
+
class Count
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
73
103
|
class Empty
|
74
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
105
|
|
@@ -388,6 +418,18 @@ module Google
|
|
388
418
|
include Google::Apis::Core::JsonObjectSupport
|
389
419
|
end
|
390
420
|
|
421
|
+
class RunAggregationQueryRequest
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
+
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
425
|
+
end
|
426
|
+
|
427
|
+
class RunAggregationQueryResponse
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
391
433
|
class RunQueryRequest
|
392
434
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
435
|
|
@@ -418,6 +460,43 @@ module Google
|
|
418
460
|
include Google::Apis::Core::JsonObjectSupport
|
419
461
|
end
|
420
462
|
|
463
|
+
class Aggregation
|
464
|
+
# @private
|
465
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
466
|
+
property :alias, as: 'alias'
|
467
|
+
property :count, as: 'count', class: Google::Apis::DatastoreV1::Count, decorator: Google::Apis::DatastoreV1::Count::Representation
|
468
|
+
|
469
|
+
end
|
470
|
+
end
|
471
|
+
|
472
|
+
class AggregationQuery
|
473
|
+
# @private
|
474
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
475
|
+
collection :aggregations, as: 'aggregations', class: Google::Apis::DatastoreV1::Aggregation, decorator: Google::Apis::DatastoreV1::Aggregation::Representation
|
476
|
+
|
477
|
+
property :nested_query, as: 'nestedQuery', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
|
478
|
+
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
class AggregationResult
|
483
|
+
# @private
|
484
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
485
|
+
hash :aggregate_properties, as: 'aggregateProperties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
|
486
|
+
|
487
|
+
end
|
488
|
+
end
|
489
|
+
|
490
|
+
class AggregationResultBatch
|
491
|
+
# @private
|
492
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
493
|
+
collection :aggregation_results, as: 'aggregationResults', class: Google::Apis::DatastoreV1::AggregationResult, decorator: Google::Apis::DatastoreV1::AggregationResult::Representation
|
494
|
+
|
495
|
+
property :more_results, as: 'moreResults'
|
496
|
+
property :read_time, as: 'readTime'
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
421
500
|
class AllocateIdsRequest
|
422
501
|
# @private
|
423
502
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -489,6 +568,13 @@ module Google
|
|
489
568
|
end
|
490
569
|
end
|
491
570
|
|
571
|
+
class Count
|
572
|
+
# @private
|
573
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
574
|
+
property :up_to, :numeric_string => true, as: 'upTo'
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
492
578
|
class Empty
|
493
579
|
# @private
|
494
580
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1013,6 +1099,31 @@ module Google
|
|
1013
1099
|
end
|
1014
1100
|
end
|
1015
1101
|
|
1102
|
+
class RunAggregationQueryRequest
|
1103
|
+
# @private
|
1104
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1105
|
+
property :aggregation_query, as: 'aggregationQuery', class: Google::Apis::DatastoreV1::AggregationQuery, decorator: Google::Apis::DatastoreV1::AggregationQuery::Representation
|
1106
|
+
|
1107
|
+
property :database_id, as: 'databaseId'
|
1108
|
+
property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
|
1109
|
+
|
1110
|
+
property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
|
1111
|
+
|
1112
|
+
property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
|
1113
|
+
|
1114
|
+
end
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
class RunAggregationQueryResponse
|
1118
|
+
# @private
|
1119
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1120
|
+
property :batch, as: 'batch', class: Google::Apis::DatastoreV1::AggregationResultBatch, decorator: Google::Apis::DatastoreV1::AggregationResultBatch::Representation
|
1121
|
+
|
1122
|
+
property :query, as: 'query', class: Google::Apis::DatastoreV1::AggregationQuery, decorator: Google::Apis::DatastoreV1::AggregationQuery::Representation
|
1123
|
+
|
1124
|
+
end
|
1125
|
+
end
|
1126
|
+
|
1016
1127
|
class RunQueryRequest
|
1017
1128
|
# @private
|
1018
1129
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -326,6 +326,39 @@ module Google
|
|
326
326
|
execute_or_queue_command(command, &block)
|
327
327
|
end
|
328
328
|
|
329
|
+
# Runs an aggregation query.
|
330
|
+
# @param [String] project_id
|
331
|
+
# Required. The ID of the project against which to make the request.
|
332
|
+
# @param [Google::Apis::DatastoreV1::RunAggregationQueryRequest] run_aggregation_query_request_object
|
333
|
+
# @param [String] fields
|
334
|
+
# Selector specifying which fields to include in a partial response.
|
335
|
+
# @param [String] quota_user
|
336
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
337
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
338
|
+
# @param [Google::Apis::RequestOptions] options
|
339
|
+
# Request-specific options
|
340
|
+
#
|
341
|
+
# @yield [result, err] Result & error if block supplied
|
342
|
+
# @yieldparam result [Google::Apis::DatastoreV1::RunAggregationQueryResponse] parsed result object
|
343
|
+
# @yieldparam err [StandardError] error object if request failed
|
344
|
+
#
|
345
|
+
# @return [Google::Apis::DatastoreV1::RunAggregationQueryResponse]
|
346
|
+
#
|
347
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
348
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
349
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
350
|
+
def run_project_aggregation_query(project_id, run_aggregation_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
351
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}:runAggregationQuery', options)
|
352
|
+
command.request_representation = Google::Apis::DatastoreV1::RunAggregationQueryRequest::Representation
|
353
|
+
command.request_object = run_aggregation_query_request_object
|
354
|
+
command.response_representation = Google::Apis::DatastoreV1::RunAggregationQueryResponse::Representation
|
355
|
+
command.response_class = Google::Apis::DatastoreV1::RunAggregationQueryResponse
|
356
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
357
|
+
command.query['fields'] = fields unless fields.nil?
|
358
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
359
|
+
execute_or_queue_command(command, &block)
|
360
|
+
end
|
361
|
+
|
329
362
|
# Queries for entities.
|
330
363
|
# @param [String] project_id
|
331
364
|
# Required. The ID of the project against which to make the request.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-datastore_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.
|
29
|
+
version: 0.9.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.20.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastore_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|