google-apis-webcontentpublisher_v1 0.10.0 → 0.11.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: d3e6478b33ea4b996ebe33df733136caf2f2d6c732956348654ec34e5d7b619d
4
- data.tar.gz: 876ba2d59a6338067875a909ba86031e11f6fe25934b173a67fca20b4ec9d030
3
+ metadata.gz: 844ba7f545d930bc072b0e89238d0b39d03d5dbad8912072a2e725f8f5e95c8c
4
+ data.tar.gz: 708ece9d32dde1b7a32987a12966e83c8a7f915a5698c74063e7896f2bdea493
5
5
  SHA512:
6
- metadata.gz: 8a0f60f2a6353d9bb986284a28b52ff1b0dc7d497302280f98b72900c13aab0c59b3325b01276bac13643305524252ecea616376cc192bf1c989da44cbd9b362
7
- data.tar.gz: 9f271df78a505fbe8cc04d609a0b8e405fbd158882f91a3c6d49060987f5db7ddf2cf9627f3ab562a1a761f34fca4be0c2df354734724605831c23f3b50a4c70
6
+ metadata.gz: 5caaacee02fd2aa4662d93a4aa6a05c270459ec25f9ad111ebe770aaa8a18f9af85b67c75d07a7955acb6629813b8a1e4a26617afea7753cf32b4f5576385faa
7
+ data.tar.gz: 6069e82fb80305729cb31d5b915b2e1ebdd58efb3d08716717ca514545a45cbaee08a33c27a5ddfe55269a229d872e8b5c382d17799a7c90debe0afa8723b13b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-webcontentpublisher_v1
2
2
 
3
+ ### v0.11.0 (2026-11-29)
4
+
5
+ * Regenerated from discovery document revision 20261122
6
+ * Regenerated using generator version 0.19.3
7
+
3
8
  ### v0.10.0 (2026-11-01)
4
9
 
5
10
  * Regenerated from discovery document revision 20261028
