# 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::Scheduler module Models # # Model object. # class StorageQueueMessage include MsRestAzure # @return [String] Gets or sets the storage account name. attr_accessor :storage_account # @return [String] Gets or sets the queue name. attr_accessor :queue_name # @return [String] Gets or sets the SAS key. attr_accessor :sas_token # @return [String] Gets or sets the message. attr_accessor :message # # Validate the object. Throws ValidationError if validation fails. # def validate # Nothing to validate 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.storage_account output_object['storageAccount'] = serialized_property unless serialized_property.nil? serialized_property = object.queue_name output_object['queueName'] = serialized_property unless serialized_property.nil? serialized_property = object.sas_token output_object['sasToken'] = serialized_property unless serialized_property.nil? serialized_property = object.message output_object['message'] = 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 [StorageQueueMessage] Deserialized object. # def self.deserialize_object(object) return if object.nil? output_object = StorageQueueMessage.new deserialized_property = object['storageAccount'] output_object.storage_account = deserialized_property deserialized_property = object['queueName'] output_object.queue_name = deserialized_property deserialized_property = object['sasToken'] output_object.sas_token = deserialized_property deserialized_property = object['message'] output_object.message = deserialized_property output_object end end end end