google-apis-firestore_v1 0.70.0 → 0.72.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: cd9814c9ea47ad8137d7cb51d9e958f6353147866479f43c8a39ae4303c3ceed
4
- data.tar.gz: 8fbd0f080975a9f6c9f1c521e655881de21ee98ccbe5c4e9fbc73e13a7212c34
3
+ metadata.gz: '099ab181e600f641d7a370fb79701d48c058a38d5fa73b2f90d9bd0692b8fce7'
4
+ data.tar.gz: 1710b7d9541668b11632a793744e08191a1ec16c1c6af224e8de9bf76540497b
5
5
  SHA512:
6
- metadata.gz: df4834a5c9031374ef3d6189444136d69211904d361059c0141358c96ec6d4fcaeb550642ee3c92e1118aa5c4dbabf9750a34e3d9cbac3778831fe49ed43499d
7
- data.tar.gz: 964f83ec219d45851c43a0a80ee1995784fc2727f2dc6887ee268d554af4bf0ef2caef7dc3a40636406d684cccd5e6c1a6844fd47e0c70f34cb0a8b090a26d82
6
+ metadata.gz: dcc2475bda177a7c443b6fa4648db385237a5780fa9dc0940922c12b01bd017d85829b81f5b6724bf16b2a9affa00921b23e241468f8a86dc872a1247c73dc27
7
+ data.tar.gz: 30c3be690a5703c397e972cc80f1044350db698cf7c4c7a61bd09be7fd2a67ed907eefba1776a9bac0f2c41ff562367a7ba6770d6aebb5ee4e2133b7ca05a264
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firestore_v1
2
2
 
3
+ ### v0.72.0 (2024-09-15)
4
+
5
+ * Regenerated from discovery document revision 20240904
6
+
7
+ ### v0.71.0 (2024-09-01)
8
+
9
+ * Regenerated from discovery document revision 20240822
10
+
3
11
  ### v0.70.0 (2024-08-11)
4
12
 
5
13
  * Regenerated from discovery document revision 20240804
@@ -1109,6 +1109,22 @@ module Google
1109
1109
  # @return [String]
1110
1110
  attr_accessor :distance_measure
1111
1111
 
1112
+ # Optional. Optional name of the field to output the result of the vector
1113
+ # distance calculation. Must conform to document field name limitations.
1114
+ # Corresponds to the JSON property `distanceResultField`
1115
+ # @return [String]
1116
+ attr_accessor :distance_result_field
1117
+
1118
+ # Optional. Option to specify a threshold for which no less similar documents
1119
+ # will be returned. The behavior of the specified `distance_measure` will affect
1120
+ # the meaning of the distance threshold. Since DOT_PRODUCT distances increase
1121
+ # when the vectors are more similar, the comparison is inverted. For EUCLIDEAN,
1122
+ # COSINE: WHERE distance <= distance_threshold For DOT_PRODUCT: WHERE distance >=
1123
+ # distance_threshold
1124
+ # Corresponds to the JSON property `distanceThreshold`
1125
+ # @return [Float]
1126
+ attr_accessor :distance_threshold
1127
+
1112
1128
  # Required. The number of nearest neighbors to return. Must be a positive
1113
1129
  # integer of no more than 1000.
1114
1130
  # Corresponds to the JSON property `limit`
@@ -1132,6 +1148,8 @@ module Google
1132
1148
  # Update properties of this object
1133
1149
  def update!(**args)
1134
1150
  @distance_measure = args[:distance_measure] if args.key?(:distance_measure)
1151
+ @distance_result_field = args[:distance_result_field] if args.key?(:distance_result_field)
1152
+ @distance_threshold = args[:distance_threshold] if args.key?(:distance_threshold)
1135
1153
  @limit = args[:limit] if args.key?(:limit)
1136
1154
  @query_vector = args[:query_vector] if args.key?(:query_vector)
1137
1155
  @vector_field = args[:vector_field] if args.key?(:vector_field)
@@ -1257,12 +1275,32 @@ module Google
1257
1275
  end
1258
1276
  end
1259
1277
 
