google-apis-firestore_v1 0.64.0 → 0.66.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: 28a6c296849b8cb47ea74c00ea548841d79a639b0b86318252e2df480b1e7ea3
4
- data.tar.gz: 9f229c8da59eb9e1fcaff2c221019516c6d94bd8b65a76ff7a325862cd82c954
3
+ metadata.gz: aa1f7c6a3a2b2f17c46a9e589aa60c220bd138ecacceac5c4d7d33d3ea23071b
4
+ data.tar.gz: 6090d477238a30779205c4a5871ff87e59b6fdefd55857749fadab77f1b214ae
5
5
  SHA512:
6
- metadata.gz: ffaf940574d370de8039581022087fd0201416fb1ec4236f71405322a7755c87496bb9fbc0e665818edc9666e97d2e4a57842b86ef806f50201a5bea99c04b93
7
- data.tar.gz: f5e4554d41e0acfbe5ebda0305ffa9831708b2ff0d13f5b1c59caa4460684e587637438356f2e03f265d5e2254554d8a00011064da9882b1f48e65e31bf52d7d
6
+ metadata.gz: 76832f251fa85d87844b7b91c9ee743b18ed20286aa722d6cbeb70c5549e3bd77ac0cd33fd4dcd566c75c12a13710801e5ebea56adb279885c9bf97362d02ad5
7
+ data.tar.gz: f48c2a21b484290c9352458b777b42e01e99245d21bf9a6763d532e08344f49a88db00a70a62947907058463a230c471f872d1883a8cefe12435c0da7e556d22
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-firestore_v1
2
2
 
3
+ ### v0.66.0 (2024-05-26)
4
+
5
+ * Regenerated from discovery document revision 20240521
6
+ * Regenerated using generator version 0.15.0
7
+
8
+ ### v0.65.0 (2024-04-28)
9
+
10
+ * Regenerated from discovery document revision 20240420
11
+
3
12
  ### v0.64.0 (2024-03-31)
4
13
 
5
14
  * Regenerated from discovery document revision 20240324
@@ -637,7 +637,10 @@ module Google
637
637
  # A Document has changed. May be the result of multiple writes, including
638
638
  # deletes, that ultimately resulted in a new value for the Document. Multiple
639
639
  # DocumentChange messages may be returned for the same logical change, if
640
- # multiple targets are affected.
640
+ # multiple targets are affected. For PipelineQueryTargets, `document` will be in
641
+ # the new pipeline format, For a Listen stream with both QueryTargets and
642
+ # PipelineQueryTargets present, if a document matches both types of queries,
643
+ # then a separate DocumentChange messages will be sent out one for each set.
641
644
  class DocumentChange
642
645
  include Google::Apis::Core::Hashable
643
646
 
@@ -1101,7 +1104,7 @@ module Google
1101
1104
  class FindNearest
1102
1105
  include Google::Apis::Core::Hashable
1103
1106
 
1104
- # Required. The Distance Measure to use, required.
1107
+ # Required. The distance measure to use, required.
1105
1108
  # Corresponds to the JSON property `distanceMeasure`
1106
1109
  # @return [String]
1107
1110
  attr_accessor :distance_measure
@@ -1207,8 +1210,7 @@ module Google
1207
1210
  # @return [String]
1208
1211
  attr_accessor :create_time
1209
1212
 
1210
- # Represents a recurring schedule that runs at a specific time every day. The
1211
- # time zone is UTC.
1213
+ # Represents a recurring schedule that runs every day. The time zone is UTC.
1212
1214
  # Corresponds to the JSON property `dailyRecurrence`
1213
1215
  # @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1DailyRecurrence]
1214
1216
  attr_accessor :daily_recurrence
@@ -1303,17 +1305,24 @@ module Google
1303
1305
  end
1304
1306
  end
1305
1307
 
1306
- # Represents a recurring schedule that runs at a specific time every day. The
1307
- # time zone is UTC.
1308
+ # Represents a recurring schedule that runs every day. The time zone is UTC.
1308
1309
  class GoogleFirestoreAdminV1DailyRecurrence
1309
1310
  include Google::Apis::Core::Hashable
1310
1311
 
1312
+ # Represents a time of day. The date and time zone are either not significant or
1313
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
1314
+ # types are google.type.Date and `google.protobuf.Timestamp`.
1315
+ # Corresponds to the JSON property `time`
1316
+ # @return [Google::Apis::FirestoreV1::TimeOfDay]
1317
+ attr_accessor :time
1318
+
1311
1319
  def initialize(**args)
