# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Resources module Models # # Resource information. # class GenericResource < MsRestAzure::Resource include MsRestAzure include MsRest::JSONable # @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() { required: false, serialized_name: 'GenericResource', type: { name: 'Composite', class_name: 'GenericResource', 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' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { required: false, serialized_name: 'location', type: { name: 'String' } }, tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, plan: { required: false, serialized_name: 'plan', type: { name: 'Composite', class_name: 'Plan' } }, properties: { required: false, serialized_name: 'properties', type: { name: 'Object' } }, kind: { required: false, serialized_name: 'kind', constraints: { Pattern: '^[-\w\._,\(\)]+$' }, type: { name: 'String' } }, managed_by: { required: false, serialized_name: 'managedBy', type: { name: 'String' } }, sku: { required: false, serialized_name: 'sku', type: { name: 'Composite', class_name: 'Sku' } }, identity: { required: false, serialized_name: 'identity', type: { name: 'Composite', class_name: 'Identity' } } } } } end end end end