# 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::ServiceFabric::V6_2_0_9 module Models # # Information about a Service Fabric property. # class PropertyInfo include MsRestAzure # @return [String] The name of the Service Fabric property. attr_accessor :name # @return [PropertyValue] Describes a Service Fabric property value. attr_accessor :value # @return [PropertyMetadata] The metadata associated with a property, # including the property's name. attr_accessor :metadata # # Mapper for PropertyInfo class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PropertyInfo', type: { name: 'Composite', class_name: 'PropertyInfo', model_properties: { name: { client_side_validation: true, required: true, serialized_name: 'Name', type: { name: 'String' } }, value: { client_side_validation: true, required: false, serialized_name: 'Value', type: { name: 'Composite', polymorphic_discriminator: 'Kind', uber_parent: 'PropertyValue', class_name: 'PropertyValue' } }, metadata: { client_side_validation: true, required: true, serialized_name: 'Metadata', type: { name: 'Composite', class_name: 'PropertyMetadata' } } } } } end end end end