Skip to content

Commit 9b17019

Browse files
feat: Automated regeneration of paymentsresellersubscription v1 client (#24643)
Auto-created at 2025-10-19 09:14:59 +0000 using the toys pull request generator.
1 parent 6283a18 commit 9b17019

File tree

6 files changed

+104
-3
lines changed

6 files changed

+104
-3
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315388,6 +315388,8 @@
315388315388
"/paymentsresellersubscription:v1/CreateSubscriptionIntent/parent": parent
315389315389
"/paymentsresellersubscription:v1/CreateSubscriptionIntent/subscription": subscription
315390315390
"/paymentsresellersubscription:v1/CreateSubscriptionIntent/subscriptionId": subscription_id
315391+
"/paymentsresellersubscription:v1/CycleOptions": cycle_options
315392+
"/paymentsresellersubscription:v1/CycleOptions/initialCycleDuration": initial_cycle_duration
315391315393
"/paymentsresellersubscription:v1/Duration": duration
315392315394
"/paymentsresellersubscription:v1/Duration/count": count
315393315395
"/paymentsresellersubscription:v1/Duration/unit": unit
@@ -315712,6 +315714,7 @@
315712315714
"/paymentsresellersubscription:v1/PromotionIntroductoryPricingDetailsIntroductoryPricingSpec/recurrenceCount": recurrence_count
315713315715
"/paymentsresellersubscription:v1/PromotionIntroductoryPricingDetailsIntroductoryPricingSpec/regionCode": region_code
315714315716
"/paymentsresellersubscription:v1/ResumeSubscriptionRequest": resume_subscription_request
315717+
"/paymentsresellersubscription:v1/ResumeSubscriptionRequest/cycleOptions": cycle_options
315715315718
"/paymentsresellersubscription:v1/ResumeSubscriptionResponse": resume_subscription_response
315716315719
"/paymentsresellersubscription:v1/ResumeSubscriptionResponse/subscription": subscription
315717315720
"/paymentsresellersubscription:v1/ServicePeriod": service_period
@@ -315816,7 +315819,14 @@
315816315819
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.extend/name": name
315817315820
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.get": get_partner_subscription
315818315821
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.get/name": name
315822+
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch": patch_partner_subscription_line_item
315823+
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch/name": name
315824+
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch/updateMask": update_mask
315819315825
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision": provision_partner_subscription
315826+
? "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/cycleOptions.initialCycleDuration.count"
315827+
: cycle_options_initial_cycle_duration_count
315828+
? "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/cycleOptions.initialCycleDuration.unit"
315829+
: cycle_options_initial_cycle_duration_unit
315820315830
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/parent": parent
315821315831
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/subscriptionId": subscription_id
315822315832
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.resume": resume_partner_subscription

generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-paymentsresellersubscription_v1
22

3+
### v0.58.0 (2025-10-19)
4+
5+
* Regenerated from discovery document revision 20251012
6+
37
### v0.57.0 (2025-10-12)
48

59
* Regenerated from discovery document revision 20251005

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/classes.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,25 @@ def update!(**args)
148148
end
149149
end
150150

151+
# The cycle options when starting and resuming a subscription.
152+
class CycleOptions
153+
include Google::Apis::Core::Hashable
154+
155+
# Describes the length of a period of a time.
156+
# Corresponds to the JSON property `initialCycleDuration`
157+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Duration]
158+
attr_accessor :initial_cycle_duration
159+
160+
def initialize(**args)
161+
update!(**args)
162+
end
163+
164+
# Update properties of this object
165+
def update!(**args)
166+
@initial_cycle_duration = args[:initial_cycle_duration] if args.key?(:initial_cycle_duration)
167+
end
168+
end
169+
151170
# Describes the length of a period of a time.
152171
class Duration
153172
include Google::Apis::Core::Hashable
@@ -1004,12 +1023,18 @@ def update!(**args)
10041023
class ResumeSubscriptionRequest
10051024
include Google::Apis::Core::Hashable
10061025

1026+
# The cycle options when starting and resuming a subscription.
1027+
# Corresponds to the JSON property `cycleOptions`
1028+
# @return [Google::Apis::PaymentsresellersubscriptionV1::CycleOptions]
1029+
attr_accessor :cycle_options
1030+
10071031
def initialize(**args)
10081032
update!(**args)
10091033
end
10101034

10111035
# Update properties of this object
10121036
def update!(**args)
1037+
@cycle_options = args[:cycle_options] if args.key?(:cycle_options)
10131038
end
10141039
end
10151040

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module PaymentsresellersubscriptionV1
1818
# Version of the google-apis-paymentsresellersubscription_v1 gem
19-
GEM_VERSION = "0.57.0"
19+
GEM_VERSION = "0.58.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20251005"
25+
REVISION = "20251012"
2626
end
2727
end
2828
end

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/representations.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4646
include Google::Apis::Core::JsonObjectSupport
4747
end
4848

