class Azure::Monitor::Mgmt::V2020_10_01::Models::AzureResource
An Azure
resource object.
Attributes
id[RW]
@return [String] The resource Id.
location[RW]
@return [String] The location of the resource. Since Azure
Activity Log Alerts is a global service, the location of the rules should always be 'global'. Default value: 'global' .
name[RW]
@return [String] The name of the resource.
type[RW]
@return [String] The type of the resource.
Private Class Methods
mapper()
click to toggle source
Mapper for AzureResource
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-10-01/generated/azure_mgmt_monitor/models/azure_resource.rb, line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AzureResource', type: { name: 'Composite', class_name: 'AzureResource', 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', default_value: 'global', 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' } } } } } } } end