diff --git a/api_names_out.yaml b/api_names_out.yaml index 3e72c8b351a..06196b7d087 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -315378,6 +315378,8 @@ "/paymentsresellersubscription:v1/CreateSubscriptionIntent/parent": parent "/paymentsresellersubscription:v1/CreateSubscriptionIntent/subscription": subscription "/paymentsresellersubscription:v1/CreateSubscriptionIntent/subscriptionId": subscription_id +"/paymentsresellersubscription:v1/CycleOptions": cycle_options +"/paymentsresellersubscription:v1/CycleOptions/initialCycleDuration": initial_cycle_duration "/paymentsresellersubscription:v1/Duration": duration "/paymentsresellersubscription:v1/Duration/count": count "/paymentsresellersubscription:v1/Duration/unit": unit @@ -315702,6 +315704,7 @@ "/paymentsresellersubscription:v1/PromotionIntroductoryPricingDetailsIntroductoryPricingSpec/recurrenceCount": recurrence_count "/paymentsresellersubscription:v1/PromotionIntroductoryPricingDetailsIntroductoryPricingSpec/regionCode": region_code "/paymentsresellersubscription:v1/ResumeSubscriptionRequest": resume_subscription_request +"/paymentsresellersubscription:v1/ResumeSubscriptionRequest/cycleOptions": cycle_options "/paymentsresellersubscription:v1/ResumeSubscriptionResponse": resume_subscription_response "/paymentsresellersubscription:v1/ResumeSubscriptionResponse/subscription": subscription "/paymentsresellersubscription:v1/ServicePeriod": service_period @@ -315806,7 +315809,14 @@ "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.extend/name": name "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.get": get_partner_subscription "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.get/name": name +"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch": patch_partner_subscription_line_item +"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch/name": name +"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch/updateMask": update_mask "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision": provision_partner_subscription +? "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/cycleOptions.initialCycleDuration.count" +: cycle_options_initial_cycle_duration_count +? "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/cycleOptions.initialCycleDuration.unit" +: cycle_options_initial_cycle_duration_unit "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/parent": parent "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/subscriptionId": subscription_id "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.resume": resume_partner_subscription diff --git a/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md b/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md index 58ecd978938..6e14aa65ed1 100644 --- a/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md +++ b/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-paymentsresellersubscription_v1 +### v0.58.0 (2025-10-19) + +* Regenerated from discovery document revision 20251012 + ### v0.57.0 (2025-10-12) * Regenerated from discovery document revision 20251005 diff --git a/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/classes.rb b/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/classes.rb index 6bf48f9f169..e42eff52427 100644 --- a/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/classes.rb +++ b/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/classes.rb @@ -148,6 +148,25 @@ def update!(**args) end end + # The cycle options when starting and resuming a subscription. + class CycleOptions + include Google::Apis::Core::Hashable + + # Describes the length of a period of a time. + # Corresponds to the JSON property `initialCycleDuration` + # @return [Google::Apis::PaymentsresellersubscriptionV1::Duration] + attr_accessor :initial_cycle_duration + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @initial_cycle_duration = args[:initial_cycle_duration] if args.key?(:initial_cycle_duration) + end + end + # Describes the length of a period of a time. class Duration include Google::Apis::Core::Hashable @@ -1004,12 +1023,18 @@ def update!(**args) class ResumeSubscriptionRequest include Google::Apis::Core::Hashable + # The cycle options when starting and resuming a subscription. + # Corresponds to the JSON property `cycleOptions` + # @return [Google::Apis::PaymentsresellersubscriptionV1::CycleOptions] + attr_accessor :cycle_options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @cycle_options = args[:cycle_options] if args.key?(:cycle_options) end end diff --git a/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb b/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb index f7284e8d1de..9d672883e6d 100644 --- a/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +++ b/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module PaymentsresellersubscriptionV1 # Version of the google-apis-paymentsresellersubscription_v1 gem - GEM_VERSION = "0.57.0" + GEM_VERSION = "0.58.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251005" + REVISION = "20251012" end end end diff --git a/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/representations.rb b/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/representations.rb index f3354c2ad17..5a2f7c7a36b 100644 --- a/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/representations.rb +++ b/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/representations.rb @@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CycleOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Duration class Representation < Google::Apis::Core::JsonRepresentation; end @@ -356,6 +362,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class CycleOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :initial_cycle_duration, as: 'initialCycleDuration', class: Google::Apis::PaymentsresellersubscriptionV1::Duration, decorator: Google::Apis::PaymentsresellersubscriptionV1::Duration::Representation + + end + end + class Duration # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -622,6 +636,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class ResumeSubscriptionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cycle_options, as: 'cycleOptions', class: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions, decorator: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions::Representation + end end diff --git a/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/service.rb b/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/service.rb index 4250e150ec4..6da8f0f94d0 100644 --- a/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/service.rb +++ b/generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/service.rb @@ -387,6 +387,10 @@ def get_partner_subscription(name, fields: nil, quota_user: nil, options: nil, & # Required. The parent resource name, which is the identifier of the partner. It # will have the format of "partners/`partner_id`". # @param [Google::Apis::PaymentsresellersubscriptionV1::Subscription] subscription_object + # @param [Fixnum] cycle_options_initial_cycle_duration_count + # number of duration units to be included. + # @param [String] cycle_options_initial_cycle_duration_unit + # The unit used for the duration # @param [String] subscription_id # Required. Identifies the subscription resource on the Partner side. The value # 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, & # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def provision_partner_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block) + 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) command = make_simple_command(:post, 'v1/{+parent}/subscriptions:provision', options) command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation command.response_class = Google::Apis::PaymentsresellersubscriptionV1::Subscription command.params['parent'] = parent unless parent.nil? + command.query['cycleOptions.initialCycleDuration.count'] = cycle_options_initial_cycle_duration_count unless cycle_options_initial_cycle_duration_count.nil? + command.query['cycleOptions.initialCycleDuration.unit'] = cycle_options_initial_cycle_duration_unit unless cycle_options_initial_cycle_duration_unit.nil? command.query['subscriptionId'] = subscription_id unless subscription_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -533,6 +539,46 @@ def undo_partner_subscription_cancel(name, undo_cancel_subscription_request_obje execute_or_queue_command(command, &block) end + # Updates a line item of a subscription. It should be autenticated with a + # service account. + # @param [String] name + # Identifier. Resource name of the line item. Format: partners/`partner`/ + # subscriptions/`subscription`/lineItems/`lineItem` + # @param [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] subscription_line_item_object + # @param [String] update_mask + # Required. The list of fields to update. Only a limited set of fields can be + # updated. The allowed fields are the following: - `product_payload. + # googleHomePayload.googleStructureId` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_partner_subscription_line_item(name, subscription_line_item_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem::Representation + command.request_object = subscription_line_item_object + command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem::Representation + command.response_class = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # This API replaces user authorized OAuth consent based APIs (Create, Entitle). # Issues a timed session token for the given user intent. You can use the # session token to redirect the user to Google to finish the signup flow. You