late-sdk 0.0.963 → 0.0.964

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bdb432b665167d3bf8922d2b990c81caa705a5cc1f6de329f34c45e83b7ae2c
4
- data.tar.gz: b5fc371b5d561608b329a17c7c8e34efa12ad8fb91ef399d40dcda5a75fe74c6
3
+ metadata.gz: a75ef8eabe31d98cd319468f35de8ee20fa3ab1d7be5c798baa267a7bf32837a
4
+ data.tar.gz: 57def36c6288c961851838c43dd2508aa94376a9f5c86f5f4fbb5fce9052f3e6
5
5
  SHA512:
6
- metadata.gz: 27314579b19c0ab4eb517078410f4e7e6f97ad2d2d3e2faf1a3b53ab8a6f8de3cc57ec3fc63a5294c756c3414501a9a3f66f53a4c4699c24c5e0c9cc3cebc1e5
7
- data.tar.gz: 9e8604533cc8455719850d709084c9ef149af4a888ab454ecae1637249afe1ce1ac28f8c22a8a01f6fed2ec3fde4d2f0504137e09f4c0ef6b358b5623af66d22
6
+ metadata.gz: 022d9b73c2e9636f7838f5a6064037d742423a4ed2682a07c7279c9ed4b67322adc53e32841c6d9e8857e68cdd156f9281f3ef4eeee7463cff0298da7f84aaa0
7
+ data.tar.gz: 37c2d95fb20a096636e4991df7f7d337200ad6ea57fcc6cf960b11c298b6bf490e35d9578b250d4538c1f80e9ad64f52c9fb137a15ef2e1406c92406d77eabd3
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **quota_exhausted** | **Boolean** | Google Ads 429 only. True when the upstream Google Ads quota is spent rather than a Zernio limit. | [optional] |
8
8
  | **quota_scope** | **String** | Google Ads 429 only, when Google names the scope. DEVELOPER is the shared developer-token budget; ACCOUNT is your ad account. | [optional] |
9
+ | **budget_scope** | **String** | Zernio Google Ads operations-budget 429 only (never set alongside `quotaExhausted`). `user` is your own burst/daily allowance; `platform` is the fleet-wide daily budget shared across customers. | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'zernio-sdk'
14
15
 
15
16
  instance = Zernio::ErrorResponseDetails.new(
16
17
  quota_exhausted: null,
17
- quota_scope: null
18
+ quota_scope: null,
19
+ budget_scope: null
18
20
  )
