google-apis-webcontentpublisher_v1 0.2.0 → 0.3.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 +4 -0
- data/lib/google/apis/webcontentpublisher_v1/classes.rb +393 -1
- data/lib/google/apis/webcontentpublisher_v1/gem_version.rb +2 -2
- data/lib/google/apis/webcontentpublisher_v1/representations.rb +170 -0
- data/lib/google/apis/webcontentpublisher_v1/service.rb +257 -0
- 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: 8a9b32f25bc89ab33c528a94e0c5ae6b9d22608833b868446b6ed92952dc3c60
|
|
4
|
+
data.tar.gz: fca10cdc7076878d583c85dcfe396f7cc520a868738fd560130087cb0774c818
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f775524047e4e1279cf2a52b59d57dfae67aa68f021896e8c4a237d33770f42964cd8a6d02fc7d29ca2695fabdfdb92b1c573b73cfeacee85858ab22343d1482
|
|
7
|
+
data.tar.gz: c06229d78e30b3f31739bedbadc9a9ad2a591ac3d35099395727e0d63caeda73c1849c7731d8e1a3a488bde44ec934331ea8de1b08822b137721f9c5e8a8688d
|
data/CHANGELOG.md
CHANGED
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
class CheckFreeAccessResponse
|
|
27
27
|
include Google::Apis::Core::Hashable
|
|
28
28
|
|
|
29
|
-
# True if free access should be allowed, false otherwise.
|
|
29
|
+
# Output only. True if free access should be allowed, false otherwise.
|
|
30
30
|
# Corresponds to the JSON property `isAllowed`
|
|
31
31
|
# @return [Boolean]
|
|
32
32
|
attr_accessor :is_allowed
|
|
@@ -41,6 +41,398 @@ module Google
|
|
|
41
41
|
@is_allowed = args[:is_allowed] if args.key?(:is_allowed)
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
|
+
|
|
45
|
+
# The content policy status of the publication, indicating any violations.
|
|
46
|
+
class ContentPolicyStatus
|
|
47
|
+
include Google::Apis::Core::Hashable
|
|
48
|
+
|
|
49
|
+
# Output only. URL pointing to more details about the policy violation or status.
|
|
50
|
+
# Corresponds to the JSON property `policyInfoUrl`
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :policy_info_url
|
|
53
|
+
|
|
54
|
+
# Output only. The current policy state.
|
|
55
|
+
# Corresponds to the JSON property `state`
|
|
56
|
+
# @return [String]
|
|
57
|
+
attr_accessor :state
|
|
58
|
+
|
|
59
|
+
def initialize(**args)
|
|
60
|
+
update!(**args)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Update properties of this object
|
|
64
|
+
def update!(**args)
|
|
65
|
+
@policy_info_url = args[:policy_info_url] if args.key?(:policy_info_url)
|
|
66
|
+
@state = args[:state] if args.key?(:state)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Represents a Call-To-Action (CTA) configuration for a publication.
|
|
71
|
+
class Cta
|
|
72
|
+
include Google::Apis::Core::Hashable
|
|
73
|
+
|
|
74
|
+
# Required. The user-visible display name of the CTA.
|
|
75
|
+
# Corresponds to the JSON property `displayName`
|
|
76
|
+
# @return [String]
|
|
77
|
+
attr_accessor :display_name
|
|
78
|
+
|
|
79
|
+
# Identifier. The resource name of the Cta. Format: organizations/`organization`/
|
|
80
|
+
# publications/`publication`/ctas/`cta`
|
|
81
|
+
# Corresponds to the JSON property `name`
|
|
82
|
+
# @return [String]
|
|
83
|
+
attr_accessor :name
|
|
84
|
+
|
|
85
|
+
# Configuration for newsletter signup calls-to-action (CTAs).
|
|
86
|
+
# Corresponds to the JSON property `newsletterConfig`
|
|
87
|
+
# @return [Google::Apis::WebcontentpublisherV1::NewsletterConfig]
|
|
88
|
+
attr_accessor :newsletter_config
|
|
89
|
+
|
|
90
|
+
# Output only. The current state of this CTA.
|
|
91
|
+
# Corresponds to the JSON property `state`
|
|
92
|
+
# @return [String]
|
|
93
|
+
attr_accessor :state
|
|
94
|
+
|
|
95
|
+
# Required. The type of this CTA.
|
|
96
|
+
# Corresponds to the JSON property `type`
|
|
97
|
+
# @return [String]
|
|
98
|
+
attr_accessor :type
|
|
99
|
+
|
|
100
|
+
def initialize(**args)
|
|
101
|
+
update!(**args)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Update properties of this object
|
|
105
|
+
def update!(**args)
|
|
106
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
107
|
+
@name = args[:name] if args.key?(:name)
|
|
108
|
+
@newsletter_config = args[:newsletter_config] if args.key?(:newsletter_config)
|
|
109
|
+
@state = args[:state] if args.key?(:state)
|
|
110
|
+
@type = args[:type] if args.key?(:type)
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Represents a domain property associated with a publication, typically used to
|
|
115
|
+
# verify ownership and scope access.
|
|
116
|
+
class DomainProperty
|
|
117
|
+
include Google::Apis::Core::Hashable
|
|
118
|
+
|
|
119
|
+
# Optional. Whether the domain ownership has been verified (e.g., via Google
|
|
120
|
+
# Search Console).
|
|
121
|
+
# Corresponds to the JSON property `ownershipVerified`
|
|
122
|
+
# @return [Boolean]
|
|
123
|
+
attr_accessor :ownership_verified
|
|
124
|
+
alias_method :ownership_verified?, :ownership_verified
|
|
125
|
+
|
|
126
|
+
# Required. The URL of the domain property (e.g., "https://example.com").
|
|
127
|
+
# Corresponds to the JSON property `url`
|
|
128
|
+
# @return [String]
|
|
129
|
+
attr_accessor :url
|
|
130
|
+
|
|
131
|
+
def initialize(**args)
|
|
132
|
+
update!(**args)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Update properties of this object
|
|
136
|
+
def update!(**args)
|
|
137
|
+
@ownership_verified = args[:ownership_verified] if args.key?(:ownership_verified)
|
|
138
|
+
@url = args[:url] if args.key?(:url)
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Response message for `ListCtas`.
|
|
143
|
+
class ListCtasResponse
|
|
144
|
+
include Google::Apis::Core::Hashable
|
|
145
|
+
|
|
146
|
+
# Output only. The list of CTAs.
|
|
147
|
+
# Corresponds to the JSON property `ctas`
|
|
148
|
+
# @return [Array<Google::Apis::WebcontentpublisherV1::Cta>]
|
|
149
|
+
attr_accessor :ctas
|
|
150
|
+
|
|
151
|
+
# Output only. A token to retrieve the next page of results, or empty if there
|
|
152
|
+
# are no more results.
|
|
153
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
154
|
+
# @return [String]
|
|
155
|
+
attr_accessor :next_page_token
|
|
156
|
+
|
|
157
|
+
def initialize(**args)
|
|
158
|
+
update!(**args)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Update properties of this object
|
|
162
|
+
def update!(**args)
|
|
163
|
+
@ctas = args[:ctas] if args.key?(:ctas)
|
|
164
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Response message for `ListPublications`.
|
|
169
|
+
class ListPublicationsResponse
|
|
170
|
+
include Google::Apis::Core::Hashable
|
|
171
|
+
|
|
172
|
+
# Output only. A token to retrieve the next page of results, or empty if there
|
|
173
|
+
# are no more results.
|
|
174
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
175
|
+
# @return [String]
|
|
176
|
+
attr_accessor :next_page_token
|
|
177
|
+
|
|
178
|
+
# Output only. The list of publications.
|
|
179
|
+
# Corresponds to the JSON property `publications`
|
|
180
|
+
# @return [Array<Google::Apis::WebcontentpublisherV1::Publication>]
|
|
181
|
+
attr_accessor :publications
|
|
182
|
+
|
|
183
|
+
def initialize(**args)
|
|
184
|
+
update!(**args)
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Update properties of this object
|
|
188
|
+
def update!(**args)
|
|
189
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
190
|
+
@publications = args[:publications] if args.key?(:publications)
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Configuration for newsletter signup calls-to-action (CTAs).
|
|
195
|
+
class NewsletterConfig
|
|
196
|
+
include Google::Apis::Core::Hashable
|
|
197
|
+
|
|
198
|
+
# Optional. Custom consent or disclosure text shown to the user.
|
|
199
|
+
# Corresponds to the JSON property `customConsentText`
|
|
200
|
+
# @return [String]
|
|
201
|
+
attr_accessor :custom_consent_text
|
|
202
|
+
|
|
203
|
+
# Optional. A custom message displayed to the user in the signup prompt.
|
|
204
|
+
# Corresponds to the JSON property `customMessage`
|
|
205
|
+
# @return [String]
|
|
206
|
+
attr_accessor :custom_message
|
|
207
|
+
|
|
208
|
+
# Optional. Whether the user is required to provide their name to sign up.
|
|
209
|
+
# Corresponds to the JSON property `nameRequired`
|
|
210
|
+
# @return [Boolean]
|
|
211
|
+
attr_accessor :name_required
|
|
212
|
+
alias_method :name_required?, :name_required
|
|
213
|
+
|
|
214
|
+
# Required. The title of the newsletter signup prompt.
|
|
215
|
+
# Corresponds to the JSON property `title`
|
|
216
|
+
# @return [String]
|
|
217
|
+
attr_accessor :title
|
|
218
|
+
|
|
219
|
+
def initialize(**args)
|
|
220
|
+
update!(**args)
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Update properties of this object
|
|
224
|
+
def update!(**args)
|
|
225
|
+
@custom_consent_text = args[:custom_consent_text] if args.key?(:custom_consent_text)
|
|
226
|
+
@custom_message = args[:custom_message] if args.key?(:custom_message)
|
|
227
|
+
@name_required = args[:name_required] if args.key?(:name_required)
|
|
228
|
+
@title = args[:title] if args.key?(:title)
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Represents a publisher's publication in Reader Revenue Manager.
|
|
233
|
+
class Publication
|
|
234
|
+
include Google::Apis::Core::Hashable
|
|
235
|
+
|
|
236
|
+
# Optional. Additional domain properties verified for the publication.
|
|
237
|
+
# Corresponds to the JSON property `additionalDomains`
|
|
238
|
+
# @return [Array<Google::Apis::WebcontentpublisherV1::DomainProperty>]
|
|
239
|
+
attr_accessor :additional_domains
|
|
240
|
+
|
|
241
|
+
# The content policy status of the publication, indicating any violations.
|
|
242
|
+
# Corresponds to the JSON property `contentPolicyStatus`
|
|
243
|
+
# @return [Google::Apis::WebcontentpublisherV1::ContentPolicyStatus]
|
|
244
|
+
attr_accessor :content_policy_status
|
|
245
|
+
|
|
246
|
+
# Required. The user-visible display name of the publication.
|
|
247
|
+
# Corresponds to the JSON property `displayName`
|
|
248
|
+
# @return [String]
|
|
249
|
+
attr_accessor :display_name
|
|
250
|
+
|
|
251
|
+
# Required. The primary language of the publication (BCP-47 code, e.g., "en-US").
|
|
252
|
+
# Corresponds to the JSON property `languageCode`
|
|
253
|
+
# @return [String]
|
|
254
|
+
attr_accessor :language_code
|
|
255
|
+
|
|
256
|
+
# Identifier. The resource name of the publication. Format: organizations/`
|
|
257
|
+
# organization`/publications/`publication`
|
|
258
|
+
# Corresponds to the JSON property `name`
|
|
259
|
+
# @return [String]
|
|
260
|
+
attr_accessor :name
|
|
261
|
+
|
|
262
|
+
# Output only. The current onboarding state.
|
|
263
|
+
# Corresponds to the JSON property `onboardingState`
|
|
264
|
+
# @return [String]
|
|
265
|
+
attr_accessor :onboarding_state
|
|
266
|
+
|
|
267
|
+
# Output only. The unique identifier of the organization that owns this
|
|
268
|
+
# publication.
|
|
269
|
+
# Corresponds to the JSON property `organizationId`
|
|
270
|
+
# @return [String]
|
|
271
|
+
attr_accessor :organization_id
|
|
272
|
+
|
|
273
|
+
# Output only. The configured payment option.
|
|
274
|
+
# Corresponds to the JSON property `paymentOption`
|
|
275
|
+
# @return [String]
|
|
276
|
+
attr_accessor :payment_option
|
|
277
|
+
|
|
278
|
+
# Represents a domain property associated with a publication, typically used to
|
|
279
|
+
# verify ownership and scope access.
|
|
280
|
+
# Corresponds to the JSON property `primaryDomain`
|
|
281
|
+
# @return [Google::Apis::WebcontentpublisherV1::DomainProperty]
|
|
282
|
+
attr_accessor :primary_domain
|
|
283
|
+
|
|
284
|
+
# Output only. The list of active products/features enabled for this publication.
|
|
285
|
+
# Corresponds to the JSON property `products`
|
|
286
|
+
# @return [Array<String>]
|
|
287
|
+
attr_accessor :products
|
|
288
|
+
|
|
289
|
+
# Output only. The unique identifier of the publication.
|
|
290
|
+
# Corresponds to the JSON property `publicationId`
|
|
291
|
+
# @return [String]
|
|
292
|
+
attr_accessor :publication_id
|
|
293
|
+
|
|
294
|
+
# Optional. The URL to the publisher's Privacy Policy.
|
|
295
|
+
# Corresponds to the JSON property `publicationPrivacyPolicyUrl`
|
|
296
|
+
# @return [String]
|
|
297
|
+
attr_accessor :publication_privacy_policy_url
|
|
298
|
+
|
|
299
|
+
# Optional. The URL to the publisher's own Terms of Service.
|
|
300
|
+
# Corresponds to the JSON property `publicationTosUrl`
|
|
301
|
+
# @return [String]
|
|
302
|
+
attr_accessor :publication_tos_url
|
|
303
|
+
|
|
304
|
+
# Required. The ISO 3166-1 alpha-2 region code where the publication is
|
|
305
|
+
# registered (e.g., "US").
|
|
306
|
+
# Corresponds to the JSON property `regionCode`
|
|
307
|
+
# @return [String]
|
|
308
|
+
attr_accessor :region_code
|
|
309
|
+
|
|
310
|
+
# Configuration and status of the Reader Revenue Manager (RRM) product for a
|
|
311
|
+
# publication.
|
|
312
|
+
# Corresponds to the JSON property `rrmProduct`
|
|
313
|
+
# @return [Google::Apis::WebcontentpublisherV1::RrmProduct]
|
|
314
|
+
attr_accessor :rrm_product
|
|
315
|
+
|
|
316
|
+
# Subscription Linking (SL) product settings and status.
|
|
317
|
+
# Corresponds to the JSON property `slProduct`
|
|
318
|
+
# @return [Google::Apis::WebcontentpublisherV1::SlProduct]
|
|
319
|
+
attr_accessor :sl_product
|
|
320
|
+
|
|
321
|
+
def initialize(**args)
|
|
322
|
+
update!(**args)
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Update properties of this object
|
|
326
|
+
def update!(**args)
|
|
327
|
+
@additional_domains = args[:additional_domains] if args.key?(:additional_domains)
|
|
328
|
+
@content_policy_status = args[:content_policy_status] if args.key?(:content_policy_status)
|
|
329
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
330
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
|
331
|
+
@name = args[:name] if args.key?(:name)
|
|
332
|
+
@onboarding_state = args[:onboarding_state] if args.key?(:onboarding_state)
|
|
333
|
+
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
|
334
|
+
@payment_option = args[:payment_option] if args.key?(:payment_option)
|
|
335
|
+
@primary_domain = args[:primary_domain] if args.key?(:primary_domain)
|
|
336
|
+
@products = args[:products] if args.key?(:products)
|
|
337
|
+
@publication_id = args[:publication_id] if args.key?(:publication_id)
|
|
338
|
+
@publication_privacy_policy_url = args[:publication_privacy_policy_url] if args.key?(:publication_privacy_policy_url)
|
|
339
|
+
@publication_tos_url = args[:publication_tos_url] if args.key?(:publication_tos_url)
|
|
340
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
|
341
|
+
@rrm_product = args[:rrm_product] if args.key?(:rrm_product)
|
|
342
|
+
@sl_product = args[:sl_product] if args.key?(:sl_product)
|
|
343
|
+
end
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Configuration and status of the Reader Revenue Manager (RRM) product for a
|
|
347
|
+
# publication.
|
|
348
|
+
class RrmProduct
|
|
349
|
+
include Google::Apis::Core::Hashable
|
|
350
|
+
|
|
351
|
+
# Optional. Whether the RRM product is enabled for the publication.
|
|
352
|
+
# Corresponds to the JSON property `enabled`
|
|
353
|
+
# @return [Boolean]
|
|
354
|
+
attr_accessor :enabled
|
|
355
|
+
alias_method :enabled?, :enabled
|
|
356
|
+
|
|
357
|
+
# Output only. The URL to the product-specific Terms of Service.
|
|
358
|
+
# Corresponds to the JSON property `productTosUrl`
|
|
359
|
+
# @return [String]
|
|
360
|
+
attr_accessor :product_tos_url
|
|
361
|
+
|
|
362
|
+
# Details about the acceptance of the Terms of Service (TOS).
|
|
363
|
+
# Corresponds to the JSON property `tosAcceptance`
|
|
364
|
+
# @return [Google::Apis::WebcontentpublisherV1::TosAcceptance]
|
|
365
|
+
attr_accessor :tos_acceptance
|
|
366
|
+
|
|
367
|
+
def initialize(**args)
|
|
368
|
+
update!(**args)
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Update properties of this object
|
|
372
|
+
def update!(**args)
|
|
373
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
|
374
|
+
@product_tos_url = args[:product_tos_url] if args.key?(:product_tos_url)
|
|
375
|
+
@tos_acceptance = args[:tos_acceptance] if args.key?(:tos_acceptance)
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Subscription Linking (SL) product settings and status.
|
|
380
|
+
class SlProduct
|
|
381
|
+
include Google::Apis::Core::Hashable
|
|
382
|
+
|
|
383
|
+
# Optional. Whether the Subscription Linking product is enabled.
|
|
384
|
+
# Corresponds to the JSON property `enabled`
|
|
385
|
+
# @return [Boolean]
|
|
386
|
+
attr_accessor :enabled
|
|
387
|
+
alias_method :enabled?, :enabled
|
|
388
|
+
|
|
389
|
+
# Optional. The Google Cloud Project number associated with the publication.
|
|
390
|
+
# Corresponds to the JSON property `gcpProjectNumber`
|
|
391
|
+
# @return [Fixnum]
|
|
392
|
+
attr_accessor :gcp_project_number
|
|
393
|
+
|
|
394
|
+
def initialize(**args)
|
|
395
|
+
update!(**args)
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Update properties of this object
|
|
399
|
+
def update!(**args)
|
|
400
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
|
401
|
+
@gcp_project_number = args[:gcp_project_number] if args.key?(:gcp_project_number)
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Details about the acceptance of the Terms of Service (TOS).
|
|
406
|
+
class TosAcceptance
|
|
407
|
+
include Google::Apis::Core::Hashable
|
|
408
|
+
|
|
409
|
+
# Optional. The name of the person who accepted the TOS.
|
|
410
|
+
# Corresponds to the JSON property `signer`
|
|
411
|
+
# @return [String]
|
|
412
|
+
attr_accessor :signer
|
|
413
|
+
|
|
414
|
+
# Optional. The job title or role of the signer.
|
|
415
|
+
# Corresponds to the JSON property `signerTitle`
|
|
416
|
+
# @return [String]
|
|
417
|
+
attr_accessor :signer_title
|
|
418
|
+
|
|
419
|
+
# Required. Whether the user has accepted the Terms of Service.
|
|
420
|
+
# Corresponds to the JSON property `userAccepted`
|
|
421
|
+
# @return [Boolean]
|
|
422
|
+
attr_accessor :user_accepted
|
|
423
|
+
alias_method :user_accepted?, :user_accepted
|
|
424
|
+
|
|
425
|
+
def initialize(**args)
|
|
426
|
+
update!(**args)
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Update properties of this object
|
|
430
|
+
def update!(**args)
|
|
431
|
+
@signer = args[:signer] if args.key?(:signer)
|
|
432
|
+
@signer_title = args[:signer_title] if args.key?(:signer_title)
|
|
433
|
+
@user_accepted = args[:user_accepted] if args.key?(:user_accepted)
|
|
434
|
+
end
|
|
435
|
+
end
|
|
44
436
|
end
|
|
45
437
|
end
|
|
46
438
|
end
|
|
@@ -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.3.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 = "
|
|
25
|
+
REVISION = "20260629"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -28,12 +28,182 @@ module Google
|
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
class ContentPolicyStatus
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class Cta
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class DomainProperty
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class ListCtasResponse
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class ListPublicationsResponse
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class NewsletterConfig
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class Publication
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class RrmProduct
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class SlProduct
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class TosAcceptance
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
31
91
|
class CheckFreeAccessResponse
|
|
32
92
|
# @private
|
|
33
93
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
34
94
|
property :is_allowed, as: 'isAllowed'
|
|
35
95
|
end
|
|
36
96
|
end
|
|
97
|
+
|
|
98
|
+
class ContentPolicyStatus
|
|
99
|
+
# @private
|
|
100
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
101
|
+
property :policy_info_url, as: 'policyInfoUrl'
|
|
102
|
+
property :state, as: 'state'
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
class Cta
|
|
107
|
+
# @private
|
|
108
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
109
|
+
property :display_name, as: 'displayName'
|
|
110
|
+
property :name, as: 'name'
|
|
111
|
+
property :newsletter_config, as: 'newsletterConfig', class: Google::Apis::WebcontentpublisherV1::NewsletterConfig, decorator: Google::Apis::WebcontentpublisherV1::NewsletterConfig::Representation
|
|
112
|
+
|
|
113
|
+
property :state, as: 'state'
|
|
114
|
+
property :type, as: 'type'
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
class DomainProperty
|
|
119
|
+
# @private
|
|
120
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
121
|
+
property :ownership_verified, as: 'ownershipVerified'
|
|
122
|
+
property :url, as: 'url'
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
class ListCtasResponse
|
|
127
|
+
# @private
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
129
|
+
collection :ctas, as: 'ctas', class: Google::Apis::WebcontentpublisherV1::Cta, decorator: Google::Apis::WebcontentpublisherV1::Cta::Representation
|
|
130
|
+
|
|
131
|
+
property :next_page_token, as: 'nextPageToken'
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
class ListPublicationsResponse
|
|
136
|
+
# @private
|
|
137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
138
|
+
property :next_page_token, as: 'nextPageToken'
|
|
139
|
+
collection :publications, as: 'publications', class: Google::Apis::WebcontentpublisherV1::Publication, decorator: Google::Apis::WebcontentpublisherV1::Publication::Representation
|
|
140
|
+
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
class NewsletterConfig
|
|
145
|
+
# @private
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
147
|
+
property :custom_consent_text, as: 'customConsentText'
|
|
148
|
+
property :custom_message, as: 'customMessage'
|
|
149
|
+
property :name_required, as: 'nameRequired'
|
|
150
|
+
property :title, as: 'title'
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
class Publication
|
|
155
|
+
# @private
|
|
156
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
157
|
+
collection :additional_domains, as: 'additionalDomains', class: Google::Apis::WebcontentpublisherV1::DomainProperty, decorator: Google::Apis::WebcontentpublisherV1::DomainProperty::Representation
|
|
158
|
+
|
|
159
|
+
property :content_policy_status, as: 'contentPolicyStatus', class: Google::Apis::WebcontentpublisherV1::ContentPolicyStatus, decorator: Google::Apis::WebcontentpublisherV1::ContentPolicyStatus::Representation
|
|
160
|
+
|
|
161
|
+
property :display_name, as: 'displayName'
|
|
162
|
+
property :language_code, as: 'languageCode'
|
|
163
|
+
property :name, as: 'name'
|
|
164
|
+
property :onboarding_state, as: 'onboardingState'
|
|
165
|
+
property :organization_id, as: 'organizationId'
|
|
166
|
+
property :payment_option, as: 'paymentOption'
|
|
167
|
+
property :primary_domain, as: 'primaryDomain', class: Google::Apis::WebcontentpublisherV1::DomainProperty, decorator: Google::Apis::WebcontentpublisherV1::DomainProperty::Representation
|
|
168
|
+
|
|
169
|
+
collection :products, as: 'products'
|
|
170
|
+
property :publication_id, as: 'publicationId'
|
|
171
|
+
property :publication_privacy_policy_url, as: 'publicationPrivacyPolicyUrl'
|
|
172
|
+
property :publication_tos_url, as: 'publicationTosUrl'
|
|
173
|
+
property :region_code, as: 'regionCode'
|
|
174
|
+
property :rrm_product, as: 'rrmProduct', class: Google::Apis::WebcontentpublisherV1::RrmProduct, decorator: Google::Apis::WebcontentpublisherV1::RrmProduct::Representation
|
|
175
|
+
|
|
176
|
+
property :sl_product, as: 'slProduct', class: Google::Apis::WebcontentpublisherV1::SlProduct, decorator: Google::Apis::WebcontentpublisherV1::SlProduct::Representation
|
|
177
|
+
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
class RrmProduct
|
|
182
|
+
# @private
|
|
183
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
184
|
+
property :enabled, as: 'enabled'
|
|
185
|
+
property :product_tos_url, as: 'productTosUrl'
|
|
186
|
+
property :tos_acceptance, as: 'tosAcceptance', class: Google::Apis::WebcontentpublisherV1::TosAcceptance, decorator: Google::Apis::WebcontentpublisherV1::TosAcceptance::Representation
|
|
187
|
+
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
class SlProduct
|
|
192
|
+
# @private
|
|
193
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
194
|
+
property :enabled, as: 'enabled'
|
|
195
|
+
property :gcp_project_number, :numeric_string => true, as: 'gcpProjectNumber'
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
class TosAcceptance
|
|
200
|
+
# @private
|
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
202
|
+
property :signer, as: 'signer'
|
|
203
|
+
property :signer_title, as: 'signerTitle'
|
|
204
|
+
property :user_accepted, as: 'userAccepted'
|
|
205
|
+
end
|
|
206
|
+
end
|
|
37
207
|
end
|
|
38
208
|
end
|
|
39
209
|
end
|
|
@@ -51,6 +51,263 @@ module Google
|
|
|
51
51
|
@batch_path = 'batch'
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
# Creates a publication.
|
|
55
|
+
# @param [String] parent
|
|
56
|
+
# Required. The parent resource where this publication will be created. Format: `
|
|
57
|
+
# organizations/`organization``.
|
|
58
|
+
# @param [Google::Apis::WebcontentpublisherV1::Publication] publication_object
|
|
59
|
+
# @param [String] publication_id
|
|
60
|
+
# Optional. The unique identifier of the publication to create. If not specified,
|
|
61
|
+
# the server will generate a random publication ID.
|
|
62
|
+
# @param [String] fields
|
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
|
64
|
+
# @param [String] quota_user
|
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
|
68
|
+
# Request-specific options
|
|
69
|
+
#
|
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
|
71
|
+
# @yieldparam result [Google::Apis::WebcontentpublisherV1::Publication] parsed result object
|
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
73
|
+
#
|
|
74
|
+
# @return [Google::Apis::WebcontentpublisherV1::Publication]
|
|
75
|
+
#
|
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
|
+
def create_organization_publication(parent, publication_object = nil, publication_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
+
command = make_simple_command(:post, 'v1/{+parent}/publications', options)
|
|
81
|
+
command.request_representation = Google::Apis::WebcontentpublisherV1::Publication::Representation
|
|
82
|
+
command.request_object = publication_object
|
|
83
|
+
command.response_representation = Google::Apis::WebcontentpublisherV1::Publication::Representation
|
|
84
|
+
command.response_class = Google::Apis::WebcontentpublisherV1::Publication
|
|
85
|
+
command.params['parent'] = parent unless parent.nil?
|
|
86
|
+
command.query['publicationId'] = publication_id unless publication_id.nil?
|
|
87
|
+
command.query['fields'] = fields unless fields.nil?
|
|
88
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
89
|
+
execute_or_queue_command(command, &block)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Gets a publication.
|
|
93
|
+
# @param [String] name
|
|
94
|
+
# Required. The resource name of the publication to retrieve. Format: `
|
|
95
|
+
# organizations/`organization`/publications/`publication``.
|
|
96
|
+
# @param [String] fields
|
|
97
|
+
# Selector specifying which fields to include in a partial response.
|
|
98
|
+
# @param [String] quota_user
|
|
99
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
100
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
101
|
+
# @param [Google::Apis::RequestOptions] options
|
|
102
|
+
# Request-specific options
|
|
103
|
+
#
|
|
104
|
+
# @yield [result, err] Result & error if block supplied
|
|
105
|
+
# @yieldparam result [Google::Apis::WebcontentpublisherV1::Publication] parsed result object
|
|
106
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
107
|
+
#
|
|
108
|
+
# @return [Google::Apis::WebcontentpublisherV1::Publication]
|
|
109
|
+
#
|
|
110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
113
|
+
def get_organization_publication(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
114
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
115
|
+
command.response_representation = Google::Apis::WebcontentpublisherV1::Publication::Representation
|
|
116
|
+
command.response_class = Google::Apis::WebcontentpublisherV1::Publication
|
|
117
|
+
command.params['name'] = name unless name.nil?
|
|
118
|
+
command.query['fields'] = fields unless fields.nil?
|
|
119
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
120
|
+
execute_or_queue_command(command, &block)
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Lists publications.
|
|
124
|
+
# @param [String] parent
|
|
125
|
+
# Required. The parent organization whose publications to list. Format: `
|
|
126
|
+
# organizations/`organization``.
|
|
127
|
+
# @param [String] filter
|
|
128
|
+
# Optional. A filter expression to filter the publications returned.
|
|
129
|
+
# @param [Fixnum] page_size
|
|
130
|
+
# Optional. The maximum number of publications to return. The service may return
|
|
131
|
+
# fewer than this value. If unspecified, at most 50 publications will be
|
|
132
|
+
# returned.
|
|
133
|
+
# @param [String] page_token
|
|
134
|
+
# Optional. A page token, received from a previous `ListPublications` call, to
|
|
135
|
+
# retrieve the next page.
|
|
136
|
+
# @param [String] fields
|
|
137
|
+
# Selector specifying which fields to include in a partial response.
|
|
138
|
+
# @param [String] quota_user
|
|
139
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
140
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
141
|
+
# @param [Google::Apis::RequestOptions] options
|
|
142
|
+
# Request-specific options
|
|
143
|
+
#
|
|
144
|
+
# @yield [result, err] Result & error if block supplied
|
|
145
|
+
# @yieldparam result [Google::Apis::WebcontentpublisherV1::ListPublicationsResponse] parsed result object
|
|
146
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
147
|
+
#
|
|
148
|
+
# @return [Google::Apis::WebcontentpublisherV1::ListPublicationsResponse]
|
|
149
|
+
#
|
|
150
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
151
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
152
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
153
|
+
def list_organization_publications(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
154
|
+
command = make_simple_command(:get, 'v1/{+parent}/publications', options)
|
|
155
|
+
command.response_representation = Google::Apis::WebcontentpublisherV1::ListPublicationsResponse::Representation
|
|
156
|
+
command.response_class = Google::Apis::WebcontentpublisherV1::ListPublicationsResponse
|
|
157
|
+
command.params['parent'] = parent unless parent.nil?
|
|
158
|
+
command.query['filter'] = filter unless filter.nil?
|
|
159
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
160
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
161
|
+
command.query['fields'] = fields unless fields.nil?
|
|
162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
163
|
+
execute_or_queue_command(command, &block)
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Updates a publication.
|
|
167
|
+
# @param [String] name
|
|
168
|
+
# Identifier. The resource name of the publication. Format: organizations/`
|
|
169
|
+
# organization`/publications/`publication`
|
|
170
|
+
# @param [Google::Apis::WebcontentpublisherV1::Publication] publication_object
|
|
171
|
+
# @param [String] update_mask
|
|
172
|
+
# Optional. The list of fields to update.
|
|
173
|
+
# @param [String] fields
|
|
174
|
+
# Selector specifying which fields to include in a partial response.
|
|
175
|
+
# @param [String] quota_user
|
|
176
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
177
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
178
|
+
# @param [Google::Apis::RequestOptions] options
|
|
179
|
+
# Request-specific options
|
|
180
|
+
#
|
|
181
|
+
# @yield [result, err] Result & error if block supplied
|
|
182
|
+
# @yieldparam result [Google::Apis::WebcontentpublisherV1::Publication] parsed result object
|
|
183
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
184
|
+
#
|
|
185
|
+
# @return [Google::Apis::WebcontentpublisherV1::Publication]
|
|
186
|
+
#
|
|
187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
190
|
+
def patch_organization_publication(name, publication_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
191
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
192
|
+
command.request_representation = Google::Apis::WebcontentpublisherV1::Publication::Representation
|
|
193
|
+
command.request_object = publication_object
|
|
194
|
+
command.response_representation = Google::Apis::WebcontentpublisherV1::Publication::Representation
|
|
195
|
+
command.response_class = Google::Apis::WebcontentpublisherV1::Publication
|
|
196
|
+
command.params['name'] = name unless name.nil?
|
|
197
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
198
|
+
command.query['fields'] = fields unless fields.nil?
|
|
199
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
200
|
+
execute_or_queue_command(command, &block)
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Creates a CTA.
|
|
204
|
+
# @param [String] parent
|
|
205
|
+
# Required. The parent publication resource where this CTA will be created.
|
|
206
|
+
# Format: `organizations/`organization`/publications/`publication``.
|
|
207
|
+
# @param [Google::Apis::WebcontentpublisherV1::Cta] cta_object
|
|
208
|
+
# @param [String] cta_id
|
|
209
|
+
# Optional. The unique identifier of the CTA to create. If not specified, the
|
|
210
|
+
# server will generate a random CTA ID.
|
|
211
|
+
# @param [String] fields
|
|
212
|
+
# Selector specifying which fields to include in a partial response.
|
|
213
|
+
# @param [String] quota_user
|
|
214
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
215
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
216
|
+
# @param [Google::Apis::RequestOptions] options
|
|
217
|
+
# Request-specific options
|
|
218
|
+
#
|
|
219
|
+
# @yield [result, err] Result & error if block supplied
|
|
220
|
+
# @yieldparam result [Google::Apis::WebcontentpublisherV1::Cta] parsed result object
|
|
221
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
222
|
+
#
|
|
223
|
+
# @return [Google::Apis::WebcontentpublisherV1::Cta]
|
|
224
|
+
#
|
|
225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
228
|
+
def create_organization_publication_cta(parent, cta_object = nil, cta_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
229
|
+
command = make_simple_command(:post, 'v1/{+parent}/ctas', options)
|
|
230
|
+
command.request_representation = Google::Apis::WebcontentpublisherV1::Cta::Representation
|
|
231
|
+
command.request_object = cta_object
|
|
232
|
+
command.response_representation = Google::Apis::WebcontentpublisherV1::Cta::Representation
|
|
233
|
+
command.response_class = Google::Apis::WebcontentpublisherV1::Cta
|
|
234
|
+
command.params['parent'] = parent unless parent.nil?
|
|
235
|
+
command.query['ctaId'] = cta_id unless cta_id.nil?
|
|
236
|
+
command.query['fields'] = fields unless fields.nil?
|
|
237
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
238
|
+
execute_or_queue_command(command, &block)
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Gets a CTA.
|
|
242
|
+
# @param [String] name
|
|
243
|
+
# Required. The resource name of the CTA to retrieve. Format: `organizations/`
|
|
244
|
+
# organization`/publications/`publication`/ctas/`cta``.
|
|
245
|
+
# @param [String] fields
|
|
246
|
+
# Selector specifying which fields to include in a partial response.
|
|
247
|
+
# @param [String] quota_user
|
|
248
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
249
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
250
|
+
# @param [Google::Apis::RequestOptions] options
|
|
251
|
+
# Request-specific options
|
|
252
|
+
#
|
|
253
|
+
# @yield [result, err] Result & error if block supplied
|
|
254
|
+
# @yieldparam result [Google::Apis::WebcontentpublisherV1::Cta] parsed result object
|
|
255
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
256
|
+
#
|
|
257
|
+
# @return [Google::Apis::WebcontentpublisherV1::Cta]
|
|
258
|
+
#
|
|
259
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
260
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
261
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
262
|
+
def get_organization_publication_cta(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
263
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
264
|
+
command.response_representation = Google::Apis::WebcontentpublisherV1::Cta::Representation
|
|
265
|
+
command.response_class = Google::Apis::WebcontentpublisherV1::Cta
|
|
266
|
+
command.params['name'] = name unless name.nil?
|
|
267
|
+
command.query['fields'] = fields unless fields.nil?
|
|
268
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
269
|
+
execute_or_queue_command(command, &block)
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Lists CTAs.
|
|
273
|
+
# @param [String] parent
|
|
274
|
+
# Required. The parent publication resource whose CTAs to list. Format: `
|
|
275
|
+
# organizations/`organization`/publications/`publication``.
|
|
276
|
+
# @param [Fixnum] page_size
|
|
277
|
+
# Optional. The maximum number of CTAs to return. The service may return fewer
|
|
278
|
+
# than this value. If unspecified, at most 50 CTAs will be returned.
|
|
279
|
+
# @param [String] page_token
|
|
280
|
+
# Optional. A page token, received from a previous `ListCtas` call, to retrieve
|
|
281
|
+
# the next page.
|
|
282
|
+
# @param [String] fields
|
|
283
|
+
# Selector specifying which fields to include in a partial response.
|
|
284
|
+
# @param [String] quota_user
|
|
285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
287
|
+
# @param [Google::Apis::RequestOptions] options
|
|
288
|
+
# Request-specific options
|
|
289
|
+
#
|
|
290
|
+
# @yield [result, err] Result & error if block supplied
|
|
291
|
+
# @yieldparam result [Google::Apis::WebcontentpublisherV1::ListCtasResponse] parsed result object
|
|
292
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
293
|
+
#
|
|
294
|
+
# @return [Google::Apis::WebcontentpublisherV1::ListCtasResponse]
|
|
295
|
+
#
|
|
296
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
297
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
298
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
299
|
+
def list_organization_publication_ctas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
300
|
+
command = make_simple_command(:get, 'v1/{+parent}/ctas', options)
|
|
301
|
+
command.response_representation = Google::Apis::WebcontentpublisherV1::ListCtasResponse::Representation
|
|
302
|
+
command.response_class = Google::Apis::WebcontentpublisherV1::ListCtasResponse
|
|
303
|
+
command.params['parent'] = parent unless parent.nil?
|
|
304
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
305
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
306
|
+
command.query['fields'] = fields unless fields.nil?
|
|
307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
308
|
+
execute_or_queue_command(command, &block)
|
|
309
|
+
end
|
|
310
|
+
|
|
54
311
|
# Checks if a user is eligible for free article access.
|
|
55
312
|
# @param [String] name
|
|
56
313
|
# Required. The resource name of the publication. Format: publications/`
|
|
@@ -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/subscribewithgoogle.publications.entitlements.manage
|
|
33
|
+
AUTH_SUBSCRIBEWITHGOOGLE_PUBLICATIONS_ENTITLEMENTS_MANAGE = 'https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.manage'
|
|
34
|
+
|
|
32
35
|
# See and review your subscription information
|
|
33
36
|
AUTH_SUBSCRIBEWITHGOOGLE_PUBLICATIONS_ENTITLEMENTS_READONLY = 'https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.readonly'
|
|
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.3.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.3.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:
|