@maxim_mazurok/gapi.client.firebase-v1beta1 0.0.20230901 → 0.0.20230907

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.
Files changed (3) hide show
  1. package/index.d.ts +57 -32
  2. package/package.json +1 -1
  3. package/tests.ts +4 -2
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://firebase.googleapis.com/$discovery/rest?version=v1beta1
12
- // Revision: 20230901
12
+ // Revision: 20230907
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -43,13 +43,12 @@ declare namespace gapi.client {
43
43
  string;
44
44
  }
45
45
  interface AdminSdkConfig {
46
- /** The default Firebase Realtime Database URL. */
47
46
  databaseURL?:
48
47
  string;
49
48
  /**
50
- * The ID of the Project's default GCP resource location. The location is one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations). This field
51
- * is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call
52
- * [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project.
49
+ * **DEPRECATED.** _Instead, use product-specific REST APIs to find the location of resources._ The ID of the Project's default GCP resource location. The location is one of the
50
+ * available [GCP resource locations](https://firebase.google.com/docs/projects/locations). This field is omitted if the default GCP resource location has not been finalized yet. To
51
+ * set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project.
53
52
  */
54
53
  locationId?:
55
54
  string;
@@ -59,7 +58,11 @@ declare namespace gapi.client {
59
58
  */
60
59
  projectId?:
61
60
  string;
62
- /** The default Cloud Storage for Firebase storage bucket name. */
61
+ /**
62
+ * **DEPRECATED.** _Instead, find the default Cloud Storage for Firebase bucket using the [list
63
+ * endpoint](https://firebase.google.com/docs/reference/rest/storage/rest/v1beta/projects.buckets/list) within the Cloud Storage for Firebase REST API. Note that the default bucket for
64
+ * the Project might not yet be provisioned, so the return might not contain a default bucket._ The default Cloud Storage for Firebase storage bucket name.
65
+ */
63
66
  storageBucket?:
64
67
  string;
65
68
  }
@@ -153,29 +156,38 @@ declare namespace gapi.client {
153
156
  }
154
157
  interface DefaultResources {
155
158
  /**
156
- * Output only. The default Firebase Hosting site name, in the format: PROJECT_ID Though rare, your `projectId` might already be used as the name for an existing Hosting site in
157
- * another project (learn more about creating non-default, [additional sites](https://firebase.google.com/docs/hosting/multisites)). In these cases, your `projectId` is appended with a
158
- * hyphen then five alphanumeric characters to create your default Hosting site name. For example, if your `projectId` is `myproject123`, your default Hosting site name might be:
159
- * `myproject123-a5c16`
159
+ * Output only. **DEPRECATED.** _Instead, find the default Firebase Hosting site name using the
160
+ * [ListSites](https://firebase.google.com/docs/reference/hosting/rest/v1beta1/projects.sites/list) within the Firebase Hosting REST API. Note that the default site for the Project
161
+ * might not yet be provisioned, so the return might not contain a default site._ The default Firebase Hosting site name, in the format: PROJECT_ID Though rare, your `projectId` might
162
+ * already be used as the name for an existing Hosting site in another project (learn more about creating non-default, [additional
163
+ * sites](https://firebase.google.com/docs/hosting/multisites)). In these cases, your `projectId` is appended with a hyphen then five alphanumeric characters to create your default
164
+ * Hosting site name. For example, if your `projectId` is `myproject123`, your default Hosting site name might be: `myproject123-a5c16`
160
165
  */
161
166
  hostingSite?:
162
167
  string;
163
168
  /**
164
- * Output only. The ID of the Project's default GCP resource location. The location is one of the available [GCP resource
165
- * locations](https://firebase.google.com/docs/projects/locations). This field is omitted if the default GCP resource location has not been finalized yet. To set a Project's default
166
- * GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project.
169
+ * Output only. **DEPRECATED.** _Instead, use product-specific REST APIs to find the location of resources._ The ID of the Project's default GCP resource location. The location is one
170
+ * of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations). This field is omitted if the default GCP resource location has not been finalized
171
+ * yet. To set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project.
167
172
  */
168
173
  locationId?:
169
174
  string;
170
175
  /**
171
- * Output only. The default Firebase Realtime Database instance name, in the format: PROJECT_ID Though rare, your `projectId` might already be used as the name for an existing Realtime
172
- * Database instance in another project (learn more about [database sharding](https://firebase.google.com/docs/database/usage/sharding)). In these cases, your `projectId` is appended
173
- * with a hyphen then five alphanumeric characters to create your default Realtime Database instance name. For example, if your `projectId` is `myproject123`, your default database
174
- * instance name might be: `myproject123-a5c16`
176
+ * Output only. **DEPRECATED.** _Instead, find the default Firebase Realtime Database instance name using the [list
177
+ * endpoint](https://firebase.google.com/docs/reference/rest/database/database-management/rest/v1beta/projects.locations.instances/list) within the Firebase Realtime Database REST API.
178
+ * Note that the default instance for the Project might not yet be provisioned, so the return might not contain a default instance._ The default Firebase Realtime Database instance
179
+ * name, in the format: PROJECT_ID Though rare, your `projectId` might already be used as the name for an existing Realtime Database instance in another project (learn more about
180
+ * [database sharding](https://firebase.google.com/docs/database/usage/sharding)). In these cases, your `projectId` is appended with a hyphen then five alphanumeric characters to
181
+ * create your default Realtime Database instance name. For example, if your `projectId` is `myproject123`, your default database instance name might be: `myproject123-a5c16`
175
182
  */
176
183
  realtimeDatabaseInstance?:
177
184
  string;
178
- /** Output only. The default Cloud Storage for Firebase storage bucket, in the format: PROJECT_ID.appspot.com */
185
+ /**
186
+ * Output only. **DEPRECATED.** _Instead, find the default Cloud Storage for Firebase bucket using the [list
187
+ * endpoint](https://firebase.google.com/docs/reference/rest/storage/rest/v1beta/projects.buckets/list) within the Cloud Storage for Firebase REST API. Note that the default bucket for
188
+ * the Project might not yet be provisioned, so the return might not contain a default bucket._ The default Cloud Storage for Firebase storage bucket, in the format:
189
+ * PROJECT_ID.appspot.com
190
+ */
179
191
  storageBucket?:
180
192
  string;
181
193
  }
@@ -262,7 +274,10 @@ declare namespace gapi.client {
262
274
  */
263
275
  projectNumber?:
264
276
  string;
265
- /** Output only. The default Firebase resources associated with the Project. */
277
+ /**
278
+ * Output only. **DEPRECATED.** _Auto-provisioning of these resources is changing, so this object no longer reliably provides information about the Project. Instead, retrieve
279
+ * information about each resource directly from its resource-specific API._ The default Firebase resources associated with the Project.
280
+ */
266
281
  resources?:
267
282
  DefaultResources;
268
283
  /** Output only. The lifecycle state of the Project. */
@@ -700,13 +715,17 @@ declare namespace gapi.client {
700
715
  /** The domain Firebase Auth configures for OAuth redirects, in the format: PROJECT_ID.firebaseapp.com */
701
716
  authDomain?:
702
717
  string;
703
- /** The default Firebase Realtime Database URL. */
718
+ /**
719
+ * **DEPRECATED.** _Instead, find the default Firebase Realtime Database instance name using the [list
720
+ * endpoint](https://firebase.google.com/docs/reference/rest/database/database-management/rest/v1beta/projects.locations.instances/list) within the Firebase Realtime Database REST API.
721
+ * Note that the default instance for the Project might not yet be provisioned, so the return might not contain a default instance._ The default Firebase Realtime Database URL.
722
+ */
704
723
  databaseURL?:
705
724
  string;
706
725
  /**
707
- * The ID of the Project's default GCP resource location. The location is one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations). This field
708
- * is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call
709
- * [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project.
726
+ * **DEPRECATED.** _Instead, use product-specific REST APIs to find the location of resources._ The ID of the Project's default GCP resource location. The location is one of the
727
+ * available [GCP resource locations](https://firebase.google.com/docs/projects/locations). This field is omitted if the default GCP resource location has not been finalized yet. To
728
+ * set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project.
710
729
  */
711
730
  locationId?:
712
731
  string;
@@ -725,7 +744,11 @@ declare namespace gapi.client {
725
744
  /** Immutable. A user-assigned unique identifier for the `FirebaseProject`. */
726
745
  projectId?:
727
746
  string;
728
- /** The default Cloud Storage for Firebase storage bucket name. */
747
+ /**
748
+ * **DEPRECATED.** _Instead, find the default Cloud Storage for Firebase bucket using the [list
749
+ * endpoint](https://firebase.google.com/docs/reference/rest/storage/rest/v1beta/projects.buckets/list) within the Cloud Storage for Firebase REST API. Note that the default bucket for
750
+ * the Project might not yet be provisioned, so the return might not contain a default bucket._ The default Cloud Storage for Firebase storage bucket name.
751
+ */
729
752
  storageBucket?:
730
753
  string;
731
754
  }
@@ -1519,13 +1542,14 @@ declare namespace gapi.client {
1519
1542
  }
1520
1543
  interface AvailableLocationsResource {
1521
1544
  /**
1522
- * Lists the valid Google Cloud Platform (GCP) resource locations for the specified Project (including a FirebaseProject). One of these locations can be selected as the Project's
1523
- * [_default_ GCP resource location](https://firebase.google.com/docs/projects/locations), which is the geographical location where the Project's resources, such as Cloud Firestore,
1524
- * will be provisioned by default. However, if the default GCP resource location has already been set for the Project, then this setting cannot be changed. This call checks for any
1525
- * possible [location restrictions](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations) for the specified Project and, thus, might return a subset of
1526
- * all possible GCP resource locations. To list all GCP resource locations (regardless of any restrictions), call the endpoint without specifying a unique project identifier (that is,
1527
- * `/v1beta1/{parent=projects/-}/listAvailableLocations`). To call `ListAvailableLocations` with a specified project, a member must be at minimum a Viewer of the Project. Calls without
1528
- * a specified project do not require any specific project permissions.
1545
+ * **DEPRECATED.** _Instead, use the applicable resource-specific REST API (or associated documentation, as needed) to determine valid locations for each resource used in your
1546
+ * Project._ Lists the valid Google Cloud Platform (GCP) resource locations for the specified Project (including a FirebaseProject). One of these locations can be selected as the
1547
+ * Project's [_default_ GCP resource location](https://firebase.google.com/docs/projects/locations), which is the geographical location where the Project's resources, such as Cloud
1548
+ * Firestore, will be provisioned by default. However, if the default GCP resource location has already been set for the Project, then this setting cannot be changed. This call checks
1549
+ * for any possible [location restrictions](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations) for the specified Project and, thus, might return a
1550
+ * subset of all possible GCP resource locations. To list all GCP resource locations (regardless of any restrictions), call the endpoint without specifying a unique project identifier
1551
+ * (that is, `/v1beta1/{parent=projects/-}/listAvailableLocations`). To call `ListAvailableLocations` with a specified project, a member must be at minimum a Viewer of the Project.
1552
+ * Calls without a specified project do not require any specific project permissions.
1529
1553
  */
1530
1554
  list(request?: {
1531
1555
  /** V1 error format. */
@@ -1581,7 +1605,8 @@ declare namespace gapi.client {
1581
1605
  }
1582
1606
  interface DefaultLocationResource {
1583
1607
  /**
1584
- * Sets the default Google Cloud Platform (GCP) resource location for the specified FirebaseProject. This method creates an App Engine application with a [default Cloud Storage
1608
+ * **DEPRECATED.** _Instead, use the applicable resource-specific REST API to set the location for each resource used in your Project._ Sets the default Google Cloud Platform (GCP)
1609
+ * resource location for the specified FirebaseProject. This method creates an App Engine application with a [default Cloud Storage
1585
1610
  * bucket](https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/setting-up-cloud-storage#activating_a_cloud_storage_bucket), located in the specified
1586
1611
  * [`locationId`](#body.request_body.FIELDS.location_id). This location must be one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations).
1587
1612
  * After the default GCP resource location is finalized, or if it was already set, it cannot be changed. The default GCP resource location for the specified `FirebaseProject` might
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.firebase-v1beta1",
3
- "version": "0.0.20230901",
3
+ "version": "0.0.20230907",
4
4
  "description": "TypeScript typings for Firebase Management API v1beta1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230901
6
+ // Revision: 20230907
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -252,6 +252,7 @@ gapi.load('client', async () => {
252
252
  parent: "Test string",
253
253
  });
254
254
  /**
255
+ * **DEPRECATED.** _Instead, use the applicable resource-specific REST API (or associated documentation, as needed) to determine valid locations for each resource used in your Project._
255
256
  * Lists the valid Google Cloud Platform (GCP) resource locations for the specified Project (including a FirebaseProject). One of these locations can be selected as the Project's
256
257
  * [_default_ GCP resource location](https://firebase.google.com/docs/projects/locations), which is the geographical location where the Project's resources, such as Cloud Firestore, will
257
258
  * be provisioned by default. However, if the default GCP resource location has already been set for the Project, then this setting cannot be changed. This call checks for any possible
@@ -266,7 +267,8 @@ gapi.load('client', async () => {
266
267
  parent: "Test string",
267
268
  });
268
269
  /**
269
- * Sets the default Google Cloud Platform (GCP) resource location for the specified FirebaseProject. This method creates an App Engine application with a [default Cloud Storage
270
+ * **DEPRECATED.** _Instead, use the applicable resource-specific REST API to set the location for each resource used in your Project._ Sets the default Google Cloud Platform (GCP)
271
+ * resource location for the specified FirebaseProject. This method creates an App Engine application with a [default Cloud Storage
270
272
  * bucket](https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/setting-up-cloud-storage#activating_a_cloud_storage_bucket), located in the specified
271
273
  * [`locationId`](#body.request_body.FIELDS.location_id). This location must be one of the available [GCP resource locations](https://firebase.google.com/docs/projects/locations). After
272
274
  * the default GCP resource location is finalized, or if it was already set, it cannot be changed. The default GCP resource location for the specified `FirebaseProject` might already be