# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Web module Models # # Class containing names for connection strings and application settings # to be marked as sticky to the slot # and not moved during swap operation # This is valid for all deployment slots under the site # class SlotConfigNames include MsRestAzure # @return [Array] List of connection string names attr_accessor :connection_string_names # @return [Array] List of application settings names attr_accessor :app_setting_names # # Validate the object. Throws ValidationError if validation fails. # def validate @connection_string_names.each{ |e| e.validate if e.respond_to?(:validate) } unless @connection_string_names.nil? @app_setting_names.each{ |e| e.validate if e.respond_to?(:validate) } unless @app_setting_names.nil? end # # Serializes given Model object into Ruby Hash. # @param object Model object to serialize. # @return [Hash] Serialized object in form of Ruby Hash. # def self.serialize_object(object) object.validate output_object = {} serialized_property = object.connection_string_names output_object['connectionStringNames'] = serialized_property unless serialized_property.nil? serialized_property = object.app_setting_names output_object['appSettingNames'] = serialized_property unless serialized_property.nil? output_object end # # Deserializes given Ruby Hash into Model object. # @param object [Hash] Ruby Hash object to deserialize. # @return [SlotConfigNames] Deserialized object. # def self.deserialize_object(object) return if object.nil? output_object = SlotConfigNames.new deserialized_property = object['connectionStringNames'] output_object.connection_string_names = deserialized_property deserialized_property = object['appSettingNames'] output_object.app_setting_names = deserialized_property output_object end end end end