data/OVERVIEW.md CHANGED
@@ -85,7 +85,7 @@ The [product documentation](https://developers.google.com/news/subscribe) may pr
85
85
 
86
86
  This library is supported on Ruby 3.2+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions as described in the [Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions) policy. Older versions of Ruby _may_ still work, but are unsupported and not recommended.
89
89
 
90
90
  ## License
91
91
 
@@ -80,6 +80,25 @@ module Google
80
80
  end
81
81
  end
82
82
 
83
+ # Response message for `CheckProgramAccess`.
84
+ class CheckProgramAccessResponse
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # The entitlement access status.
88
+ # Corresponds to the JSON property `status`
89
+ # @return [String]
90
+ attr_accessor :status
91
+
92
+ def initialize(**args)
93
+ update!(**args)
94
+ end
95
+
96
+ # Update properties of this object
97
+ def update!(**args)
98
+ @status = args[:status] if args.key?(:status)
99
+ end
100
+ end
101
+
83
102
  # The content policy status of the publication, indicating any violations.
84
103
  class ContentPolicyStatus
85
104
  include Google::Apis::Core::Hashable
@@ -109,7 +128,9 @@ module Google
109
128
  class Cta
110
129
  include Google::Apis::Core::Hashable
111
130
 
112
- # Required. The user-visible display name of the CTA.
131
+ # Optional. The user-visible display name of the CTA (up to 40 characters).
132
+ # Defaults to a server-specified name based on the CTA type when omitted on
133
+ # creation.
113
134
  # Corresponds to the JSON property `displayName`
114
135
  # @return [String]
115
136
  attr_accessor :display_name
@@ -189,7 +210,7 @@ module Google
189
210
  # @return [String]
190
211
  attr_accessor :category_label
191
212
 
192
- # Optional. The question prompt displayed to readers (up to 140 characters).
213
+ # Required. The question prompt displayed to readers (up to 140 characters).
193
214
  # Corresponds to the JSON property `displayText`
194
215
  # @return [String]
195
216
  attr_accessor :display_text
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module WebcontentpublisherV1
18
18
  # Version of the google-apis-webcontentpublisher_v1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.19.1"
22
+ GENERATOR_VERSION = "0.19.3"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20261028"
25
+ REVISION = "20261122"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class CheckProgramAccessResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class ContentPolicyStatus
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -171,6 +177,13 @@ module Google
171
177
  end
172
178
  end
173
179
 
180
+ class CheckProgramAccessResponse
181
+ # @private
182
+ class Representation < Google::Apis::Core::JsonRepresentation
183
+ property :status, as: 'status'
184
+ end
185
+ end
186
+
174
187
  class ContentPolicyStatus
175
188
  # @private
176
189
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -386,7 +386,7 @@ module Google
386
386
  # Checks if a user is eligible for free article access.
387
387
  # @param [String] name
388
388
  # Required. The resource name of the publication. Format: publications/`
389
- # publication_id`
389
+ # publication`
390
390
  # @param [String] http_referrer
391
391
  # Required. The HTTP referrer.
392
392
  # @param [String] uri
@@ -420,6 +420,49 @@ module Google
420
420
  execute_or_queue_command(command, &block)
421
421
  end
422
422
 
423
+ # Checks if a reader has active program access.
424
+ # @param [String] name
425
+ # Required. The resource name of the publication. Format: publications/`
426
+ # publication`
427
+ # @param [String] canonical_url
428
+ # Required. The canonical `https://` URL of the article being accessed, matching
429
+ # the `` element on the rendered page. When calling the REST `GET` endpoint
430
+ # directly without a client library, callers must percent-encode the `
431
+ # canonicalUrl` query parameter; the service URL-decodes it automatically.
432
+ # @param [String] product_id
433
+ # Required. The specific product ID being accessed.
434
+ # @param [String] swg_user_token
435
+ # Required. The encrypted site token string received from the Chrome HTTP header.
436
+ # @param [String] fields
437
+ # Selector specifying which fields to include in a partial response.
438
+ # @param [String] quota_user
439
+ # Available to use for quota purposes for server-side applications. Can be any
440
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
441
+ # @param [Google::Apis::RequestOptions] options
442
+ # Request-specific options
443
+ #
444
+ # @yield [result, err] Result & error if block supplied
445
+ # @yieldparam result [Google::Apis::WebcontentpublisherV1::CheckProgramAccessResponse] parsed result object
446
+ # @yieldparam err [StandardError] error object if request failed
447
+ #
448
+ # @return [Google::Apis::WebcontentpublisherV1::CheckProgramAccessResponse]
449
+ #
450
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
451
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
452
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
453
+ def check_publication_program_access(name, canonical_url: nil, product_id: nil, swg_user_token: nil, fields: nil, quota_user: nil, options: nil, &block)
454
+ command = make_simple_command(:get, 'v1/{+name}:checkProgramAccess', options)
455
+ command.response_representation = Google::Apis::WebcontentpublisherV1::CheckProgramAccessResponse::Representation
456
+ command.response_class = Google::Apis::WebcontentpublisherV1::CheckProgramAccessResponse
457
+ command.params['name'] = name unless name.nil?
458
+ command.query['canonicalUrl'] = canonical_url unless canonical_url.nil?
459
+ command.query['productId'] = product_id unless product_id.nil?
460
+ command.query['swgUserToken'] = swg_user_token unless swg_user_token.nil?
461
+ command.query['fields'] = fields unless fields.nil?
462
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
463
+ execute_or_queue_command(command, &block)
464
+ end
465
+
423
466
  # Returns user tokens mapped to their canonical domains for all publications the
424
467
  # authenticated user is entitled to.
425
468
  # @param [String] name
@@ -29,6 +29,9 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
+ # Private Service: https://www.googleapis.com/auth/webcontentpublisher.publications.entitlements.readonly.system
33
+ AUTH_WEBCONTENTPUBLISHER_PUBLICATIONS_ENTITLEMENTS_READONLY_SYSTEM = 'https://www.googleapis.com/auth/webcontentpublisher.publications.entitlements.readonly.system'
34
+
32
35
  # Private Service: https://www.googleapis.com/auth/webcontentpublisher.publications.manage.system
33
36
  AUTH_WEBCONTENTPUBLISHER_PUBLICATIONS_MANAGE_SYSTEM = 'https://www.googleapis.com/auth/webcontentpublisher.publications.manage.system'
34
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-webcontentpublisher_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.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-webcontentpublisher_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-webcontentpublisher_v1/v0.10.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-webcontentpublisher_v1/v0.11.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-webcontentpublisher_v1
62
62
  rdoc_options: []
63
63
  require_paths: