google-apis-firestore_v1 0.56.0 → 0.57.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: b7b964752b52059e66f4e588e533818d10fe5530cc48d55a79980539d29e20da
4
- data.tar.gz: 0e79fc8682b7c4a908d9593c045c61fb592223f999b6a53da17ec1861422c836
3
+ metadata.gz: cf35ac5ab5216d3a9791cdee286cc9ba9827680bb17a65226ab8b87b9954ae9a
4
+ data.tar.gz: 04e49bd9e54449bb102f89ba88c361a5db38f2bb3462d1f8a1d2159cb91f6437
5
5
  SHA512:
6
- metadata.gz: e369f48af82fba29085b5fcc05c8cf5e142096f64005248bc103f76c8ffc4050cbcc795680dd813a795007f49ca5ec2212ce694598c4d0fdae102da363eec2d7
7
- data.tar.gz: 75b8e6dde795acc0f3ccfb74ad27196cb5e40918c3857fd8c990c882ce5ed2eaa47afbb83f4a262205911c44e1ad3ed13daa4dbe2e00b244f7bbfc0f3bdbd185
6
+ metadata.gz: b131fbd29589441e56abc870f53e84838a5e9a1baf999d55900db01d840c3ff68a97f656b73e92c8702aeafa46181fc5e6cf14e81e67fb851db0011ca8f766f8
7
+ data.tar.gz: 648f7ee4698de14c42b9d1fbd6dd62d8224b9a05f30a930dec2821bad0c9e9bff4a48d6b4c81931f04ccc18c746b215fe5a9d7aa06f52d806934ca379e3a9cad
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-firestore_v1
2
2
 
3
+ ### v0.57.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20240117
6
+ * Regenerated using generator version 0.13.0
7
+
3
8
  ### v0.56.0 (2023-12-24)
4
9
 
5
10
  * Regenerated from discovery document revision 20231214
@@ -588,7 +588,21 @@ module Google
588
588
  # @return [String]
589
589
  attr_accessor :create_time
590
590
 
591
- #
591
+ # The document's fields. The map keys represent field names. Field names
592
+ # matching the regular expression `__.*__` are reserved. Reserved field names
593
+ # are forbidden except in certain documented contexts. The field names,
594
+ # represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field
595
+ # paths may be used in other contexts to refer to structured fields defined here.
596
+ # For `map_value`, the field path is represented by a dot-delimited (`.`)
597
+ # string of segments. Each segment is either a simple field name (defined below)
598
+ # or a quoted field name. For example, the structured field `"foo" : ` map_value:
599
+ # ` "x&y" : ` string_value: "hello" ```` would be represented by the field path
600
+ # `` foo.`x&y` ``. A simple field name contains only characters `a` to `z`, `A`
601
+ # to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `
602
+ # foo_bar_17`. A quoted field name starts and ends with `` ` `` and may contain
603
+ # any character. Some characters, including `` ` ``, must be escaped using a `\`.
604
+ # For example, `` `x&y` `` represents `x&y` and `` `bak\`tik` `` represents ``
605
+ # bak`tik ``.
592
606
  # Corresponds to the JSON property `fields`
593
607
  # @return [Hash<String,Google::Apis::FirestoreV1::Value>]
594
608
  attr_accessor :fields
@@ -2758,7 +2772,8 @@ module Google
2758
2772
  # @return [String]
2759
2773
  attr_accessor :read_time
2760
2774
 
2761
- # A Firestore query.
2775
+ # A Firestore query. The query stages are executed in the following order: 1.
2776
+ # from 2. where 3. select 4. order_by + start_at + end_at 5. offset 6. limit
2762
2777
  # Corresponds to the JSON property `structuredQuery`
2763
2778
  # @return [Google::Apis::FirestoreV1::StructuredQuery]
2764
2779
  attr_accessor :structured_query
@@ -2861,6 +2876,27 @@ module Google
2861
2876
  end
2862
2877
  end
2863
2878
 
2879
+ # Plan for the query.
2880
+ class QueryPlan
2881
+ include Google::Apis::Core::Hashable
2882
+
2883
+ # Planning phase information for the query. It will include: ` "indexes_used": [
2884
+ # `"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"`, `"
2885
+ # query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"` ] `
2886
+ # Corresponds to the JSON property `planInfo`
2887
+ # @return [Hash<String,Object>]
2888
+ attr_accessor :plan_info
2889
+
2890
+ def initialize(**args)
2891
+ update!(**args)
2892
+ end
2893
+
2894
+ # Update properties of this object
2895
+ def update!(**args)
2896
+ @plan_info = args[:plan_info] if args.key?(:plan_info)
2897
+ end
2898
+ end
2899
+
2864
2900
  # A target specified by a query.
