google-apis-datastore_v1 0.32.0 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b32d117381f94aa3d5b42a9d8aeea8ef8bb65006cff5329731f721433365a33c
4
- data.tar.gz: f09ba8a33bdfe12295b678b6489c08e3ed29025de95b0e1f6f30a3fcf30e06e8
3
+ metadata.gz: 4907bcb0ce2a6c5c56e66d8728add2e5430658871d23fbb4605c908b1aea96f0
4
+ data.tar.gz: cf433daf86910577ed9aea578c73f08d8ff467dc48d20d2626f7ddccf3f371b2
5
5
  SHA512:
6
- metadata.gz: 444ee980468ce95b32830553b9eb02b560470096064fe8f6c7e9d7f56920411808cfe477ba5186cece36e57808d2f59a003add9024b03136ba4d5091ab1e234e
7
- data.tar.gz: 2df5a9ab9dddd0e2ec3a1936092356e6fbdc8f6206ca8349c20f53e0f58b81fe50f7d4ccb15edc55ab77400758338dba63f6bde010e764714164e0b2651bc424
6
+ metadata.gz: caf52e3b20644937e046cb2edb0a40fbc887237853173865e7c1a07d6c4605aca111ba644748c38b2aca75641b89a37ad94f60fe21d8fc0c1ce9c74c16e3025e
7
+ data.tar.gz: d115bacf9fa87e1ee05fa2e578c87cd01a27cee5e270a2b2b3ce95fa1df6932bba0de3c92ba1a24c18b32bb9b1245bc03f1bc539731d0081a4f891ac01043782
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-datastore_v1
2
2
 
3
+ ### v0.33.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20240109
6
+ * Regenerated using generator version 0.13.0
7
+
3
8
  ### v0.32.0 (2023-09-10)
4
9
 
5
10
  * Regenerated from discovery document revision 20230905
@@ -2082,6 +2082,27 @@ module Google
2082
2082
  end
2083
2083
  end
2084
2084
 
2085
+ # Plan for the query.
2086
+ class QueryPlan
2087
+ include Google::Apis::Core::Hashable
2088
+
2089
+ # Planning phase information for the query. It will include: ` "indexes_used": [
2090
+ # `"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"`, `"
2091
+ # query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"` ] `
2092
+ # Corresponds to the JSON property `planInfo`
2093
+ # @return [Hash<String,Object>]
2094
+ attr_accessor :plan_info
2095
+
2096
+ def initialize(**args)
2097
+ update!(**args)
2098
+ end
2099
+
2100
+ # Update properties of this object
2101
+ def update!(**args)
2102
+ @plan_info = args[:plan_info] if args.key?(:plan_info)
2103
+ end
2104
+ end
2105
+
2085
2106
  # A batch of results produced by a query.
2086
2107
  class QueryResultBatch
2087
2108
  include Google::Apis::Core::Hashable
@@ -2283,6 +2304,35 @@ module Google
2283
2304
  end
2284
2305
  end
2285
2306
 
2307
+ # Planning and execution statistics for the query.
2308
+ class ResultSetStats
2309
+ include Google::Apis::Core::Hashable
2310
+
2311
+ # Plan for the query.
2312
+ # Corresponds to the JSON property `queryPlan`
2313
+ # @return [Google::Apis::DatastoreV1::QueryPlan]
2314
+ attr_accessor :query_plan
2315
+
2316
+ # Aggregated statistics from the execution of the query. This will only be
2317
+ # present when the request specifies `PROFILE` mode. For example, a query will
2318
+ # return the statistics including: ` "results_returned": "20", "
2319
+ # documents_scanned": "20", "indexes_entries_scanned": "10050", "
2320
+ # total_execution_time": "100.7 msecs" `
2321
+ # Corresponds to the JSON property `queryStats`
2322
+ # @return [Hash<String,Object>]
2323
+ attr_accessor :query_stats
2324
+
2325
+ def initialize(**args)
2326
+ update!(**args)
2327
+ end
2328
+
2329
+ # Update properties of this object
2330
+ def update!(**args)
2331
+ @query_plan = args[:query_plan] if args.key?(:query_plan)
2332
+ @query_stats = args[:query_stats] if args.key?(:query_stats)
2333
+ end
2334
+ end
2335
+
2286
2336
  # The request for Datastore.Rollback.
