Class: Azure::CostManagement::Mgmt::V2019_03_01_preview::Models::CostAllocationDetailsKind
- Inherits:
-
ShowbackRuleProperties
- Object
- ShowbackRuleProperties
- Azure::CostManagement::Mgmt::V2019_03_01_preview::Models::CostAllocationDetailsKind
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/cost_allocation_details_kind.rb
Overview
Represents CostAllocation showback rule model
Instance Attribute Summary collapse
-
#policy ⇒ CostAllocationPolicy
include: ‘Proportional’, ‘Evenly’, ‘Fixed’.
-
#ruleType ⇒ Object
Returns the value of attribute ruleType.
Attributes inherited from ShowbackRuleProperties
#creation_time, #deprecation_time, #description, #modification_time, #scopes, #status, #version
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CostAllocationDetailsKind class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ CostAllocationDetailsKind
constructor
A new instance of CostAllocationDetailsKind.
Constructor Details
#initialize ⇒ CostAllocationDetailsKind
Returns a new instance of CostAllocationDetailsKind.
16 17 18 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/cost_allocation_details_kind.rb', line 16 def initialize @ruleType = "CostAllocation" end |
Instance Attribute Details
#policy ⇒ CostAllocationPolicy
include: ‘Proportional’, ‘Evenly’, ‘Fixed’
24 25 26 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/cost_allocation_details_kind.rb', line 24 def policy @policy end |
#ruleType ⇒ Object
Returns the value of attribute ruleType.
20 21 22 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/cost_allocation_details_kind.rb', line 20 def ruleType @ruleType end |
Class Method Details
.mapper ⇒ Object
Mapper for CostAllocationDetailsKind class as Ruby Hash. This will be used for serialization/deserialization.
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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/cost_allocation_details_kind.rb', line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CostAllocation', type: { name: 'Composite', class_name: 'CostAllocationDetailsKind', model_properties: { description: { client_side_validation: true, required: false, serialized_name: 'description', type: { name: 'String' } }, status: { client_side_validation: true, required: false, serialized_name: 'status', type: { name: 'String' } }, version: { client_side_validation: true, required: false, read_only: true, serialized_name: 'version', type: { name: 'Number' } }, scopes: { client_side_validation: true, required: false, serialized_name: 'scopes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ScopeElementType', type: { name: 'Composite', class_name: 'Scope' } } } }, creation_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'creationTime', type: { name: 'DateTime' } }, deprecation_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'deprecationTime', type: { name: 'DateTime' } }, modification_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'modificationTime', type: { name: 'DateTime' } }, ruleType: { client_side_validation: true, required: true, serialized_name: 'ruleType', type: { name: 'String' } }, policy: { client_side_validation: true, required: false, serialized_name: 'details.policy', type: { name: 'String' } } } } } end |