google-apis-webcontentpublisher_v1 0.8.0 → 0.10.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 +11 -2
- data/lib/google/apis/webcontentpublisher_v1/classes.rb +266 -1
- data/lib/google/apis/webcontentpublisher_v1/gem_version.rb +3 -3
- data/lib/google/apis/webcontentpublisher_v1/representations.rb +128 -0
- data/lib/google/apis/webcontentpublisher_v1/service.rb +39 -1
- 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: d3e6478b33ea4b996ebe33df733136caf2f2d6c732956348654ec34e5d7b619d
|
|
4
|
+
data.tar.gz: 876ba2d59a6338067875a909ba86031e11f6fe25934b173a67fca20b4ec9d030
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a0f60f2a6353d9bb986284a28b52ff1b0dc7d497302280f98b72900c13aab0c59b3325b01276bac13643305524252ecea616376cc192bf1c989da44cbd9b362
|
|
7
|
+
data.tar.gz: 9f271df78a505fbe8cc04d609a0b8e405fbd158882f91a3c6d49060987f5db7ddf2cf9627f3ab562a1a761f34fca4be0c2df354734724605831c23f3b50a4c70
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
# Release history for google-apis-webcontentpublisher_v1
|
|
2
2
|
|
|
3
|
-
### v0.
|
|
3
|
+
### v0.10.0 (2026-11-01)
|
|
4
4
|
|
|
5
|
-
* Regenerated from discovery document revision
|
|
5
|
+
* Regenerated from discovery document revision 20261028
|
|
6
|
+
|
|
7
|
+
### v0.9.0 (2026-10-21)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20261012
|
|
10
|
+
* Regenerated using generator version 0.19.1
|
|
11
|
+
|
|
12
|
+
### v0.8.0 (2026-09-24)
|
|
13
|
+
|
|
14
|
+
* Regenerated from discovery document revision 20260924
|
|
6
15
|
|
|
7
16
|
### v0.7.0 (2026-09-06)
|
|
8
17
|
|
|
@@ -22,6 +22,44 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module WebcontentpublisherV1
|
|
24
24
|
|
|
25
|
+
# A predefined answer choice template for a catalog question.
|
|
26
|
+
class AnswerChoiceTemplate
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Output only. Category of the answer based on the IAB Audience Taxonomy.
|
|
30
|
+
# Corresponds to the JSON property `category`
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :category
|
|
33
|
+
|
|
34
|
+
# Output only. Text label used for aggregating responses by category in
|
|
35
|
+
# analytics.
|
|
36
|
+
# Corresponds to the JSON property `categoryLabel`
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :category_label
|
|
39
|
+
|
|
40
|
+
# Output only. Localized answer choice text displayed to readers.
|
|
41
|
+
# Corresponds to the JSON property `displayText`
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :display_text
|
|
44
|
+
|
|
45
|
+
# Output only. Unique identifier of the answer choice within the question.
|
|
46
|
+
# Corresponds to the JSON property `id`
|
|
47
|
+
# @return [Fixnum]
|
|
48
|
+
attr_accessor :id
|
|
49
|
+
|
|
50
|
+
def initialize(**args)
|
|
51
|
+
update!(**args)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Update properties of this object
|
|
55
|
+
def update!(**args)
|
|
56
|
+
@category = args[:category] if args.key?(:category)
|
|
57
|
+
@category_label = args[:category_label] if args.key?(:category_label)
|
|
58
|
+
@display_text = args[:display_text] if args.key?(:display_text)
|
|
59
|
+
@id = args[:id] if args.key?(:id)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
25
63
|
# Response message for CheckFreeAccess
|
|
26
64
|
class CheckFreeAccessResponse
|
|
27
65
|
include Google::Apis::Core::Hashable
|
|
@@ -87,11 +125,16 @@ module Google
|
|
|
87
125
|
# @return [Google::Apis::WebcontentpublisherV1::NewsletterConfig]
|
|
88
126
|
attr_accessor :newsletter_config
|
|
89
127
|
|
|
90
|
-
#
|
|
128
|
+
# Optional. The current state of this CTA.
|
|
91
129
|
# Corresponds to the JSON property `state`
|
|
92
130
|
# @return [String]
|
|
93
131
|
attr_accessor :state
|
|
94
132
|
|
|
133
|
+
# Configuration for survey calls-to-action (CTAs).
|
|
134
|
+
# Corresponds to the JSON property `surveyConfig`
|
|
135
|
+
# @return [Google::Apis::WebcontentpublisherV1::SurveyConfig]
|
|
136
|
+
attr_accessor :survey_config
|
|
137
|
+
|
|
95
138
|
# Required. The type of this CTA.
|
|
96
139
|
# Corresponds to the JSON property `type`
|
|
97
140
|
# @return [String]
|
|
@@ -107,10 +150,68 @@ module Google
|
|
|
107
150
|
@name = args[:name] if args.key?(:name)
|
|
108
151
|
@newsletter_config = args[:newsletter_config] if args.key?(:newsletter_config)
|
|
109
152
|
@state = args[:state] if args.key?(:state)
|
|
153
|
+
@survey_config = args[:survey_config] if args.key?(:survey_config)
|
|
110
154
|
@type = args[:type] if args.key?(:type)
|
|
111
155
|
end
|
|
112
156
|
end
|
|
113
157
|
|
|
158
|
+
# An answer choice for a custom survey question.
|
|
159
|
+
class CustomAnswerChoice
|
|
160
|
+
include Google::Apis::Core::Hashable
|
|
161
|
+
|
|
162
|
+
# Required. The display text of the answer choice shown to readers.
|
|
163
|
+
# Corresponds to the JSON property `displayText`
|
|
164
|
+
# @return [String]
|
|
165
|
+
attr_accessor :display_text
|
|
166
|
+
|
|
167
|
+
def initialize(**args)
|
|
168
|
+
update!(**args)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Update properties of this object
|
|
172
|
+
def update!(**args)
|
|
173
|
+
@display_text = args[:display_text] if args.key?(:display_text)
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# A custom question defined by the publisher.
|
|
178
|
+
class CustomQuestion
|
|
179
|
+
include Google::Apis::Core::Hashable
|
|
180
|
+
|
|
181
|
+
# Required. Ordered list of answer choices for the custom question (2-5 items).
|
|
182
|
+
# Corresponds to the JSON property `answerChoices`
|
|
183
|
+
# @return [Array<Google::Apis::WebcontentpublisherV1::CustomAnswerChoice>]
|
|
184
|
+
attr_accessor :answer_choices
|
|
185
|
+
|
|
186
|
+
# Optional. Reporting category label sent to Google Analytics (up to 100
|
|
187
|
+
# characters).
|
|
188
|
+
# Corresponds to the JSON property `categoryLabel`
|
|
189
|
+
# @return [String]
|
|
190
|
+
attr_accessor :category_label
|
|
191
|
+
|
|
192
|
+
# Optional. The question prompt displayed to readers (up to 140 characters).
|
|
193
|
+
# Corresponds to the JSON property `displayText`
|
|
194
|
+
# @return [String]
|
|
195
|
+
attr_accessor :display_text
|
|
196
|
+
|
|
197
|
+
# Output only. Server-assigned unique identifier for the custom question.
|
|
198
|
+
# Corresponds to the JSON property `id`
|
|
199
|
+
# @return [String]
|
|
200
|
+
attr_accessor :id
|
|
201
|
+
|
|
202
|
+
def initialize(**args)
|
|
203
|
+
update!(**args)
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Update properties of this object
|
|
207
|
+
def update!(**args)
|
|
208
|
+
@answer_choices = args[:answer_choices] if args.key?(:answer_choices)
|
|
209
|
+
@category_label = args[:category_label] if args.key?(:category_label)
|
|
210
|
+
@display_text = args[:display_text] if args.key?(:display_text)
|
|
211
|
+
@id = args[:id] if args.key?(:id)
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
114
215
|
# Represents a domain property associated with a publication, typically used to
|
|
115
216
|
# verify ownership and scope access.
|
|
116
217
|
class DomainProperty
|
|
@@ -268,6 +369,33 @@ module Google
|
|
|
268
369
|
end
|
|
269
370
|
end
|
|
270
371
|
|
|
372
|
+
# A preset question referencing a template in the survey question catalog.
|
|
373
|
+
class PresetQuestion
|
|
374
|
+
include Google::Apis::Core::Hashable
|
|
375
|
+
|
|
376
|
+
# Optional. Selected answer choice IDs from the question template. Required (2-5
|
|
377
|
+
# unique IDs) when the catalog question is `CONFIGURABLE_CHOICES`, and must be
|
|
378
|
+
# omitted for `FIXED_CHOICES`.
|
|
379
|
+
# Corresponds to the JSON property `answerIds`
|
|
380
|
+
# @return [Array<Fixnum>]
|
|
381
|
+
attr_accessor :answer_ids
|
|
382
|
+
|
|
383
|
+
# Required. ID of the question template from `SurveyQuestionCatalog`.
|
|
384
|
+
# Corresponds to the JSON property `questionId`
|
|
385
|
+
# @return [Fixnum]
|
|
386
|
+
attr_accessor :question_id
|
|
387
|
+
|
|
388
|
+
def initialize(**args)
|
|
389
|
+
update!(**args)
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# Update properties of this object
|
|
393
|
+
def update!(**args)
|
|
394
|
+
@answer_ids = args[:answer_ids] if args.key?(:answer_ids)
|
|
395
|
+
@question_id = args[:question_id] if args.key?(:question_id)
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
|
|
271
399
|
# Represents a publisher's publication in Reader Revenue Manager.
|
|
272
400
|
class Publication
|
|
273
401
|
include Google::Apis::Core::Hashable
|
|
@@ -389,6 +517,56 @@ module Google
|
|
|
389
517
|
end
|
|
390
518
|
end
|
|
391
519
|
|
|
520
|
+
# A predefined question template in the survey question catalog.
|
|
521
|
+
class QuestionTemplate
|
|
522
|
+
include Google::Apis::Core::Hashable
|
|
523
|
+
|
|
524
|
+
# Output only. Possible answer choices for this question.
|
|
525
|
+
# Corresponds to the JSON property `answerChoices`
|
|
526
|
+
# @return [Array<Google::Apis::WebcontentpublisherV1::AnswerChoiceTemplate>]
|
|
527
|
+
attr_accessor :answer_choices
|
|
528
|
+
|
|
529
|
+
# Output only. Category of the question based on the IAB Audience Taxonomy.
|
|
530
|
+
# Corresponds to the JSON property `category`
|
|
531
|
+
# @return [String]
|
|
532
|
+
attr_accessor :category
|
|
533
|
+
|
|
534
|
+
# Output only. Text label used for aggregating responses by category in
|
|
535
|
+
# analytics.
|
|
536
|
+
# Corresponds to the JSON property `categoryLabel`
|
|
537
|
+
# @return [String]
|
|
538
|
+
attr_accessor :category_label
|
|
539
|
+
|
|
540
|
+
# Output only. The type of answer choice configuration for this question.
|
|
541
|
+
# Corresponds to the JSON property `configurationType`
|
|
542
|
+
# @return [String]
|
|
543
|
+
attr_accessor :configuration_type
|
|
544
|
+
|
|
545
|
+
# Output only. Localized question text displayed to readers.
|
|
546
|
+
# Corresponds to the JSON property `displayText`
|
|
547
|
+
# @return [String]
|
|
548
|
+
attr_accessor :display_text
|
|
549
|
+
|
|
550
|
+
# Output only. Unique identifier of the question template.
|
|
551
|
+
# Corresponds to the JSON property `id`
|
|
552
|
+
# @return [Fixnum]
|
|
553
|
+
attr_accessor :id
|
|
554
|
+
|
|
555
|
+
def initialize(**args)
|
|
556
|
+
update!(**args)
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
# Update properties of this object
|
|
560
|
+
def update!(**args)
|
|
561
|
+
@answer_choices = args[:answer_choices] if args.key?(:answer_choices)
|
|
562
|
+
@category = args[:category] if args.key?(:category)
|
|
563
|
+
@category_label = args[:category_label] if args.key?(:category_label)
|
|
564
|
+
@configuration_type = args[:configuration_type] if args.key?(:configuration_type)
|
|
565
|
+
@display_text = args[:display_text] if args.key?(:display_text)
|
|
566
|
+
@id = args[:id] if args.key?(:id)
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
|
|
392
570
|
# Configuration and status of the Reader Revenue Manager (RRM) product for a
|
|
393
571
|
# publication.
|
|
394
572
|
class RrmProduct
|
|
@@ -473,6 +651,93 @@ module Google
|
|
|
473
651
|
end
|
|
474
652
|
end
|
|
475
653
|
|
|
654
|
+
# Configuration for survey calls-to-action (CTAs).
|
|
655
|
+
class SurveyConfig
|
|
656
|
+
include Google::Apis::Core::Hashable
|
|
657
|
+
|
|
658
|
+
# Optional. Header prompt shown to readers. If omitted, the server populates the
|
|
659
|
+
# default prompt localized to the parent publication's configured primary
|
|
660
|
+
# language.
|
|
661
|
+
# Corresponds to the JSON property `customMessage`
|
|
662
|
+
# @return [String]
|
|
663
|
+
attr_accessor :custom_message
|
|
664
|
+
|
|
665
|
+
# Optional. Ordered list of questions presented in the survey (1-3 items when `
|
|
666
|
+
# ACTIVE`; 0-3 when `DRAFT`).
|
|
667
|
+
# Corresponds to the JSON property `questions`
|
|
668
|
+
# @return [Array<Google::Apis::WebcontentpublisherV1::SurveyQuestion>]
|
|
669
|
+
attr_accessor :questions
|
|
670
|
+
|
|
671
|
+
# Output only. Link to the Looker Studio dashboard.
|
|
672
|
+
# Corresponds to the JSON property `reportUrl`
|
|
673
|
+
# @return [String]
|
|
674
|
+
attr_accessor :report_url
|
|
675
|
+
|
|
676
|
+
def initialize(**args)
|
|
677
|
+
update!(**args)
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
# Update properties of this object
|
|
681
|
+
def update!(**args)
|
|
682
|
+
@custom_message = args[:custom_message] if args.key?(:custom_message)
|
|
683
|
+
@questions = args[:questions] if args.key?(:questions)
|
|
684
|
+
@report_url = args[:report_url] if args.key?(:report_url)
|
|
685
|
+
end
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
# A single question within a survey, which can be either a preset question from
|
|
689
|
+
# the catalog or a custom publisher-defined question.
|
|
690
|
+
class SurveyQuestion
|
|
691
|
+
include Google::Apis::Core::Hashable
|
|
692
|
+
|
|
693
|
+
# A custom question defined by the publisher.
|
|
694
|
+
# Corresponds to the JSON property `customQuestion`
|
|
695
|
+
# @return [Google::Apis::WebcontentpublisherV1::CustomQuestion]
|
|
696
|
+
attr_accessor :custom_question
|
|
697
|
+
|
|
698
|
+
# A preset question referencing a template in the survey question catalog.
|
|
699
|
+
# Corresponds to the JSON property `presetQuestion`
|
|
700
|
+
# @return [Google::Apis::WebcontentpublisherV1::PresetQuestion]
|
|
701
|
+
attr_accessor :preset_question
|
|
702
|
+
|
|
703
|
+
def initialize(**args)
|
|
704
|
+
update!(**args)
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
# Update properties of this object
|
|
708
|
+
def update!(**args)
|
|
709
|
+
@custom_question = args[:custom_question] if args.key?(:custom_question)
|
|
710
|
+
@preset_question = args[:preset_question] if args.key?(:preset_question)
|
|
711
|
+
end
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
# Represents the catalog of predefined survey questions and localized answer
|
|
715
|
+
# choices available for a publication.
|
|
716
|
+
class SurveyQuestionCatalog
|
|
717
|
+
include Google::Apis::Core::Hashable
|
|
718
|
+
|
|
719
|
+
# Identifier. The resource name of the survey question catalog. Format: `
|
|
720
|
+
# organizations/`organization`/publications/`publication`/surveyQuestionCatalog`.
|
|
721
|
+
# Corresponds to the JSON property `name`
|
|
722
|
+
# @return [String]
|
|
723
|
+
attr_accessor :name
|
|
724
|
+
|
|
725
|
+
# Output only. The list of available predefined question templates.
|
|
726
|
+
# Corresponds to the JSON property `questions`
|
|
727
|
+
# @return [Array<Google::Apis::WebcontentpublisherV1::QuestionTemplate>]
|
|
728
|
+
attr_accessor :questions
|
|
729
|
+
|
|
730
|
+
def initialize(**args)
|
|
731
|
+
update!(**args)
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# Update properties of this object
|
|
735
|
+
def update!(**args)
|
|
736
|
+
@name = args[:name] if args.key?(:name)
|
|
737
|
+
@questions = args[:questions] if args.key?(:questions)
|
|
738
|
+
end
|
|
739
|
+
end
|
|
740
|
+
|
|
476
741
|
# Details about the acceptance of the Terms of Service (TOS).
|
|
477
742
|
class TosAcceptance
|
|
478
743
|
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.
|
|
19
|
+
GEM_VERSION = "0.10.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.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20261028"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -22,6 +22,12 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module WebcontentpublisherV1
|
|
24
24
|
|
|
25
|
+
class AnswerChoiceTemplate
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
25
31
|
class CheckFreeAccessResponse
|
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
33
|
|
|
@@ -40,6 +46,18 @@ module Google
|
|
|
40
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
47
|
end
|
|
42
48
|
|
|
49
|
+
class CustomAnswerChoice
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class CustomQuestion
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
43
61
|
class DomainProperty
|
|
44
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
63
|
|
|
@@ -76,12 +94,24 @@ module Google
|
|
|
76
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
77
95
|
end
|
|
78
96
|
|
|
97
|
+
class PresetQuestion
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
79
103
|
class Publication
|
|
80
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
105
|
|
|
82
106
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
107
|
end
|
|
84
108
|
|
|
109
|
+
class QuestionTemplate
|
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
|
+
|
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
113
|
+
end
|
|
114
|
+
|
|
85
115
|
class RrmProduct
|
|
86
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
117
|
|
|
@@ -100,12 +130,40 @@ module Google
|
|
|
100
130
|
include Google::Apis::Core::JsonObjectSupport
|
|
101
131
|
end
|
|
102
132
|
|
|
133
|
+
class SurveyConfig
|
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
|
+
|
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class SurveyQuestion
|
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
141
|
+
|
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class SurveyQuestionCatalog
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
103
151
|
class TosAcceptance
|
|
104
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
153
|
|
|
106
154
|
include Google::Apis::Core::JsonObjectSupport
|
|
107
155
|
end
|
|
108
156
|
|
|
157
|
+
class AnswerChoiceTemplate
|
|
158
|
+
# @private
|
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
160
|
+
property :category, as: 'category'
|
|
161
|
+
property :category_label, as: 'categoryLabel'
|
|
162
|
+
property :display_text, as: 'displayText'
|
|
163
|
+
property :id, as: 'id'
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
109
167
|
class CheckFreeAccessResponse
|
|
110
168
|
# @private
|
|
111
169
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -129,10 +187,30 @@ module Google
|
|
|
129
187
|
property :newsletter_config, as: 'newsletterConfig', class: Google::Apis::WebcontentpublisherV1::NewsletterConfig, decorator: Google::Apis::WebcontentpublisherV1::NewsletterConfig::Representation
|
|
130
188
|
|
|
131
189
|
property :state, as: 'state'
|
|
190
|
+
property :survey_config, as: 'surveyConfig', class: Google::Apis::WebcontentpublisherV1::SurveyConfig, decorator: Google::Apis::WebcontentpublisherV1::SurveyConfig::Representation
|
|
191
|
+
|
|
132
192
|
property :type, as: 'type'
|
|
133
193
|
end
|
|
134
194
|
end
|
|
135
195
|
|
|
196
|
+
class CustomAnswerChoice
|
|
197
|
+
# @private
|
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
199
|
+
property :display_text, as: 'displayText'
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
class CustomQuestion
|
|
204
|
+
# @private
|
|
205
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
206
|
+
collection :answer_choices, as: 'answerChoices', class: Google::Apis::WebcontentpublisherV1::CustomAnswerChoice, decorator: Google::Apis::WebcontentpublisherV1::CustomAnswerChoice::Representation
|
|
207
|
+
|
|
208
|
+
property :category_label, as: 'categoryLabel'
|
|
209
|
+
property :display_text, as: 'displayText'
|
|
210
|
+
property :id, as: 'id'
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
136
214
|
class DomainProperty
|
|
137
215
|
# @private
|
|
138
216
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -184,6 +262,14 @@ module Google
|
|
|
184
262
|
end
|
|
185
263
|
end
|
|
186
264
|
|
|
265
|
+
class PresetQuestion
|
|
266
|
+
# @private
|
|
267
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
268
|
+
collection :answer_ids, as: 'answerIds'
|
|
269
|
+
property :question_id, as: 'questionId'
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
187
273
|
class Publication
|
|
188
274
|
# @private
|
|
189
275
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -212,6 +298,19 @@ module Google
|
|
|
212
298
|
end
|
|
213
299
|
end
|
|
214
300
|
|
|
301
|
+
class QuestionTemplate
|
|
302
|
+
# @private
|
|
303
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
304
|
+
collection :answer_choices, as: 'answerChoices', class: Google::Apis::WebcontentpublisherV1::AnswerChoiceTemplate, decorator: Google::Apis::WebcontentpublisherV1::AnswerChoiceTemplate::Representation
|
|
305
|
+
|
|
306
|
+
property :category, as: 'category'
|
|
307
|
+
property :category_label, as: 'categoryLabel'
|
|
308
|
+
property :configuration_type, as: 'configurationType'
|
|
309
|
+
property :display_text, as: 'displayText'
|
|
310
|
+
property :id, as: 'id'
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
|
|
215
314
|
class RrmProduct
|
|
216
315
|
# @private
|
|
217
316
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -238,6 +337,35 @@ module Google
|
|
|
238
337
|
end
|
|
239
338
|
end
|
|
240
339
|
|
|
340
|
+
class SurveyConfig
|
|
341
|
+
# @private
|
|
342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
343
|
+
property :custom_message, as: 'customMessage'
|
|
344
|
+
collection :questions, as: 'questions', class: Google::Apis::WebcontentpublisherV1::SurveyQuestion, decorator: Google::Apis::WebcontentpublisherV1::SurveyQuestion::Representation
|
|
345
|
+
|
|
346
|
+
property :report_url, as: 'reportUrl'
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
class SurveyQuestion
|
|
351
|
+
# @private
|
|
352
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
353
|
+
property :custom_question, as: 'customQuestion', class: Google::Apis::WebcontentpublisherV1::CustomQuestion, decorator: Google::Apis::WebcontentpublisherV1::CustomQuestion::Representation
|
|
354
|
+
|
|
355
|
+
property :preset_question, as: 'presetQuestion', class: Google::Apis::WebcontentpublisherV1::PresetQuestion, decorator: Google::Apis::WebcontentpublisherV1::PresetQuestion::Representation
|
|
356
|
+
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
class SurveyQuestionCatalog
|
|
361
|
+
# @private
|
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
363
|
+
property :name, as: 'name'
|
|
364
|
+
collection :questions, as: 'questions', class: Google::Apis::WebcontentpublisherV1::QuestionTemplate, decorator: Google::Apis::WebcontentpublisherV1::QuestionTemplate::Representation
|
|
365
|
+
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
|
|
241
369
|
class TosAcceptance
|
|
242
370
|
# @private
|
|
243
371
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -120,9 +120,47 @@ module Google
|
|
|
120
120
|
execute_or_queue_command(command, &block)
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
+
# Retrieves the catalog of predefined survey questions and answer choices
|
|
124
|
+
# available for a publication.
|
|
125
|
+
# @param [String] name
|
|
126
|
+
# Required. The resource name of the survey question catalog to retrieve. Format:
|
|
127
|
+
# `organizations/`organization`/publications/`publication`/
|
|
128
|
+
# surveyQuestionCatalog`.
|
|
129
|
+
# @param [String] language_code
|
|
130
|
+
# Optional. The BCP-47 language code (e.g., "en-US", "es-419") to override the
|
|
131
|
+
# publication's configured primary language.
|
|
132
|
+
# @param [String] fields
|
|
133
|
+
# Selector specifying which fields to include in a partial response.
|
|
134
|
+
# @param [String] quota_user
|
|
135
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
136
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
137
|
+
# @param [Google::Apis::RequestOptions] options
|
|
138
|
+
# Request-specific options
|
|
139
|
+
#
|
|
140
|
+
# @yield [result, err] Result & error if block supplied
|
|
141
|
+
# @yieldparam result [Google::Apis::WebcontentpublisherV1::SurveyQuestionCatalog] parsed result object
|
|
142
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
143
|
+
#
|
|
144
|
+
# @return [Google::Apis::WebcontentpublisherV1::SurveyQuestionCatalog]
|
|
145
|
+
#
|
|
146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
149
|
+
def get_organization_publication_survey_question_catalog(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
150
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
151
|
+
command.response_representation = Google::Apis::WebcontentpublisherV1::SurveyQuestionCatalog::Representation
|
|
152
|
+
command.response_class = Google::Apis::WebcontentpublisherV1::SurveyQuestionCatalog
|
|
153
|
+
command.params['name'] = name unless name.nil?
|
|
154
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
|
156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
157
|
+
execute_or_queue_command(command, &block)
|
|
158
|
+
end
|
|
159
|
+
|
|
123
160
|
# Lists publications.
|
|
124
161
|
# @param [String] parent
|
|
125
|
-
# Required. The parent organization whose publications to list
|
|
162
|
+
# Required. The parent organization whose publications to list, or "
|
|
163
|
+
# organizations/-" for all organizations a user has access to. Format: `
|
|
126
164
|
# organizations/`organization``.
|
|
127
165
|
# @param [String] filter
|
|
128
166
|
# Optional. A filter expression to filter the publications returned.
|
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.10.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.10.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:
|