# 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::Compute::Mgmt::V2020_10_01_preview
  module Models
    #
    # The instance view of the role instance.
    #
    class RoleInstanceInstanceView

      include MsRestAzure

      # @return [Integer] The Update Domain.
      attr_accessor :platform_update_domain

      # @return [Integer] The Fault Domain.
      attr_accessor :platform_fault_domain

      # @return [String] Specifies a unique identifier generated internally for
      # the cloud service associated with this role instance. <br /><br />
      # NOTE: If you are using Azure Diagnostics extension, this property can
      # be used as 'DeploymentId' for querying details.
      attr_accessor :private_id

      # @return [Array<ResourceInstanceViewStatus>]
      attr_accessor :statuses


      #
      # Mapper for RoleInstanceInstanceView class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RoleInstanceInstanceView',
          type: {
            name: 'Composite',
            class_name: 'RoleInstanceInstanceView',
            model_properties: {
              platform_update_domain: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'platformUpdateDomain',
                type: {
                  name: 'Number'
                }
              },
              platform_fault_domain: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'platformFaultDomain',
                type: {
                  name: 'Number'
                }
              },
              private_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'privateId',
                type: {
                  name: 'String'
                }
              },
              statuses: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'statuses',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ResourceInstanceViewStatusElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ResourceInstanceViewStatus'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