1278
+ # Information about a backup that was used to restore a database.
1279
+ class GoogleFirestoreAdminV1BackupSource
1280
+ include Google::Apis::Core::Hashable
1281
+
1282
+ # The resource name of the backup that was used to restore this database. Format:
1283
+ # `projects/`project`/locations/`location`/backups/`backup``.
1284
+ # Corresponds to the JSON property `backup`
1285
+ # @return [String]
1286
+ attr_accessor :backup
1287
+
1288
+ def initialize(**args)
1289
+ update!(**args)
1290
+ end
1291
+
1292
+ # Update properties of this object
1293
+ def update!(**args)
1294
+ @backup = args[:backup] if args.key?(:backup)
1295
+ end
1296
+ end
1297
+
1260
1298
  # Metadata for google.longrunning.Operation results from FirestoreAdmin.
1261
1299
  # BulkDeleteDocuments.
1262
1300
  class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata
1263
1301
  include Google::Apis::Core::Hashable
1264
1302
 
1265
- # The ids of the collection groups that are being deleted.
1303
+ # The IDs of the collection groups that are being deleted.
1266
1304
  # Corresponds to the JSON property `collectionIds`
1267
1305
  # @return [Array<String>]
1268
1306
  attr_accessor :collection_ids
@@ -1273,7 +1311,7 @@ module Google
1273
1311
  # @return [String]
1274
1312
  attr_accessor :end_time
1275
1313
 
1276
- # Which namespace ids are being deleted.
1314
+ # Which namespace IDs are being deleted.
1277
1315
  # Corresponds to the JSON property `namespaceIds`
1278
1316
  # @return [Array<String>]
1279
1317
  attr_accessor :namespace_ids
@@ -1500,7 +1538,7 @@ module Google
1500
1538
  attr_accessor :etag
1501
1539
 
1502
1540
  # Output only. The key_prefix for this database. This key_prefix is used, in
1503
- # combination with the project id ("~") to construct the application id that is
1541
+ # combination with the project ID ("~") to construct the application ID that is
1504
1542
  # returned from the Cloud Datastore APIs in Google App Engine first generation
1505
1543
  # runtimes. This value may be empty in which case the appid to use for URL-
1506
1544
  # encoded keys is the project_id (eg: foo instead of v~foo).
@@ -1531,6 +1569,11 @@ module Google
1531
1569
  # @return [String]
1532
1570
  attr_accessor :previous_id
1533
1571
 
1572
+ # Information about the provenance of this database.
1573
+ # Corresponds to the JSON property `sourceInfo`
1574
+ # @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1SourceInfo]
1575
+ attr_accessor :source_info
1576
+
1534
1577
  # The type of the database. See https://cloud.google.com/datastore/docs/
1535
1578
  # firestore-or-datastore for information about how to choose.
1536
1579
  # Corresponds to the JSON property `type`
@@ -1577,6 +1620,7 @@ module Google
1577
1620
  @name = args[:name] if args.key?(:name)
1578
1621
  @point_in_time_recovery_enablement = args[:point_in_time_recovery_enablement] if args.key?(:point_in_time_recovery_enablement)
1579
1622
  @previous_id = args[:previous_id] if args.key?(:previous_id)
1623
+ @source_info = args[:source_info] if args.key?(:source_info)
1580
1624
  @type = args[:type] if args.key?(:type)
1581
1625
  @uid = args[:uid] if args.key?(:uid)
1582
1626
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -1598,7 +1642,7 @@ module Google
1598
1642
  end
1599
1643
 
1600
1644
  # Encryption configuration for a new database being created from another source.
1601
- # The source could be a Backup or a DatabaseSnapshot.
1645
+ # The source could be a Backup .
1602
1646
  class GoogleFirestoreAdminV1EncryptionConfig
1603
1647
  include Google::Apis::Core::Hashable
1604
1648
 
@@ -1635,7 +1679,7 @@ module Google
1635
1679
  class GoogleFirestoreAdminV1ExportDocumentsMetadata
1636
1680
  include Google::Apis::Core::Hashable
1637
1681
 
1638
- # Which collection ids are being exported.
1682
+ # Which collection IDs are being exported.
1639
1683
  # Corresponds to the JSON property `collectionIds`
1640
1684
  # @return [Array<String>]
1641
1685
  attr_accessor :collection_ids
@@ -1646,7 +1690,7 @@ module Google
1646
1690
  # @return [String]
1647
1691
  attr_accessor :end_time
1648
1692
 
1649
- # Which namespace ids are being exported.
1693
+ # Which namespace IDs are being exported.
1650
1694
  # Corresponds to the JSON property `namespaceIds`
1651
1695
  # @return [Array<String>]
1652
1696
  attr_accessor :namespace_ids
@@ -1707,8 +1751,8 @@ module Google
1707
1751
  class GoogleFirestoreAdminV1ExportDocumentsRequest
1708
1752
  include Google::Apis::Core::Hashable
1709
1753
 
1710
- # Which collection ids to export. Unspecified means all collections. Each
1711
- # collection id in this list must be unique.
1754
+ # Which collection IDs to export. Unspecified means all collections. Each
1755
+ # collection ID in this list must be unique.
1712
1756
  # Corresponds to the JSON property `collectionIds`
1713
1757
  # @return [Array<String>]
1714
1758
  attr_accessor :collection_ids
@@ -1778,7 +1822,7 @@ module Google
1778
1822
 
1779
1823
  # Represents a single field in the database. Fields are grouped by their "
1780
1824
  # Collection Group", which represent all collections in the database with the
1781
- # same id.
1825
+ # same ID.
1782
1826
  class GoogleFirestoreAdminV1Field
1783
1827
  include Google::Apis::Core::Hashable
1784
1828
 
@@ -1927,7 +1971,7 @@ module Google
1927
1971
  class GoogleFirestoreAdminV1ImportDocumentsMetadata
1928
1972
  include Google::Apis::Core::Hashable
1929
1973
 
1930
- # Which collection ids are being imported.
1974
+ # Which collection IDs are being imported.
1931
1975
  # Corresponds to the JSON property `collectionIds`
1932
1976
  # @return [Array<String>]
1933
1977
  attr_accessor :collection_ids
@@ -1943,7 +1987,7 @@ module Google
1943
1987
  # @return [String]
1944
1988
  attr_accessor :input_uri_prefix
1945
1989
 
1946
- # Which namespace ids are being imported.
1990
+ # Which namespace IDs are being imported.
1947
1991
  # Corresponds to the JSON property `namespaceIds`
1948
1992
  # @return [Array<String>]
1949
1993
  attr_accessor :namespace_ids
@@ -1991,8 +2035,8 @@ module Google
1991
2035
  class GoogleFirestoreAdminV1ImportDocumentsRequest
1992
2036
  include Google::Apis::Core::Hashable
1993
2037
 
1994
- # Which collection ids to import. Unspecified means all collections included in
1995
- # the import. Each collection id in this list must be unique.
2038
+ # Which collection IDs to import. Unspecified means all collections included in
2039
+ # the import. Each collection ID in this list must be unique.
1996
2040
  # Corresponds to the JSON property `collectionIds`
1997
2041
  # @return [Array<String>]
1998
2042
  attr_accessor :collection_ids
@@ -2057,10 +2101,10 @@ module Google
2057
2101
 
2058
2102
  # Indexes with a collection query scope specified allow queries against a
2059
2103
  # collection that is the child of a specific document, specified at query time,
2060
- # and that has the same collection id. Indexes with a collection group query
2104
+ # and that has the same collection ID. Indexes with a collection group query
2061
2105
  # scope specified allow queries against all collections descended from a
2062
2106
  # specific document, specified at query time, and that have the same collection
2063
- # id as this index.
2107
+ # ID as this index.
2064
2108
  # Corresponds to the JSON property `queryScope`
2065
2109
  # @return [String]
2066
2110
  attr_accessor :query_scope
@@ -2476,25 +2520,26 @@ module Google
2476
2520
  class GoogleFirestoreAdminV1RestoreDatabaseRequest
2477
2521
  include Google::Apis::Core::Hashable
2478
2522
 
