google-apis-webcontentpublisher_v1 0.4.0 → 0.5.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: 5f40c5e76a0c8f8e69921fe66c0de0a1781aa378a9486017dfdc6f7d92bee3c1
4
- data.tar.gz: cd7d68eb0fd7435848b2c479ccec2dcca860651b92d09b824e58f87e6f2b2741
3
+ metadata.gz: c151515d750ba82d1e93c1b190ed31126dce709e053a39680ac0ff6726b3b72d
4
+ data.tar.gz: 48a25f9995b9c6df2b346bd4bc46d508e790e45f2cc74ae7f37f1098e84cd419
5
5
  SHA512:
6
- metadata.gz: 262b70697e73c566fe1a553bd291ca63048eff6e5de1c9d556007a88d43511d74f324503cc72c38c1302b353093557edbb2bd5d84300dfa9ba85158bb7699000
7
- data.tar.gz: 2269ee8dc49eae6f5358a44871cd5d169260dc04e48b83f8005fa45b8441f5dcc6287d0a9b448c68715b733b44e6bb343029bc7e6b867c4cce92de2d4070aa00
6
+ metadata.gz: 8dab2e456fc1511093eeb92917e14999d57d41fd64cb0663cada89c3a22b26287ce59c6fbbc5f8a614e6040929fcc6dbd331c0ac1da7796e67f5813d4f3d3caa
7
+ data.tar.gz: 3956013748088fcfc3bc8ee331cbc514b2a98fad6f3c93d1b22fd71d280b5c196a049c3a8ce09a7ff899cd901d0e1fd850caee93b1851e94a565e47efd87a9d1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-webcontentpublisher_v1
2
2
 
3
+ ### v0.5.0 (2026-08-16)
4
+
5
+ * Regenerated from discovery document revision 20260812
6
+
3
7
  ### v0.4.0 (2026-07-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20260724
@@ -139,6 +139,38 @@ module Google
139
139
  end
140
140
  end
141
141
 
142
+ # Request message for `GeneratePlatformSiteTokens`.
143
+ class GeneratePlatformSiteTokensRequest
144
+ include Google::Apis::Core::Hashable
145
+
146
+ def initialize(**args)
147
+ update!(**args)
148
+ end
149
+
150
+ # Update properties of this object
151
+ def update!(**args)
152
+ end
153
+ end
154
+
155
+ # Response message for `GeneratePlatformSiteTokens`.
156
+ class GeneratePlatformSiteTokensResponse
157
+ include Google::Apis::Core::Hashable
158
+
159
+ # List of domain-scoped secure token mappings.
160
+ # Corresponds to the JSON property `siteTokens`
161
+ # @return [Array<Google::Apis::WebcontentpublisherV1::SiteToken>]
162
+ attr_accessor :site_tokens
163
+
164
+ def initialize(**args)
165
+ update!(**args)
166
+ end
167
+
168
+ # Update properties of this object
169
+ def update!(**args)
170
+ @site_tokens = args[:site_tokens] if args.key?(:site_tokens)
171
+ end
172
+ end
173
+
142
174
  # Response message for `ListCtas`.
143
175
  class ListCtasResponse
144
176
  include Google::Apis::Core::Hashable
@@ -211,6 +243,12 @@ module Google
211
243
  attr_accessor :name_required
212
244
  alias_method :name_required?, :name_required
213
245
 
246
+ # Optional. Whether checking the opt-in checkbox is required.
247
+ # Corresponds to the JSON property `optInRequired`
248
+ # @return [Boolean]
249
+ attr_accessor :opt_in_required
250
+ alias_method :opt_in_required?, :opt_in_required
251
+
214
252
  # Required. The title of the newsletter signup prompt.
215
253
  # Corresponds to the JSON property `title`
216
254
  # @return [String]
@@ -225,6 +263,7 @@ module Google
225
263
  @custom_consent_text = args[:custom_consent_text] if args.key?(:custom_consent_text)
226
264
  @custom_message = args[:custom_message] if args.key?(:custom_message)
227
265
  @name_required = args[:name_required] if args.key?(:name_required)
266
+ @opt_in_required = args[:opt_in_required] if args.key?(:opt_in_required)
228
267
  @title = args[:title] if args.key?(:title)
229
268
  end
230
269
  end
@@ -383,6 +422,31 @@ module Google
383
422
  end
384
423
  end
385
424
 
425
+ # Represents a domain-scoped secure token mapping.
426
+ class SiteToken
427
+ include Google::Apis::Core::Hashable
428
+
429
+ # The domain scope this token is valid for.
430
+ # Corresponds to the JSON property `domain`
431
+ # @return [String]
432
+ attr_accessor :domain
433
+
434
+ # The domain-scoped secure token value (ESUT).
435
+ # Corresponds to the JSON property `token`
436
+ # @return [String]
437
+ attr_accessor :token
438
+
439
+ def initialize(**args)
440
+ update!(**args)
441
+ end
442
+
443
+ # Update properties of this object
444
+ def update!(**args)
445
+ @domain = args[:domain] if args.key?(:domain)
446
+ @token = args[:token] if args.key?(:token)
447
+ end
448
+ end
449
+
386
450
  # Subscription Linking (SL) product settings and status.
387
451
  class SlProduct
388
452
  include Google::Apis::Core::Hashable
@@ -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.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260724"
25
+ REVISION = "20260812"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,18 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class GeneratePlatformSiteTokensRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GeneratePlatformSiteTokensResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class ListCtasResponse
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -76,6 +88,12 @@ module Google
76
88
  include Google::Apis::Core::JsonObjectSupport
77
89
  end
78
90
 
91
+ class SiteToken
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
79
97
  class SlProduct
80
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
99
 
@@ -123,6 +141,20 @@ module Google
123
141
  end
