# 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::CognitiveServices::Mgmt::V2017_04_18 module Models # # The operation supported by Cognitive Services. # class OperationDisplayInfo include MsRestAzure # @return [String] The description of the operation. attr_accessor :description # @return [String] The action that users can perform, based on their # permission level. attr_accessor :operation # @return [String] Service provider: Microsoft Cognitive Services. attr_accessor :provider # @return [String] Resource on which the operation is performed. attr_accessor :resource # # Mapper for OperationDisplayInfo class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'OperationDisplayInfo', type: { name: 'Composite', class_name: 'OperationDisplayInfo', model_properties: { description: { client_side_validation: true, required: false, serialized_name: 'description', type: { name: 'String' } }, operation: { client_side_validation: true, required: false, serialized_name: 'operation', type: { name: 'String' } }, provider: { client_side_validation: true, required: false, serialized_name: 'provider', type: { name: 'String' } }, resource: { client_side_validation: true, required: false, serialized_name: 'resource', type: { name: 'String' } } } } } end end end end