2479
- # Backup to restore from. Must be from the same project as the parent. The
2480
- # restored database will be created in the same location as the source backup.
2481
- # Format is: `projects/`project_id`/locations/`location`/backups/`backup``
2523
+ # Required. Backup to restore from. Must be from the same project as the parent.
2524
+ # The restored database will be created in the same location as the source
2525
+ # backup. Format is: `projects/`project_id`/locations/`location`/backups/`backup`
2526
+ # `
2482
2527
  # Corresponds to the JSON property `backup`
2483
2528
  # @return [String]
2484
2529
  attr_accessor :backup
2485
2530
 
2486
2531
  # Required. The ID to use for the database, which will become the final
2487
- # component of the database's resource name. This database id must not be
2532
+ # component of the database's resource name. This database ID must not be
2488
2533
  # associated with an existing database. This value should be 4-63 characters.
2489
2534
  # Valid characters are /a-z-/ with first character a letter and the last a
2490
2535
  # letter or a number. Must not be UUID-like /[0-9a-f]`8`(-[0-9a-f]`4`)`3`-[0-9a-
2491
- # f]`12`/. "(default)" database id is also valid.
2536
+ # f]`12`/. "(default)" database ID is also valid.
2492
2537
  # Corresponds to the JSON property `databaseId`
2493
2538
  # @return [String]
2494
2539
  attr_accessor :database_id
2495
2540
 
2496
2541
  # Encryption configuration for a new database being created from another source.
2497
- # The source could be a Backup or a DatabaseSnapshot.
2542
+ # The source could be a Backup .
2498
2543
  # Corresponds to the JSON property `encryptionConfig`
2499
2544
  # @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1EncryptionConfig]
2500
2545
  attr_accessor :encryption_config
@@ -2524,6 +2569,33 @@ module Google
2524
2569
  end
2525
2570
  end
2526
2571
 
2572
+ # Information about the provenance of this database.
2573
+ class GoogleFirestoreAdminV1SourceInfo
2574
+ include Google::Apis::Core::Hashable
2575
+
2576
+ # Information about a backup that was used to restore a database.
2577
+ # Corresponds to the JSON property `backup`
2578
+ # @return [Google::Apis::FirestoreV1::GoogleFirestoreAdminV1BackupSource]
2579
+ attr_accessor :backup
2580
+
2581
+ # The associated long-running operation. This field may not be set after the
2582
+ # operation has completed. Format: `projects/`project`/databases/`database`/
2583
+ # operations/`operation``.
2584
+ # Corresponds to the JSON property `operation`
2585
+ # @return [String]
2586
+ attr_accessor :operation
2587
+
2588
+ def initialize(**args)
2589
+ update!(**args)
2590
+ end
2591
+
2592
+ # Update properties of this object
2593
+ def update!(**args)
2594
+ @backup = args[:backup] if args.key?(:backup)
2595
+ @operation = args[:operation] if args.key?(:operation)
2596
+ end
2597
+ end
2598
+
2527
2599
  # Backup specific statistics.
2528
2600
  class GoogleFirestoreAdminV1Stats
2529
2601
  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.70.0"
19
+ GEM_VERSION = "0.72.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240804"
25
+ REVISION = "20240904"
26
26
  end
27
27
  end
28
28
  end
@@ -244,6 +244,12 @@ module Google
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
+ class GoogleFirestoreAdminV1BackupSource
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
247
253
  class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata
248
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
255
 
@@ -442,6 +448,12 @@ module Google
442
448
  include Google::Apis::Core::JsonObjectSupport
443
449
  end
444
450
 
451
+ class GoogleFirestoreAdminV1SourceInfo
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
445
457
  class GoogleFirestoreAdminV1Stats
446
458
  class Representation < Google::Apis::Core::JsonRepresentation; end
447
459
 
@@ -1032,6 +1044,8 @@ module Google
1032
1044
  # @private
1033
1045
  class Representation < Google::Apis::Core::JsonRepresentation
1034
1046
  property :distance_measure, as: 'distanceMeasure'
1047
+ property :distance_result_field, as: 'distanceResultField'
1048
+ property :distance_threshold, as: 'distanceThreshold'
1035
1049
  property :limit, as: 'limit'
1036
1050
  property :query_vector, as: 'queryVector', class: Google::Apis::FirestoreV1::Value, decorator: Google::Apis::FirestoreV1::Value::Representation
