google-apis-webcontentpublisher_v1 0.10.0 → 0.12.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 +9 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/webcontentpublisher_v1/classes.rb +23 -2
- data/lib/google/apis/webcontentpublisher_v1/gem_version.rb +3 -3
- data/lib/google/apis/webcontentpublisher_v1/representations.rb +13 -0
- data/lib/google/apis/webcontentpublisher_v1/service.rb +44 -1
- data/lib/google/apis/webcontentpublisher_v1.rb +3 -0
- 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: 052d664e22d89e0b052be25c1b4efa408377ff7033f52bf0a7896fb339e13e3c
|
|
4
|
+
data.tar.gz: 0c8c9e8aeea0809185c58c008a6e9bd65eee698846401b9fdac56617b31b7d38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22c8e17ce5810cae2725fa20b86d25108fed496c30897ec765da18a153e20e769cf7e0e1a0b4c4bdb4b3caaf057b6006124edaa1e4db916bd9c5b1b84485fca3
|
|
7
|
+
data.tar.gz: cf48526adbe4023533a85485ff46bc3679c3f33e67daab128f8044fa0042c8cf6495508172efb014cb5d4e23a5297f2038f3ed8312f13ca3e0bc1c2f646b6d20
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-webcontentpublisher_v1
|
|
2
2
|
|
|
3
|
+
### v0.12.0 (2026-12-06)
|
|
4
|
+
|
|
5
|
+
* Unspecified changes
|
|
6
|
+
|
|
7
|
+
### v0.11.0 (2026-11-29)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20261122
|
|
10
|
+
* Regenerated using generator version 0.19.3
|
|
11
|
+
|
|
3
12
|
### v0.10.0 (2026-11-01)
|
|
4
13
|
|
|
5
14
|
* 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
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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.
|
|
19
|
+
GEM_VERSION = "0.12.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.19.
|
|
22
|
+
GENERATOR_VERSION = "0.19.3"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
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
|
-
#
|
|
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.
|
|
4
|
+
version: 0.12.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.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-webcontentpublisher_v1/v0.12.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:
|