# 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.GKEHub.V1.Model.ConfigManagementConfigSyncDeploymentState do
  @moduledoc """
  The state of ConfigSync's deployment on a cluster

  ## Attributes

  *   `admissionWebhook` (*type:* `String.t`, *default:* `nil`) - Deployment state of admission-webhook
  *   `gitSync` (*type:* `String.t`, *default:* `nil`) - Deployment state of the git-sync pod
  *   `importer` (*type:* `String.t`, *default:* `nil`) - Deployment state of the importer pod
  *   `monitor` (*type:* `String.t`, *default:* `nil`) - Deployment state of the monitor pod
  *   `otelCollector` (*type:* `String.t`, *default:* `nil`) - Deployment state of otel-collector
  *   `reconcilerManager` (*type:* `String.t`, *default:* `nil`) - Deployment state of reconciler-manager pod
  *   `resourceGroupControllerManager` (*type:* `String.t`, *default:* `nil`) - Deployment state of resource-group-controller-manager
  *   `rootReconciler` (*type:* `String.t`, *default:* `nil`) - Deployment state of root-reconciler
  *   `syncer` (*type:* `String.t`, *default:* `nil`) - Deployment state of the syncer pod
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :admissionWebhook => String.t() | nil,
          :gitSync => String.t() | nil,
          :importer => String.t() | nil,
          :monitor => String.t() | nil,
          :otelCollector => String.t() | nil,
          :reconcilerManager => String.t() | nil,
          :resourceGroupControllerManager => String.t() | nil,
          :rootReconciler => String.t() | nil,
          :syncer => String.t() | nil
        }

  field(:admissionWebhook)
  field(:gitSync)
  field(:importer)
  field(:monitor)
  field(:otelCollector)
  field(:reconcilerManager)
  field(:resourceGroupControllerManager)
  field(:rootReconciler)
  field(:syncer)
end

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

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