# 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 ManagedClusterPodIdentityProfile

      include MsRestAzure

      # @return [Boolean] Whether the pod identity addon is enabled.
      attr_accessor :enabled

      # @return [Array<ManagedClusterPodIdentity>] User assigned pod identity
      # settings.
      attr_accessor :user_assigned_identities

      # @return [Array<ManagedClusterPodIdentityException>] User assigned pod
      # identity exception settings.
      attr_accessor :user_assigned_identity_exceptions


      #
      # Mapper for ManagedClusterPodIdentityProfile class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagedClusterPodIdentityProfile',
          type: {
            name: 'Composite',
            class_name: 'ManagedClusterPodIdentityProfile',
            model_properties: {
              enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enabled',
                type: {
                  name: 'Boolean'
                }
              },
              user_assigned_identities: {
                client_side_validation: true,
                required: false,
                serialized_name: 'userAssignedIdentities',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ManagedClusterPodIdentityElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ManagedClusterPodIdentity'
                      }
                  }
                }
              },
              user_assigned_identity_exceptions: {
                client_side_validation: true,
                required: false,
                serialized_name: 'userAssignedIdentityExceptions',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ManagedClusterPodIdentityExceptionElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ManagedClusterPodIdentityException'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
