Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Firestore client #11062

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Firestore.V1 do
API client metadata for GoogleApi.Firestore.V1.
"""

@discovery_revision "20240226"
@discovery_revision "20240307"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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.Firestore.V1.Model.GoogleFirestoreAdminV1CmekConfig do
@moduledoc """
The CMEK (Customer Managed Encryption Key) configuration for a Firestore database. If not present, the database is secured by the default Google encryption key.

## Attributes

* `activeKeyVersion` (*type:* `list(String.t)`, *default:* `nil`) - 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}`.
* `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Required. 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}`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:activeKeyVersion => list(String.t()) | nil,
:kmsKeyName => String.t() | nil
}

field(:activeKeyVersion, type: :list)
field(:kmsKeyName)
end

defimpl Poison.Decoder, for: GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1CmekConfig do
def decode(value, options) do
GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1CmekConfig.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1CmekConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1Database do
## Attributes

* `appEngineIntegrationMode` (*type:* `String.t`, *default:* `nil`) - The App Engine integration mode to use for this database.
* `cmekConfig` (*type:* `GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1CmekConfig.t`, *default:* `nil`) - Optional. Presence indicates CMEK is enabled for this database.
* `concurrencyMode` (*type:* `String.t`, *default:* `nil`) - The concurrency control mode to use for this database.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp at which this database was created. Databases created before 2016 do not populate create_time.
* `deleteProtectionState` (*type:* `String.t`, *default:* `nil`) - State of delete protection for the database.
Expand All @@ -41,6 +42,7 @@ defmodule GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1Database do

@type t :: %__MODULE__{
:appEngineIntegrationMode => String.t() | nil,
:cmekConfig => GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1CmekConfig.t() | nil,
:concurrencyMode => String.t() | nil,
:createTime => DateTime.t() | nil,
:deleteProtectionState => String.t() | nil,
Expand All @@ -57,6 +59,7 @@ defmodule GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1Database do
}

field(:appEngineIntegrationMode)
field(:cmekConfig, as: GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1CmekConfig)
field(:concurrencyMode)
field(:createTime, as: DateTime)
field(:deleteProtectionState)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1ListBackupsResponse

## Attributes

* `backups` (*type:* `list(GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1Backup.t)`, *default:* `nil`) - List of all backups for the project. Ordered by `location ASC, create_time DESC, name ASC`.
* `backups` (*type:* `list(GoogleApi.Firestore.V1.Model.GoogleFirestoreAdminV1Backup.t)`, *default:* `nil`) - List of all backups for the project.
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - List of locations that existing backups were not able to be fetched from. Instead of failing the entire requests when a single location is unreachable, this response returns a partial result set and list of locations unable to be reached here. The request can be retried against a single location to get a concrete error.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Firestore.V1beta1 do
API client metadata for GoogleApi.Firestore.V1beta1.
"""

@discovery_revision "20240226"
@discovery_revision "20240307"

def discovery_revision(), do: @discovery_revision
end
Loading