File: cloudcommerceprocurement_v1.providers.entitlements.html

package info (click to toggle)
python-googleapi 2.186.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 553,432 kB
  • sloc: python: 11,087; javascript: 249; sh: 114; makefile: 59
file content (461 lines) | stat: -rw-r--r-- 63,311 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="cloudcommerceprocurement_v1.html">Cloud Commerce Partner Procurement API</a> . <a href="cloudcommerceprocurement_v1.providers.html">providers</a> . <a href="cloudcommerceprocurement_v1.providers.entitlements.html">entitlements</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#approve">approve(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Approves an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to approve the creation of the entitlement resource.</p>
<p class="toc_element">
  <code><a href="#approvePlanChange">approvePlanChange(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Approves an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to approve the plan change on the entitlement resource.</p>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets a requested Entitlement resource.</p>
<p class="toc_element">
  <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists Entitlements for which the provider has read access.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates an existing Entitlement.</p>
<p class="toc_element">
  <code><a href="#reject">reject(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Rejects an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to reject the creation of the entitlement resource.</p>
<p class="toc_element">
  <code><a href="#rejectPlanChange">rejectPlanChange(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Rejects an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to reject the plan change on the entitlement resource.</p>
<p class="toc_element">
  <code><a href="#suspend">suspend(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Requests suspension of an active Entitlement. This is not yet supported.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="approve">approve(name, body=None, x__xgafv=None)</code>
  <pre>Approves an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to approve the creation of the entitlement resource.

Args:
  name: string, Required. The resource name of the entitlement, with the format `providers/{providerId}/entitlements/{entitlementId}`. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for [PartnerProcurementService.ApproveEntitlement[].
  &quot;entitlementMigrated&quot;: &quot;A String&quot;, # Optional. The resource name of the entitlement that was migrated, with the format `providers/{provider_id}/entitlements/{entitlement_id}`. Should only be sent when resources have been migrated from entitlement_migrated to the new entitlement. Optional.
  &quot;properties&quot;: { # Set of properties that should be associated with the entitlement. Optional.
    &quot;a_key&quot;: &quot;A String&quot;,
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

<div class="method">
    <code class="details" id="approvePlanChange">approvePlanChange(name, body=None, x__xgafv=None)</code>
  <pre>Approves an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to approve the plan change on the entitlement resource.

Args:
  name: string, Required. The resource name of the entitlement. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for [PartnerProcurementService.ApproveEntitlementPlanChange[].
  &quot;pendingPlanName&quot;: &quot;A String&quot;, # Required. Name of the pending plan that&#x27;s being approved.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="get">get(name, x__xgafv=None)</code>
  <pre>Gets a requested Entitlement resource.

Args:
  name: string, Required. The name of the entitlement to retrieve. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a procured product of a customer.
  &quot;account&quot;: &quot;A String&quot;, # Output only. The resource name of the account that this entitlement is based on, if any.
  &quot;cancellationReason&quot;: &quot;A String&quot;, # Output only. The reason the entitlement was cancelled. If this entitlement wasn&#x27;t cancelled, this field is empty. Possible values include &quot;unknown&quot;, &quot;expired&quot;, &quot;user-cancelled&quot;, &quot;account-closed&quot;, &quot;billing-disabled&quot; (if the customer has manually disabled billing to their resources), &quot;user-aborted&quot;, and &quot;migrated&quot; (if the entitlement has migrated across products). Values of this field are subject to change, and we recommend that you don&#x27;t build your technical integration to rely on these fields.
  &quot;consumers&quot;: [ # Output only. The resources using this entitlement, if applicable.
    { # A resource using (consuming) this entitlement.
      &quot;project&quot;: &quot;A String&quot;, # A project name with format `projects/`.
    },
  ],
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp.
  &quot;entitlementBenefitIds&quot;: [ # Output only. The entitlement benefit IDs associated with the purchase.
    &quot;A String&quot;,
  ],
  &quot;inputProperties&quot;: { # Output only. The custom properties that were collected from the user to create this entitlement.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
  },
  &quot;messageToUser&quot;: &quot;A String&quot;, # Provider-supplied message that is displayed to the end user. Currently this is used to communicate progress and ETA for provisioning. This field can be updated only when a user is waiting for an action from the provider, i.e. entitlement state is EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED or EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL. This field is cleared automatically when the entitlement state changes.
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the entitlement. Entitlement names have the form `providers/{provider_id}/entitlements/{entitlement_id}`.
  &quot;newOfferEndTime&quot;: &quot;A String&quot;, # Output only. The end time of the new offer, determined from the offer&#x27;s specified end date. If the offer des not have a specified end date then this field is not set. This field is populated even if the entitlement isn&#x27;t active yet. If there&#x27;s no upcoming offer, the field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer has a specified end date, then this field is populated with the expected end time of the upcoming offer, in the future. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newOfferStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the new offer becomes effective. This field is populated even if the entitlement isn&#x27;t active yet. If there&#x27;s no upcoming offer, the field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, this field isn&#x27;t populated when the entitlement isn&#x27;t yet approved. After the entitlement is approved, this field is populated with the effective time of the upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, this field isn&#x27;t populated. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field isn&#x27;t populated, because the entitlement change is waiting on approval. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE, this field is populated with the expected effective time of the upcoming offer, which is in the future. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newPendingOffer&quot;: &quot;A String&quot;, # Output only. Upon a pending plan change, the name of the offer that the entitlement is switching to. Only exists if the pending plan change is moving to an offer. This field isn&#x27;t populated for entitlements which aren&#x27;t active yet. Format: &#x27;projects/{project}/services/{service}/privateOffers/{offer}&#x27; OR &#x27;projects/{project}/services/{service}/standardOffers/{offer}&#x27;, depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don&#x27;t build your integration to rely on the meaning of this {service} part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, then this field is populated with the upcoming offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this is empty.
  &quot;newPendingOfferDuration&quot;: &quot;A String&quot;, # Output only. The duration of the new offer, in ISO 8601 duration format. This field is populated for pending offer changes. It isn&#x27;t populated for entitlements which aren&#x27;t active yet. If the offer has a specified end date instead of a duration, this field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION, this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the upcoming offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newPendingPlan&quot;: &quot;A String&quot;, # Output only. The identifier of the pending new plan. Required if the product has plans and the entitlement has a pending plan change.
  &quot;offer&quot;: &quot;A String&quot;, # Output only. The name of the offer that was procured. Field is empty if order wasn&#x27;t made using an offer. Format: &#x27;projects/{project}/services/{service}/privateOffers/{offer}&#x27; OR &#x27;projects/{project}/services/{service}/standardOffers/{offer}&#x27;, depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don&#x27;t build your integration to rely on the meaning of this {service} part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, this field is populated with the upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field is populated with the current offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is populated with the latest offer that the order was associated with.
  &quot;offerDuration&quot;: &quot;A String&quot;, # Output only. The offer duration of the current offer, in ISO 8601 duration format. This is empty if the entitlement wasn&#x27;t made using an offer, or if the offer has a specified end date instead of a duration. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, and the upcoming offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the upcoming offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, and the current offer doesn&#x27;t have a specified end date, then this field contains the duration of the current offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, and the offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the latest offer that the order was associated with. Otherwise, this field is empty.
  &quot;offerEndTime&quot;: &quot;A String&quot;, # Output only. End time for the current term of the Offer associated with this entitlement. The value of this field can change naturally over time due to auto-renewal, even if the offer isn&#x27;t changed. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, then: * If the entitlement isn&#x27;t approved yet approved, and the offer has a specified end date, then this field is populated with the expected end time of the upcoming offer, in the future. Otherwise, this field is empty. * If the entitlement is approved, then this field is populated with the expected end time of the upcoming offer, in the future. This means that this field and the field offer_duration can both exist. * If the entitlement is in the state ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is populated with the expected end time of the current offer, in the future. This field&#x27;s value is set regardless of whether the offer has a specific end date or a duration. This means that this field and the field offer_duration can both exist. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE: * If the entitlement&#x27;s pricing model is usage based and the associated offer is a private offer whose term has ended, then this field reflects the ACTUAL end time of the entitlement&#x27;s associated offer (in the past), even though the entitlement associated with this private offer does not terminate at the end of that private offer&#x27;s term. * Otherwise, this is the expected end date of the current offer, in the future. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is populated with the end time, in the past, of the latest offer that the order was associated with. If the entitlement was cancelled before any offer started, then this field is empty.
  &quot;orderId&quot;: &quot;A String&quot;, # Output only. The order ID of this entitlement, without any `orders/` resource name prefix.
  &quot;plan&quot;: &quot;A String&quot;, # Output only. The identifier of the plan that was procured. Required if the product has plans.
  &quot;product&quot;: &quot;A String&quot;, # Output only. The identifier of the entity that was purchased. This may actually represent a product, quote, or offer. We strongly recommend that you use the following more explicit fields: productExternalName, quoteExternalName, or offer.
  &quot;productExternalName&quot;: &quot;A String&quot;, # Output only. The identifier of the product that was procured.
  &quot;provider&quot;: &quot;A String&quot;, # Output only. The identifier of the service provider that this entitlement was created against. Each service provider is assigned a unique provider value when they onboard with Cloud Commerce platform.
  &quot;quoteExternalName&quot;: &quot;A String&quot;, # Output only. The identifier of the quote that was used to procure. Empty if the order is not purchased using a quote.
  &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the entitlement.
  &quot;subscriptionEndTime&quot;: &quot;A String&quot;, # Output only. End time for the subscription corresponding to this entitlement.
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp.
  &quot;usageReportingId&quot;: &quot;A String&quot;, # Output only. The consumerId to use when reporting usage through the Service Control API. See the consumerId field at [Reporting Metrics](https://cloud.google.com/service-control/reporting-metrics) for more details. This field is present only if the product has usage-based billing configured.
}</pre>
</div>

<div class="method">
    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
  <pre>Lists Entitlements for which the provider has read access.

Args:
  parent: string, Required. The parent resource name. (required)
  filter: string, The filter that can be used to limit the list request. The filter is a query string that can match a selected set of attributes with string values. For example `account=E-1234-5678-ABCD-EFGH`, `state=pending_cancellation`, and `plan!=foo-plan`. Supported query attributes are * `account` * `customer_billing_account` with value in the format of: `billingAccounts/{id}` * `product_external_name` * `quote_external_name` * `offer` * `new_pending_offer` * `plan` * `newPendingPlan` or `new_pending_plan` * `state` * `services` * `consumers.project` * `change_history.new_offer` Note that the consumers and change_history.new_offer match works on repeated structures, so equality (`consumers.project=projects/123456789`) is not supported. Set membership can be expressed with the `:` operator. For example, `consumers.project:projects/123456789` finds entitlements with at least one consumer with project field equal to `projects/123456789`. `change_history.new_offer` retrieves all entitlements that were once associated or are currently active with the offer. Also note that the state name match is case-insensitive and query can omit the prefix &quot;ENTITLEMENT_&quot;. For example, `state=active` is equivalent to `state=ENTITLEMENT_ACTIVE`. If the query contains some special characters other than letters, underscore, or digits, the phrase must be quoted with double quotes. For example, `product=&quot;providerId:productId&quot;`, where the product name needs to be quoted because it contains special character colon. Queries can be combined with `AND`, `OR`, and `NOT` to form more complex queries. They can also be grouped to force a desired evaluation order. For example, `state=active AND (account=E-1234 OR account=5678) AND NOT (product=foo-product)`. Connective `AND` can be omitted between two predicates. For example `account=E-1234 state=active` is equivalent to `account=E-1234 AND state=active`.
  pageSize: integer, The maximum number of entries that are requested. The default page size is 200.
  pageToken: string, The token for fetching the next page.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for PartnerProcurementService.ListEntitlements.
  &quot;entitlements&quot;: [ # The list of entitlements in this response.
    { # Represents a procured product of a customer.
      &quot;account&quot;: &quot;A String&quot;, # Output only. The resource name of the account that this entitlement is based on, if any.
      &quot;cancellationReason&quot;: &quot;A String&quot;, # Output only. The reason the entitlement was cancelled. If this entitlement wasn&#x27;t cancelled, this field is empty. Possible values include &quot;unknown&quot;, &quot;expired&quot;, &quot;user-cancelled&quot;, &quot;account-closed&quot;, &quot;billing-disabled&quot; (if the customer has manually disabled billing to their resources), &quot;user-aborted&quot;, and &quot;migrated&quot; (if the entitlement has migrated across products). Values of this field are subject to change, and we recommend that you don&#x27;t build your technical integration to rely on these fields.
      &quot;consumers&quot;: [ # Output only. The resources using this entitlement, if applicable.
        { # A resource using (consuming) this entitlement.
          &quot;project&quot;: &quot;A String&quot;, # A project name with format `projects/`.
        },
      ],
      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp.
      &quot;entitlementBenefitIds&quot;: [ # Output only. The entitlement benefit IDs associated with the purchase.
        &quot;A String&quot;,
      ],
      &quot;inputProperties&quot;: { # Output only. The custom properties that were collected from the user to create this entitlement.
        &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
      },
      &quot;messageToUser&quot;: &quot;A String&quot;, # Provider-supplied message that is displayed to the end user. Currently this is used to communicate progress and ETA for provisioning. This field can be updated only when a user is waiting for an action from the provider, i.e. entitlement state is EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED or EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL. This field is cleared automatically when the entitlement state changes.
      &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the entitlement. Entitlement names have the form `providers/{provider_id}/entitlements/{entitlement_id}`.
      &quot;newOfferEndTime&quot;: &quot;A String&quot;, # Output only. The end time of the new offer, determined from the offer&#x27;s specified end date. If the offer des not have a specified end date then this field is not set. This field is populated even if the entitlement isn&#x27;t active yet. If there&#x27;s no upcoming offer, the field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer has a specified end date, then this field is populated with the expected end time of the upcoming offer, in the future. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
      &quot;newOfferStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the new offer becomes effective. This field is populated even if the entitlement isn&#x27;t active yet. If there&#x27;s no upcoming offer, the field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, this field isn&#x27;t populated when the entitlement isn&#x27;t yet approved. After the entitlement is approved, this field is populated with the effective time of the upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, this field isn&#x27;t populated. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field isn&#x27;t populated, because the entitlement change is waiting on approval. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE, this field is populated with the expected effective time of the upcoming offer, which is in the future. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
      &quot;newPendingOffer&quot;: &quot;A String&quot;, # Output only. Upon a pending plan change, the name of the offer that the entitlement is switching to. Only exists if the pending plan change is moving to an offer. This field isn&#x27;t populated for entitlements which aren&#x27;t active yet. Format: &#x27;projects/{project}/services/{service}/privateOffers/{offer}&#x27; OR &#x27;projects/{project}/services/{service}/standardOffers/{offer}&#x27;, depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don&#x27;t build your integration to rely on the meaning of this {service} part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, then this field is populated with the upcoming offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this is empty.
      &quot;newPendingOfferDuration&quot;: &quot;A String&quot;, # Output only. The duration of the new offer, in ISO 8601 duration format. This field is populated for pending offer changes. It isn&#x27;t populated for entitlements which aren&#x27;t active yet. If the offer has a specified end date instead of a duration, this field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION, this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the upcoming offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
      &quot;newPendingPlan&quot;: &quot;A String&quot;, # Output only. The identifier of the pending new plan. Required if the product has plans and the entitlement has a pending plan change.
      &quot;offer&quot;: &quot;A String&quot;, # Output only. The name of the offer that was procured. Field is empty if order wasn&#x27;t made using an offer. Format: &#x27;projects/{project}/services/{service}/privateOffers/{offer}&#x27; OR &#x27;projects/{project}/services/{service}/standardOffers/{offer}&#x27;, depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don&#x27;t build your integration to rely on the meaning of this {service} part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, this field is populated with the upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field is populated with the current offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is populated with the latest offer that the order was associated with.
      &quot;offerDuration&quot;: &quot;A String&quot;, # Output only. The offer duration of the current offer, in ISO 8601 duration format. This is empty if the entitlement wasn&#x27;t made using an offer, or if the offer has a specified end date instead of a duration. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, and the upcoming offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the upcoming offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, and the current offer doesn&#x27;t have a specified end date, then this field contains the duration of the current offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, and the offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the latest offer that the order was associated with. Otherwise, this field is empty.
      &quot;offerEndTime&quot;: &quot;A String&quot;, # Output only. End time for the current term of the Offer associated with this entitlement. The value of this field can change naturally over time due to auto-renewal, even if the offer isn&#x27;t changed. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, then: * If the entitlement isn&#x27;t approved yet approved, and the offer has a specified end date, then this field is populated with the expected end time of the upcoming offer, in the future. Otherwise, this field is empty. * If the entitlement is approved, then this field is populated with the expected end time of the upcoming offer, in the future. This means that this field and the field offer_duration can both exist. * If the entitlement is in the state ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is populated with the expected end time of the current offer, in the future. This field&#x27;s value is set regardless of whether the offer has a specific end date or a duration. This means that this field and the field offer_duration can both exist. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE: * If the entitlement&#x27;s pricing model is usage based and the associated offer is a private offer whose term has ended, then this field reflects the ACTUAL end time of the entitlement&#x27;s associated offer (in the past), even though the entitlement associated with this private offer does not terminate at the end of that private offer&#x27;s term. * Otherwise, this is the expected end date of the current offer, in the future. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is populated with the end time, in the past, of the latest offer that the order was associated with. If the entitlement was cancelled before any offer started, then this field is empty.
      &quot;orderId&quot;: &quot;A String&quot;, # Output only. The order ID of this entitlement, without any `orders/` resource name prefix.
      &quot;plan&quot;: &quot;A String&quot;, # Output only. The identifier of the plan that was procured. Required if the product has plans.
      &quot;product&quot;: &quot;A String&quot;, # Output only. The identifier of the entity that was purchased. This may actually represent a product, quote, or offer. We strongly recommend that you use the following more explicit fields: productExternalName, quoteExternalName, or offer.
      &quot;productExternalName&quot;: &quot;A String&quot;, # Output only. The identifier of the product that was procured.
      &quot;provider&quot;: &quot;A String&quot;, # Output only. The identifier of the service provider that this entitlement was created against. Each service provider is assigned a unique provider value when they onboard with Cloud Commerce platform.
      &quot;quoteExternalName&quot;: &quot;A String&quot;, # Output only. The identifier of the quote that was used to procure. Empty if the order is not purchased using a quote.
      &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the entitlement.
      &quot;subscriptionEndTime&quot;: &quot;A String&quot;, # Output only. End time for the subscription corresponding to this entitlement.
      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp.
      &quot;usageReportingId&quot;: &quot;A String&quot;, # Output only. The consumerId to use when reporting usage through the Service Control API. See the consumerId field at [Reporting Metrics](https://cloud.google.com/service-control/reporting-metrics) for more details. This field is present only if the product has usage-based billing configured.
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for fetching the next page.
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates an existing Entitlement.

Args:
  name: string, Required. The name of the entitlement to update. (required)
  body: object, The request body.
    The object takes the form of:

{ # Represents a procured product of a customer.
  &quot;account&quot;: &quot;A String&quot;, # Output only. The resource name of the account that this entitlement is based on, if any.
  &quot;cancellationReason&quot;: &quot;A String&quot;, # Output only. The reason the entitlement was cancelled. If this entitlement wasn&#x27;t cancelled, this field is empty. Possible values include &quot;unknown&quot;, &quot;expired&quot;, &quot;user-cancelled&quot;, &quot;account-closed&quot;, &quot;billing-disabled&quot; (if the customer has manually disabled billing to their resources), &quot;user-aborted&quot;, and &quot;migrated&quot; (if the entitlement has migrated across products). Values of this field are subject to change, and we recommend that you don&#x27;t build your technical integration to rely on these fields.
  &quot;consumers&quot;: [ # Output only. The resources using this entitlement, if applicable.
    { # A resource using (consuming) this entitlement.
      &quot;project&quot;: &quot;A String&quot;, # A project name with format `projects/`.
    },
  ],
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp.
  &quot;entitlementBenefitIds&quot;: [ # Output only. The entitlement benefit IDs associated with the purchase.
    &quot;A String&quot;,
  ],
  &quot;inputProperties&quot;: { # Output only. The custom properties that were collected from the user to create this entitlement.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
  },
  &quot;messageToUser&quot;: &quot;A String&quot;, # Provider-supplied message that is displayed to the end user. Currently this is used to communicate progress and ETA for provisioning. This field can be updated only when a user is waiting for an action from the provider, i.e. entitlement state is EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED or EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL. This field is cleared automatically when the entitlement state changes.
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the entitlement. Entitlement names have the form `providers/{provider_id}/entitlements/{entitlement_id}`.
  &quot;newOfferEndTime&quot;: &quot;A String&quot;, # Output only. The end time of the new offer, determined from the offer&#x27;s specified end date. If the offer des not have a specified end date then this field is not set. This field is populated even if the entitlement isn&#x27;t active yet. If there&#x27;s no upcoming offer, the field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer has a specified end date, then this field is populated with the expected end time of the upcoming offer, in the future. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newOfferStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the new offer becomes effective. This field is populated even if the entitlement isn&#x27;t active yet. If there&#x27;s no upcoming offer, the field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, this field isn&#x27;t populated when the entitlement isn&#x27;t yet approved. After the entitlement is approved, this field is populated with the effective time of the upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, this field isn&#x27;t populated. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field isn&#x27;t populated, because the entitlement change is waiting on approval. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE, this field is populated with the expected effective time of the upcoming offer, which is in the future. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newPendingOffer&quot;: &quot;A String&quot;, # Output only. Upon a pending plan change, the name of the offer that the entitlement is switching to. Only exists if the pending plan change is moving to an offer. This field isn&#x27;t populated for entitlements which aren&#x27;t active yet. Format: &#x27;projects/{project}/services/{service}/privateOffers/{offer}&#x27; OR &#x27;projects/{project}/services/{service}/standardOffers/{offer}&#x27;, depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don&#x27;t build your integration to rely on the meaning of this {service} part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, then this field is populated with the upcoming offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this is empty.
  &quot;newPendingOfferDuration&quot;: &quot;A String&quot;, # Output only. The duration of the new offer, in ISO 8601 duration format. This field is populated for pending offer changes. It isn&#x27;t populated for entitlements which aren&#x27;t active yet. If the offer has a specified end date instead of a duration, this field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION, this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the upcoming offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newPendingPlan&quot;: &quot;A String&quot;, # Output only. The identifier of the pending new plan. Required if the product has plans and the entitlement has a pending plan change.
  &quot;offer&quot;: &quot;A String&quot;, # Output only. The name of the offer that was procured. Field is empty if order wasn&#x27;t made using an offer. Format: &#x27;projects/{project}/services/{service}/privateOffers/{offer}&#x27; OR &#x27;projects/{project}/services/{service}/standardOffers/{offer}&#x27;, depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don&#x27;t build your integration to rely on the meaning of this {service} part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, this field is populated with the upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field is populated with the current offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is populated with the latest offer that the order was associated with.
  &quot;offerDuration&quot;: &quot;A String&quot;, # Output only. The offer duration of the current offer, in ISO 8601 duration format. This is empty if the entitlement wasn&#x27;t made using an offer, or if the offer has a specified end date instead of a duration. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, and the upcoming offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the upcoming offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, and the current offer doesn&#x27;t have a specified end date, then this field contains the duration of the current offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, and the offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the latest offer that the order was associated with. Otherwise, this field is empty.
  &quot;offerEndTime&quot;: &quot;A String&quot;, # Output only. End time for the current term of the Offer associated with this entitlement. The value of this field can change naturally over time due to auto-renewal, even if the offer isn&#x27;t changed. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, then: * If the entitlement isn&#x27;t approved yet approved, and the offer has a specified end date, then this field is populated with the expected end time of the upcoming offer, in the future. Otherwise, this field is empty. * If the entitlement is approved, then this field is populated with the expected end time of the upcoming offer, in the future. This means that this field and the field offer_duration can both exist. * If the entitlement is in the state ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is populated with the expected end time of the current offer, in the future. This field&#x27;s value is set regardless of whether the offer has a specific end date or a duration. This means that this field and the field offer_duration can both exist. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE: * If the entitlement&#x27;s pricing model is usage based and the associated offer is a private offer whose term has ended, then this field reflects the ACTUAL end time of the entitlement&#x27;s associated offer (in the past), even though the entitlement associated with this private offer does not terminate at the end of that private offer&#x27;s term. * Otherwise, this is the expected end date of the current offer, in the future. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is populated with the end time, in the past, of the latest offer that the order was associated with. If the entitlement was cancelled before any offer started, then this field is empty.
  &quot;orderId&quot;: &quot;A String&quot;, # Output only. The order ID of this entitlement, without any `orders/` resource name prefix.
  &quot;plan&quot;: &quot;A String&quot;, # Output only. The identifier of the plan that was procured. Required if the product has plans.
  &quot;product&quot;: &quot;A String&quot;, # Output only. The identifier of the entity that was purchased. This may actually represent a product, quote, or offer. We strongly recommend that you use the following more explicit fields: productExternalName, quoteExternalName, or offer.
  &quot;productExternalName&quot;: &quot;A String&quot;, # Output only. The identifier of the product that was procured.
  &quot;provider&quot;: &quot;A String&quot;, # Output only. The identifier of the service provider that this entitlement was created against. Each service provider is assigned a unique provider value when they onboard with Cloud Commerce platform.
  &quot;quoteExternalName&quot;: &quot;A String&quot;, # Output only. The identifier of the quote that was used to procure. Empty if the order is not purchased using a quote.
  &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the entitlement.
  &quot;subscriptionEndTime&quot;: &quot;A String&quot;, # Output only. End time for the subscription corresponding to this entitlement.
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp.
  &quot;usageReportingId&quot;: &quot;A String&quot;, # Output only. The consumerId to use when reporting usage through the Service Control API. See the consumerId field at [Reporting Metrics](https://cloud.google.com/service-control/reporting-metrics) for more details. This field is present only if the product has usage-based billing configured.
}

  updateMask: string, The update mask that applies to the resource. See the [FieldMask definition] (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask) for more details.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a procured product of a customer.
  &quot;account&quot;: &quot;A String&quot;, # Output only. The resource name of the account that this entitlement is based on, if any.
  &quot;cancellationReason&quot;: &quot;A String&quot;, # Output only. The reason the entitlement was cancelled. If this entitlement wasn&#x27;t cancelled, this field is empty. Possible values include &quot;unknown&quot;, &quot;expired&quot;, &quot;user-cancelled&quot;, &quot;account-closed&quot;, &quot;billing-disabled&quot; (if the customer has manually disabled billing to their resources), &quot;user-aborted&quot;, and &quot;migrated&quot; (if the entitlement has migrated across products). Values of this field are subject to change, and we recommend that you don&#x27;t build your technical integration to rely on these fields.
  &quot;consumers&quot;: [ # Output only. The resources using this entitlement, if applicable.
    { # A resource using (consuming) this entitlement.
      &quot;project&quot;: &quot;A String&quot;, # A project name with format `projects/`.
    },
  ],
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp.
  &quot;entitlementBenefitIds&quot;: [ # Output only. The entitlement benefit IDs associated with the purchase.
    &quot;A String&quot;,
  ],
  &quot;inputProperties&quot;: { # Output only. The custom properties that were collected from the user to create this entitlement.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
  },
  &quot;messageToUser&quot;: &quot;A String&quot;, # Provider-supplied message that is displayed to the end user. Currently this is used to communicate progress and ETA for provisioning. This field can be updated only when a user is waiting for an action from the provider, i.e. entitlement state is EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED or EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL. This field is cleared automatically when the entitlement state changes.
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the entitlement. Entitlement names have the form `providers/{provider_id}/entitlements/{entitlement_id}`.
  &quot;newOfferEndTime&quot;: &quot;A String&quot;, # Output only. The end time of the new offer, determined from the offer&#x27;s specified end date. If the offer des not have a specified end date then this field is not set. This field is populated even if the entitlement isn&#x27;t active yet. If there&#x27;s no upcoming offer, the field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer has a specified end date, then this field is populated with the expected end time of the upcoming offer, in the future. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newOfferStartTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the new offer becomes effective. This field is populated even if the entitlement isn&#x27;t active yet. If there&#x27;s no upcoming offer, the field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, this field isn&#x27;t populated when the entitlement isn&#x27;t yet approved. After the entitlement is approved, this field is populated with the effective time of the upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, this field isn&#x27;t populated. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field isn&#x27;t populated, because the entitlement change is waiting on approval. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE, this field is populated with the expected effective time of the upcoming offer, which is in the future. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newPendingOffer&quot;: &quot;A String&quot;, # Output only. Upon a pending plan change, the name of the offer that the entitlement is switching to. Only exists if the pending plan change is moving to an offer. This field isn&#x27;t populated for entitlements which aren&#x27;t active yet. Format: &#x27;projects/{project}/services/{service}/privateOffers/{offer}&#x27; OR &#x27;projects/{project}/services/{service}/standardOffers/{offer}&#x27;, depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don&#x27;t build your integration to rely on the meaning of this {service} part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, then this field is populated with the upcoming offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this is empty.
  &quot;newPendingOfferDuration&quot;: &quot;A String&quot;, # Output only. The duration of the new offer, in ISO 8601 duration format. This field is populated for pending offer changes. It isn&#x27;t populated for entitlements which aren&#x27;t active yet. If the offer has a specified end date instead of a duration, this field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION, this field is empty. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the upcoming offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is empty.
  &quot;newPendingPlan&quot;: &quot;A String&quot;, # Output only. The identifier of the pending new plan. Required if the product has plans and the entitlement has a pending plan change.
  &quot;offer&quot;: &quot;A String&quot;, # Output only. The name of the offer that was procured. Field is empty if order wasn&#x27;t made using an offer. Format: &#x27;projects/{project}/services/{service}/privateOffers/{offer}&#x27; OR &#x27;projects/{project}/services/{service}/standardOffers/{offer}&#x27;, depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don&#x27;t build your integration to rely on the meaning of this {service} part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, this field is populated with the upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field is populated with the current offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is populated with the latest offer that the order was associated with.
  &quot;offerDuration&quot;: &quot;A String&quot;, # Output only. The offer duration of the current offer, in ISO 8601 duration format. This is empty if the entitlement wasn&#x27;t made using an offer, or if the offer has a specified end date instead of a duration. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, and the upcoming offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the upcoming offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, and the current offer doesn&#x27;t have a specified end date, then this field contains the duration of the current offer. Otherwise, this field is empty. * If the entitlement is in the state ENTITLEMENT_CANCELLED, and the offer doesn&#x27;t have a specified end date, then this field is populated with the duration of the latest offer that the order was associated with. Otherwise, this field is empty.
  &quot;offerEndTime&quot;: &quot;A String&quot;, # Output only. End time for the current term of the Offer associated with this entitlement. The value of this field can change naturally over time due to auto-renewal, even if the offer isn&#x27;t changed. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED, then: * If the entitlement isn&#x27;t approved yet approved, and the offer has a specified end date, then this field is populated with the expected end time of the upcoming offer, in the future. Otherwise, this field is empty. * If the entitlement is approved, then this field is populated with the expected end time of the upcoming offer, in the future. This means that this field and the field offer_duration can both exist. * If the entitlement is in the state ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is populated with the expected end time of the current offer, in the future. This field&#x27;s value is set regardless of whether the offer has a specific end date or a duration. This means that this field and the field offer_duration can both exist. * If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE: * If the entitlement&#x27;s pricing model is usage based and the associated offer is a private offer whose term has ended, then this field reflects the ACTUAL end time of the entitlement&#x27;s associated offer (in the past), even though the entitlement associated with this private offer does not terminate at the end of that private offer&#x27;s term. * Otherwise, this is the expected end date of the current offer, in the future. * If the entitlement is in the state ENTITLEMENT_CANCELLED, then this field is populated with the end time, in the past, of the latest offer that the order was associated with. If the entitlement was cancelled before any offer started, then this field is empty.
  &quot;orderId&quot;: &quot;A String&quot;, # Output only. The order ID of this entitlement, without any `orders/` resource name prefix.
  &quot;plan&quot;: &quot;A String&quot;, # Output only. The identifier of the plan that was procured. Required if the product has plans.
  &quot;product&quot;: &quot;A String&quot;, # Output only. The identifier of the entity that was purchased. This may actually represent a product, quote, or offer. We strongly recommend that you use the following more explicit fields: productExternalName, quoteExternalName, or offer.
  &quot;productExternalName&quot;: &quot;A String&quot;, # Output only. The identifier of the product that was procured.
  &quot;provider&quot;: &quot;A String&quot;, # Output only. The identifier of the service provider that this entitlement was created against. Each service provider is assigned a unique provider value when they onboard with Cloud Commerce platform.
  &quot;quoteExternalName&quot;: &quot;A String&quot;, # Output only. The identifier of the quote that was used to procure. Empty if the order is not purchased using a quote.
  &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the entitlement.
  &quot;subscriptionEndTime&quot;: &quot;A String&quot;, # Output only. End time for the subscription corresponding to this entitlement.
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp.
  &quot;usageReportingId&quot;: &quot;A String&quot;, # Output only. The consumerId to use when reporting usage through the Service Control API. See the consumerId field at [Reporting Metrics](https://cloud.google.com/service-control/reporting-metrics) for more details. This field is present only if the product has usage-based billing configured.
}</pre>
</div>

<div class="method">
    <code class="details" id="reject">reject(name, body=None, x__xgafv=None)</code>
  <pre>Rejects an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to reject the creation of the entitlement resource.

Args:
  name: string, Required. The resource name of the entitlement. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for PartnerProcurementService.RejectEntitlement.
  &quot;reason&quot;: &quot;A String&quot;, # Free form text string explaining the rejection reason. Max allowed length: 256 bytes. Longer strings will be truncated.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

<div class="method">
    <code class="details" id="rejectPlanChange">rejectPlanChange(name, body=None, x__xgafv=None)</code>
  <pre>Rejects an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to reject the plan change on the entitlement resource.

Args:
  name: string, Required. The resource name of the entitlement. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for PartnerProcurementService.RejectEntitlementPlanChange.
  &quot;pendingPlanName&quot;: &quot;A String&quot;, # Required. Name of the pending plan that is being rejected.
  &quot;reason&quot;: &quot;A String&quot;, # Free form text string explaining the rejection reason. Max allowed length: 256 bytes. Longer strings will be truncated.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

<div class="method">
    <code class="details" id="suspend">suspend(name, body=None, x__xgafv=None)</code>
  <pre>Requests suspension of an active Entitlement. This is not yet supported.

Args:
  name: string, Required. The name of the entitlement to suspend. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for ParterProcurementService.SuspendEntitlement. This is not yet supported.
  &quot;reason&quot;: &quot;A String&quot;, # A free-form reason string, explaining the reason for suspension request.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

</body></html>