Class: Azure::CostManagement::Mgmt::V2019_03_01_preview::Models::ShowbackRule
- Inherits:
-
Object
- Object
- Azure::CostManagement::Mgmt::V2019_03_01_preview::Models::ShowbackRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb
Overview
The showback rule model definition
Instance Attribute Summary collapse
-
#creation_time ⇒ DateTime
The time when the showback rule was created.
-
#deprecation_time ⇒ DateTime
The current time when showback rule was deprecate.
-
#description ⇒ String
Description of a showback rule.
-
#id ⇒ String
Rule id.
-
#modification_time ⇒ DateTime
The current status when showback rule was modified.
-
#name ⇒ String
Rule name.
-
#ruleType ⇒ String
Polymorphic Discriminator.
-
#scopes ⇒ Array<Scope>
List of authorized assigned scopes.
-
#status ⇒ ShowbackRuleStatus
Possible values include: ‘NotActive’, ‘Active’.
-
#type ⇒ String
Rule type.
-
#version ⇒ Integer
The current version of showback rule.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ShowbackRule class as Ruby Hash.
Instance Attribute Details
#creation_time ⇒ DateTime
Returns The time when the showback rule was created.
38 39 40 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 38 def creation_time @creation_time end |
#deprecation_time ⇒ DateTime
Returns The current time when showback rule was deprecate.
41 42 43 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 41 def deprecation_time @deprecation_time end |
#description ⇒ String
Returns Description of a showback rule.
25 26 27 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 25 def description @description end |
#id ⇒ String
Returns Rule id.
16 17 18 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 16 def id @id end |
#modification_time ⇒ DateTime
Returns The current status when showback rule was modified.
44 45 46 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 44 def modification_time @modification_time end |
#name ⇒ String
Returns Rule name.
19 20 21 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 19 def name @name end |
#ruleType ⇒ String
Returns Polymorphic Discriminator.
47 48 49 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 47 def ruleType @ruleType end |
#scopes ⇒ Array<Scope>
Returns List of authorized assigned scopes.
35 36 37 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 35 def scopes @scopes end |
#status ⇒ ShowbackRuleStatus
Possible values include: ‘NotActive’, ‘Active’
29 30 31 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 29 def status @status end |
#type ⇒ String
Returns Rule type.
22 23 24 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 22 def type @type end |
#version ⇒ Integer
Returns The current version of showback rule.
32 33 34 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 32 def version @version end |
Class Method Details
.mapper ⇒ Object
Mapper for ShowbackRule class as Ruby Hash. This will be used for serialization/deserialization.
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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 54 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ShowbackRule', type: { name: 'Composite', class_name: 'ShowbackRule', 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' } }, description: { client_side_validation: true, required: false, serialized_name: 'properties.description', type: { name: 'String' } }, status: { client_side_validation: true, required: false, serialized_name: 'properties.status', type: { name: 'String' } }, version: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.version', type: { name: 'Number' } }, scopes: { client_side_validation: true, required: false, serialized_name: 'properties.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: 'properties.creationTime', type: { name: 'DateTime' } }, deprecation_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.deprecationTime', type: { name: 'DateTime' } }, modification_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.modificationTime', type: { name: 'DateTime' } }, ruleType: { client_side_validation: true, required: true, serialized_name: 'properties.ruleType', type: { name: 'String' } } } } } end |