# 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.ProjectInfo do
@moduledoc """
A reference to a Google Cloud `Project`.
## Attributes
* `displayName` (*type:* `String.t`, *default:* `nil`) - The user-assigned display name of the Google Cloud `Project`, for example: `My App`.
* `locationId` (*type:* `String.t`, *default:* `nil`) - **DEPRECATED** _Instead, use product-specific REST APIs to work with the location of each resource in a Project. This field may not be populated, especially for newly provisioned projects after October 30, 2024._ The ID of the Project's ["location for default Google Cloud resources"](https://firebase.google.com/docs/projects/locations#default-cloud-location). The location is one of the available [Google App Engine locations](https://cloud.google.com/about/locations#region). Not all Projects will have this field populated. If it is not populated, it means that the Project does not yet have a location for default Google Cloud resources.
* `project` (*type:* `String.t`, *default:* `nil`) - The resource name of the Google Cloud `Project` to which Firebase resources can be added, in the format: projects/PROJECT_IDENTIFIER Refer to the `FirebaseProject` [`name`](../projects#FirebaseProject.FIELDS.name) field for details about PROJECT_IDENTIFIER values.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:displayName => String.t() | nil,
:locationId => String.t() | nil,
:project => String.t() | nil
}
field(:displayName)
field(:locationId)
field(:project)
end
defimpl Poison.Decoder, for: GoogleApi.Firebase.V1beta1.Model.ProjectInfo do
def decode(value, options) do
GoogleApi.Firebase.V1beta1.Model.ProjectInfo.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Firebase.V1beta1.Model.ProjectInfo do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end