Debian Codegraph @

docs/dyn/cloudchannel_v1.accounts.offers.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="cloudchannel_v1.html">Cloud Channel API</a> . <a href="cloudchannel_v1.accounts.html">accounts</a> . <a href="cloudchannel_v1.accounts.offers.html">offers</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#list">list(parent, filter=None, languageCode=None, pageSize=None, pageToken=None, showFutureOffers=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Lists the Offers the reseller can sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.</p>
83 <p class="toc_element">
84 <code><a href="#list_next">list_next()</a></code></p>
85 <p class="firstline">Retrieves the next page of results.</p>
86 <h3>Method Details</h3>
87 <div class="method">
88 <code class="details" id="close">close()</code>
89 <pre>Close httplib2 connections.</pre>
90 </div>
91
92 <div class="method">
93 <code class="details" id="list">list(parent, filter=None, languageCode=None, pageSize=None, pageToken=None, showFutureOffers=None, x__xgafv=None)</code>
94 <pre>Lists the Offers the reseller can sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.
95
96 Args:
97 parent: string, Required. The resource name of the reseller account from which to list Offers. Parent uses the format: accounts/{account_id}. (required)
98 filter: string, Optional. The expression to filter results by name (name of the Offer), sku.name (name of the SKU), or sku.product.name (name of the Product). Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1 Example 2: name=accounts/a1/offers/o1
99 languageCode: string, Optional. The BCP-47 language code. For example, &quot;en-US&quot;. The response will localize in the corresponding language code, if specified. The default value is &quot;en-US&quot;.
100 pageSize: integer, Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 500 Offers. The maximum value is 1000; the server will coerce values above 1000.
101 pageToken: string, Optional. A token for a page of results other than the first page.
102 showFutureOffers: boolean, Optional. A boolean flag that determines if a response returns future offers 30 days from now. If the show_future_offers is true, the response will only contain offers that are scheduled to be available 30 days from now.
103 x__xgafv: string, V1 error format.
104 Allowed values
105 1 - v1 error format
106 2 - v2 error format
107
108 Returns:
109 An object of the form:
110
111 { # Response message for ListOffers.
112 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results.
113 &quot;offers&quot;: [ # The list of Offers requested. The pricing information for each Offer only includes the base price. Effective prices and discounts aren&#x27;t populated.
114 { # Represents an offer made to resellers for purchase. An offer is associated with a Sku, has a plan for payment, a price, and defines the constraints for buying.
115 &quot;constraints&quot;: { # Represents the constraints for buying the Offer. # Constraints on transacting the Offer.
116 &quot;customerConstraints&quot;: { # Represents constraints required to purchase the Offer for a customer. # Represents constraints required to purchase the Offer for a customer.
117 &quot;allowedCustomerTypes&quot;: [ # Allowed Customer Type.
118 &quot;A String&quot;,
119 ],
120 &quot;allowedRegions&quot;: [ # Allowed geographical regions of the customer.
121 &quot;A String&quot;,
122 ],
123 &quot;promotionalOrderTypes&quot;: [ # Allowed Promotional Order Type. Present for Promotional offers.
124 &quot;A String&quot;,
125 ],
126 },
127 },
128 &quot;dealCode&quot;: &quot;A String&quot;, # The deal code of the offer to get a special promotion or discount.
129 &quot;endTime&quot;: &quot;A String&quot;, # Output only. End of the Offer validity time.
130 &quot;marketingInfo&quot;: { # Represents the marketing information for a Product, SKU or Offer. # Marketing information for the Offer.
131 &quot;defaultLogo&quot;: { # Represents media information. # Default logo.
132 &quot;content&quot;: &quot;A String&quot;, # URL of the media.
133 &quot;title&quot;: &quot;A String&quot;, # Title of the media.
134 &quot;type&quot;: &quot;A String&quot;, # Type of the media.
135 },
136 &quot;description&quot;: &quot;A String&quot;, # Human readable description. Description can contain HTML.
137 &quot;displayName&quot;: &quot;A String&quot;, # Human readable name.
138 },
139 &quot;name&quot;: &quot;A String&quot;, # Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
140 &quot;parameterDefinitions&quot;: [ # Parameters required to use current Offer to purchase.
141 { # Parameter&#x27;s definition. Specifies what parameter is required to use the current Offer to purchase.
142 &quot;allowedValues&quot;: [ # If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type.
143 { # Data type and value of a parameter.
144 &quot;boolValue&quot;: True or False, # Represents a boolean value.
145 &quot;doubleValue&quot;: 3.14, # Represents a double value.
146 &quot;int64Value&quot;: &quot;A String&quot;, # Represents an int64 value.
147 &quot;protoValue&quot;: { # Represents an &#x27;Any&#x27; proto value.
148 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
149 },
150 &quot;stringValue&quot;: &quot;A String&quot;, # Represents a string value.
151 },
152 ],
153 &quot;maxValue&quot;: { # Data type and value of a parameter. # Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter types.
154 &quot;boolValue&quot;: True or False, # Represents a boolean value.
155 &quot;doubleValue&quot;: 3.14, # Represents a double value.
156 &quot;int64Value&quot;: &quot;A String&quot;, # Represents an int64 value.
157 &quot;protoValue&quot;: { # Represents an &#x27;Any&#x27; proto value.
158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159 },
160 &quot;stringValue&quot;: &quot;A String&quot;, # Represents a string value.
161 },
162 &quot;minValue&quot;: { # Data type and value of a parameter. # Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types.
163 &quot;boolValue&quot;: True or False, # Represents a boolean value.
164 &quot;doubleValue&quot;: 3.14, # Represents a double value.
165 &quot;int64Value&quot;: &quot;A String&quot;, # Represents an int64 value.
166 &quot;protoValue&quot;: { # Represents an &#x27;Any&#x27; proto value.
167 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
168 },
169 &quot;stringValue&quot;: &quot;A String&quot;, # Represents a string value.
170 },
171 &quot;name&quot;: &quot;A String&quot;, # Name of the parameter.
172 &quot;optional&quot;: True or False, # If set to true, parameter is optional to purchase this Offer.
173 &quot;parameterType&quot;: &quot;A String&quot;, # Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here.
174 },
175 ],
176 &quot;plan&quot;: { # The payment plan for the Offer. Describes how to make a payment. # Describes the payment plan for the Offer.
177 &quot;billingAccount&quot;: &quot;A String&quot;, # Reseller Billing account to charge after an offer transaction. Only present for Google Cloud offers.
178 &quot;paymentCycle&quot;: { # Represents period in days/months/years. # Describes how frequently the reseller will be billed, such as once per month.
179 &quot;duration&quot;: 42, # Total duration of Period Type defined.
180 &quot;periodType&quot;: &quot;A String&quot;, # Period Type.
181 },
182 &quot;paymentPlan&quot;: &quot;A String&quot;, # Describes how a reseller will be billed.
183 &quot;paymentType&quot;: &quot;A String&quot;, # Specifies when the payment needs to happen.
184 &quot;trialPeriod&quot;: { # Represents period in days/months/years. # Present for Offers with a trial period. For trial-only Offers, a paid service needs to start before the trial period ends for continued service. For Regular Offers with a trial period, the regular pricing goes into effect when trial period ends, or if paid service is started before the end of the trial period.
185 &quot;duration&quot;: 42, # Total duration of Period Type defined.
186 &quot;periodType&quot;: &quot;A String&quot;, # Period Type.
187 },
188 },
189 &quot;priceByResources&quot;: [ # Price for each monetizable resource type.
190 { # Represents price by resource type.
191 &quot;price&quot;: { # Represents the price of the Offer. # Price of the Offer. Present if there are no price phases.
192 &quot;basePrice&quot;: { # Represents an amount of money with its currency type. # Base price.
193 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
194 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
195 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
196 },
197 &quot;discount&quot;: 3.14, # Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
198 &quot;discountComponents&quot;: [ # Breakdown of the discount into its components. This will be empty if there is no discount present.
199 { # Represents a single component of the total discount applicable on a Price.
200 &quot;discountAbsolute&quot;: { # Represents an amount of money with its currency type. # Fixed value discount.
201 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
202 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
203 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
204 },
205 &quot;discountPercentage&quot;: 3.14, # Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
206 &quot;discountType&quot;: &quot;A String&quot;, # Type of the discount.
207 },
208 ],
209 &quot;effectivePrice&quot;: { # Represents an amount of money with its currency type. # Effective Price after applying the discounts.
210 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
211 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
212 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
213 },
214 &quot;externalPriceUri&quot;: &quot;A String&quot;, # Link to external price list, such as link to Google Voice rate card.
215 &quot;pricePeriod&quot;: { # Represents period in days/months/years. # The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
216 &quot;duration&quot;: 42, # Total duration of Period Type defined.
217 &quot;periodType&quot;: &quot;A String&quot;, # Period Type.
218 },
219 },
220 &quot;pricePhases&quot;: [ # Specifies the price by time range.
221 { # Specifies the price by the duration of months. For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.
222 &quot;firstPeriod&quot;: 42, # Defines first period for the phase.
223 &quot;lastPeriod&quot;: 42, # Defines first period for the phase.
224 &quot;periodType&quot;: &quot;A String&quot;, # Defines the phase period type.
225 &quot;price&quot;: { # Represents the price of the Offer. # Price of the phase. Present if there are no price tiers.
226 &quot;basePrice&quot;: { # Represents an amount of money with its currency type. # Base price.
227 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
228 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
229 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
230 },
231 &quot;discount&quot;: 3.14, # Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
232 &quot;discountComponents&quot;: [ # Breakdown of the discount into its components. This will be empty if there is no discount present.
233 { # Represents a single component of the total discount applicable on a Price.
234 &quot;discountAbsolute&quot;: { # Represents an amount of money with its currency type. # Fixed value discount.
235 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
236 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
237 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
238 },
239 &quot;discountPercentage&quot;: 3.14, # Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
240 &quot;discountType&quot;: &quot;A String&quot;, # Type of the discount.
241 },
242 ],
243 &quot;effectivePrice&quot;: { # Represents an amount of money with its currency type. # Effective Price after applying the discounts.
244 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
245 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
246 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
247 },
248 &quot;externalPriceUri&quot;: &quot;A String&quot;, # Link to external price list, such as link to Google Voice rate card.
249 &quot;pricePeriod&quot;: { # Represents period in days/months/years. # The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
250 &quot;duration&quot;: 42, # Total duration of Period Type defined.
251 &quot;periodType&quot;: &quot;A String&quot;, # Period Type.
252 },
253 },
254 &quot;priceTiers&quot;: [ # Price by the resource tiers.
255 { # Defines price at resource tier level. For example, an offer with following definition : * Tier 1: Provide 25% discount for all seats between 1 and 25. * Tier 2: Provide 10% discount for all seats between 26 and 100. * Tier 3: Provide flat 15% discount for all seats above 100. Each of these tiers is represented as a PriceTier.
256 &quot;firstResource&quot;: 42, # First resource for which the tier price applies.
257 &quot;lastResource&quot;: 42, # Last resource for which the tier price applies.
258 &quot;price&quot;: { # Represents the price of the Offer. # Price of the tier.
259 &quot;basePrice&quot;: { # Represents an amount of money with its currency type. # Base price.
260 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
261 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
262 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
263 },
264 &quot;discount&quot;: 3.14, # Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
265 &quot;discountComponents&quot;: [ # Breakdown of the discount into its components. This will be empty if there is no discount present.
266 { # Represents a single component of the total discount applicable on a Price.
267 &quot;discountAbsolute&quot;: { # Represents an amount of money with its currency type. # Fixed value discount.
268 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
269 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
270 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
271 },
272 &quot;discountPercentage&quot;: 3.14, # Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
273 &quot;discountType&quot;: &quot;A String&quot;, # Type of the discount.
274 },
275 ],
276 &quot;effectivePrice&quot;: { # Represents an amount of money with its currency type. # Effective Price after applying the discounts.
277 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
278 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
279 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
280 },
281 &quot;externalPriceUri&quot;: &quot;A String&quot;, # Link to external price list, such as link to Google Voice rate card.
282 &quot;pricePeriod&quot;: { # Represents period in days/months/years. # The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
283 &quot;duration&quot;: 42, # Total duration of Period Type defined.
284 &quot;periodType&quot;: &quot;A String&quot;, # Period Type.
285 },
286 },
287 },
288 ],
289 },
290 ],
291 &quot;resourceType&quot;: &quot;A String&quot;, # Resource Type. Example: SEAT
292 },
293 ],
294 &quot;sku&quot;: { # Represents a product&#x27;s purchasable Stock Keeping Unit (SKU). SKUs represent the different variations of the product. For example, Google Workspace Business Standard and Google Workspace Business Plus are Google Workspace product SKUs. # SKU the offer is associated with.
295 &quot;marketingInfo&quot;: { # Represents the marketing information for a Product, SKU or Offer. # Marketing information for the SKU.
296 &quot;defaultLogo&quot;: { # Represents media information. # Default logo.
297 &quot;content&quot;: &quot;A String&quot;, # URL of the media.
298 &quot;title&quot;: &quot;A String&quot;, # Title of the media.
299 &quot;type&quot;: &quot;A String&quot;, # Type of the media.
300 },
301 &quot;description&quot;: &quot;A String&quot;, # Human readable description. Description can contain HTML.
302 &quot;displayName&quot;: &quot;A String&quot;, # Human readable name.
303 },
304 &quot;name&quot;: &quot;A String&quot;, # Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id}
305 &quot;product&quot;: { # A Product is the entity a customer uses when placing an order. For example, Google Workspace, Google Voice, etc. # Product the SKU is associated with.
306 &quot;marketingInfo&quot;: { # Represents the marketing information for a Product, SKU or Offer. # Marketing information for the product.
307 &quot;defaultLogo&quot;: { # Represents media information. # Default logo.
308 &quot;content&quot;: &quot;A String&quot;, # URL of the media.
309 &quot;title&quot;: &quot;A String&quot;, # Title of the media.
310 &quot;type&quot;: &quot;A String&quot;, # Type of the media.
311 },
312 &quot;description&quot;: &quot;A String&quot;, # Human readable description. Description can contain HTML.
313 &quot;displayName&quot;: &quot;A String&quot;, # Human readable name.
314 },
315 &quot;name&quot;: &quot;A String&quot;, # Resource Name of the Product. Format: products/{product_id}
316 },
317 },
318 &quot;startTime&quot;: &quot;A String&quot;, # Start of the Offer validity time.
319 },
320 ],
321 }</pre>
322 </div>
323
324 <div class="method">
325 <code class="details" id="list_next">list_next()</code>
326 <pre>Retrieves the next page of results.
327
328 Args:
329 previous_request: The request for the previous page. (required)
330 previous_response: The response from the request for the previous page. (required)
331
332 Returns:
333 A request object that you can call &#x27;execute()&#x27; on to request the next
334 page. Returns None if there are no more items in the collection.
335 </pre>
336 </div>
337
338 </body></html>