@maxim_mazurok/gapi.client.firestore-v1 0.0.20240521 → 0.0.20240617
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.
- package/index.d.ts +92 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://firestore.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240617
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -287,6 +287,30 @@ declare namespace gapi.client {
|
|
|
287
287
|
/** For a schedule that runs weekly on a specific day. */
|
|
288
288
|
weeklyRecurrence?: GoogleFirestoreAdminV1WeeklyRecurrence;
|
|
289
289
|
}
|
|
290
|
+
interface GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata {
|
|
291
|
+
/** The ids of the collection groups that are being deleted. */
|
|
292
|
+
collectionIds?: string[];
|
|
293
|
+
/** The time this operation completed. Will be unset if operation still in progress. */
|
|
294
|
+
endTime?: string;
|
|
295
|
+
/** Which namespace ids are being deleted. */
|
|
296
|
+
namespaceIds?: string[];
|
|
297
|
+
/** The state of the operation. */
|
|
298
|
+
operationState?: string;
|
|
299
|
+
/** The progress, in bytes, of this operation. */
|
|
300
|
+
progressBytes?: GoogleFirestoreAdminV1Progress;
|
|
301
|
+
/** The progress, in documents, of this operation. */
|
|
302
|
+
progressDocuments?: GoogleFirestoreAdminV1Progress;
|
|
303
|
+
/** The timestamp that corresponds to the version of the database that is being read to get the list of documents to delete. This time can also be used as the timestamp of PITR in case of disaster recovery (subject to PITR window limit). */
|
|
304
|
+
snapshotTime?: string;
|
|
305
|
+
/** The time this operation started. */
|
|
306
|
+
startTime?: string;
|
|
307
|
+
}
|
|
308
|
+
interface GoogleFirestoreAdminV1BulkDeleteDocumentsRequest {
|
|
309
|
+
/** Optional. IDs of the collection groups to delete. Unspecified means all collection groups. Each collection group in this list must be unique. */
|
|
310
|
+
collectionIds?: string[];
|
|
311
|
+
/** Optional. Namespaces to delete. An empty list means all namespaces. This is the recommended usage for databases that don't use namespaces. An empty string element represents the default namespace. This should be used if the database has data in non-default namespaces, but doesn't want to delete from them. Each namespace in this list must be unique. */
|
|
312
|
+
namespaceIds?: string[];
|
|
313
|
+
}
|
|
290
314
|
interface GoogleFirestoreAdminV1CmekConfig {
|
|
291
315
|
/** Output only. Currently in-use [KMS key versions](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions). During [key rotation](https://cloud.google.com/kms/docs/key-rotation), there can be multiple in-use key versions. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}`. */
|
|
292
316
|
activeKeyVersion?: string[];
|
|
@@ -334,12 +358,6 @@ declare namespace gapi.client {
|
|
|
334
358
|
/** Output only. The period during which past versions of data are retained in the database. Any read or query can specify a `read_time` within this window, and will read the state of the database at that time. If the PITR feature is enabled, the retention period is 7 days. Otherwise, the retention period is 1 hour. */
|
|
335
359
|
versionRetentionPeriod?: string;
|
|
336
360
|
}
|
|
337
|
-
interface GoogleFirestoreAdminV1DatabaseSnapshot {
|
|
338
|
-
/** Required. A name of the form `projects/{project_id}/databases/{database_id}` */
|
|
339
|
-
database?: string;
|
|
340
|
-
/** Required. The timestamp at which the database snapshot is taken. The requested timestamp must be a whole minute within the PITR window. */
|
|
341
|
-
snapshotTime?: string;
|
|
342
|
-
}
|
|
343
361
|
interface GoogleFirestoreAdminV1DeleteDatabaseMetadata {}
|
|
344
362
|
interface GoogleFirestoreAdminV1ExportDocumentsMetadata {
|
|
345
363
|
/** Which collection ids are being exported. */
|
|
@@ -378,7 +396,7 @@ declare namespace gapi.client {
|
|
|
378
396
|
interface GoogleFirestoreAdminV1Field {
|
|
379
397
|
/** The index configuration for this field. If unset, field indexing will revert to the configuration defined by the `ancestor_field`. To explicitly remove all indexes for this field, specify an index config with an empty list of indexes. */
|
|
380
398
|
indexConfig?: GoogleFirestoreAdminV1IndexConfig;
|
|
381
|
-
/** Required. A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path
|
|
399
|
+
/** Required. A field name of the form: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path can be a simple field name, e.g. `address` or a path to fields within `map_value` , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths can be quoted using `` ` `` (backtick). The only character that must be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: `*`, `.`, `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: `` `address.city` `` represents a field named `address.city`, not the map key `city` in the field `address`. `` `*` `` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` Indexes defined on this `Field` will be applied to all fields which do not have their own `Field` index configuration. */
|
|
382
400
|
name?: string;
|
|
383
401
|
/** The TTL configuration for this `Field`. Setting or unsetting this will enable or disable the TTL for documents that have this `Field`. */
|
|
384
402
|
ttlConfig?: GoogleFirestoreAdminV1TtlConfig;
|
|
@@ -534,8 +552,12 @@ declare namespace gapi.client {
|
|
|
534
552
|
backup?: string;
|
|
535
553
|
/** Required. The ID to use for the database, which will become the final component of the database's resource name. This database id must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. "(default)" database id is also valid. */
|
|
536
554
|
databaseId?: string;
|
|
537
|
-
/**
|
|
538
|
-
|
|
555
|
+
/** Use Customer Managed Encryption Keys (CMEK) for encryption. Only keys in the same location as this database are allowed to be used for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. */
|
|
556
|
+
kmsKeyName?: string;
|
|
557
|
+
/** The restored database will use the same encryption configuration as the backup. This is the default option when no `encryption_config` is specified. */
|
|
558
|
+
useBackupEncryption?: any;
|
|
559
|
+
/** Use Google default encryption. */
|
|
560
|
+
useGoogleDefaultEncryption?: any;
|
|
539
561
|
}
|
|
540
562
|
interface GoogleFirestoreAdminV1Stats {
|
|
541
563
|
/** Output only. The total number of documents contained in the backup. */
|
|
@@ -1187,7 +1209,7 @@ declare namespace gapi.client {
|
|
|
1187
1209
|
fields?: string;
|
|
1188
1210
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1189
1211
|
key?: string;
|
|
1190
|
-
/** Required. A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path
|
|
1212
|
+
/** Required. A field name of the form: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path can be a simple field name, e.g. `address` or a path to fields within `map_value` , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths can be quoted using `` ` `` (backtick). The only character that must be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: `*`, `.`, `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: `` `address.city` `` represents a field named `address.city`, not the map key `city` in the field `address`. `` `*` `` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` Indexes defined on this `Field` will be applied to all fields which do not have their own `Field` index configuration. */
|
|
1191
1213
|
name: string;
|
|
1192
1214
|
/** OAuth 2.0 token for the current user. */
|
|
1193
1215
|
oauth_token?: string;
|
|
@@ -1218,7 +1240,7 @@ declare namespace gapi.client {
|
|
|
1218
1240
|
fields?: string;
|
|
1219
1241
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1220
1242
|
key?: string;
|
|
1221
|
-
/** Required. A field name of the form `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path
|
|
1243
|
+
/** Required. A field name of the form: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}` A field path can be a simple field name, e.g. `address` or a path to fields within `map_value` , e.g. `address.city`, or a special field path. The only valid special field is `*`, which represents any field. Field paths can be quoted using `` ` `` (backtick). The only character that must be escaped within a quoted field path is the backtick character itself, escaped using a backslash. Special characters in field paths that must be quoted include: `*`, `.`, `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters. Examples: `` `address.city` `` represents a field named `address.city`, not the map key `city` in the field `address`. `` `*` `` represents a field named `*`, not any field. A special `Field` contains the default indexing settings for all fields. This field's resource name is: `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*` Indexes defined on this `Field` will be applied to all fields which do not have their own `Field` index configuration. */
|
|
1222
1244
|
name: string;
|
|
1223
1245
|
/** OAuth 2.0 token for the current user. */
|
|
1224
1246
|
oauth_token?: string;
|
|
@@ -2469,6 +2491,64 @@ declare namespace gapi.client {
|
|
|
2469
2491
|
}): Request<GoogleLongrunningListOperationsResponse>;
|
|
2470
2492
|
}
|
|
2471
2493
|
interface DatabasesResource {
|
|
2494
|
+
/** Bulk deletes a subset of documents from Google Cloud Firestore. Documents created or updated after the underlying system starts to process the request will not be deleted. The bulk delete occurs in the background and its progress can be monitored and managed via the Operation resource that is created. For more details on bulk delete behavior, refer to: https://cloud.google.com/firestore/docs/manage-data/bulk-delete */
|
|
2495
|
+
bulkDeleteDocuments(request: {
|
|
2496
|
+
/** V1 error format. */
|
|
2497
|
+
'$.xgafv'?: string;
|
|
2498
|
+
/** OAuth access token. */
|
|
2499
|
+
access_token?: string;
|
|
2500
|
+
/** Data format for response. */
|
|
2501
|
+
alt?: string;
|
|
2502
|
+
/** JSONP */
|
|
2503
|
+
callback?: string;
|
|
2504
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2505
|
+
fields?: string;
|
|
2506
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2507
|
+
key?: string;
|
|
2508
|
+
/** Required. Database to operate. Should be of the form: `projects/{project_id}/databases/{database_id}`. */
|
|
2509
|
+
name: string;
|
|
2510
|
+
/** OAuth 2.0 token for the current user. */
|
|
2511
|
+
oauth_token?: string;
|
|
2512
|
+
/** Returns response with indentations and line breaks. */
|
|
2513
|
+
prettyPrint?: boolean;
|
|
2514
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2515
|
+
quotaUser?: string;
|
|
2516
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2517
|
+
upload_protocol?: string;
|
|
2518
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2519
|
+
uploadType?: string;
|
|
2520
|
+
/** Request body */
|
|
2521
|
+
resource: GoogleFirestoreAdminV1BulkDeleteDocumentsRequest;
|
|
2522
|
+
}): Request<GoogleLongrunningOperation>;
|
|
2523
|
+
bulkDeleteDocuments(
|
|
2524
|
+
request: {
|
|
2525
|
+
/** V1 error format. */
|
|
2526
|
+
'$.xgafv'?: string;
|
|
2527
|
+
/** OAuth access token. */
|
|
2528
|
+
access_token?: string;
|
|
2529
|
+
/** Data format for response. */
|
|
2530
|
+
alt?: string;
|
|
2531
|
+
/** JSONP */
|
|
2532
|
+
callback?: string;
|
|
2533
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2534
|
+
fields?: string;
|
|
2535
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2536
|
+
key?: string;
|
|
2537
|
+
/** Required. Database to operate. Should be of the form: `projects/{project_id}/databases/{database_id}`. */
|
|
2538
|
+
name: string;
|
|
2539
|
+
/** OAuth 2.0 token for the current user. */
|
|
2540
|
+
oauth_token?: string;
|
|
2541
|
+
/** Returns response with indentations and line breaks. */
|
|
2542
|
+
prettyPrint?: boolean;
|
|
2543
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2544
|
+
quotaUser?: string;
|
|
2545
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2546
|
+
upload_protocol?: string;
|
|
2547
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2548
|
+
uploadType?: string;
|
|
2549
|
+
},
|
|
2550
|
+
body: GoogleFirestoreAdminV1BulkDeleteDocumentsRequest
|
|
2551
|
+
): Request<GoogleLongrunningOperation>;
|
|
2472
2552
|
/** Create a database. */
|
|
2473
2553
|
create(request: {
|
|
2474
2554
|
/** V1 error format. */
|