19
21
  ```
20
22
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Zernio
17
- # Additional structured context (e.g. field-level validation errors), for example `privateReplyConsumed` on the private-reply endpoint's 400 when the comment's single reply is already spent. On a Google Ads 429 it carries `quotaExhausted: true`, which marks the failure as Google's own ads quota rather than a Zernio rate limit, so you can keep calling other platforms instead of backing off everywhere. When Google names the scope it also carries `quotaScope`: `DEVELOPER` means the shared developer-token budget (every Google account is affected and there is nothing to change on your side), `ACCOUNT` means your own ad account. A Meta 429 carries neither field.
17
+ # Additional structured context (e.g. field-level validation errors), for example `privateReplyConsumed` on the private-reply endpoint's 400 when the comment's single reply is already spent. On a Google Ads 429 it carries `quotaExhausted: true`, which marks the failure as Google's own ads quota rather than a Zernio rate limit, so you can keep calling other platforms instead of backing off everywhere. When Google names the scope it also carries `quotaScope`: `DEVELOPER` means the shared developer-token budget (every Google account is affected and there is nothing to change on your side), `ACCOUNT` means your own ad account. A Meta 429 carries neither field. A Zernio Google Ads budget 429 carries `budgetScope` instead, and never `quotaExhausted`: these are Zernio's own limits, applied before the call reaches Google. `user` is your own burst or daily allowance, so the work is yours to reschedule; `platform` is the fleet-wide daily budget shared with every other customer, so only waiting for the reset clears it. The two scopes are separate axes from `quotaScope`, not the same pool named twice.
18
18
  class ErrorResponseDetails < ApiModelBase
19
19
  # Google Ads 429 only. True when the upstream Google Ads quota is spent rather than a Zernio limit.
20
20
  attr_accessor :quota_exhausted
@@ -22,6 +22,9 @@ module Zernio
22
22
  # Google Ads 429 only, when Google names the scope. DEVELOPER is the shared developer-token budget; ACCOUNT is your ad account.
23
23
  attr_accessor :quota_scope
24
24
 
25
+ # Zernio Google Ads operations-budget 429 only (never set alongside `quotaExhausted`). `user` is your own burst/daily allowance; `platform` is the fleet-wide daily budget shared across customers.
26
+ attr_accessor :budget_scope
27
+
25
28
  class EnumAttributeValidator
26
29
  attr_reader :datatype
27
30
  attr_reader :allowable_values
@@ -48,7 +51,8 @@ module Zernio
48
51
  def self.attribute_map
49
52
  {
50
53
  :'quota_exhausted' => :'quotaExhausted',
51
- :'quota_scope' => :'quotaScope'
54
+ :'quota_scope' => :'quotaScope',
55
+ :'budget_scope' => :'budgetScope'
52
56
  }
53
57
  end
54
58
 
@@ -66,7 +70,8 @@ module Zernio
66
70
  def self.openapi_types
67
71
  {
68
72
  :'quota_exhausted' => :'Boolean',
69
- :'quota_scope' => :'String'
73
+ :'quota_scope' => :'String',
74
+ :'budget_scope' => :'String'
70
75
  }
71
76
  end
72
77
 
@@ -99,6 +104,10 @@ module Zernio
99
104
  if attributes.key?(:'quota_scope')
100
105
  self.quota_scope = attributes[:'quota_scope']
101
106
  end
107
+
108
+ if attributes.key?(:'budget_scope')
109
+ self.budget_scope = attributes[:'budget_scope']
110
+ end
102
111
  end
103
112
 
104
113
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,6 +124,8 @@ module Zernio
115
124
  warn '[DEPRECATED] the `valid?` method is obsolete'
116
125
  quota_scope_validator = EnumAttributeValidator.new('String', ["DEVELOPER", "ACCOUNT"])
117
126
  return false unless quota_scope_validator.valid?(@quota_scope)
127
+ budget_scope_validator = EnumAttributeValidator.new('String', ["user", "platform"])
128
+ return false unless budget_scope_validator.valid?(@budget_scope)
118
129
  true
119
130
  end
120
131
 
@@ -128,13 +139,24 @@ module Zernio
128
139
  @quota_scope = quota_scope
129
140
  end
130
141
 
142
+ # Custom attribute writer method checking allowed values (enum).
143
+ # @param [Object] budget_scope Object to be assigned
144
+ def budget_scope=(budget_scope)
145
+ validator = EnumAttributeValidator.new('String', ["user", "platform"])
146
+ unless validator.valid?(budget_scope)
147
+ fail ArgumentError, "invalid value for \"budget_scope\", must be one of #{validator.allowable_values}."
148
+ end
149
+ @budget_scope = budget_scope
150
+ end
151
+
131
152
  # Checks equality by comparing each attribute.
132
153
  # @param [Object] Object to be compared
133
154
  def ==(o)
134
155
  return true if self.equal?(o)
135
156
  self.class == o.class &&
136
157
  quota_exhausted == o.quota_exhausted &&
137
- quota_scope == o.quota_scope
158
+ quota_scope == o.quota_scope &&
159
+ budget_scope == o.budget_scope
138
160
  end
139
161
 
140
162
  # @see the `==` method
@@ -146,7 +168,7 @@ module Zernio
146
168
  # Calculates hash code according to all attributes.
147
169
  # @return [Integer] Hash code
148
170
  def hash
149
- [quota_exhausted, quota_scope].hash
171
+ [quota_exhausted, quota_scope, budget_scope].hash
150
172
  end
151
173
 
152
174
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.963'
14
+ VERSION = '0.0.964'
15
15
  end
data/openapi.yaml CHANGED
@@ -1844,6 +1844,13 @@ components:
1844
1844
  also carries `quotaScope`: `DEVELOPER` means the shared developer-token budget
1845
1845
  (every Google account is affected and there is nothing to change on your side),
1846
1846
  `ACCOUNT` means your own ad account. A Meta 429 carries neither field.
1847
+
1848
+ A Zernio Google Ads budget 429 carries `budgetScope` instead, and never
1849
+ `quotaExhausted`: these are Zernio's own limits, applied before the call
1850
+ reaches Google. `user` is your own burst or daily allowance, so the work is
1851
+ yours to reschedule; `platform` is the fleet-wide daily budget shared with
1852
+ every other customer, so only waiting for the reset clears it. The two
1853
+ scopes are separate axes from `quotaScope`, not the same pool named twice.
1847
1854
  properties:
1848
1855
  quotaExhausted:
1849
1856
  type: boolean
@@ -1852,6 +1859,10 @@ components:
1852
1859
  type: string
1853
1860
  enum: [DEVELOPER, ACCOUNT]
1854
1861
  description: 'Google Ads 429 only, when Google names the scope. DEVELOPER is the shared developer-token budget; ACCOUNT is your ad account.'
1862
+ budgetScope:
1863
+ type: string
1864
+ enum: [user, platform]
1865
+ description: "Zernio Google Ads operations-budget 429 only (never set alongside `quotaExhausted`). `user` is your own burst/daily allowance; `platform` is the fleet-wide daily budget shared across customers."
1855
1866
  CommentAutomationAudience:
1856
1867
  type: object
1857
1868
  description: |
@@ -43,4 +43,14 @@ describe Zernio::ErrorResponseDetails do
43
43
  end
44
44
  end
45
45
 
46
+ describe 'test attribute "budget_scope"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user", "platform"])
50
+ # validator.allowable_values.each do |value|
51
+ # expect { instance.budget_scope = value }.not_to raise_error
52
+ # end
53
+ end
54
+ end
55
+
46
56
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.963
4
+ version: 0.0.964
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -6487,7 +6487,7 @@ files:
6487
6487
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
6488
6488
  - spec/models/you_tube_video_retention_response_spec.rb
6489
6489
  - spec/spec_helper.rb
6490
- - zernio-sdk-0.0.963.gem
6490
+ - zernio-sdk-0.0.964.gem
6491
6491
  - zernio-sdk.gemspec
6492
6492
  homepage: https://openapi-generator.tech
6493
6493
  licenses:
Binary file