google-apis-cloudcommerceprocurement_v1 0.3.0 → 0.5.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/cloudcommerceprocurement_v1/classes.rb +97 -87
- data/lib/google/apis/cloudcommerceprocurement_v1/gem_version.rb +2 -2
- data/lib/google/apis/cloudcommerceprocurement_v1/representations.rb +1 -0
- data/lib/google/apis/cloudcommerceprocurement_v1/service.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf953e662ad92435c1df749e71e054eb078c0dd175153318b6e6ab38ee13ef77
|
4
|
+
data.tar.gz: 05bdb4f85d3186143e7ee969356cbda94ec8a05c3276303b105b5bcca057481f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df566c980c85771965f363a1145b4dcc3a68ccd17fb6f244858674270f520c2be7368120a045c8c6ccd0fe82b4bd2819daa933f3e05f6f268bea66114af4bf61
|
7
|
+
data.tar.gz: 9bde9c74f992f56f0a454485ace1ce091ad77305b8f0f8e34cbebea2f2a2647216e617ec23ac449fc9c2a4652ad239617c6a1e07c1d4a10f9b0b6c920c861874
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-cloudcommerceprocurement_v1
|
2
2
|
|
3
|
+
### v0.5.0 (2025-09-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250923
|
6
|
+
|
7
|
+
### v0.4.0 (2025-09-21)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250914
|
10
|
+
|
3
11
|
### v0.3.0 (2025-09-14)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20250907
|
@@ -59,6 +59,14 @@ module Google
|
|
59
59
|
# @return [String]
|
60
60
|
attr_accessor :provider
|
61
61
|
|
62
|
+
# Output only. The reseller parent billing account of the account's
|
63
|
+
# corresponding billing account, applicable only when the corresponding billing
|
64
|
+
# account is a 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,69 +308,69 @@ module Google
|
|
299
308
|
# @return [String]
|
300
309
|
attr_accessor :name
|
301
310
|
|
302
|
-
# Output only. The end time of the new offer
|
303
|
-
#
|
304
|
-
# populated even if the entitlement isn't active
|
305
|
-
# offer, the field is empty. * If the entitlement is
|
306
|
-
# ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or
|
307
|
-
# ENTITLEMENT_PENDING_CANCELLATION
|
308
|
-
#
|
309
|
-
# ENTITLEMENT_PENDING_PLAN_CHANGE
|
310
|
-
#
|
311
|
-
# offer
|
312
|
-
#
|
311
|
+
# Output only. The end time of the new offer, determined from the offer's
|
312
|
+
# specified end date. If the offer des not have a specified end date then this
|
313
|
+
# field is not set. This field is populated even if the entitlement isn't active
|
314
|
+
# yet. If there's no upcoming offer, the field is empty. * If the entitlement is
|
315
|
+
# in the state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or
|
316
|
+
# ENTITLEMENT_PENDING_CANCELLATION, then this field is empty. * If the
|
317
|
+
# entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or
|
318
|
+
# ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer has a specified end
|
319
|
+
# date, then this field is populated with the expected end time of the upcoming
|
320
|
+
# offer, in the future. Otherwise, this field is empty. * If the entitlement is
|
321
|
+
# in the state ENTITLEMENT_CANCELLED, then this field is empty.
|
313
322
|
# Corresponds to the JSON property `newOfferEndTime`
|
314
323
|
# @return [String]
|
315
324
|
attr_accessor :new_offer_end_time
|
316
325
|
|
317
326
|
# Output only. The timestamp when the new offer becomes effective. This field is
|
318
327
|
# populated even if the entitlement isn't active yet. If there's no upcoming
|
319
|
-
# offer, the field is empty. * If the entitlement is in
|
320
|
-
# ENTITLEMENT_ACTIVATION_REQUESTED
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
# ENTITLEMENT_PENDING_CANCELLATION
|
325
|
-
#
|
326
|
-
# field
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
# then this field
|
328
|
+
# offer, the field is empty. * If the entitlement is in the state
|
329
|
+
# ENTITLEMENT_ACTIVATION_REQUESTED, this field isn't populated when the
|
330
|
+
# entitlement isn't yet approved. After the entitlement is approved, this field
|
331
|
+
# is populated with the effective time of the upcoming offer. * If the
|
332
|
+
# entitlement is in the state ENTITLEMENT_ACTIVE or
|
333
|
+
# ENTITLEMENT_PENDING_CANCELLATION, this field isn't populated. * If the
|
334
|
+
# entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this
|
335
|
+
# field isn't populated, because the entitlement change is waiting on approval. *
|
336
|
+
# If the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE, this
|
337
|
+
# field is populated with the expected effective time of the upcoming offer,
|
338
|
+
# which is in the future. * If the entitlement is in the state
|
339
|
+
# ENTITLEMENT_CANCELLED, then this field is empty.
|
331
340
|
# Corresponds to the JSON property `newOfferStartTime`
|
332
341
|
# @return [String]
|
333
342
|
attr_accessor :new_offer_start_time
|
334
343
|
|
335
|
-
# Output only.
|
336
|
-
#
|
337
|
-
# offer. This field isn't populated for entitlements which aren't active
|
338
|
-
# Format: 'projects/`project`/services/`service`/privateOffers/`offer`' OR '
|
344
|
+
# Output only. Upon a pending plan change, the name of the offer that the
|
345
|
+
# entitlement is switching to. Only exists if the pending plan change is moving
|
346
|
+
# to an offer. This field isn't populated for entitlements which aren't active
|
347
|
+
# yet. Format: 'projects/`project`/services/`service`/privateOffers/`offer`' OR '
|
339
348
|
# projects/`project`/services/`service`/standardOffers/`offer`', depending on
|
340
349
|
# whether the offer is private or public. The `service` in the name is the
|
341
350
|
# listing service of the offer. It could be either the product service that the
|
342
351
|
# offer is referencing, or a generic private offer parent service. We recommend
|
343
352
|
# that you don't build your integration to rely on the meaning of this `service`
|
344
|
-
# part. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED,
|
345
|
-
# ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION
|
346
|
-
#
|
347
|
-
# ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE
|
348
|
-
#
|
349
|
-
#
|
353
|
+
# part. * If the entitlement is in the state ENTITLEMENT_ACTIVATION_REQUESTED,
|
354
|
+
# ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION, then this field is
|
355
|
+
# empty. * If the entitlement is in the state
|
356
|
+
# ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE,
|
357
|
+
# then this field is populated with the upcoming offer. * If the entitlement is
|
358
|
+
# in the state ENTITLEMENT_CANCELLED, then this is empty.
|
350
359
|
# Corresponds to the JSON property `newPendingOffer`
|
351
360
|
# @return [String]
|
352
361
|
attr_accessor :new_pending_offer
|
353
362
|
|
354
363
|
# Output only. The duration of the new offer, in ISO 8601 duration format. This
|
355
|
-
# field
|
356
|
-
#
|
357
|
-
# duration, this field is empty. * If the entitlement is in
|
358
|
-
# ENTITLEMENT_ACTIVATION_REQUESTED,
|
359
|
-
# ENTITLEMENT_PENDING_CANCELLATION
|
360
|
-
#
|
361
|
-
# ENTITLEMENT_PENDING_PLAN_CHANGE
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
364
|
+
# field is populated for pending offer changes. It isn't populated for
|
365
|
+
# entitlements which aren't active yet. If the offer has a specified end date
|
366
|
+
# instead of a duration, this field is empty. * If the entitlement is in the
|
367
|
+
# state ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or
|
368
|
+
# ENTITLEMENT_PENDING_CANCELLATION, this field is empty. * If the entitlement is
|
369
|
+
# in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or
|
370
|
+
# ENTITLEMENT_PENDING_PLAN_CHANGE, and the upcoming offer doesn't have a
|
371
|
+
# specified end date, then this field is populated with the duration of the
|
372
|
+
# upcoming offer. Otherwise, this field is empty. * If the entitlement is in the
|
373
|
+
# state ENTITLEMENT_CANCELLED, then this field is empty.
|
365
374
|
# Corresponds to the JSON property `newPendingOfferDuration`
|
366
375
|
# @return [String]
|
367
376
|
attr_accessor :new_pending_offer_duration
|
@@ -373,66 +382,67 @@ module Google
|
|
373
382
|
attr_accessor :new_pending_plan
|
374
383
|
|
375
384
|
# Output only. The name of the offer that was procured. Field is empty if order
|
376
|
-
#
|
385
|
+
# wasn't made using an offer. Format: 'projects/`project`/services/`service`/
|
377
386
|
# privateOffers/`offer`' OR 'projects/`project`/services/`service`/
|
378
387
|
# standardOffers/`offer`', depending on whether the offer is private or public.
|
379
388
|
# The `service` in the name is the listing service of the offer. It could be
|
380
389
|
# either the product service that the offer is referencing, or a generic private
|
381
390
|
# offer parent service. We recommend that you don't build your integration to
|
382
|
-
# rely on the meaning of this `service` part. * If the entitlement is in
|
383
|
-
# ENTITLEMENT_ACTIVATION_REQUESTED
|
384
|
-
# upcoming offer. * If the entitlement is in ENTITLEMENT_ACTIVE,
|
391
|
+
# rely on the meaning of this `service` part. * If the entitlement is in the
|
392
|
+
# state ENTITLEMENT_ACTIVATION_REQUESTED, this field is populated with the
|
393
|
+
# upcoming offer. * If the entitlement is in the state ENTITLEMENT_ACTIVE,
|
385
394
|
# ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or
|
386
|
-
# ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL
|
387
|
-
#
|
388
|
-
# then this field
|
395
|
+
# ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL, this field is populated with the
|
396
|
+
# current offer. * If the entitlement is in the state ENTITLEMENT_CANCELLED,
|
397
|
+
# then this field is populated with the latest offer that the order was
|
389
398
|
# associated with.
|
390
399
|
# Corresponds to the JSON property `offer`
|
391
400
|
# @return [String]
|
392
401
|
attr_accessor :offer
|
393
402
|
|
394
|
-
# Output only. The offer duration of the current offer in ISO 8601 duration
|
395
|
-
# format.
|
396
|
-
# offer has a specified end date instead of a duration
|
397
|
-
#
|
398
|
-
# field
|
399
|
-
# upcoming offer
|
400
|
-
#
|
401
|
-
#
|
402
|
-
#
|
403
|
-
#
|
404
|
-
#
|
405
|
-
#
|
406
|
-
#
|
407
|
-
# if that offer does not have a specific end date. Otherwise, this field will be
|
403
|
+
# Output only. The offer duration of the current offer, in ISO 8601 duration
|
404
|
+
# format. This is empty if the entitlement wasn't made using an offer, or if the
|
405
|
+
# offer has a specified end date instead of a duration. * If the entitlement is
|
406
|
+
# in the state ENTITLEMENT_ACTIVATION_REQUESTED, and the upcoming offer doesn't
|
407
|
+
# have a specified end date, then this field is populated with the duration of
|
408
|
+
# the upcoming offer. Otherwise, this field is empty. * If the entitlement is in
|
409
|
+
# the state ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION,
|
410
|
+
# ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL,
|
411
|
+
# and the current offer doesn't have a specified end date, then this field
|
412
|
+
# contains the duration of the current offer. Otherwise, this field is empty. *
|
413
|
+
# If the entitlement is in the state ENTITLEMENT_CANCELLED, and the offer doesn'
|
414
|
+
# t have a specified end date, then this field is populated with the duration of
|
415
|
+
# the latest offer that the order was associated with. Otherwise, this field is
|
408
416
|
# empty.
|
409
417
|
# Corresponds to the JSON property `offerDuration`
|
410
418
|
# @return [String]
|
411
419
|
attr_accessor :offer_duration
|
412
420
|
|
413
|
-
# Output only. End time for the Offer associated with this
|
414
|
-
#
|
415
|
-
#
|
416
|
-
# ENTITLEMENT_ACTIVATION_REQUESTED
|
417
|
-
# approved
|
418
|
-
#
|
419
|
-
# Otherwise this field
|
420
|
-
#
|
421
|
-
#
|
422
|
-
#
|
423
|
-
# ENTITLEMENT_PENDING_CANCELLATION
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
427
|
-
#
|
428
|
-
#
|
429
|
-
#
|
430
|
-
# this field reflects the ACTUAL end time of the
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
#
|
435
|
-
#
|
421
|
+
# Output only. End time for the current term of the Offer associated with this
|
422
|
+
# entitlement. The value of this field can change naturally over time due to
|
423
|
+
# auto-renewal, even if the offer isn't changed. * If the entitlement is in the
|
424
|
+
# state ENTITLEMENT_ACTIVATION_REQUESTED, then: * If the entitlement isn't
|
425
|
+
# approved yet approved, and the offer has a specified end date, then this field
|
426
|
+
# is populated with the expected end time of the upcoming offer, in the future.
|
427
|
+
# Otherwise, this field is empty. * If the entitlement is approved, then this
|
428
|
+
# field is populated with the expected end time of the upcoming offer, in the
|
429
|
+
# future. This means that this field and the field offer_duration can both exist.
|
430
|
+
# * If the entitlement is in the state ENTITLEMENT_ACTIVE or
|
431
|
+
# ENTITLEMENT_PENDING_CANCELLATION, then this field is populated with the
|
432
|
+
# expected end time of the current offer, in the future. This field's value is
|
433
|
+
# set regardless of whether the offer has a specific end date or a duration.
|
434
|
+
# This means that this field and the field offer_duration can both exist. * If
|
435
|
+
# the entitlement is in the state ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or
|
436
|
+
# ENTITLEMENT_PENDING_PLAN_CHANGE: * If the entitlement's pricing model is usage
|
437
|
+
# based and the associated offer is a private offer whose term has ended, then
|
438
|
+
# this field reflects the ACTUAL end time of the entitlement's associated offer (
|
439
|
+
# in the past), even though the entitlement associated with this private offer
|
440
|
+
# does not terminate at the end of that private offer's term. * Otherwise, this
|
441
|
+
# is the expected end date of the current offer, in the future. * If the
|
442
|
+
# entitlement is in the state ENTITLEMENT_CANCELLED, then this field is
|
443
|
+
# populated with the end time, in the past, of the latest offer that the order
|
444
|
+
# was associated with. If the entitlement was cancelled before any offer started,
|
445
|
+
# then this field is empty.
|
436
446
|
# Corresponds to the JSON property `offerEndTime`
|
437
447
|
# @return [String]
|
438
448
|
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.
|
19
|
+
GEM_VERSION = "0.5.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 = "
|
25
|
+
REVISION = "20250923"
|
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.
|
4
|
+
version: 0.5.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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudcommerceprocurement_v1/v0.5.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:
|