# 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::DevTestLabs::Mgmt::V2018_09_15
  module Models
    #
    # A Service Fabric.
    #
    class ServiceFabricFragment < UpdateResource

      include MsRestAzure

      # @return [String] The backing service fabric resource's id
      attr_accessor :external_service_fabric_id

      # @return [String] The resource id of the environment under which the
      # service fabric resource is present
      attr_accessor :environment_id


      #
      # Mapper for ServiceFabricFragment class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServiceFabricFragment',
          type: {
            name: 'Composite',
            class_name: 'ServiceFabricFragment',
            model_properties: {
              tags: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tags',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              external_service_fabric_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.externalServiceFabricId',
                type: {
                  name: 'String'
                }
              },
              environment_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.environmentId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
