From cf30efd7faa29fc09fc05f7c64d90ac47d53b168 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 11 Mar 2024 18:52:27 -0700 Subject: [PATCH] feat: Automated regeneration of Firebase client (#10893) Auto-created at 2024-03-12 01:34:09 +0000 using the toys pull request generator. --- .../firebase/v1beta1/api/projects.ex | 6 +-- .../google_api/firebase/v1beta1/metadata.ex | 2 +- .../v1beta1/model/admin_sdk_config.ex | 6 +-- .../firebase/v1beta1/model/android_app.ex | 6 +++ .../v1beta1/model/default_resources.ex | 10 ++-- .../v1beta1/model/firebase_app_info.ex | 3 ++ .../v1beta1/model/firebase_project.ex | 6 +-- .../firebase/v1beta1/model/ios_app.ex | 6 +++ .../firebase/v1beta1/model/location.ex | 2 +- .../firebase/v1beta1/model/operation.ex | 2 +- .../v1beta1/model/operation_metadata.ex | 41 +++++++++++++++++ .../v1beta1/model/product_metadata.ex | 46 +++++++++++++++++++ .../model/remove_android_app_request.ex | 4 +- .../v1beta1/model/remove_ios_app_request.ex | 4 +- .../v1beta1/model/remove_web_app_request.ex | 4 +- .../firebase/v1beta1/model/status_proto.ex | 2 +- .../model/undelete_android_app_request.ex | 2 +- .../v1beta1/model/undelete_ios_app_request.ex | 2 +- .../v1beta1/model/undelete_web_app_request.ex | 2 +- .../firebase/v1beta1/model/web_app.ex | 6 +++ .../firebase/v1beta1/model/web_app_config.ex | 6 +-- 21 files changed, 138 insertions(+), 30 deletions(-) create mode 100644 clients/firebase/lib/google_api/firebase/v1beta1/model/operation_metadata.ex create mode 100644 clients/firebase/lib/google_api/firebase/v1beta1/model/product_metadata.ex diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/api/projects.ex b/clients/firebase/lib/google_api/firebase/v1beta1/api/projects.ex index 4605bcc571..a35edab92b 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/api/projects.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/api/projects.ex @@ -559,7 +559,7 @@ defmodule GoogleApi.Firebase.V1beta1.Api.Projects do * `:quotaUser` (*type:* `String.t`) - 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. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:filter` (*type:* `String.t`) - A query string compatible with Google's [AIP-160](https://google.aip.dev/160) standard. Use any of the following fields in a query: * [`app_id`](../projects.apps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects.apps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects.apps#FirebaseAppInfo.FIELDS.platform) We also support the following "virtual" fields (fields which are not actually part of the returned resource object, but can be queried as if they are pre-populated with specific values): * `sha1_hash` or `sha1_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `sha256_hash` or `sha256_hashes`: This field is considered to be a repeated `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the app. This list is empty if the app is not an Android app. * `app_store_id`: This field is considered to be a singular `string` field, populated with the Apple App Store ID registered with the app. This field is empty if the app is not an iOS app. * `team_id`: This field is considered to be a singular `string` field, populated with the Apple team ID registered with the app. This field is empty if the app is not an iOS app. + * `:filter` (*type:* `String.t`) - A query string compatible with Google's [AIP-160 standard](https://google.aip.dev/160). Use any of the following fields in a query: * [`app_id`](../projects/searchApps#FirebaseAppInfo.FIELDS.app_id) * [`namespace`](../projects/searchApps#FirebaseAppInfo.FIELDS.namespace) * [`platform`](../projects/searchApps#FirebaseAppInfo.FIELDS.platform) This query also supports the following "virtual" fields. These are fields which are not actually part of the returned resource object, but they can be queried as if they are pre-populated with specific values. * `sha1_hash` or `sha1_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-1 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `sha256_hash` or `sha256_hashes`: This field is considered to be a _repeated_ `string` field, populated with the list of all SHA-256 certificate fingerprints registered with the AndroidApp. This list is empty if the App is not an `AndroidApp`. * `app_store_id`: This field is considered to be a _singular_ `string` field, populated with the Apple App Store ID registered with the IosApp. This field is empty if the App is not an `IosApp`. * `team_id`: This field is considered to be a _singular_ `string` field, populated with the Apple team ID registered with the IosApp. This field is empty if the App is not an `IosApp`. * `:pageSize` (*type:* `integer()`) - The maximum number of Apps to return in the response. The server may return fewer than this value at its discretion. If no value is specified (or too large a value is specified), then the server will impose its own limit. This value cannot be negative. * `:pageToken` (*type:* `String.t`) - Token returned from a previous call to `SearchFirebaseApps` indicating where in the set of Apps to resume listing. * `:showDeleted` (*type:* `boolean()`) - Controls whether Apps in the DELETED state should be returned. If not specified, only `ACTIVE` Apps will be returned. @@ -1288,7 +1288,7 @@ defmodule GoogleApi.Firebase.V1beta1.Api.Projects do end @doc """ - 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 [_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 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 [location restrictions](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations) for the specified Project and, thus, might return a 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 (that is, `/v1beta1/{parent=projects/-}/listAvailableLocations`). To call `ListAvailableLocations` with a specified project, a member must be at minimum a Viewer of the Project. Calls without a specified project do not require any specific project permissions. + **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._ 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 [_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 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 [location restrictions](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations) for the specified Project and, thus, might return a 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 (that is, `/v1beta1/{parent=projects/-}/listAvailableLocations`). To call `ListAvailableLocations` with a specified project, a member must be at minimum a Viewer of the Project. Calls without a specified project do not require any specific project permissions. ## Parameters @@ -1364,7 +1364,7 @@ defmodule GoogleApi.Firebase.V1beta1.Api.Projects do end @doc """ - 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 bucket](https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/setting-up-cloud-storage#activating_a_cloud_storage_bucket), located in the specified [`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 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 set because either the underlying GCP `Project` already has an App Engine application or `FinalizeDefaultLocation` was previously called with a specified `locationId`. Any new calls to `FinalizeDefaultLocation` with a *different* specified `locationId` will return a 409 error. The result of this call is an [`Operation`](../../v1beta1/operations), which can be used to track the provisioning process. The [`response`](../../v1beta1/operations#Operation.FIELDS.response) type of the `Operation` is google.protobuf.Empty. The `Operation` can be polled by its `name` using GetOperation until `done` is true. When `done` is true, the `Operation` has either succeeded or failed. If the `Operation` has succeeded, its [`response`](../../v1beta1/operations#Operation.FIELDS.response) will be set to a google.protobuf.Empty; if the `Operation` has failed, its `error` will be set to a google.rpc.Status. The `Operation` is automatically deleted after completion, so there is no need to call DeleteOperation. All fields listed in the [request body](#request-body) are required. To call `FinalizeDefaultLocation`, a member must be an Owner of the Project. + **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) resource location for the specified FirebaseProject. This method creates an App Engine application with a [default Cloud Storage bucket](https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/setting-up-cloud-storage#activating_a_cloud_storage_bucket), located in the specified [`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 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 set because either the underlying GCP `Project` already has an App Engine application or `FinalizeDefaultLocation` was previously called with a specified `locationId`. Any new calls to `FinalizeDefaultLocation` with a *different* specified `locationId` will return a 409 error. The result of this call is an [`Operation`](../../v1beta1/operations), which can be used to track the provisioning process. The [`response`](../../v1beta1/operations#Operation.FIELDS.response) type of the `Operation` is google.protobuf.Empty. The `Operation` can be polled by its `name` using GetOperation until `done` is true. When `done` is true, the `Operation` has either succeeded or failed. If the `Operation` has succeeded, its [`response`](../../v1beta1/operations#Operation.FIELDS.response) will be set to a google.protobuf.Empty; if the `Operation` has failed, its `error` will be set to a google.rpc.Status. The `Operation` is automatically deleted after completion, so there is no need to call DeleteOperation. All fields listed in the [request body](#request-body) are required. To call `FinalizeDefaultLocation`, a member must be an Owner of the Project. ## Parameters diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/metadata.ex b/clients/firebase/lib/google_api/firebase/v1beta1/metadata.ex index 7e18484035..c6325897f0 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/metadata.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Firebase.V1beta1 do API client metadata for GoogleApi.Firebase.V1beta1. """ - @discovery_revision "20221010" + @discovery_revision "20240308" def discovery_revision(), do: @discovery_revision end diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/admin_sdk_config.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/admin_sdk_config.ex index b0ef5fae78..1a3e554881 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/admin_sdk_config.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/admin_sdk_config.ex @@ -21,10 +21,10 @@ defmodule GoogleApi.Firebase.V1beta1.Model.AdminSdkConfig do ## Attributes - * `databaseURL` (*type:* `String.t`, *default:* `nil`) - The default Firebase Realtime Database URL. - * `locationId` (*type:* `String.t`, *default:* `nil`) - 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 is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project. + * `databaseURL` (*type:* `String.t`, *default:* `nil`) - **DEPRECATED.** _Instead, find the default Firebase Realtime Database instance name using the [list endpoint](https://firebase.google.com/docs/reference/rest/database/database-management/rest/v1beta/projects.locations.instances/list) within the Firebase Realtime Database REST API. 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. + * `locationId` (*type:* `String.t`, *default:* `nil`) - **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 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 set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project. * `projectId` (*type:* `String.t`, *default:* `nil`) - Immutable. A user-assigned unique identifier for the `FirebaseProject`. This identifier may appear in URLs or names for some Firebase resources associated with the Project, but it should generally be treated as a convenience alias to reference the Project. - * `storageBucket` (*type:* `String.t`, *default:* `nil`) - The default Cloud Storage for Firebase storage bucket name. + * `storageBucket` (*type:* `String.t`, *default:* `nil`) - **DEPRECATED.** _Instead, find the default Cloud Storage for Firebase bucket using the [list 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 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. """ use GoogleApi.Gax.ModelBase diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/android_app.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/android_app.ex index 69f28def68..d1e10d2fb2 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/android_app.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/android_app.ex @@ -24,6 +24,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.AndroidApp do * `apiKeyId` (*type:* `String.t`, *default:* `nil`) - The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the `AndroidApp`. Be aware that this value is the UID of the API key, _not_ the [`keyString`](https://cloud.google.com/api-keys/docs/reference/rest/v2/projects.locations.keys#Key.FIELDS.key_string) of the API key. The `keyString` is the value that can be found in the App's [configuration artifact](../../rest/v1beta1/projects.androidApps/getConfig). If `api_key_id` is not set in requests to [`androidApps.Create`](../../rest/v1beta1/projects.androidApps/create), then Firebase automatically associates an `api_key_id` with the `AndroidApp`. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned. In patch requests, `api_key_id` cannot be set to an empty value, and the new UID must have no restrictions or only have restrictions that are valid for the associated `AndroidApp`. We recommend using the [Google Cloud Console](https://console.cloud.google.com/apis/credentials) to manage API keys. * `appId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. The globally unique, Firebase-assigned identifier for the `AndroidApp`. This identifier should be treated as an opaque token, as the data format is not specified. * `displayName` (*type:* `String.t`, *default:* `nil`) - The user-assigned display name for the `AndroidApp`. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state. * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.androidApps#AndroidApp.FIELDS.app_id)). * `packageName` (*type:* `String.t`, *default:* `nil`) - Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console. * `projectId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `AndroidApp`. @@ -38,6 +40,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.AndroidApp do :apiKeyId => String.t() | nil, :appId => String.t() | nil, :displayName => String.t() | nil, + :etag => String.t() | nil, + :expireTime => DateTime.t() | nil, :name => String.t() | nil, :packageName => String.t() | nil, :projectId => String.t() | nil, @@ -49,6 +53,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.AndroidApp do field(:apiKeyId) field(:appId) field(:displayName) + field(:etag) + field(:expireTime, as: DateTime) field(:name) field(:packageName) field(:projectId) diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/default_resources.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/default_resources.ex index 058f03f55a..d83b64a76c 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/default_resources.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/default_resources.ex @@ -17,14 +17,14 @@ defmodule GoogleApi.Firebase.V1beta1.Model.DefaultResources do @moduledoc """ - The default resources associated with the Project. + **DEPRECATED.** _Auto-provisioning of these resources is changing, so this object no longer reliably provides information about the resources within the Project. Instead, retrieve information about each resource directly from its resource-specific API._ The default auto-provisioned resources associated with the Project. ## Attributes - * `hostingSite` (*type:* `String.t`, *default:* `nil`) - 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 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 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: `myproject123-a5c16` - * `locationId` (*type:* `String.t`, *default:* `nil`) - Output only. 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 is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project. - * `realtimeDatabaseInstance` (*type:* `String.t`, *default:* `nil`) - 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 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 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 instance name might be: `myproject123-a5c16` - * `storageBucket` (*type:* `String.t`, *default:* `nil`) - Output only. The default Cloud Storage for Firebase storage bucket, in the format: PROJECT_ID.appspot.com + * `hostingSite` (*type:* `String.t`, *default:* `nil`) - Output only. **DEPRECATED.** _Instead, find the default Firebase Hosting site name using the [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 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 already be used as the name for an existing Hosting site in 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 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: `myproject123-a5c16` + * `locationId` (*type:* `String.t`, *default:* `nil`) - 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 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 yet. To set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project. + * `realtimeDatabaseInstance` (*type:* `String.t`, *default:* `nil`) - Output only. **DEPRECATED.** _Instead, find the default Firebase Realtime Database instance name using the [list endpoint](https://firebase.google.com/docs/reference/rest/database/database-management/rest/v1beta/projects.locations.instances/list) within the Firebase Realtime Database REST API. 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 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 [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 create your default Realtime Database instance name. For example, if your `projectId` is `myproject123`, your default database instance name might be: `myproject123-a5c16` + * `storageBucket` (*type:* `String.t`, *default:* `nil`) - Output only. **DEPRECATED.** _Instead, find the default Cloud Storage for Firebase bucket using the [list 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 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: PROJECT_ID.appspot.com """ use GoogleApi.Gax.ModelBase diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_app_info.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_app_info.ex index b7441f70e2..53ebe3329d 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_app_info.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_app_info.ex @@ -24,6 +24,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.FirebaseAppInfo do * `apiKeyId` (*type:* `String.t`, *default:* `nil`) - The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the App. Be aware that this value is the UID of the API key, _not_ the [`keyString`](https://cloud.google.com/api-keys/docs/reference/rest/v2/projects.locations.keys#Key.FIELDS.key_string) of the API key. The `keyString` is the value that can be found in the App's configuration artifact ([`AndroidApp`](../../rest/v1beta1/projects.androidApps/getConfig) | [`IosApp`](../../rest/v1beta1/projects.iosApps/getConfig) | [`WebApp`](../../rest/v1beta1/projects.webApps/getConfig)). If `api_key_id` is not set in requests to create the App ([`AndroidApp`](../../rest/v1beta1/projects.androidApps/create) | [`IosApp`](../../rest/v1beta1/projects.iosApps/create) | [`WebApp`](../../rest/v1beta1/projects.webApps/create)), then Firebase automatically associates an `api_key_id` with the App. This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned. * `appId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. This identifier should be treated as an opaque token, as the data format is not specified. * `displayName` (*type:* `String.t`, *default:* `nil`) - The user-assigned display name of the Firebase App. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state. * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the Firebase App, in the format: projects/PROJECT_ID /iosApps/APP_ID or projects/PROJECT_ID/androidApps/APP_ID or projects/ PROJECT_ID/webApps/APP_ID * `namespace` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. The platform-specific identifier of the App. *Note:* For most use cases, use `appId`, which is the canonical, globally unique identifier for referencing an App. This string is derived from a native identifier for each platform: `packageName` for an `AndroidApp`, `bundleId` for an `IosApp`, and `webId` for a `WebApp`. Its contents should be treated as opaque, as the native identifier format may change as platforms evolve. This string is only unique within a `FirebaseProject` and its associated Apps. * `platform` (*type:* `String.t`, *default:* `nil`) - The platform of the Firebase App. @@ -36,6 +37,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.FirebaseAppInfo do :apiKeyId => String.t() | nil, :appId => String.t() | nil, :displayName => String.t() | nil, + :expireTime => DateTime.t() | nil, :name => String.t() | nil, :namespace => String.t() | nil, :platform => String.t() | nil, @@ -45,6 +47,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.FirebaseAppInfo do field(:apiKeyId) field(:appId) field(:displayName) + field(:expireTime, as: DateTime) field(:name) field(:namespace) field(:platform) diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_project.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_project.ex index 88fccdee60..8cb188a717 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_project.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/firebase_project.ex @@ -21,13 +21,13 @@ defmodule GoogleApi.Firebase.V1beta1.Model.FirebaseProject do ## Attributes - * `annotations` (*type:* `map()`, *default:* `nil`) - Set of user-defined annotations for the FirebaseProject as per [AIP-128](https://google.aip.dev/128#annotations). These annotations are intended solely for developers and client-side tools Firebase services will not mutate this annotation set. + * `annotations` (*type:* `map()`, *default:* `nil`) - A set of user-defined annotations for the FirebaseProject. Learn more about annotations in Google's [AIP-128 standard](https://google.aip.dev/128#annotations). These annotations are intended solely for developers and client-side tools. Firebase services will not mutate this annotations set. * `displayName` (*type:* `String.t`, *default:* `nil`) - The user-assigned display name of the Project. - * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated. * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the Project, in the format: projects/PROJECT_IDENTIFIER PROJECT_IDENTIFIER: the Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * `projectId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. A user-assigned unique identifier for the Project. This identifier may appear in URLs or names for some Firebase resources associated with the Project, but it should generally be treated as a convenience alias to reference the Project. * `projectNumber` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. The globally unique, Google-assigned canonical identifier for the Project. Use this identifier when configuring integrations and/or making API calls to Firebase or third-party services. - * `resources` (*type:* `GoogleApi.Firebase.V1beta1.Model.DefaultResources.t`, *default:* `nil`) - Output only. The default Firebase resources associated with the Project. + * `resources` (*type:* `GoogleApi.Firebase.V1beta1.Model.DefaultResources.t`, *default:* `nil`) - Output only. **DEPRECATED.** _Auto-provisioning of these resources is changing, so this object no longer reliably provides information about the Project. Instead, retrieve information about each resource directly from its resource-specific API._ The default Firebase resources associated with the Project. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The lifecycle state of the Project. """ diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/ios_app.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/ios_app.ex index 61992dbd0b..0b13404fed 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/ios_app.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/ios_app.ex @@ -26,6 +26,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.IosApp do * `appStoreId` (*type:* `String.t`, *default:* `nil`) - The automatically generated Apple ID assigned to the iOS app by Apple in the iOS App Store. * `bundleId` (*type:* `String.t`, *default:* `nil`) - Immutable. The canonical bundle ID of the iOS app as it would appear in the iOS AppStore. * `displayName` (*type:* `String.t`, *default:* `nil`) - The user-assigned display name for the `IosApp`. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state. * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the IosApp, in the format: projects/PROJECT_IDENTIFIER /iosApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.iosApps#IosApp.FIELDS.app_id)). * `projectId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `IosApp`. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The lifecycle state of the App. @@ -40,6 +42,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.IosApp do :appStoreId => String.t() | nil, :bundleId => String.t() | nil, :displayName => String.t() | nil, + :etag => String.t() | nil, + :expireTime => DateTime.t() | nil, :name => String.t() | nil, :projectId => String.t() | nil, :state => String.t() | nil, @@ -51,6 +55,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.IosApp do field(:appStoreId) field(:bundleId) field(:displayName) + field(:etag) + field(:expireTime, as: DateTime) field(:name) field(:projectId) field(:state) diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/location.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/location.ex index 662d0b8e46..caecd2f125 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/location.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/location.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.Location do @moduledoc """ - A GCP resource location that can be selected for a FirebaseProject. + **DEPRECATED.** _This Location is no longer used to determine Firebase resource locations. Instead, consult product documentation to determine valid locations for each resource used in your Project._ A GCP resource location that can be selected for a FirebaseProject. ## Attributes diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/operation.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/operation.ex index 28a3c9fc83..3b2a8134ef 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/operation.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/operation.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.Operation do * `error` (*type:* `GoogleApi.Firebase.V1beta1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation. * `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. * `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - * `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. """ use GoogleApi.Gax.ModelBase diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/operation_metadata.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/operation_metadata.ex new file mode 100644 index 0000000000..2d8c3dfa61 --- /dev/null +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/operation_metadata.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Firebase.V1beta1.Model.OperationMetadata do + @moduledoc """ + Describes the progress of an LRO. It is included in the `metadata` field of the `Operation`. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Firebase.V1beta1.Model.OperationMetadata do + def decode(value, options) do + GoogleApi.Firebase.V1beta1.Model.OperationMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Firebase.V1beta1.Model.OperationMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/product_metadata.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/product_metadata.ex new file mode 100644 index 0000000000..176fe60fbf --- /dev/null +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/product_metadata.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Firebase.V1beta1.Model.ProductMetadata do + @moduledoc """ + Metadata about a long-running Product operation. + + ## Attributes + + * `warningMessages` (*type:* `list(String.t)`, *default:* `nil`) - List of warnings related to the associated operation. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :warningMessages => list(String.t()) | nil + } + + field(:warningMessages, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Firebase.V1beta1.Model.ProductMetadata do + def decode(value, options) do + GoogleApi.Firebase.V1beta1.Model.ProductMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Firebase.V1beta1.Model.ProductMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_android_app_request.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_android_app_request.ex index 2f6f9336ec..7843072bed 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_android_app_request.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_android_app_request.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.RemoveAndroidAppRequest do ## Attributes * `allowMissing` (*type:* `boolean()`, *default:* `nil`) - If set to true, and the App is not found, the request will succeed but no action will be taken on the server. - * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding. - * `immediate` (*type:* `boolean()`, *default:* `nil`) - Determines whether to _immediately_ delete the App. If set to true, the App is immediately deleted from the Project and cannot be restored to the Project. If not set, defaults to false, which means that the App may be restored to the Project within 30 days using UndeleteAndroidApp. + * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the AndroidApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding. + * `immediate` (*type:* `boolean()`, *default:* `nil`) - Determines whether to _immediately_ delete the AndroidApp. If set to true, the App is immediately deleted from the Project and cannot be restored to the Project. If not set, defaults to false, which means the App will be set to expire in 30 days. Within the 30 days, the App may be restored to the Project using UndeleteAndroidApp. * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - If set to true, the request is only validated. The App will _not_ be removed. """ diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_ios_app_request.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_ios_app_request.ex index 29257f11fb..4c8641c6e3 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_ios_app_request.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_ios_app_request.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.RemoveIosAppRequest do ## Attributes * `allowMissing` (*type:* `boolean()`, *default:* `nil`) - If set to true, and the App is not found, the request will succeed but no action will be taken on the server. - * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding. - * `immediate` (*type:* `boolean()`, *default:* `nil`) - Determines whether to _immediately_ delete the App. If set to true, the App is immediately deleted from the Project and cannot be restored to the Project. If not set, defaults to false, which means that the App may be restored to the Project within 30 days using UndeleteIosApp + * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the IosApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding. + * `immediate` (*type:* `boolean()`, *default:* `nil`) - Determines whether to _immediately_ delete the IosApp. If set to true, the App is immediately deleted from the Project and cannot be restored to the Project. If not set, defaults to false, which means the App will be set to expire in 30 days. Within the 30 days, the App may be restored to the Project using UndeleteIosApp * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - If set to true, the request is only validated. The App will _not_ be removed. """ diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_web_app_request.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_web_app_request.ex index 12222a33cd..92b5114285 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_web_app_request.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/remove_web_app_request.ex @@ -22,8 +22,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.RemoveWebAppRequest do ## Attributes * `allowMissing` (*type:* `boolean()`, *default:* `nil`) - If set to true, and the App is not found, the request will succeed but no action will be taken on the server. - * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding. - * `immediate` (*type:* `boolean()`, *default:* `nil`) - Determines whether to _immediately_ delete the App. If set to true, the App is immediately deleted from the Project and cannot be restored to the Project. If not set, defaults to false, which means that the App may be restored to the Project within 30 days using UndeleteWebApp + * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the WebApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding. + * `immediate` (*type:* `boolean()`, *default:* `nil`) - Determines whether to _immediately_ delete the WebApp. If set to true, the App is immediately deleted from the Project and cannot be restored to the Project. If not set, defaults to false, which means the App will be set to expire in 30 days. Within the 30 days, the App may be restored to the Project using UndeleteWebApp * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - If set to true, the request is only validated. The App will _not_ be removed. """ diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/status_proto.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/status_proto.ex index 3427923e42..780e0eb8ea 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/status_proto.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/status_proto.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.StatusProto do ## Attributes - * `canonicalCode` (*type:* `integer()`, *default:* `nil`) - The canonical error code (see codes.proto) that most closely corresponds to this status. May be missing. + * `canonicalCode` (*type:* `integer()`, *default:* `nil`) - The canonical error code (see codes.proto) that most closely corresponds to this status. This may be missing, and in the common case of the generic space, it definitely will be. * `code` (*type:* `integer()`, *default:* `nil`) - Numeric code drawn from the space specified below. Often, this is the canonical error space, and code is drawn from google3/util/task/codes.proto * `message` (*type:* `String.t`, *default:* `nil`) - Detail message * `messageSet` (*type:* `GoogleApi.Firebase.V1beta1.Model.MessageSet.t`, *default:* `nil`) - message_set associates an arbitrary proto message with the status. diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_android_app_request.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_android_app_request.ex index 35fed7ef21..46bdc343ff 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_android_app_request.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_android_app_request.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.UndeleteAndroidAppRequest do ## Attributes - * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding. + * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the AndroidApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding. * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - If set to true, the request is only validated. The App will _not_ be undeleted. """ diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_ios_app_request.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_ios_app_request.ex index 5b8f03cde7..7298ca3ca0 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_ios_app_request.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_ios_app_request.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.UndeleteIosAppRequest do ## Attributes - * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding. + * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the IosApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding. * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - If set to true, the request is only validated. The App will _not_ be undeleted. """ diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_web_app_request.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_web_app_request.ex index 895fa9cbd3..a1c6006231 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_web_app_request.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/undelete_web_app_request.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Firebase.V1beta1.Model.UndeleteWebAppRequest do ## Attributes - * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding. + * `etag` (*type:* `String.t`, *default:* `nil`) - Checksum provided in the WebApp resource. If provided, this checksum ensures that the client has an up-to-date value before proceeding. * `validateOnly` (*type:* `boolean()`, *default:* `nil`) - If set to true, the request is only validated. The App will _not_ be undeleted. """ diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/web_app.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/web_app.ex index 7b3ddbc542..2337bb306f 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/web_app.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/web_app.ex @@ -25,6 +25,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.WebApp do * `appId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. This identifier should be treated as an opaque token, as the data format is not specified. * `appUrls` (*type:* `list(String.t)`, *default:* `nil`) - The URLs where the `WebApp` is hosted. * `displayName` (*type:* `String.t`, *default:* `nil`) - The user-assigned display name for the `WebApp`. + * `etag` (*type:* `String.t`, *default:* `nil`) - This checksum is computed by the server based on the value of other fields, and it may be sent with update requests to ensure the client has an up-to-date value before proceeding. Learn more about `etag` in Google's [AIP-154 standard](https://google.aip.dev/154#declarative-friendly-resources). This etag is strongly validated. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp of when the App will be considered expired and cannot be undeleted. This value is only provided if the App is in the `DELETED` state. * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the WebApp, in the format: projects/PROJECT_IDENTIFIER /webApps/APP_ID * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.webApps#WebApp.FIELDS.app_id)). * `projectId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. A user-assigned unique identifier of the parent FirebaseProject for the `WebApp`. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The lifecycle state of the App. @@ -38,6 +40,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.WebApp do :appId => String.t() | nil, :appUrls => list(String.t()) | nil, :displayName => String.t() | nil, + :etag => String.t() | nil, + :expireTime => DateTime.t() | nil, :name => String.t() | nil, :projectId => String.t() | nil, :state => String.t() | nil, @@ -48,6 +52,8 @@ defmodule GoogleApi.Firebase.V1beta1.Model.WebApp do field(:appId) field(:appUrls, type: :list) field(:displayName) + field(:etag) + field(:expireTime, as: DateTime) field(:name) field(:projectId) field(:state) diff --git a/clients/firebase/lib/google_api/firebase/v1beta1/model/web_app_config.ex b/clients/firebase/lib/google_api/firebase/v1beta1/model/web_app_config.ex index 6555daef7a..d375778f19 100644 --- a/clients/firebase/lib/google_api/firebase/v1beta1/model/web_app_config.ex +++ b/clients/firebase/lib/google_api/firebase/v1beta1/model/web_app_config.ex @@ -24,12 +24,12 @@ defmodule GoogleApi.Firebase.V1beta1.Model.WebAppConfig do * `apiKey` (*type:* `String.t`, *default:* `nil`) - The [`keyString`](https://cloud.google.com/api-keys/docs/reference/rest/v2/projects.locations.keys#Key.FIELDS.key_string) of the API key associated with the `WebApp`. Note that this value is _not_ the [`apiKeyId`](../projects.webApps#WebApp.FIELDS.api_key_id) (the UID) of the API key associated with the `WebApp`. * `appId` (*type:* `String.t`, *default:* `nil`) - Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. * `authDomain` (*type:* `String.t`, *default:* `nil`) - The domain Firebase Auth configures for OAuth redirects, in the format: PROJECT_ID.firebaseapp.com - * `databaseURL` (*type:* `String.t`, *default:* `nil`) - The default Firebase Realtime Database URL. - * `locationId` (*type:* `String.t`, *default:* `nil`) - 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 is omitted if the default GCP resource location has not been finalized yet. To set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project. + * `databaseURL` (*type:* `String.t`, *default:* `nil`) - **DEPRECATED.** _Instead, find the default Firebase Realtime Database instance name using the [list endpoint](https://firebase.google.com/docs/reference/rest/database/database-management/rest/v1beta/projects.locations.instances/list) within the Firebase Realtime Database REST API. 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. + * `locationId` (*type:* `String.t`, *default:* `nil`) - **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 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 set a Project's default GCP resource location, call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) after you add Firebase resources to the Project. * `measurementId` (*type:* `String.t`, *default:* `nil`) - The unique Google-assigned identifier of the Google Analytics web stream associated with the `WebApp`. Firebase SDKs use this ID to interact with Google Analytics APIs. This field is only present if the `WebApp` is linked to a web stream in a Google Analytics App + Web property. Learn more about this ID and Google Analytics web streams in the [Analytics documentation](https://support.google.com/analytics/answer/9304153). To generate a `measurementId` and link the `WebApp` with a Google Analytics web stream, call [`AddGoogleAnalytics`](../../v1beta1/projects/addGoogleAnalytics). For apps using the Firebase JavaScript SDK v7.20.0 and later, Firebase dynamically fetches the `measurementId` when your app initializes Analytics. Having this ID in your config object is optional, but it does serve as a fallback in the rare case that the dynamic fetch fails. * `messagingSenderId` (*type:* `String.t`, *default:* `nil`) - The sender ID for use with Firebase Cloud Messaging. * `projectId` (*type:* `String.t`, *default:* `nil`) - Immutable. A user-assigned unique identifier for the `FirebaseProject`. - * `storageBucket` (*type:* `String.t`, *default:* `nil`) - The default Cloud Storage for Firebase storage bucket name. + * `storageBucket` (*type:* `String.t`, *default:* `nil`) - **DEPRECATED.** _Instead, find the default Cloud Storage for Firebase bucket using the [list 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 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. """ use GoogleApi.Gax.ModelBase