1037
1051
 
@@ -1068,6 +1082,13 @@ module Google
1068
1082
  end
1069
1083
  end
1070
1084
 
1085
+ class GoogleFirestoreAdminV1BackupSource
1086
+ # @private
1087
+ class Representation < Google::Apis::Core::JsonRepresentation
1088
+ property :backup, as: 'backup'
1089
+ end
1090
+ end
1091
+
1071
1092
  class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata
1072
1093
  # @private
1073
1094
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1136,6 +1157,8 @@ module Google
1136
1157
  property :name, as: 'name'
1137
1158
  property :point_in_time_recovery_enablement, as: 'pointInTimeRecoveryEnablement'
1138
1159
  property :previous_id, as: 'previousId'
1160
+ property :source_info, as: 'sourceInfo', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1SourceInfo, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1SourceInfo::Representation
1161
+
1139
1162
  property :type, as: 'type'
1140
1163
  property :uid, as: 'uid'
1141
1164
  property :update_time, as: 'updateTime'
@@ -1405,6 +1428,15 @@ module Google
1405
1428
  end
1406
1429
  end
1407
1430
 
1431
+ class GoogleFirestoreAdminV1SourceInfo
1432
+ # @private
1433
+ class Representation < Google::Apis::Core::JsonRepresentation
1434
+ property :backup, as: 'backup', class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1BackupSource, decorator: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1BackupSource::Representation
1435
+
1436
+ property :operation, as: 'operation'
1437
+ end
1438
+ end
1439
+
1408
1440
  class GoogleFirestoreAdminV1Stats
1409
1441
  # @private
1410
1442
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -100,7 +100,7 @@ module Google
100
100
  # component of the database's resource name. This value should be 4-63
101
101
  # characters. Valid characters are /a-z-/ with first character a letter and the
102
102
  # last a letter or a number. Must not be UUID-like /[0-9a-f]`8`(-[0-9a-f]`4`)`3`-
103
- # [0-9a-f]`12`/. "(default)" database id is also valid.
103
+ # [0-9a-f]`12`/. "(default)" database ID is also valid.
104
104
  # @param [String] fields
105
105
  # Selector specifying which fields to include in a partial response.
106
106
  # @param [String] quota_user
@@ -1838,6 +1838,13 @@ module Google
1838
1838
  # locations/`location``. Use ``location` = '-'` to list backups from all
1839
1839
  # locations for the given project. This allows listing backups from a single
1840
1840
  # location or from all locations.
1841
+ # @param [String] filter
1842
+ # An expression that filters the list of returned backups. A filter expression
1843
+ # consists of a field name, a comparison operator, and a value for filtering.
1844
+ # The value must be a string, a number, or a boolean. The comparison operator
1845
+ # must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. Colon `:` is the
1846
+ # contains operator. Filter rules are not case sensitive. The following fields
1847
+ # in the Backup are eligible for filtering: * `database_uid` (supports `=` only)
1841
1848
  # @param [String] fields
1842
1849
  # Selector specifying which fields to include in a partial response.
1843
1850
  # @param [String] quota_user
@@ -1855,11 +1862,12 @@ module Google
1855
1862
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1856
1863
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1857
1864
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1858
- def list_project_location_backups(parent, fields: nil, quota_user: nil, options: nil, &block)
1865
+ def list_project_location_backups(parent, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
1859
1866
  command = make_simple_command(:get, 'v1/{+parent}/backups', options)
1860
1867
  command.response_representation = Google::Apis::FirestoreV1::GoogleFirestoreAdminV1ListBackupsResponse::Representation
1861
1868
  command.response_class = Google::Apis::FirestoreV1::GoogleFirestoreAdminV1ListBackupsResponse
1862
1869
  command.params['parent'] = parent unless parent.nil?
1870
+ command.query['filter'] = filter unless filter.nil?
1863
1871
  command.query['fields'] = fields unless fields.nil?
1864
1872
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1865
1873
  execute_or_queue_command(command, &block)
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.70.0
4
+ version: 0.72.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-08-11 00:00:00.000000000 Z
11
+ date: 2024-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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.70.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1/v0.72.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: []