# 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::Automation::Mgmt::V2015_10_31 module Models # # Definition of the credential. # class Credential < ProxyResource include MsRestAzure # @return [String] Gets the user name of the credential. attr_accessor :user_name # @return [DateTime] Gets the creation time. attr_accessor :creation_time # @return [DateTime] Gets the last modified time. attr_accessor :last_modified_time # @return [String] Gets or sets the description. attr_accessor :description # # Mapper for Credential class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Credential', type: { name: 'Composite', class_name: 'Credential', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, user_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.userName', type: { name: 'String' } }, creation_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', type: { name: 'DateTime' } }, last_modified_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', type: { name: 'DateTime' } }, description: { client_side_validation: true, required: false, serialized_name: 'properties.description', type: { name: 'String' } } } } } end end end end