# 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::NotificationHubs module Models # # Description of a NotificationHub BaiduCredential. # class BaiduCredentialProperties include MsRestAzure # @return [String] Get or Set Baidu Api Key. attr_accessor :baidu_api_key # @return [String] Get or Set Baidu Endpoint. attr_accessor :baidu_end_point # @return [String] Get or Set Baidu Secret Key attr_accessor :baidu_secret_key # # 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.baidu_api_key output_object['baiduApiKey'] = serialized_property unless serialized_property.nil? serialized_property = object.baidu_end_point output_object['baiduEndPoint'] = serialized_property unless serialized_property.nil? serialized_property = object.baidu_secret_key output_object['baiduSecretKey'] = 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 [BaiduCredentialProperties] Deserialized object. # def self.deserialize_object(object) return if object.nil? output_object = BaiduCredentialProperties.new deserialized_property = object['baiduApiKey'] output_object.baidu_api_key = deserialized_property deserialized_property = object['baiduEndPoint'] output_object.baidu_end_point = deserialized_property deserialized_property = object['baiduSecretKey'] output_object.baidu_secret_key = deserialized_property output_object end end end end