Class: Azure::CostManagement::Mgmt::V2019_03_01_preview::Models::ShowbackRule

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

Class Method Summary collapse

Instance Attribute Details

#creation_timeDateTime

Returns The time when the showback rule was created.

Returns:

  • (DateTime)

    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_timeDateTime

Returns The current time when showback rule was deprecate.

Returns:

  • (DateTime)

    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

#descriptionString

Returns Description of a showback rule.

Returns:

  • (String)

    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

#idString

Returns Rule id.

Returns:

  • (String)

    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_timeDateTime

Returns The current status when showback rule was modified.

Returns:

  • (DateTime)

    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

#nameString

Returns Rule name.

Returns:

  • (String)

    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

#ruleTypeString

Returns Polymorphic Discriminator.

Returns:

  • (String)

    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

#scopesArray<Scope>

Returns List of authorized assigned scopes.

Returns:

  • (Array<Scope>)

    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

#statusShowbackRuleStatus

Possible values include: ‘NotActive’, ‘Active’

Returns:



29
30
31
# File 'lib/2019-03-01-preview/generated/azure_mgmt_cost_management/models/showback_rule.rb', line 29

def status
  @status
end

#typeString

Returns Rule type.

Returns:

  • (String)

    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

#versionInteger

Returns The current version of showback rule.

Returns:

  • (Integer)

    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

.mapperObject

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