@@ -37,19 +37,24 @@ class ConsumptionResult
3737 # Amount of MBs processed
3838 attr_accessor :quantity
3939
40+ # Billed API calls number
41+ attr_accessor :billed_api_calls
42+
4043 # Attribute mapping from ruby-style variable name to JSON key.
4144 def self . attribute_map
4245 {
4346 :'credit' => :'Credit' ,
44- :'quantity' => :'Quantity'
47+ :'quantity' => :'Quantity' ,
48+ :'billed_api_calls' => :'BilledApiCalls'
4549 }
4650 end
4751
4852 # Attribute type mapping.
4953 def self . swagger_types
5054 {
5155 :'credit' => :'Float' ,
52- :'quantity' => :'Float'
56+ :'quantity' => :'Float' ,
57+ :'billed_api_calls' => :'Float'
5358 }
5459 end
5560
@@ -69,6 +74,10 @@ def initialize(attributes = {})
6974 self . quantity = attributes [ :'Quantity' ]
7075 end
7176
77+ if attributes . key? ( :'BilledApiCalls' )
78+ self . billed_api_calls = attributes [ :'BilledApiCalls' ]
79+ end
80+
7281 end
7382
7483 # Show invalid properties with the reasons. Usually used together with valid?
@@ -83,6 +92,10 @@ def list_invalid_properties
8392 invalid_properties . push ( "invalid value for 'quantity', quantity cannot be nil." )
8493 end
8594
95+ if @billed_api_calls . nil?
96+ invalid_properties . push ( "invalid value for 'billed_api_calls', billed_api_calls cannot be nil." )
97+ end
98+
8699 return invalid_properties
87100 end
88101
@@ -91,6 +104,7 @@ def list_invalid_properties
91104 def valid?
92105 return false if @credit . nil?
93106 return false if @quantity . nil?
107+ return false if @billed_api_calls . nil?
94108 return true
95109 end
96110
@@ -100,7 +114,8 @@ def ==(other)
100114 return true if self . equal? ( other )
101115 self . class == other . class &&
102116 credit == other . credit &&
103- quantity == other . quantity
117+ quantity == other . quantity &&
118+ billed_api_calls == other . billed_api_calls
104119 end
105120
106121 # @see the `==` method
@@ -112,7 +127,7 @@ def eql?(other)
112127 # Calculates hash code according to all attributes.
113128 # @return [Fixnum] Hash code
114129 def hash
115- [ credit , quantity ] . hash
130+ [ credit , quantity , billed_api_calls ] . hash
116131 end
117132
118133 # Downcases first letter.
0 commit comments