1312
1320
  update!(**args)
1313
1321
  end
1314
1322
 
1315
1323
  # Update properties of this object
1316
1324
  def update!(**args)
1325
+ @time = args[:time] if args.key?(:time)
1317
1326
  end
1318
1327
  end
1319
1328
 
@@ -1349,6 +1358,12 @@ module Google
1349
1358
  # @return [String]
1350
1359
  attr_accessor :delete_protection_state
1351
1360
 
1361
+ # Output only. The timestamp at which this database was deleted. Only set if the
1362
+ # database has been deleted.
1363
+ # Corresponds to the JSON property `deleteTime`
1364
+ # @return [String]
1365
+ attr_accessor :delete_time
1366
+
1352
1367
  # Output only. The earliest timestamp at which older versions of the data can be
1353
1368
  # read from the database. See [version_retention_period] above; this field is
1354
1369
  # populated with `now - version_retention_period`. This value is continuously
@@ -1392,6 +1407,12 @@ module Google
1392
1407
  # @return [String]
1393
1408
  attr_accessor :point_in_time_recovery_enablement
1394
1409
 
1410
+ # Output only. The database resource's prior database ID. This field is only
1411
+ # populated for deleted databases.
1412
+ # Corresponds to the JSON property `previousId`
1413
+ # @return [String]
1414
+ attr_accessor :previous_id
1415
+
1395
1416
  # The type of the database. See https://cloud.google.com/datastore/docs/
1396
1417
  # firestore-or-datastore for information about how to choose.
1397
1418
  # Corresponds to the JSON property `type`
@@ -1430,12 +1451,14 @@ module Google
1430
1451
  @concurrency_mode = args[:concurrency_mode] if args.key?(:concurrency_mode)
1431
1452
  @create_time = args[:create_time] if args.key?(:create_time)
1432
1453
  @delete_protection_state = args[:delete_protection_state] if args.key?(:delete_protection_state)
1454
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1433
1455
  @earliest_version_time = args[:earliest_version_time] if args.key?(:earliest_version_time)
1434
1456
  @etag = args[:etag] if args.key?(:etag)
1435
1457
  @key_prefix = args[:key_prefix] if args.key?(:key_prefix)
1436
1458
  @location_id = args[:location_id] if args.key?(:location_id)
1437
1459
  @name = args[:name] if args.key?(:name)
1438
1460
  @point_in_time_recovery_enablement = args[:point_in_time_recovery_enablement] if args.key?(:point_in_time_recovery_enablement)
1461
+ @previous_id = args[:previous_id] if args.key?(:previous_id)
1439
1462
  @type = args[:type] if args.key?(:type)
1440
1463
  @uid = args[:uid] if args.key?(:uid)
1441
1464
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -1559,7 +1582,8 @@ module Google
1559
1582
  class GoogleFirestoreAdminV1ExportDocumentsRequest
1560
1583
  include Google::Apis::Core::Hashable
1561
1584
 
1562
- # Which collection ids to export. Unspecified means all collections.
1585
+ # Which collection ids to export. Unspecified means all collections. Each
1586
+ # collection id in this list must be unique.
1563
1587
  # Corresponds to the JSON property `collectionIds`
1564
1588
  # @return [Array<String>]
1565
1589
  attr_accessor :collection_ids
@@ -1832,7 +1856,7 @@ module Google
1832
1856
  include Google::Apis::Core::Hashable
1833
1857
 
1834
1858
  # Which collection ids to import. Unspecified means all collections included in
1835
- # the import.
1859
+ # the import. Each collection id in this list must be unique.
1836
1860
  # Corresponds to the JSON property `collectionIds`
1837
1861
  # @return [Array<String>]
1838
1862
  attr_accessor :collection_ids
@@ -2475,6 +2499,13 @@ module Google
2475
2499
  # @return [String]
2476
2500
  attr_accessor :day
2477
2501
 
2502
+ # Represents a time of day. The date and time zone are either not significant or
2503
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
2504
+ # types are google.type.Date and `google.protobuf.Timestamp`.
2505
+ # Corresponds to the JSON property `time`
2506
+ # @return [Google::Apis::FirestoreV1::TimeOfDay]
2507
+ attr_accessor :time
2508
+
2478
2509
  def initialize(**args)
2479
2510
  update!(**args)
2480
2511
  end
