# 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
    #
    # InstanceView of CloudService as a whole
    #
    class CloudServiceInstanceView

      include MsRestAzure

      # @return [InstanceViewStatusesSummary]
      attr_accessor :role_instance

      # @return [String] The version of the SDK that was used to generate the
      # package for the cloud service.
      attr_accessor :sdk_version

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


      #
      # Mapper for CloudServiceInstanceView class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CloudServiceInstanceView',
          type: {
            name: 'Composite',
            class_name: 'CloudServiceInstanceView',
            model_properties: {
              role_instance: {
                client_side_validation: true,
                required: false,
                serialized_name: 'roleInstance',
                type: {
                  name: 'Composite',
                  class_name: 'InstanceViewStatusesSummary'
                }
              },
              sdk_version: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'sdkVersion',
                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
