# 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.SecurityCenter.V1.Model.SecurityCenterProperties do
  @moduledoc """
  Security Command Center managed properties. These properties are managed by Security Command Center and cannot be modified by the user.

  ## Attributes

  *   `folders` (*type:* `list(GoogleApi.SecurityCenter.V1.Model.Folder.t)`, *default:* `nil`) - Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
  *   `resourceDisplayName` (*type:* `String.t`, *default:* `nil`) - The user defined display name for this resource.
  *   `resourceName` (*type:* `String.t`, *default:* `nil`) - The full resource name of the Google Cloud resource this asset represents. This field is immutable after create time. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
  *   `resourceOwners` (*type:* `list(String.t)`, *default:* `nil`) - Owners of the Google Cloud resource.
  *   `resourceParent` (*type:* `String.t`, *default:* `nil`) - The full resource name of the immediate parent of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
  *   `resourceParentDisplayName` (*type:* `String.t`, *default:* `nil`) - The user defined display name for the parent of this resource.
  *   `resourceProject` (*type:* `String.t`, *default:* `nil`) - The full resource name of the project the resource belongs to. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
  *   `resourceProjectDisplayName` (*type:* `String.t`, *default:* `nil`) - The user defined display name for the project of this resource.
  *   `resourceType` (*type:* `String.t`, *default:* `nil`) - The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Security Command Center and/or the producer of the resource and is immutable after create time.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :folders => list(GoogleApi.SecurityCenter.V1.Model.Folder.t()) | nil,
          :resourceDisplayName => String.t() | nil,
          :resourceName => String.t() | nil,
          :resourceOwners => list(String.t()) | nil,
          :resourceParent => String.t() | nil,
          :resourceParentDisplayName => String.t() | nil,
          :resourceProject => String.t() | nil,
          :resourceProjectDisplayName => String.t() | nil,
          :resourceType => String.t() | nil
        }

  field(:folders, as: GoogleApi.SecurityCenter.V1.Model.Folder, type: :list)
  field(:resourceDisplayName)
  field(:resourceName)
  field(:resourceOwners, type: :list)
  field(:resourceParent)
  field(:resourceParentDisplayName)
  field(:resourceProject)
  field(:resourceProjectDisplayName)
  field(:resourceType)
end

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

defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.SecurityCenterProperties do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
