Class: Azure::ARM::Resources::Models::TargetResource
- Inherits:
-
Object
- Object
- Azure::ARM::Resources::Models::TargetResource
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_resources/models/target_resource.rb
Overview
Target resource.
Instance Attribute Summary collapse
-
#id ⇒ String
The ID of the resource.
-
#resource_name ⇒ String
The name of the resource.
-
#resource_type ⇒ String
The type of the resource.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for TargetResource class as Ruby Hash.
Instance Attribute Details
#id ⇒ String
Returns The ID of the resource.
16 17 18 |
# File 'lib/generated/azure_mgmt_resources/models/target_resource.rb', line 16 def id @id end |
#resource_name ⇒ String
Returns The name of the resource.
19 20 21 |
# File 'lib/generated/azure_mgmt_resources/models/target_resource.rb', line 19 def resource_name @resource_name end |
#resource_type ⇒ String
Returns The type of the resource.
22 23 24 |
# File 'lib/generated/azure_mgmt_resources/models/target_resource.rb', line 22 def resource_type @resource_type end |
Class Method Details
.mapper ⇒ Object
Mapper for TargetResource class as Ruby Hash. This will be used for serialization/deserialization.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/generated/azure_mgmt_resources/models/target_resource.rb', line 29 def self.mapper() { required: false, serialized_name: 'TargetResource', type: { name: 'Composite', class_name: 'TargetResource', model_properties: { id: { required: false, serialized_name: 'id', type: { name: 'String' } }, resource_name: { required: false, serialized_name: 'resourceName', type: { name: 'String' } }, resource_type: { required: false, serialized_name: 'resourceType', type: { name: 'String' } } } } } end |