124
142
  end
125
143
 
144
+ class GeneratePlatformSiteTokensRequest
145
+ # @private
146
+ class Representation < Google::Apis::Core::JsonRepresentation
147
+ end
148
+ end
149
+
150
+ class GeneratePlatformSiteTokensResponse
151
+ # @private
152
+ class Representation < Google::Apis::Core::JsonRepresentation
153
+ collection :site_tokens, as: 'siteTokens', class: Google::Apis::WebcontentpublisherV1::SiteToken, decorator: Google::Apis::WebcontentpublisherV1::SiteToken::Representation
154
+
155
+ end
156
+ end
157
+
126
158
  class ListCtasResponse
127
159
  # @private
128
160
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -147,6 +179,7 @@ module Google
147
179
  property :custom_consent_text, as: 'customConsentText'
148
180
  property :custom_message, as: 'customMessage'
149
181
  property :name_required, as: 'nameRequired'
182
+ property :opt_in_required, as: 'optInRequired'
150
183
  property :title, as: 'title'
151
184
  end
152
185
  end
@@ -189,6 +222,14 @@ module Google
189
222
  end
190
223
  end
191
224
 
225
+ class SiteToken
226
+ # @private
227
+ class Representation < Google::Apis::Core::JsonRepresentation
228
+ property :domain, as: 'domain'
229
+ property :token, as: 'token'
230
+ end
231
+ end
232
+
192
233
  class SlProduct
193
234
  # @private
194
235
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -308,6 +308,43 @@ module Google
308
308
  execute_or_queue_command(command, &block)
309
309
  end
310
310
 
311
+ # Updates a CTA.
312
+ # @param [String] name
313
+ # Identifier. The resource name of the Cta. Format: organizations/`organization`/
314
+ # publications/`publication`/ctas/`cta`
315
+ # @param [Google::Apis::WebcontentpublisherV1::Cta] cta_object
316
+ # @param [String] update_mask
317
+ # Optional. The list of fields to update.
318
+ # @param [String] fields
319
+ # Selector specifying which fields to include in a partial response.
320
+ # @param [String] quota_user
321
+ # Available to use for quota purposes for server-side applications. Can be any
322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
323
+ # @param [Google::Apis::RequestOptions] options
324
+ # Request-specific options
325
+ #
326
+ # @yield [result, err] Result & error if block supplied
327
+ # @yieldparam result [Google::Apis::WebcontentpublisherV1::Cta] parsed result object
328
+ # @yieldparam err [StandardError] error object if request failed
329
+ #
330
+ # @return [Google::Apis::WebcontentpublisherV1::Cta]
331
+ #
332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
335
+ def patch_organization_publication_cta(name, cta_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
336
+ command = make_simple_command(:patch, 'v1/{+name}', options)
337
+ command.request_representation = Google::Apis::WebcontentpublisherV1::Cta::Representation
338
+ command.request_object = cta_object
339
+ command.response_representation = Google::Apis::WebcontentpublisherV1::Cta::Representation
340
+ command.response_class = Google::Apis::WebcontentpublisherV1::Cta
341
+ command.params['name'] = name unless name.nil?
342
+ command.query['updateMask'] = update_mask unless update_mask.nil?
343
+ command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
345
+ execute_or_queue_command(command, &block)
346
+ end
347
+
311
348
  # Checks if a user is eligible for free article access.
312
349
  # @param [String] name
313
350
  # Required. The resource name of the publication. Format: publications/`
@@ -344,6 +381,41 @@ module Google
344
381
  command.query['quotaUser'] = quota_user unless quota_user.nil?
345
382
  execute_or_queue_command(command, &block)
346
383
  end
384
+
385
+ # Returns user tokens mapped to their canonical domains for all publications the
386
+ # authenticated user is entitled to.
387
+ # @param [String] name
388
+ # Required. The resource name of the user to generate tokens for. Format: users/`
389
+ # user`
390
+ # @param [Google::Apis::WebcontentpublisherV1::GeneratePlatformSiteTokensRequest] generate_platform_site_tokens_request_object
391
+ # @param [String] fields
392
+ # Selector specifying which fields to include in a partial response.
393
+ # @param [String] quota_user
394
+ # Available to use for quota purposes for server-side applications. Can be any
395
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
396
+ # @param [Google::Apis::RequestOptions] options
397
+ # Request-specific options
398
+ #
399
+ # @yield [result, err] Result & error if block supplied
400
+ # @yieldparam result [Google::Apis::WebcontentpublisherV1::GeneratePlatformSiteTokensResponse] parsed result object
401
+ # @yieldparam err [StandardError] error object if request failed
402
+ #
403
+ # @return [Google::Apis::WebcontentpublisherV1::GeneratePlatformSiteTokensResponse]
404
+ #
405
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
408
+ def generate_user_platform_site_tokens(name, generate_platform_site_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
409
+ command = make_simple_command(:post, 'v1/{+name}:generatePlatformSiteTokens', options)
410
+ command.request_representation = Google::Apis::WebcontentpublisherV1::GeneratePlatformSiteTokensRequest::Representation
411
+ command.request_object = generate_platform_site_tokens_request_object
412
+ command.response_representation = Google::Apis::WebcontentpublisherV1::GeneratePlatformSiteTokensResponse::Representation
413
+ command.response_class = Google::Apis::WebcontentpublisherV1::GeneratePlatformSiteTokensResponse
414
+ command.params['name'] = name unless name.nil?
415
+ command.query['fields'] = fields unless fields.nil?
416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
417
+ execute_or_queue_command(command, &block)
418
+ end
347
419
 
348
420
  protected
349
421
 
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.0
4
+ version: 0.5.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.4.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-webcontentpublisher_v1/v0.5.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: