google-apis-cloudcommerceprocurement_v1 0.2.0 → 0.4.0

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: d39dfdef8bb51967e47501686ebc8a25d43396dfc455982acd13b48e9a84313f
4
- data.tar.gz: 9a8d7d7fd705f00e7b4ad0999abb36f06b1babd9bd42075f6c2422975604a2a0
3
+ metadata.gz: dfd7151b25f46b5ce6beeabaa2067873393246d7e8ac8754c86e6a45db2bc7da
4
+ data.tar.gz: ff343d5448f7cd0148d9bbee6a33453d502f200d176ff9c380d228c41cf11953
5
5
  SHA512:
6
- metadata.gz: a23415e793b870bf9035f6ddf7723edb3945f9bbf28575169d101c577b711faf5baccb0c2a4dd5d4b19d91f8961dd020284599de436c8a6d2e8154a00fd94b2d
7
- data.tar.gz: b437d213beb3b30c0666efc469501f3247d1ea5260ebba61042d7aaa725e61e828ab9c9626262951db9f9d970bfdb7e6fb78121cf636ac37c3f295aaa807cadb
6
+ metadata.gz: 98a3ecea8ea23ed29a747ae608357fe7b065a7bb0d947a6cf3e22ede5a8d3ccdba083b5ae639f0c76b656ebc9bd21cd6df7373764753acf5ff3a206a22580ab7
7
+ data.tar.gz: 1b32cd205cfdd61abbc4717a018e8fb036606b3b2aba80f38aa58981b51203ac6f8f1c723102b7aa7ac5894d9e068d20b8e72e47a0c1e8f4e67ff140b30cbe17
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudcommerceprocurement_v1
2
2
 
3
+ ### v0.4.0 (2025-09-21)
4
+
5
+ * Regenerated from discovery document revision 20250914
6
+
7
+ ### v0.3.0 (2025-09-14)
8
+
9
+ * Regenerated from discovery document revision 20250907
10
+
3
11
  ### v0.2.0 (2025-09-07)
4
12
 
5
13
  * Regenerated from discovery document revision 20250831
@@ -59,6 +59,14 @@ module Google
59
59
  # @return [String]
60
60
  attr_accessor :provider
61
61
 
62
+ # The reseller parent billing account of the account's corresponding billing
63
+ # account, applicable only when the corresponding billing account is a
64
+ # subaccount of a reseller. Included in responses only for view
65
+ # ACCOUNT_VIEW_FULL. Format: billingAccounts/`billing_account_id`
66
+ # Corresponds to the JSON property `resellerParentBillingAccount`
67
+ # @return [String]
68
+ attr_accessor :reseller_parent_billing_account
69
+
62
70
  # Output only. The state of the account. This is used to decide whether the
63
71
  # customer is in good standing with the provider and is able to make purchases.
64
72
  # An account might not be able to make a purchase if the billing account is
@@ -83,6 +91,7 @@ module Google
83
91
  @input_properties = args[:input_properties] if args.key?(:input_properties)
84
92
  @name = args[:name] if args.key?(:name)
85
93
  @provider = args[:provider] if args.key?(:provider)
94
+ @reseller_parent_billing_account = args[:reseller_parent_billing_account] if args.key?(:reseller_parent_billing_account)
86
95
  @state = args[:state] if args.key?(:state)
87
96
  @update_time = args[:update_time] if args.key?(:update_time)
88
97
  end
@@ -299,17 +308,35 @@ module Google
299
308
  # @return [String]
300
309
  attr_accessor :name
301
310
 
302
- # Output only. The end time of the new offer. If the offer was created with a
303
- # term instead of a specified end date, this field is empty. This field is
311
+ # Output only. The end time of the new offer. If the offer was has a term
312
+ # duration instead of a specified end date, this field is empty. This field is
304
313
  # populated even if the entitlement isn't active yet. If there's no upcoming
305
- # offer, the field is be empty.
314
+ # offer, the field is empty. * If the entitlement is in
315
+ # ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or
316
+ # ENTITLEMENT_PENDING_CANCELLATION state, then this field will be empty. * If
317
+ # the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or
318
+ # ENTITLEMENT_PENDING_PLAN_CHANGE state, then this field will be populated with
319
+ # the expected end time of the upcoming offer (in the future) if the upcoming
320
+ # offer has a specified end date. Otherwise, this field will be empty. * If the
321
+ # entitlement is in ENTITLEMENT_CANCELLED state, then this field will be empty.
306
322
  # Corresponds to the JSON property `newOfferEndTime`
307
323
  # @return [String]
308
324
  attr_accessor :new_offer_end_time
309
325
 
310
326
  # Output only. The timestamp when the new offer becomes effective. This field is
311
327
  # populated even if the entitlement isn't active yet. If there's no upcoming
312
- # offer, the field is empty.
328
+ # offer, the field is empty. * If the entitlement is in
329
+ # ENTITLEMENT_ACTIVATION_REQUESTED state, this field will not be populated when
330
+ # the entitlement is not yet approved. But after the entitlement is approved,
331
+ # then this field will be populated with effective time of the upcoming offer. *
332
+ # If the entitlement is in ENTITLEMENT_ACTIVE or
333
+ # ENTITLEMENT_PENDING_CANCELLATION state, this field will not be populated. * If
334
+ # the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, this
335
+ # field will not be populated since the entitlement change is waiting on
336
+ # approval. * If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE state,
337
+ # this field will be populated with the expected effective time of the upcoming
338
+ # offer (in the future). * If the entitlement is in ENTITLEMENT_CANCELLED state,
339
+ # then this field will be empty.
313
340
  # Corresponds to the JSON property `newOfferStartTime`
314
341
  # @return [String]
315
342
  attr_accessor :new_offer_start_time
@@ -317,21 +344,33 @@ module Google
317
344
  # Output only. The name of the offer the entitlement is switching to upon a
318
345
  # pending plan change. Only exists if the pending plan change is moving to an
319
346
  # offer. This field isn't populated for entitlements which aren't active yet.
320
- # Format: 'projects/`project`/services/`service`/privateOffers/`offer-id`' OR '
321
- # projects/`project`/services/`service`/standardOffers/`offer-id`', depending on
347
+ # Format: 'projects/`project`/services/`service`/privateOffers/`offer`' OR '
348
+ # projects/`project`/services/`service`/standardOffers/`offer`', depending on
322
349
  # whether the offer is private or public. The `service` in the name is the
323
350
  # listing service of the offer. It could be either the product service that the
324
351
  # offer is referencing, or a generic private offer parent service. We recommend
325
352
  # that you don't build your integration to rely on the meaning of this `service`
326
- # part.
353
+ # part. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED,
354
+ # ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION state, then this field
355
+ # will be empty. * If the entitlement is in
356
+ # ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE
357
+ # state, then this field will be populated with the upcoming offer. * If the
358
+ # entitlement is in ENTITLEMENT_CANCELLED state, then this will be empty.
327
359
  # Corresponds to the JSON property `newPendingOffer`
328
360
  # @return [String]
329
361
  attr_accessor :new_pending_offer
330
362
 
331
363
  # Output only. The duration of the new offer, in ISO 8601 duration format. This
332
364
  # field isn't populated for entitlements which aren't active yet, only for
333
- # pending offer changes. If the offer was created with a specified end date
334
- # instead of a duration, this field is empty.
365
+ # pending offer changes. If the offer was has a specified end date instead of a
366
+ # duration, this field is empty. * If the entitlement is in
367
+ # ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEENTITLEMENT_ACTIVE, or
368
+ # ENTITLEMENT_PENDING_CANCELLATION state, then this field is empty. * If the
369
+ # entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or
370
+ # ENTITLEMENT_PENDING_PLAN_CHANGE state, then this field will be populated with
371
+ # the duration of the upcoming offer, if the upcoming offer is does not have a
372
+ # specified end date. Otherwise, this field will be empty. * If the entitlement
373
+ # is in ENTITLEMENT_CANCELLED state, then this field will be empty.
335
374
  # Corresponds to the JSON property `newPendingOfferDuration`
336
375
  # @return [String]
337
376
  attr_accessor :new_pending_offer_duration
@@ -344,27 +383,65 @@ module Google
344
383
 
345
384
  # Output only. The name of the offer that was procured. Field is empty if order
346
385
  # was not made using an offer. Format: 'projects/`project`/services/`service`/
347
- # privateOffers/`offer-id`' OR 'projects/`project`/services/`service`/
348
- # standardOffers/`offer-id`', depending on whether the offer is private or
349
- # public. The `service` in the name is the listing service of the offer. It
350
- # could be either the product service that the offer is referencing, or a
351
- # generic private offer parent service. We recommend that you don't build your
352
- # integration to rely on the meaning of this `service` part.
386
+ # privateOffers/`offer`' OR 'projects/`project`/services/`service`/
387
+ # standardOffers/`offer`', depending on whether the offer is private or public.
388
+ # The `service` in the name is the listing service of the offer. It could be
389
+ # either the product service that the offer is referencing, or a generic private
390
+ # offer parent service. We recommend that you don't build your integration to
391
+ # rely on the meaning of this `service` part. * If the entitlement is in
392
+ # ENTITLEMENT_ACTIVATION_REQUESTED state, this field will be populated with the
393
+ # upcoming offer. * If the entitlement is in ENTITLEMENT_ACTIVE,
394
+ # ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or
395
+ # ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, this field will be populated
396
+ # with the current offer. * If the entitlement is in ENTITLEMENT_CANCELLED state,
397
+ # then this field will be populated with the latest offer the order was
398
+ # associated with.
353
399
  # Corresponds to the JSON property `offer`
354
400
  # @return [String]
355
401
  attr_accessor :offer
356
402
 
357
403
  # Output only. The offer duration of the current offer in ISO 8601 duration
358
404
  # format. Field is empty if entitlement was not made using an offer. If the
359
- # offer was created with a specified end date instead of a duration, this field
360
- # is empty.
405
+ # offer has a specified end date instead of a duration, this field is empty. *
406
+ # If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED state, then this
407
+ # field will be populated with the duration of the upcoming offer, if the
408
+ # upcoming offer does not have a specified end date. Otherwise, this field will
409
+ # be empty. * If the entitlement is in ENTITLEMENT_ACTIVE,
410
+ # ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or
411
+ # ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, then this field will be
412
+ # populated with the duration of the current offer if the current offer is does
413
+ # not have a specific end date. Otherwise, this field will be empty. * If the
414
+ # entitlement is in ENTITLEMENT_CANCELLED state, then this field will be
415
+ # populated with the duration of the latest offer the order was associated with
416
+ # if that offer does not have a specific end date. Otherwise, this field will be
417
+ # empty.
361
418
  # Corresponds to the JSON property `offerDuration`
362
419
  # @return [String]
363
420
  attr_accessor :offer_duration
364
421
 
365
- # Output only. End time for the Offer association corresponding to this
366
- # entitlement. The field is only populated if the entitlement is currently
367
- # associated with an Offer.
422
+ # Output only. End time for the Offer associated with this entitlement. Note
423
+ # that this field value can change over time. This occurs naturally even if the
424
+ # offer is not changed, due to auto renewal. * If the entitlement is in
425
+ # ENTITLEMENT_ACTIVATION_REQUESTED state, then: * If the entitlement is not yet
426
+ # approved, then this field will be populated with the expected end time of the
427
+ # upcoming offer (in the future) if the upcoming offer has a specified end date.
428
+ # Otherwise this field will be empty. * If the entitlement is approved, then
429
+ # this field will always be populated with the expected end time of the upcoming
430
+ # offer (in the future). This means both this field, and the offer_duration
431
+ # field, can co-exist. * If the entitlement is in ENTITLEMENT_ACTIVE or
432
+ # ENTITLEMENT_PENDING_CANCELLATION state, then this field will be populated with
433
+ # the actual expected end time of the current offer (in the futre). Meaning,
434
+ # this field will be set, regardless of whether the offer has a specific end
435
+ # date or a duration. This means both this field, and the offer_duration field,
436
+ # can co-exist. * If the entitlement is in
437
+ # ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE
438
+ # state: * If the current offer has already ended and became pure PAYG, then
439
+ # this field reflects the ACTUAL end time of the current offer (in the past). *
440
+ # Otherwise, then this is the EXPECTED end date of the current offer (in the
441
+ # future). * If the entitlement is in ENTITLEMENT_CANCELLED state, then this
442
+ # field will be populated with the ACTUAL end time of the latest offer the order
443
+ # was associated with (in the past). If the entitlement was cancelled before any
444
+ # offer started, then this field will be empty.
368
445
  # Corresponds to the JSON property `offerEndTime`
369
446
  # @return [String]
370
447
  attr_accessor :offer_end_time
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudcommerceprocurementV1
18
18
  # Version of the google-apis-cloudcommerceprocurement_v1 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250831"
25
+ REVISION = "20250914"
26
26
  end
27
27
  end
28
28
  end
@@ -121,6 +121,7 @@ module Google
121
121
  hash :input_properties, as: 'inputProperties'
122
122
  property :name, as: 'name'
123
123
  property :provider, as: 'provider'
124
+ property :reseller_parent_billing_account, as: 'resellerParentBillingAccount'
124
125
  property :state, as: 'state'
125
126
  property :update_time, as: 'updateTime'
126
127
  end
@@ -88,6 +88,8 @@ module Google
88
88
  # Gets a requested Account resource.
89
89
  # @param [String] name
90
90
  # Required. The name of the account to retrieve.
91
+ # @param [String] view
92
+ # Optional. What information to include in the response.
91
93
  # @param [String] fields
92
94
  # Selector specifying which fields to include in a partial response.
93
95
  # @param [String] quota_user
@@ -105,11 +107,12 @@ module Google
105
107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
108
- def get_provider_account(name, fields: nil, quota_user: nil, options: nil, &block)
110
+ def get_provider_account(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
109
111
  command = make_simple_command(:get, 'v1/{+name}', options)
110
112
  command.response_representation = Google::Apis::CloudcommerceprocurementV1::Account::Representation
111
113
  command.response_class = Google::Apis::CloudcommerceprocurementV1::Account
112
114
  command.params['name'] = name unless name.nil?
115
+ command.query['view'] = view unless view.nil?
113
116
  command.query['fields'] = fields unless fields.nil?
114
117
  command.query['quotaUser'] = quota_user unless quota_user.nil?
115
118
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudcommerceprocurement_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudcommerceprocurement_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudcommerceprocurement_v1/v0.2.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudcommerceprocurement_v1/v0.4.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudcommerceprocurement_v1
62
62
  rdoc_options: []
63
63
  require_paths: