# 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::Resources::Mgmt::V2018_02_01 module Models # # Resource information. # class GenericResource < Resource include MsRestAzure # @return [Plan] The plan of the resource. attr_accessor :plan # @return The resource properties. attr_accessor :properties # @return [String] The kind of the resource. attr_accessor :kind # @return [String] ID of the resource that manages this resource. attr_accessor :managed_by # @return [Sku] The SKU of the resource. attr_accessor :sku # @return [Identity] The identity of the resource. attr_accessor :identity # # Mapper for GenericResource class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'GenericResource', type: { name: 'Composite', class_name: 'GenericResource', 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' } }, location: { client_side_validation: true, required: false, serialized_name: 'location', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, plan: { client_side_validation: true, required: false, serialized_name: 'plan', type: { name: 'Composite', class_name: 'Plan' } }, properties: { client_side_validation: true, required: false, serialized_name: 'properties', type: { name: 'Object' } }, kind: { client_side_validation: true, required: false, serialized_name: 'kind', constraints: { Pattern: '^[-\w\._,\(\)]+$' }, type: { name: 'String' } }, managed_by: { client_side_validation: true, required: false, serialized_name: 'managedBy', type: { name: 'String' } }, sku: { client_side_validation: true, required: false, serialized_name: 'sku', type: { name: 'Composite', class_name: 'Sku' } }, identity: { client_side_validation: true, required: false, serialized_name: 'identity', type: { name: 'Composite', class_name: 'Identity' } } } } } end end end end