2287
2337
  class RollbackRequest
2288
2338
  include Google::Apis::Core::Hashable
@@ -2344,6 +2394,13 @@ module Google
2344
2394
  # @return [Google::Apis::DatastoreV1::GqlQuery]
2345
2395
  attr_accessor :gql_query
2346
2396
 
2397
+ # Optional. The mode in which the query request is processed. This field is
2398
+ # optional, and when not provided, it defaults to `NORMAL` mode where no
2399
+ # additional statistics will be returned with the query results.
2400
+ # Corresponds to the JSON property `mode`
2401
+ # @return [String]
2402
+ attr_accessor :mode
2403
+
2347
2404
  # A partition ID identifies a grouping of entities. The grouping is always by
2348
2405
  # project and namespace, however the namespace ID may be empty. A partition ID
2349
2406
  # contains several dimensions: project ID and namespace ID. Partition dimensions:
@@ -2372,6 +2429,7 @@ module Google
2372
2429
  @aggregation_query = args[:aggregation_query] if args.key?(:aggregation_query)
2373
2430
  @database_id = args[:database_id] if args.key?(:database_id)
2374
2431
  @gql_query = args[:gql_query] if args.key?(:gql_query)
2432
+ @mode = args[:mode] if args.key?(:mode)
2375
2433
  @partition_id = args[:partition_id] if args.key?(:partition_id)
2376
2434
  @read_options = args[:read_options] if args.key?(:read_options)
2377
2435
  end
@@ -2391,6 +2449,11 @@ module Google
2391
2449
  # @return [Google::Apis::DatastoreV1::AggregationQuery]
2392
2450
  attr_accessor :query
2393
2451
 
2452
+ # Planning and execution statistics for the query.
2453
+ # Corresponds to the JSON property `stats`
2454
+ # @return [Google::Apis::DatastoreV1::ResultSetStats]
2455
+ attr_accessor :stats
2456
+
2394
2457
  # The identifier of the transaction that was started as part of this
2395
2458
  # RunAggregationQuery request. Set only when ReadOptions.new_transaction was set
2396
2459
  # in RunAggregationQueryRequest.read_options.
@@ -2407,6 +2470,7 @@ module Google
2407
2470
  def update!(**args)
2408
2471
  @batch = args[:batch] if args.key?(:batch)
2409
2472
  @query = args[:query] if args.key?(:query)
2473
+ @stats = args[:stats] if args.key?(:stats)
2410
2474
  @transaction = args[:transaction] if args.key?(:transaction)
2411
2475
  end
2412
2476
  end
@@ -2426,6 +2490,13 @@ module Google
2426
2490
  # @return [Google::Apis::DatastoreV1::GqlQuery]
2427
2491
  attr_accessor :gql_query
2428
2492
 
2493
+ # Optional. The mode in which the query request is processed. This field is
2494
+ # optional, and when not provided, it defaults to `NORMAL` mode where no
2495
+ # additional statistics will be returned with the query results.
2496
+ # Corresponds to the JSON property `mode`
2497
+ # @return [String]
2498
+ attr_accessor :mode
2499
+
2429
2500
  # A partition ID identifies a grouping of entities. The grouping is always by
2430
2501
  # project and namespace, however the namespace ID may be empty. A partition ID
2431
2502
  # contains several dimensions: project ID and namespace ID. Partition dimensions:
@@ -2458,6 +2529,7 @@ module Google
2458
2529
  def update!(**args)
2459
2530
  @database_id = args[:database_id] if args.key?(:database_id)
2460
2531
  @gql_query = args[:gql_query] if args.key?(:gql_query)
2532
+ @mode = args[:mode] if args.key?(:mode)
2461
2533
  @partition_id = args[:partition_id] if args.key?(:partition_id)
2462
2534
  @query = args[:query] if args.key?(:query)
2463
2535
  @read_options = args[:read_options] if args.key?(:read_options)
@@ -2478,6 +2550,11 @@ module Google
2478
2550
  # @return [Google::Apis::DatastoreV1::Query]
2479
2551
  attr_accessor :query
2480
2552
 
2553
+ # Planning and execution statistics for the query.
2554
+ # Corresponds to the JSON property `stats`
2555
+ # @return [Google::Apis::DatastoreV1::ResultSetStats]
2556
+ attr_accessor :stats
2557
+
2481
2558
  # The identifier of the transaction that was started as part of this RunQuery