2865
2901
  class QueryTarget
2866
2902
  include Google::Apis::Core::Hashable
@@ -2874,7 +2910,8 @@ module Google
2874
2910
  # @return [String]
2875
2911
  attr_accessor :parent
2876
2912
 
2877
- # A Firestore query.
2913
+ # A Firestore query. The query stages are executed in the following order: 1.
2914
+ # from 2. where 3. select 4. order_by + start_at + end_at 5. offset 6. limit
2878
2915
  # Corresponds to the JSON property `structuredQuery`
2879
2916
  # @return [Google::Apis::FirestoreV1::StructuredQuery]
2880
2917
  attr_accessor :structured_query
@@ -2933,6 +2970,35 @@ module Google
2933
2970
  end
2934
2971
  end
2935
2972
 
2973
+ # Planning and execution statistics for the query.
2974
+ class ResultSetStats
2975
+ include Google::Apis::Core::Hashable
2976
+
2977
+ # Plan for the query.
2978
+ # Corresponds to the JSON property `queryPlan`
2979
+ # @return [Google::Apis::FirestoreV1::QueryPlan]
2980
+ attr_accessor :query_plan
2981
+
2982
+ # Aggregated statistics from the execution of the query. This will only be
2983
+ # present when the request specifies `PROFILE` mode. For example, a query will
2984
+ # return the statistics including: ` "results_returned": "20", "
2985
+ # documents_scanned": "20", "indexes_entries_scanned": "10050", "
2986
+ # total_execution_time": "100.7 msecs" `
2987
+ # Corresponds to the JSON property `queryStats`
2988
+ # @return [Hash<String,Object>]
2989
+ attr_accessor :query_stats
2990
+
2991
+ def initialize(**args)
2992
+ update!(**args)
2993
+ end
2994
+
2995
+ # Update properties of this object
2996
+ def update!(**args)
2997
+ @query_plan = args[:query_plan] if args.key?(:query_plan)
2998
+ @query_stats = args[:query_stats] if args.key?(:query_stats)
2999
+ end
3000
+ end
3001
+
2936
3002
  # The request for Firestore.Rollback.
2937
3003
  class RollbackRequest
2938
3004
  include Google::Apis::Core::Hashable
@@ -2957,6 +3023,13 @@ module Google
2957
3023
  class RunAggregationQueryRequest
2958
3024
  include Google::Apis::Core::Hashable
2959
3025
 
3026
+ # Optional. The mode in which the query request is processed. This field is
3027
+ # optional, and when not provided, it defaults to `NORMAL` mode where no
3028
+ # additional statistics will be returned with the query results.
3029
+ # Corresponds to the JSON property `mode`
3030
+ # @return [String]
3031
+ attr_accessor :mode
3032
+
2960
3033
  # Options for creating a new transaction.
2961
3034
  # Corresponds to the JSON property `newTransaction`
2962
3035
  # @return [Google::Apis::FirestoreV1::TransactionOptions]
@@ -2987,6 +3060,7 @@ module Google
2987
3060
 
2988
3061
  # Update properties of this object
2989
3062
  def update!(**args)
3063
+ @mode = args[:mode] if args.key?(:mode)
2990
3064
  @new_transaction = args[:new_transaction] if args.key?(:new_transaction)
2991
3065
  @read_time = args[:read_time] if args.key?(:read_time)
2992
3066
  @structured_aggregation_query = args[:structured_aggregation_query] if args.key?(:structured_aggregation_query)
@@ -3014,6 +3088,11 @@ module Google
3014
3088
  # @return [Google::Apis::FirestoreV1::AggregationResult]
3015
3089
  attr_accessor :result
3016
3090
 
3091
+ # Planning and execution statistics for the query.
3092
+ # Corresponds to the JSON property `stats`
3093
+ # @return [Google::Apis::FirestoreV1::ResultSetStats]
3094
+ attr_accessor :stats
3095
+
3017
3096
  # The transaction that was started as part of this request. Only present on the
3018
3097
  # first response when the request requested to start a new transaction.
3019
3098
  # Corresponds to the JSON property `transaction`
@@ -3029,6 +3108,7 @@ module Google
3029
3108
  def update!(**args)
3030
3109
  @read_time = args[:read_time] if args.key?(:read_time)
3031
3110
  @result = args[:result] if args.key?(:result)
