# 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::MachineLearning::Mgmt::V2017_01_01 module Models # # Instance of an Azure ML web service resource. # class WebService < Resource include MsRestAzure # @return [WebServiceProperties] Contains the property payload that # describes the web service. attr_accessor :properties # # Mapper for WebService class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'WebService', type: { name: 'Composite', class_name: 'WebService', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, location: { required: true, serialized_name: 'location', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, properties: { required: true, serialized_name: 'properties', type: { name: 'Composite', polymorphic_discriminator: 'packageType', uber_parent: 'WebServiceProperties', class_name: 'WebServiceProperties' } } } } } end end end end