2482
2559
  # request. Set only when ReadOptions.new_transaction was set in RunQueryRequest.
2483
2560
  # read_options.
@@ -2494,6 +2571,7 @@ module Google
2494
2571
  def update!(**args)
2495
2572
  @batch = args[:batch] if args.key?(:batch)
2496
2573
  @query = args[:query] if args.key?(:query)
2574
+ @stats = args[:stats] if args.key?(:stats)
2497
2575
  @transaction = args[:transaction] if args.key?(:transaction)
2498
2576
  end
2499
2577
  end
@@ -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.32.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230905"
25
+ REVISION = "20240109"
26
26
  end
27
27
  end
28
28
  end
@@ -376,6 +376,12 @@ module Google
376
376
  include Google::Apis::Core::JsonObjectSupport
377
377
  end
378
378
 
379
+ class QueryPlan
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
379
385
  class QueryResultBatch
380
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
387
 
@@ -412,6 +418,12 @@ module Google
412
418
  include Google::Apis::Core::JsonObjectSupport
413
419
  end
414
420
 
421
+ class ResultSetStats
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
415
427
  class RollbackRequest
416
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
429
 
@@ -1061,6 +1073,13 @@ module Google
1061
1073
  end
1062
1074
  end
1063
1075
 
1076
+ class QueryPlan
1077
+ # @private
1078
+ class Representation < Google::Apis::Core::JsonRepresentation
1079
+ hash :plan_info, as: 'planInfo'
1080
+ end
1081
+ end
1082
+
1064
1083
  class QueryResultBatch
1065
1084
  # @private
1066
1085
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1116,6 +1135,15 @@ module Google
1116
1135
  end
1117
1136
  end
1118
1137
 
1138
+ class ResultSetStats
1139
+ # @private
1140
+ class Representation < Google::Apis::Core::JsonRepresentation
1141
+ property :query_plan, as: 'queryPlan', class: Google::Apis::DatastoreV1::QueryPlan, decorator: Google::Apis::DatastoreV1::QueryPlan::Representation
1142
+
1143
+ hash :query_stats, as: 'queryStats'
1144
+ end
1145
+ end
1146
+
1119
1147
  class RollbackRequest
1120
1148
  # @private
1121
1149
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1138,6 +1166,7 @@ module Google
1138
1166
  property :database_id, as: 'databaseId'
1139
1167
  property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
1140
1168
 
1169
+ property :mode, as: 'mode'
1141
1170
  property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
1142
1171
 
1143
1172
  property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
@@ -1152,6 +1181,8 @@ module Google
1152
1181
 
1153
1182
  property :query, as: 'query', class: Google::Apis::DatastoreV1::AggregationQuery, decorator: Google::Apis::DatastoreV1::AggregationQuery::Representation
1154
1183
 
1184
+ property :stats, as: 'stats', class: Google::Apis::DatastoreV1::ResultSetStats, decorator: Google::Apis::DatastoreV1::ResultSetStats::Representation
1185
+
1155
1186
  property :transaction, :base64 => true, as: 'transaction'
1156
1187
  end
1157
1188
  end
@@ -1162,6 +1193,7 @@ module Google
1162
1193
  property :database_id, as: 'databaseId'
1163
1194
  property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
1164
1195
 
1196
+ property :mode, as: 'mode'
1165
1197
  property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
1166
1198
 
1167
1199
  property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
@@ -1178,6 +1210,8 @@ module Google
1178
1210
 
1179
1211
  property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
1180
1212
 
1213
+ property :stats, as: 'stats', class: Google::Apis::DatastoreV1::ResultSetStats, decorator: Google::Apis::DatastoreV1::ResultSetStats::Representation
1214
+
1181
1215
  property :transaction, :base64 => true, as: 'transaction'
1182
1216
  end
1183
1217
  end
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/datastore/
35
35
  class DatastoreService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://datastore.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://datastore.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-datastore_v1',
49
51
  client_version: Google::Apis::DatastoreV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
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.32.0
4
+ version: 0.33.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: 2023-09-10 00:00:00.000000000 Z
11
+ date: 2024-01-23 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.11.0
19
+ version: 0.12.0
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.11.0
29
+ version: 0.12.0
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.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datastore_v1/v0.33.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Datastore API V1