3111
+ @stats = args[:stats] if args.key?(:stats)
3032
3112
  @transaction = args[:transaction] if args.key?(:transaction)
3033
3113
  end
3034
3114
  end
@@ -3037,6 +3117,13 @@ module Google
3037
3117
  class RunQueryRequest
3038
3118
  include Google::Apis::Core::Hashable
3039
3119
 
3120
+ # Optional. The mode in which the query request is processed. This field is
3121
+ # optional, and when not provided, it defaults to `NORMAL` mode where no
3122
+ # additional statistics will be returned with the query results.
3123
+ # Corresponds to the JSON property `mode`
3124
+ # @return [String]
3125
+ attr_accessor :mode
3126
+
3040
3127
  # Options for creating a new transaction.
3041
3128
  # Corresponds to the JSON property `newTransaction`
3042
3129
  # @return [Google::Apis::FirestoreV1::TransactionOptions]
@@ -3049,7 +3136,8 @@ module Google
3049
3136
  # @return [String]
3050
3137
  attr_accessor :read_time
3051
3138
 
3052
- # A Firestore query.
3139
+ # A Firestore query. The query stages are executed in the following order: 1.
3140
+ # from 2. where 3. select 4. order_by + start_at + end_at 5. offset 6. limit
3053
3141
  # Corresponds to the JSON property `structuredQuery`
3054
3142
  # @return [Google::Apis::FirestoreV1::StructuredQuery]
3055
3143
  attr_accessor :structured_query
@@ -3067,6 +3155,7 @@ module Google
3067
3155
 
3068
3156
  # Update properties of this object
3069
3157
  def update!(**args)
3158
+ @mode = args[:mode] if args.key?(:mode)
3070
3159
  @new_transaction = args[:new_transaction] if args.key?(:new_transaction)
3071
3160
  @read_time = args[:read_time] if args.key?(:read_time)
3072
3161
  @structured_query = args[:structured_query] if args.key?(:structured_query)
@@ -3105,6 +3194,11 @@ module Google
3105
3194
  # @return [Fixnum]
3106
3195
  attr_accessor :skipped_results
3107
3196
 
3197
+ # Planning and execution statistics for the query.
3198
+ # Corresponds to the JSON property `stats`
3199
+ # @return [Google::Apis::FirestoreV1::ResultSetStats]
3200
+ attr_accessor :stats
3201
+
3108
3202
  # The transaction that was started as part of this request. Can only be set in
3109
3203
  # the first response, and only if RunQueryRequest.new_transaction was set in the
3110
3204
  # request. If set, no other fields will be set in this response.
@@ -3123,6 +3217,7 @@ module Google
3123
3217
  @done = args[:done] if args.key?(:done)
3124
3218
  @read_time = args[:read_time] if args.key?(:read_time)
3125
3219
  @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
3220
+ @stats = args[:stats] if args.key?(:stats)
3126
3221
  @transaction = args[:transaction] if args.key?(:transaction)
3127
3222
  end
3128
3223
  end
@@ -3177,7 +3272,8 @@ module Google
3177
3272
  # @return [Array<Google::Apis::FirestoreV1::Aggregation>]
3178
3273
  attr_accessor :aggregations
3179
3274
 
3180
- # A Firestore query.
3275
+ # A Firestore query. The query stages are executed in the following order: 1.
3276
+ # from 2. where 3. select 4. order_by + start_at + end_at 5. offset 6. limit
3181
3277
  # Corresponds to the JSON property `structuredQuery`
3182
3278
  # @return [Google::Apis::FirestoreV1::StructuredQuery]
3183
3279
  attr_accessor :structured_query
@@ -3193,7 +3289,8 @@ module Google
3193
3289
  end
3194
3290
  end
3195
3291
 
3196
- # A Firestore query.
3292
+ # A Firestore query. The query stages are executed in the following order: 1.
3293
+ # from 2. where 3. select 4. order_by + start_at + end_at 5. offset 6. limit
3197
3294
  class StructuredQuery
3198
3295
  include Google::Apis::Core::Hashable
3199
3296
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirestoreV1
18
18
  # Version of the google-apis-firestore_v1 gem
19
- GEM_VERSION = "0.56.0"
19
+ GEM_VERSION = "0.57.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 = "20231214"
25
+ REVISION = "20240117"
26
26
  end
27
27
  end
28
28
  end
@@ -520,6 +520,12 @@ module Google
520
520
  include Google::Apis::Core::JsonObjectSupport
521
521
  end
522
522
 
523
+ class QueryPlan
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
523
529
  class QueryTarget
524
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
525
531
 
@@ -538,6 +544,12 @@ module Google
538
544
  include Google::Apis::Core::JsonObjectSupport
539
545
  end
540
546
 
547
+ class ResultSetStats
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
541
553
  class RollbackRequest
542
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
543
555
 
@@ -1447,6 +1459,13 @@ module Google
1447
1459
  end
1448
1460
  end
1449
1461
 
1462
+ class QueryPlan
1463
+ # @private
1464
+ class Representation < Google::Apis::Core::JsonRepresentation
1465
+ hash :plan_info, as: 'planInfo'
1466
+ end
1467
+ end
1468
+
1450
1469
  class QueryTarget
1451
1470
  # @private
1452
1471
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1470,6 +1489,15 @@ module Google
1470
1489
  end
1471
1490
  end
1472
1491
 
1492
+ class ResultSetStats
1493
+ # @private
1494
+ class Representation < Google::Apis::Core::JsonRepresentation
1495
+ property :query_plan, as: 'queryPlan', class: Google::Apis::FirestoreV1::QueryPlan, decorator: Google::Apis::FirestoreV1::QueryPlan::Representation
1496
+
1497
+ hash :query_stats, as: 'queryStats'
1498
+ end
1499
+ end
1500
+
1473
1501
  class RollbackRequest
1474
1502
  # @private
1475
1503
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1480,6 +1508,7 @@ module Google
1480
1508
  class RunAggregationQueryRequest
1481
1509
  # @private
1482
1510
  class Representation < Google::Apis::Core::JsonRepresentation
1511
+ property :mode, as: 'mode'
1483
1512
  property :new_transaction, as: 'newTransaction', class: Google::Apis::FirestoreV1::TransactionOptions, decorator: Google::Apis::FirestoreV1::TransactionOptions::Representation
1484
1513
 
1485
1514
  property :read_time, as: 'readTime'
@@ -1495,6 +1524,8 @@ module Google
1495
1524
  property :read_time, as: 'readTime'
1496
1525
  property :result, as: 'result', class: Google::Apis::FirestoreV1::AggregationResult, decorator: Google::Apis::FirestoreV1::AggregationResult::Representation
1497
1526
 
1527
+ property :stats, as: 'stats', class: Google::Apis::FirestoreV1::ResultSetStats, decorator: Google::Apis::FirestoreV1::ResultSetStats::Representation
1528
+
1498
1529
  property :transaction, :base64 => true, as: 'transaction'
1499
1530
  end
1500
1531
  end
@@ -1502,6 +1533,7 @@ module Google
1502
1533
  class RunQueryRequest
1503
1534
  # @private
1504
1535
  class Representation < Google::Apis::Core::JsonRepresentation
1536
+ property :mode, as: 'mode'
1505
1537
  property :new_transaction, as: 'newTransaction', class: Google::Apis::FirestoreV1::TransactionOptions, decorator: Google::Apis::FirestoreV1::TransactionOptions::Representation
1506
1538
 
1507
1539
  property :read_time, as: 'readTime'
@@ -1519,6 +1551,8 @@ module Google
1519
1551
  property :done, as: 'done'
1520
1552
  property :read_time, as: 'readTime'
1521
1553
  property :skipped_results, as: 'skippedResults'
1554
+ property :stats, as: 'stats', class: Google::Apis::FirestoreV1::ResultSetStats, decorator: Google::Apis::FirestoreV1::ResultSetStats::Representation
1555
+
1522
1556
  property :transaction, :base64 => true, as: 'transaction'
1523
1557
  end
1524
1558
  end
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/firestore
35
35
  class FirestoreService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://firestore.$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://firestore.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-firestore_v1',
49
51
  client_version: Google::Apis::FirestoreV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -544,7 +546,7 @@ module Google
544
546
  # Lists the field configuration and metadata for this database. Currently,
545
547
  # FirestoreAdmin.ListFields only supports listing fields that have been
546
548
  # explicitly overridden. To issue this query, call FirestoreAdmin.ListFields
547
- # with the filter set to `indexConfig.usesAncestorConfig:false or `ttlConfig:*`.
549
+ # with the filter set to `indexConfig.usesAncestorConfig:false` or `ttlConfig:*`.
548
550
  # @param [String] parent
549
551
  # Required. A parent name of the form `projects/`project_id`/databases/`
550
552
  # database_id`/collectionGroups/`collection_id``
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firestore_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.56.0
4
+ version: 0.57.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-12-24 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-firestore_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.56.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.57.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firestore_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 Firestore API V1