# 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::Monitor::Mgmt::V2015_05_01 module Models # # An Application Insights component API Key creation request definition. # class APIKeyRequest include MsRestAzure # @return [String] The name of the API Key. attr_accessor :name # @return [Array] The read access rights of this API Key. attr_accessor :linked_read_properties # @return [Array] The write access rights of this API Key. attr_accessor :linked_write_properties # # Mapper for APIKeyRequest class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'APIKeyRequest', type: { name: 'Composite', class_name: 'APIKeyRequest', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, linked_read_properties: { client_side_validation: true, required: false, serialized_name: 'linkedReadProperties', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, linked_write_properties: { client_side_validation: true, required: false, serialized_name: 'linkedWriteProperties', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end end end end