@@ -2482,6 +2513,7 @@ module Google
2482
2513
  # Update properties of this object
2483
2514
  def update!(**args)
2484
2515
  @day = args[:day] if args.key?(:day)
2516
+ @time = args[:time] if args.key?(:time)
2485
2517
  end
2486
2518
  end
2487
2519
 
@@ -2760,7 +2792,10 @@ module Google
2760
2792
  # A Document has changed. May be the result of multiple writes, including
2761
2793
  # deletes, that ultimately resulted in a new value for the Document. Multiple
2762
2794
  # DocumentChange messages may be returned for the same logical change, if
2763
- # multiple targets are affected.
2795
+ # multiple targets are affected. For PipelineQueryTargets, `document` will be in
2796
+ # the new pipeline format, For a Listen stream with both QueryTargets and
2797
+ # PipelineQueryTargets present, if a document matches both types of queries,
2798
+ # then a separate DocumentChange messages will be sent out one for each set.
2764
2799
  # Corresponds to the JSON property `documentChange`
2765
2800
  # @return [Google::Apis::FirestoreV1::DocumentChange]
2766
2801
  attr_accessor :document_change
@@ -3672,6 +3707,47 @@ module Google
3672
3707
  end
3673
3708
  end
3674
3709
 
3710
+ # Represents a time of day. The date and time zone are either not significant or
3711
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
3712
+ # types are google.type.Date and `google.protobuf.Timestamp`.
3713
+ class TimeOfDay
3714
+ include Google::Apis::Core::Hashable
3715
+
3716
+ # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
3717
+ # allow the value "24:00:00" for scenarios like business closing time.
3718
+ # Corresponds to the JSON property `hours`
3719
+ # @return [Fixnum]
3720
+ attr_accessor :hours
3721
+
3722
+ # Minutes of hour of day. Must be from 0 to 59.
3723
+ # Corresponds to the JSON property `minutes`
3724
+ # @return [Fixnum]
3725
+ attr_accessor :minutes
3726
+
3727
+ # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3728
+ # Corresponds to the JSON property `nanos`
3729
+ # @return [Fixnum]
3730
+ attr_accessor :nanos
3731
+
3732
+ # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
3733
+ # allow the value 60 if it allows leap-seconds.
3734
+ # Corresponds to the JSON property `seconds`
3735
+ # @return [Fixnum]
3736
+ attr_accessor :seconds
3737
+
3738
+ def initialize(**args)
3739
+ update!(**args)
3740
+ end
3741
+
3742
+ # Update properties of this object
3743
+ def update!(**args)
3744
+ @hours = args[:hours] if args.key?(:hours)
3745
+ @minutes = args[:minutes] if args.key?(:minutes)
3746
+ @nanos = args[:nanos] if args.key?(:nanos)
3747
+ @seconds = args[:seconds] if args.key?(:seconds)
3748
+ end
3749
+ end
3750
+
3675
3751
  # Options for creating a new transaction.
3676
3752
  class TransactionOptions
3677
3753
  include Google::Apis::Core::Hashable
@@ -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.64.0"
19
+ GEM_VERSION = "0.66.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240324"
25
+ REVISION = "20240521"
26
26
  end
27
27
  end
28
28
  end
@@ -640,6 +640,12 @@ module Google
640
640
  include Google::Apis::Core::JsonObjectSupport
641
641
  end
642
642
 
643
+ class TimeOfDay
644
+ class Representation < Google::Apis::Core::JsonRepresentation; end
645
+
646
+ include Google::Apis::Core::JsonObjectSupport
647
+ end
648
+
643
649
  class TransactionOptions
644
650
  class Representation < Google::Apis::Core::JsonRepresentation; end
645
651
 
@@ -1055,6 +1061,8 @@ module Google
1055
1061
  class GoogleFirestoreAdminV1DailyRecurrence
1056
1062
  # @private
1057
1063
  class Representation < Google::Apis::Core::JsonRepresentation
1064
+ property :time, as: 'time', class: Google::Apis::FirestoreV1::TimeOfDay, decorator: Google::Apis::FirestoreV1::TimeOfDay::Representation
1065
+
1058
1066
  end
1059
1067
  end
1060
1068
 
@@ -1067,12 +1075,14 @@ module Google
1067
1075
  property :concurrency_mode, as: 'concurrencyMode'
1068
1076
  property :create_time, as: 'createTime'
1069
1077
  property :delete_protection_state, as: 'deleteProtectionState'