49+
class CycleOptions
50+
class Representation < Google::Apis::Core::JsonRepresentation; end
51+
52+
include Google::Apis::Core::JsonObjectSupport
53+
end
54+
4955
class Duration
5056
class Representation < Google::Apis::Core::JsonRepresentation; end
5157

@@ -356,6 +362,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
356362
end
357363
end
358364

365+
class CycleOptions
366+
# @private
367+
class Representation < Google::Apis::Core::JsonRepresentation
368+
property :initial_cycle_duration, as: 'initialCycleDuration', class: Google::Apis::PaymentsresellersubscriptionV1::Duration, decorator: Google::Apis::PaymentsresellersubscriptionV1::Duration::Representation
369+
370+
end
371+
end
372+
359373
class Duration
360374
# @private
361375
class Representation < Google::Apis::Core::JsonRepresentation
@@ -622,6 +636,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
622636
class ResumeSubscriptionRequest
623637
# @private
624638
class Representation < Google::Apis::Core::JsonRepresentation
639+
property :cycle_options, as: 'cycleOptions', class: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions, decorator: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions::Representation
640+
625641
end
626642
end
627643

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/service.rb

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@ def get_partner_subscription(name, fields: nil, quota_user: nil, options: nil, &
387387
# Required. The parent resource name, which is the identifier of the partner. It
388388
# will have the format of "partners/`partner_id`".
389389
# @param [Google::Apis::PaymentsresellersubscriptionV1::Subscription] subscription_object
390+
# @param [Fixnum] cycle_options_initial_cycle_duration_count
391+
# number of duration units to be included.
392+
# @param [String] cycle_options_initial_cycle_duration_unit
393+
# The unit used for the duration
390394
# @param [String] subscription_id
391395
# Required. Identifies the subscription resource on the Partner side. The value
392396
# is restricted to 63 ASCII characters at the maximum. If a subscription was
@@ -409,13 +413,15 @@ def get_partner_subscription(name, fields: nil, quota_user: nil, options: nil, &
409413
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
410414
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
411415
# @raise [Google::Apis::AuthorizationError] Authorization is required
412-
def provision_partner_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
416+
def provision_partner_subscription(parent, subscription_object = nil, cycle_options_initial_cycle_duration_count: nil, cycle_options_initial_cycle_duration_unit: nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
413417
command = make_simple_command(:post, 'v1/{+parent}/subscriptions:provision', options)
414418
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
415419
command.request_object = subscription_object
416420
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
417421
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::Subscription
418422
command.params['parent'] = parent unless parent.nil?
423+
command.query['cycleOptions.initialCycleDuration.count'] = cycle_options_initial_cycle_duration_count unless cycle_options_initial_cycle_duration_count.nil?
424+
command.query['cycleOptions.initialCycleDuration.unit'] = cycle_options_initial_cycle_duration_unit unless cycle_options_initial_cycle_duration_unit.nil?
419425
command.query['subscriptionId'] = subscription_id unless subscription_id.nil?
420426
command.query['fields'] = fields unless fields.nil?
421427
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -533,6 +539,46 @@ def undo_partner_subscription_cancel(name, undo_cancel_subscription_request_obje
533539
execute_or_queue_command(command, &block)
534540
end
535541

542+
# Updates a line item of a subscription. It should be autenticated with a
543+
# service account.
544+
# @param [String] name
545+
# Identifier. Resource name of the line item. Format: partners/`partner`/
546+
# subscriptions/`subscription`/lineItems/`lineItem`
547+
# @param [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] subscription_line_item_object
548+
# @param [String] update_mask
549+
# Required. The list of fields to update. Only a limited set of fields can be
550+
# updated. The allowed fields are the following: - `product_payload.
551+
# googleHomePayload.googleStructureId`
552+
# @param [String] fields
553+
# Selector specifying which fields to include in a partial response.
554+
# @param [String] quota_user
555+
# Available to use for quota purposes for server-side applications. Can be any
556+
# arbitrary string assigned to a user, but should not exceed 40 characters.
557+
# @param [Google::Apis::RequestOptions] options
558+
# Request-specific options
559+
#
560+
# @yield [result, err] Result & error if block supplied
561+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] parsed result object
562+
# @yieldparam err [StandardError] error object if request failed
563+
#
564+
# @return [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem]
565+
#
566+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568+
# @raise [Google::Apis::AuthorizationError] Authorization is required
569+
def patch_partner_subscription_line_item(name, subscription_line_item_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
570+
command = make_simple_command(:patch, 'v1/{+name}', options)
571+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem::Representation
572+
command.request_object = subscription_line_item_object
573+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem::Representation
574+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem
575+
command.params['name'] = name unless name.nil?
576+
command.query['updateMask'] = update_mask unless update_mask.nil?
577+
command.query['fields'] = fields unless fields.nil?
578+
command.query['quotaUser'] = quota_user unless quota_user.nil?
579+
execute_or_queue_command(command, &block)
580+
end
581+
536582
# This API replaces user authorized OAuth consent based APIs (Create, Entitle).
537583
# Issues a timed session token for the given user intent. You can use the
538584
# session token to redirect the user to Google to finish the signup flow. You

0 commit comments

Comments
 (0)