Class: Azure::CostManagement::Mgmt::V2019_03_01_preview::Models::ShowbackRuleProperties
- Inherits:
-
Object
- Object
- Azure::CostManagement::Mgmt::V2019_03_01_preview::Models::ShowbackRuleProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb
Overview
The properties of a showback rule.
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
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.
-
#modification_time ⇒ DateTime
The current status when showback rule was modified.
-
#ruleType ⇒ Object
Returns the value of attribute ruleType.
-
#scopes ⇒ Array<Scope>
List of authorized assigned scopes.
-
#status ⇒ ShowbackRuleStatus
Possible values include: ‘NotActive’, ‘Active’.
-
#version ⇒ Integer
The current version of showback rule.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ShowbackRuleProperties class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ShowbackRuleProperties
constructor
A new instance of ShowbackRuleProperties.
Constructor Details
#initialize ⇒ ShowbackRuleProperties
Returns a new instance of ShowbackRuleProperties.
19 20 21 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 19 def initialize @ruleType = "ShowbackRuleProperties" end |
Instance Attribute Details
#creation_time ⇒ DateTime
Returns The time when the showback rule was created.
39 40 41 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 39 def creation_time @creation_time end |
#deprecation_time ⇒ DateTime
Returns The current time when showback rule was deprecate.
42 43 44 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 42 def deprecation_time @deprecation_time end |
#description ⇒ String
Returns Description of a showback rule.
26 27 28 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 26 def description @description end |
#modification_time ⇒ DateTime
Returns The current status when showback rule was modified.
45 46 47 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 45 def modification_time @modification_time end |
#ruleType ⇒ Object
Returns the value of attribute ruleType.
23 24 25 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 23 def ruleType @ruleType end |
#scopes ⇒ Array<Scope>
Returns List of authorized assigned scopes.
36 37 38 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 36 def scopes @scopes end |
#status ⇒ ShowbackRuleStatus
Possible values include: ‘NotActive’, ‘Active’
30 31 32 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 30 def status @status end |
#version ⇒ Integer
Returns The current version of showback rule.
33 34 35 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 33 def version @version end |
Class Method Details
.mapper ⇒ Object
Mapper for ShowbackRuleProperties class as Ruby Hash. This will be used for serialization/deserialization.
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 129 130 131 132 133 134 135 |
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule_properties.rb', line 52 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ShowbackRuleProperties', type: { name: 'Composite', polymorphic_discriminator: 'ruleType', uber_parent: 'ShowbackRuleProperties', class_name: 'ShowbackRuleProperties', 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' } } } } } end |