Class: Azure::CostManagement::Mgmt::V2019_03_01_preview::Models::ShowbackRuleProperties

Inherits:
Object
  • Object
show all
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.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeShowbackRuleProperties

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_timeDateTime

Returns The time when the showback rule was created.

Returns:

  • (DateTime)

    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_timeDateTime

Returns The current time when showback rule was deprecate.

Returns:

  • (DateTime)

    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

#descriptionString

Returns Description of a showback rule.

Returns:

  • (String)

    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_timeDateTime

Returns The current status when showback rule was modified.

Returns:

  • (DateTime)

    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

#ruleTypeObject

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

#scopesArray<Scope>

Returns List of authorized assigned scopes.

Returns:

  • (Array<Scope>)

    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

#statusShowbackRuleStatus

Possible values include: ‘NotActive’, ‘Active’

Returns:



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

#versionInteger

Returns The current version of showback rule.

Returns:

  • (Integer)

    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

.mapperObject

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