diff --git a/api_names_out.yaml b/api_names_out.yaml index f3c93a1a471..9477e787cc3 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -439036,6 +439036,7 @@ "/webcontentpublisher:v1/NewsletterConfig/customConsentText": custom_consent_text "/webcontentpublisher:v1/NewsletterConfig/customMessage": custom_message "/webcontentpublisher:v1/NewsletterConfig/nameRequired": name_required +"/webcontentpublisher:v1/NewsletterConfig/optInRequired": opt_in_required "/webcontentpublisher:v1/NewsletterConfig/title": title "/webcontentpublisher:v1/Publication": publication "/webcontentpublisher:v1/Publication/additionalDomains": additional_domains @@ -439084,6 +439085,9 @@ "/webcontentpublisher:v1/webcontentpublisher.organizations.publications.ctas.list/pageSize": page_size "/webcontentpublisher:v1/webcontentpublisher.organizations.publications.ctas.list/pageToken": page_token "/webcontentpublisher:v1/webcontentpublisher.organizations.publications.ctas.list/parent": parent +"/webcontentpublisher:v1/webcontentpublisher.organizations.publications.ctas.patch": patch_organization_publication_cta +"/webcontentpublisher:v1/webcontentpublisher.organizations.publications.ctas.patch/name": name +"/webcontentpublisher:v1/webcontentpublisher.organizations.publications.ctas.patch/updateMask": update_mask "/webcontentpublisher:v1/webcontentpublisher.organizations.publications.get": get_organization_publication "/webcontentpublisher:v1/webcontentpublisher.organizations.publications.get/name": name "/webcontentpublisher:v1/webcontentpublisher.organizations.publications.list": list_organization_publications diff --git a/generated/google-apis-webcontentpublisher_v1/CHANGELOG.md b/generated/google-apis-webcontentpublisher_v1/CHANGELOG.md index bd31ed97b51..d02bdea066c 100644 --- a/generated/google-apis-webcontentpublisher_v1/CHANGELOG.md +++ b/generated/google-apis-webcontentpublisher_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-webcontentpublisher_v1 +### v0.5.0 (2026-08-09) + +* Regenerated from discovery document revision 20260804 + ### v0.4.0 (2026-07-26) * Regenerated from discovery document revision 20260724 diff --git a/generated/google-apis-webcontentpublisher_v1/Gemfile.lock b/generated/google-apis-webcontentpublisher_v1/Gemfile.lock index 220b255c3d0..520945a8850 100644 --- a/generated/google-apis-webcontentpublisher_v1/Gemfile.lock +++ b/generated/google-apis-webcontentpublisher_v1/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - google-apis-webcontentpublisher_v1 (0.4.0) + google-apis-webcontentpublisher_v1 (0.5.0) google-apis-core (>= 0.15.0, < 2.a) GEM @@ -97,43 +97,43 @@ DEPENDENCIES yard (~> 0.9, >= 0.9.25) CHECKSUMS - addressable (2.9.0) - base64 (0.3.0) + addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af + base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b bundler (4.0.14) sha256=d09a0a965cf772266a7e49e83610be7c2f4e49e61134c42a56804bb383cc24b8 - declarative (0.0.20) - diff-lcs (1.6.2) - faraday (2.14.3) - faraday-follow_redirects (0.5.0) - faraday-net_http (3.4.4) - google-apis-core (1.2.1) - google-apis-webcontentpublisher_v1 (0.4.0) - google-cloud-env (2.3.1) - google-logging-utils (0.2.0) - googleauth (1.17.1) - json (2.20.0) - jwt (3.2.0) - logger (1.7.0) - mini_mime (1.1.5) - multi_json (1.21.1) - net-http (0.9.1) - opencensus (0.5.0) - os (1.1.4) - pstore (0.2.1) - public_suffix (7.0.5) - rake (13.4.2) - redcarpet (3.6.1) - representable (3.2.0) - retriable (3.8.0) - rspec (3.13.2) - rspec-core (3.13.6) - rspec-expectations (3.13.5) - rspec-mocks (3.13.8) - rspec-support (3.13.7) - signet (0.22.0) - trailblazer-option (0.1.2) - uber (0.1.0) - uri (1.1.1) - yard (0.9.44) + declarative (0.0.20) sha256=8021dd6cb17ab2b61233c56903d3f5a259c5cf43c80ff332d447d395b17d9ff9 + diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962 + faraday (2.14.3) sha256=1882247e6766615c8220b4392bf1d27f6ebb63d8e28267587cef1fb0bf37f278 + faraday-follow_redirects (0.5.0) sha256=5cde93c894b30943a5d2b93c2fe9284216a6b756f7af406a1e55f211d97d10ad + faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588 + google-apis-core (1.2.1) sha256=3739030455277e3be90f2d07321ad4d0bf0d6b1ed820b2d092916d6cdef05337 + google-apis-webcontentpublisher_v1 (0.5.0) + google-cloud-env (2.3.1) sha256=0faac01eb27be78c2591d64433663b1a114f8f7af55a4f819755426cac9178e7 + google-logging-utils (0.2.0) sha256=675462b4ea5affa825a3442694ca2d75d0069455a1d0956127207498fca3df7b + googleauth (1.17.1) sha256=0f7e6fc70e204cee1b2d71f1e1de2d3b349d432404197fe68ebf7fa23d0821b9 + json (2.20.0) sha256=9362bc6e55a952b056abf9167cf053358181c904cb70cd6eee0808ea830fc32b + jwt (3.2.0) sha256=5419b1fe37b1da0982bd07051f573a8b8789ab724c2aa7e785e4784a3ed217d7 + logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203 + mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef + multi_json (1.21.1) sha256=e6126a31808e3b4d19f483c775ceac34df190dffa62adfb63a165ee14ba68080 + net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996 + opencensus (0.5.0) sha256=0456d1878fd91685c21a4bfa7feac85480a0c3bc969d25550f6d3f36dd75cbba + os (1.1.4) sha256=57816d6a334e7bd6aed048f4b0308226c5fb027433b67d90a9ab435f35108d3f + pstore (0.2.1) sha256=03904d0f2c66579e96d1e6704cdabc0c88df7ea8ed8782d9f3569f6f6c702c1a + public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623 + rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701 + redcarpet (3.6.1) sha256=d444910e6aa55480c6bcdc0cdb057626e8a32c054c29e793fa642ba2f155f445 + representable (3.2.0) sha256=cc29bf7eebc31653586849371a43ffe36c60b54b0a6365b5f7d95ec34d1ebace + retriable (3.8.0) sha256=9f2f1b0207594c7817f17f671587b8ec7587387ac6cebda6c941a802bb98a8e5 + rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587 + rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d + rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836 + rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47 + rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c + signet (0.22.0) sha256=b76d495ccb07ad35dbc89f3e920665a9d8ed717141955034005d7843dcfe4780 + trailblazer-option (0.1.2) sha256=20e4f12ea4e1f718c8007e7944ca21a329eee4eed9e0fa5dde6e8ad8ac4344a3 + uber (0.1.0) sha256=5beeb407ff807b5db994f82fa9ee07cfceaa561dad8af20be880bc67eba935dc + uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6 + yard (0.9.44) sha256=eb087e9b631ccd887b049f303d489963945452d5e2a7eb49a5a74a7cf6887f28 BUNDLED WITH 4.0.14 diff --git a/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/classes.rb b/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/classes.rb index efbd8679e94..8f057d43d8a 100644 --- a/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/classes.rb +++ b/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/classes.rb @@ -211,6 +211,12 @@ class NewsletterConfig attr_accessor :name_required alias_method :name_required?, :name_required + # Optional. Whether checking the opt-in checkbox is required. + # Corresponds to the JSON property `optInRequired` + # @return [Boolean] + attr_accessor :opt_in_required + alias_method :opt_in_required?, :opt_in_required + # Required. The title of the newsletter signup prompt. # Corresponds to the JSON property `title` # @return [String] @@ -225,6 +231,7 @@ def update!(**args) @custom_consent_text = args[:custom_consent_text] if args.key?(:custom_consent_text) @custom_message = args[:custom_message] if args.key?(:custom_message) @name_required = args[:name_required] if args.key?(:name_required) + @opt_in_required = args[:opt_in_required] if args.key?(:opt_in_required) @title = args[:title] if args.key?(:title) end end diff --git a/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/gem_version.rb b/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/gem_version.rb index 5ec659034a9..f1dc4ad13b5 100644 --- a/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/gem_version.rb +++ b/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module WebcontentpublisherV1 # Version of the google-apis-webcontentpublisher_v1 gem - GEM_VERSION = "0.4.0" + GEM_VERSION = "0.5.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.19.0" # Revision of the discovery document this client was generated from - REVISION = "20260724" + REVISION = "20260804" end end end diff --git a/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/representations.rb b/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/representations.rb index 50fc2684dde..9bf998c9d0f 100644 --- a/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/representations.rb +++ b/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/representations.rb @@ -147,6 +147,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :custom_consent_text, as: 'customConsentText' property :custom_message, as: 'customMessage' property :name_required, as: 'nameRequired' + property :opt_in_required, as: 'optInRequired' property :title, as: 'title' end end diff --git a/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/service.rb b/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/service.rb index ba592bc78c4..13a2d7c2fe4 100644 --- a/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/service.rb +++ b/generated/google-apis-webcontentpublisher_v1/lib/google/apis/webcontentpublisher_v1/service.rb @@ -308,6 +308,43 @@ def list_organization_publication_ctas(parent, page_size: nil, page_token: nil, execute_or_queue_command(command, &block) end + # Updates a CTA. + # @param [String] name + # Identifier. The resource name of the Cta. Format: organizations/`organization`/ + # publications/`publication`/ctas/`cta` + # @param [Google::Apis::WebcontentpublisherV1::Cta] cta_object + # @param [String] update_mask + # Optional. The list of fields to update. + # @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::WebcontentpublisherV1::Cta] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::WebcontentpublisherV1::Cta] + # + # @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_organization_publication_cta(name, cta_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::WebcontentpublisherV1::Cta::Representation + command.request_object = cta_object + command.response_representation = Google::Apis::WebcontentpublisherV1::Cta::Representation + command.response_class = Google::Apis::WebcontentpublisherV1::Cta + 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 + # Checks if a user is eligible for free article access. # @param [String] name # Required. The resource name of the publication. Format: publications/`