# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ContainerService::Mgmt::V2020_12_01
  module Models
    #
    # Model object.
    #
    #
    class ManagedClusterPodIdentity

      include MsRestAzure

      # @return [String] Name of the pod identity.
      attr_accessor :name

      # @return [String] Namespace of the pod identity.
      attr_accessor :namespace

      # @return [UserAssignedIdentity] Information of the user assigned
      # identity.
      attr_accessor :identity

      # @return [ManagedClusterPodIdentityProvisioningState] The current
      # provisioning state of the pod identity. Possible values include:
      # 'Assigned', 'Updating', 'Deleting', 'Failed'
      attr_accessor :provisioning_state

      # @return [ManagedClusterPodIdentityProvisioningInfo]
      attr_accessor :provisioning_info


      #
      # Mapper for ManagedClusterPodIdentity class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagedClusterPodIdentity',
          type: {
            name: 'Composite',
            class_name: 'ManagedClusterPodIdentity',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              namespace: {
                client_side_validation: true,
                required: true,
                serialized_name: 'namespace',
                type: {
                  name: 'String'
                }
              },
              identity: {
                client_side_validation: true,
                required: true,
                serialized_name: 'identity',
                type: {
                  name: 'Composite',
                  class_name: 'UserAssignedIdentity'
                }
              },
              provisioning_state: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'provisioningState',
                type: {
                  name: 'String'
                }
              },
              provisioning_info: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'provisioningInfo',
                type: {
                  name: 'Composite',
                  class_name: 'ManagedClusterPodIdentityProvisioningInfo'
                }
              }
            }
          }
        }
      end
    end
  end
end