1078
+ property :delete_time, as: 'deleteTime'
1070
1079
  property :earliest_version_time, as: 'earliestVersionTime'
1071
1080
  property :etag, as: 'etag'
1072
1081
  property :key_prefix, as: 'keyPrefix'
1073
1082
  property :location_id, as: 'locationId'
1074
1083
  property :name, as: 'name'
1075
1084
  property :point_in_time_recovery_enablement, as: 'pointInTimeRecoveryEnablement'
1085
+ property :previous_id, as: 'previousId'
1076
1086
  property :type, as: 'type'
1077
1087
  property :uid, as: 'uid'
1078
1088
  property :update_time, as: 'updateTime'
@@ -1368,6 +1378,8 @@ module Google
1368
1378
  # @private
1369
1379
  class Representation < Google::Apis::Core::JsonRepresentation
1370
1380
  property :day, as: 'day'
1381
+ property :time, as: 'time', class: Google::Apis::FirestoreV1::TimeOfDay, decorator: Google::Apis::FirestoreV1::TimeOfDay::Representation
1382
+
1371
1383
  end
1372
1384
  end
1373
1385
 
@@ -1699,6 +1711,16 @@ module Google
1699
1711
  end
1700
1712
  end
1701
1713
 
1714
+ class TimeOfDay
1715
+ # @private
1716
+ class Representation < Google::Apis::Core::JsonRepresentation
1717
+ property :hours, as: 'hours'
1718
+ property :minutes, as: 'minutes'
1719
+ property :nanos, as: 'nanos'
1720
+ property :seconds, as: 'seconds'
1721
+ end
1722
+ end
1723
+
1702
1724
  class TransactionOptions
1703
1725
  # @private
1704
1726
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -240,6 +240,8 @@ module Google
240
240
  # List all the databases in the project.
241
241
  # @param [String] parent
242
242
  # Required. A parent name of the form `projects/`project_id``
243
+ # @param [Boolean] show_deleted
244
+ # If true, also returns deleted resources.
243
245
  # @param [String] fields
244
246
  # Selector specifying which fields to include in a partial response.
245
247
  # @param [String] quota_user
@@ -257,11 +259,12 @@ module Google
257
259
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
258
260
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
259
261
  # @raise [Google::Apis::AuthorizationError] Authorization is required
260
- def list_project_databases(parent, fields: nil, quota_user: nil, options: nil, &block)
262
+ def list_project_databases(parent, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
261
263
  command = make_simple_command(:get, 'v1/{+parent}/databases', options)
262
264
  command.response_representation = Google::Apis::FirestoreV1::GoogleFirestoreAdminV1ListDatabasesResponse::Representation
263
265
  command.response_class = Google::Apis::FirestoreV1::GoogleFirestoreAdminV1ListDatabasesResponse
264
266
  command.params['parent'] = parent unless parent.nil?
267
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
265
268
  command.query['fields'] = fields unless fields.nil?
266
269
  command.query['quotaUser'] = quota_user unless quota_user.nil?
267
270
  execute_or_queue_command(command, &block)
@@ -347,8 +350,8 @@ module Google
347
350
  end
348
351
 
349
352
  # Creates a backup schedule on a database. At most two backup schedules can be
350
- # configured on a database, one daily backup schedule with retention up to 7
351
- # days and one weekly backup schedule with retention up to 14 weeks.
353
+ # configured on a database, one daily backup schedule and one weekly backup
354
+ # schedule.
352
355
  # @param [String] parent
353
356
  # Required. The parent database. Format `projects/`project`/databases/`database``
354
357
  # @param [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1BackupSchedule] google_firestore_admin_v1_backup_schedule_object
@@ -554,7 +557,7 @@ module Google
554
557
  # The filter to apply to list results. Currently, FirestoreAdmin.ListFields only
555
558
  # supports listing fields that have been explicitly overridden. To issue this
556
559
  # query, call FirestoreAdmin.ListFields with a filter that includes `indexConfig.
557
- # usesAncestorConfig:false` .
560
+ # usesAncestorConfig:false` or `ttlConfig:*`.
558
561
  # @param [Fixnum] page_size
559
562
  # The number of results to return.
560
563
  # @param [String] page_token
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.64.0
4
+ version: 0.66.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: 2024-03-31 00:00:00.000000000 Z
11
+ date: 2024-05-26 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.14.0
19
+ version: 0.15.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.14.0
29
+ version: 0.15.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.64.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.66.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: []