google-api-client 0.10.2 → 0.10.3

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.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -0,0 +1,40 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/surveys_v2/service.rb'
16
+ require 'google/apis/surveys_v2/classes.rb'
17
+ require 'google/apis/surveys_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Surveys API
22
+ #
23
+ # Creates and conducts surveys, lists the surveys that an authenticated user
24
+ # owns, and retrieves survey results and information about specified surveys.
25
+ #
26
+ module SurveysV2
27
+ VERSION = 'V2'
28
+ REVISION = '20161103'
29
+
30
+ # View and manage your surveys and results
31
+ AUTH_SURVEYS = 'https://www.googleapis.com/auth/surveys'
32
+
33
+ # View your surveys and survey results
34
+ AUTH_SURVEYS_READONLY = 'https://www.googleapis.com/auth/surveys.readonly'
35
+
36
+ # View your email address
37
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,806 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module SurveysV2
24
+
25
+ #
26
+ class FieldMask
27
+ include Google::Apis::Core::Hashable
28
+
29
+ #
30
+ # Corresponds to the JSON property `fields`
31
+ # @return [Array<Google::Apis::SurveysV2::FieldMask>]
32
+ attr_accessor :fields
33
+
34
+ #
35
+ # Corresponds to the JSON property `id`
36
+ # @return [Fixnum]
37
+ attr_accessor :id
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @fields = args[:fields] if args.key?(:fields)
46
+ @id = args[:id] if args.key?(:id)
47
+ end
48
+ end
49
+
50
+ # Representation of an individual pre-defined panel object defining a targeted
51
+ # audience of opinion rewards mobile app users.
52
+ class MobileAppPanel
53
+ include Google::Apis::Core::Hashable
54
+
55
+ # Country code for the country of the users that the panel contains. Uses
56
+ # standard ISO 3166-1 2-character language codes. For instance, 'US' for the
57
+ # United States, and 'GB' for the United Kingdom. Any survey created targeting
58
+ # this panel must also target the corresponding country.
59
+ # Corresponds to the JSON property `country`
60
+ # @return [String]
61
+ attr_accessor :country
62
+
63
+ # Whether or not the panel is accessible to all API users.
64
+ # Corresponds to the JSON property `isPublicPanel`
65
+ # @return [Boolean]
66
+ attr_accessor :is_public_panel
67
+ alias_method :is_public_panel?, :is_public_panel
68
+
69
+ # Language code that the panel can target. For instance, 'en-US'. Uses standard
70
+ # BCP47 language codes. See specification. Any survey created targeting this
71
+ # panel must also target the corresponding language.
72
+ # Corresponds to the JSON property `language`
73
+ # @return [String]
74
+ attr_accessor :language
75
+
76
+ # Unique panel ID string. This corresponds to the mobile_app_panel_id used in
77
+ # Survey Insert requests.
78
+ # Corresponds to the JSON property `mobileAppPanelId`
79
+ # @return [String]
80
+ attr_accessor :mobile_app_panel_id
81
+
82
+ # Human readable name of the audience panel.
83
+ # Corresponds to the JSON property `name`
84
+ # @return [String]
85
+ attr_accessor :name
86
+
87
+ # List of email addresses for users who can target members of this panel. Must
88
+ # contain at least the address of the user making the API call for panels that
89
+ # are not public. This field will be empty for public panels.
90
+ # Corresponds to the JSON property `owners`
91
+ # @return [Array<String>]
92
+ attr_accessor :owners
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @country = args[:country] if args.key?(:country)
101
+ @is_public_panel = args[:is_public_panel] if args.key?(:is_public_panel)
102
+ @language = args[:language] if args.key?(:language)
103
+ @mobile_app_panel_id = args[:mobile_app_panel_id] if args.key?(:mobile_app_panel_id)
104
+ @name = args[:name] if args.key?(:name)
105
+ @owners = args[:owners] if args.key?(:owners)
106
+ end
107
+ end
108
+
109
+ #
110
+ class MobileAppPanelsListResponse
111
+ include Google::Apis::Core::Hashable
112
+
113
+ #
114
+ # Corresponds to the JSON property `pageInfo`
115
+ # @return [Google::Apis::SurveysV2::PageInfo]
116
+ attr_accessor :page_info
117
+
118
+ # Unique request ID used for logging and debugging. Please include in any error
119
+ # reporting or troubleshooting requests.
120
+ # Corresponds to the JSON property `requestId`
121
+ # @return [String]
122
+ attr_accessor :request_id
123
+
124
+ # An individual predefined panel of Opinion Rewards mobile users.
125
+ # Corresponds to the JSON property `resources`
126
+ # @return [Array<Google::Apis::SurveysV2::MobileAppPanel>]
127
+ attr_accessor :resources
128
+
129
+ #
130
+ # Corresponds to the JSON property `tokenPagination`
131
+ # @return [Google::Apis::SurveysV2::TokenPagination]
132
+ attr_accessor :token_pagination
133
+
134
+ def initialize(**args)
135
+ update!(**args)
136
+ end
137
+
138
+ # Update properties of this object
139
+ def update!(**args)
140
+ @page_info = args[:page_info] if args.key?(:page_info)
141
+ @request_id = args[:request_id] if args.key?(:request_id)
142
+ @resources = args[:resources] if args.key?(:resources)
143
+ @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
144
+ end
145
+ end
146
+
147
+ #
148
+ class PageInfo
149
+ include Google::Apis::Core::Hashable
150
+
151
+ #
152
+ # Corresponds to the JSON property `resultPerPage`
153
+ # @return [Fixnum]
154
+ attr_accessor :result_per_page
155
+
156
+ #
157
+ # Corresponds to the JSON property `startIndex`
158
+ # @return [Fixnum]
159
+ attr_accessor :start_index
160
+
161
+ #
162
+ # Corresponds to the JSON property `totalResults`
163
+ # @return [Fixnum]
164
+ attr_accessor :total_results
165
+
166
+ def initialize(**args)
167
+ update!(**args)
168
+ end
169
+
170
+ # Update properties of this object
171
+ def update!(**args)
172
+ @result_per_page = args[:result_per_page] if args.key?(:result_per_page)
173
+ @start_index = args[:start_index] if args.key?(:start_index)
174
+ @total_results = args[:total_results] if args.key?(:total_results)
175
+ end
176
+ end
177
+
178
+ #
179
+ class ResultsGetRequest
180
+ include Google::Apis::Core::Hashable
181
+
182
+ #
183
+ # Corresponds to the JSON property `resultMask`
184
+ # @return [Google::Apis::SurveysV2::ResultsMask]
185
+ attr_accessor :result_mask
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @result_mask = args[:result_mask] if args.key?(:result_mask)
194
+ end
195
+ end
196
+
197
+ #
198
+ class ResultsMask
199
+ include Google::Apis::Core::Hashable
200
+
201
+ #
202
+ # Corresponds to the JSON property `fields`
203
+ # @return [Array<Google::Apis::SurveysV2::FieldMask>]
204
+ attr_accessor :fields
205
+
206
+ #
207
+ # Corresponds to the JSON property `projection`
208
+ # @return [String]
209
+ attr_accessor :projection
210
+
211
+ def initialize(**args)
212
+ update!(**args)
213
+ end
214
+
215
+ # Update properties of this object
216
+ def update!(**args)
217
+ @fields = args[:fields] if args.key?(:fields)
218
+ @projection = args[:projection] if args.key?(:projection)
219
+ end
220
+ end
221
+
222
+ # Representation of an individual survey object.
223
+ class Survey
224
+ include Google::Apis::Core::Hashable
225
+
226
+ # Specifications for the target audience of a survey run through the API.
227
+ # Corresponds to the JSON property `audience`
228
+ # @return [Google::Apis::SurveysV2::SurveyAudience]
229
+ attr_accessor :audience
230
+
231
+ # Message defining the cost to run a given survey through API.
232
+ # Corresponds to the JSON property `cost`
233
+ # @return [Google::Apis::SurveysV2::SurveyCost]
234
+ attr_accessor :cost
235
+
236
+ # Additional information to store on behalf of the API consumer and associate
237
+ # with this question. This binary blob is treated as opaque. This field is
238
+ # limited to 64K bytes.
239
+ # Corresponds to the JSON property `customerData`
240
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
241
+ # @return [String]
242
+ attr_accessor :customer_data
243
+
244
+ # Text description of the survey.
245
+ # Corresponds to the JSON property `description`
246
+ # @return [String]
247
+ attr_accessor :description
248
+
249
+ # List of email addresses for survey owners. Must contain at least the address
250
+ # of the user making the API call.
251
+ # Corresponds to the JSON property `owners`
252
+ # @return [Array<String>]
253
+ attr_accessor :owners
254
+
255
+ # List of questions defining the survey.
256
+ # Corresponds to the JSON property `questions`
257
+ # @return [Array<Google::Apis::SurveysV2::SurveyQuestion>]
258
+ attr_accessor :questions
259
+
260
+ # Message representing why the survey was rejected from review, if it was.
261
+ # Corresponds to the JSON property `rejectionReason`
262
+ # @return [Google::Apis::SurveysV2::SurveyRejection]
263
+ attr_accessor :rejection_reason
264
+
265
+ # State that the survey is in.
266
+ # Corresponds to the JSON property `state`
267
+ # @return [String]
268
+ attr_accessor :state
269
+
270
+ # Unique survey ID, that is viewable in the URL of the Survey Creator UI
271
+ # Corresponds to the JSON property `surveyUrlId`
272
+ # @return [String]
273
+ attr_accessor :survey_url_id
274
+
275
+ # Optional name that will be given to the survey.
276
+ # Corresponds to the JSON property `title`
277
+ # @return [String]
278
+ attr_accessor :title
279
+
280
+ # Number of responses desired for the survey.
281
+ # Corresponds to the JSON property `wantedResponseCount`
282
+ # @return [Fixnum]
283
+ attr_accessor :wanted_response_count
284
+
285
+ def initialize(**args)
286
+ update!(**args)
287
+ end
288
+
289
+ # Update properties of this object
290
+ def update!(**args)
291
+ @audience = args[:audience] if args.key?(:audience)
292
+ @cost = args[:cost] if args.key?(:cost)
293
+ @customer_data = args[:customer_data] if args.key?(:customer_data)
294
+ @description = args[:description] if args.key?(:description)
295
+ @owners = args[:owners] if args.key?(:owners)
296
+ @questions = args[:questions] if args.key?(:questions)
297
+ @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
298
+ @state = args[:state] if args.key?(:state)
299
+ @survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id)
300
+ @title = args[:title] if args.key?(:title)
301
+ @wanted_response_count = args[:wanted_response_count] if args.key?(:wanted_response_count)
302
+ end
303
+ end
304
+
305
+ # Specifications for the target audience of a survey run through the API.
306
+ class SurveyAudience
307
+ include Google::Apis::Core::Hashable
308
+
309
+ # Optional list of age buckets to target. Supported age buckets are: ['18-24', '
310
+ # 25-34', '35-44', '45-54', '55-64', '65+']
311
+ # Corresponds to the JSON property `ages`
312
+ # @return [Array<String>]
313
+ attr_accessor :ages
314
+
315
+ # Required country code that surveys should be targeted to. Accepts standard ISO
316
+ # 3166-1 2 character language codes. For instance, 'US' for the United States,
317
+ # and 'GB' for the United Kingdom.
318
+ # Corresponds to the JSON property `country`
319
+ # @return [String]
320
+ attr_accessor :country
321
+
322
+ # Country subdivision (states/provinces/etc) that surveys should be targeted to.
323
+ # For all countries except GB, ISO-3166-2 subdivision code is required (eg. 'US-
324
+ # OH' for Ohio, United States). For GB, NUTS 1 statistical region codes for the
325
+ # United Kingdom is required (eg. 'UK-UKC' for North East England).
326
+ # Corresponds to the JSON property `countrySubdivision`
327
+ # @return [String]
328
+ attr_accessor :country_subdivision
329
+
330
+ # Optional gender to target.
331
+ # Corresponds to the JSON property `gender`
332
+ # @return [String]
333
+ attr_accessor :gender
334
+
335
+ # Language code that surveys should be targeted to. For instance, 'en-US'.
336
+ # Surveys may target bilingual users by specifying a list of language codes (for
337
+ # example, 'de' and 'en-US'). In that case, all languages will be used for
338
+ # targeting users but the survey content (which is displayed) must match the
339
+ # first language listed. Accepts standard BCP47 language codes. See
340
+ # specification.
341
+ # Corresponds to the JSON property `languages`
342
+ # @return [Array<String>]
343
+ attr_accessor :languages
344
+
345
+ # Key for predefined panel that causes survey to be sent to a predefined set of
346
+ # Opinion Rewards App users. You must set PopulationSource to ANDROID_APP_PANEL
347
+ # to use this field.
348
+ # Corresponds to the JSON property `mobileAppPanelId`
349
+ # @return [String]
350
+ attr_accessor :mobile_app_panel_id
351
+
352
+ # Online population source where the respondents are sampled from.
353
+ # Corresponds to the JSON property `populationSource`
354
+ # @return [String]
355
+ attr_accessor :population_source
356
+
357
+ def initialize(**args)
358
+ update!(**args)
359
+ end
360
+
361
+ # Update properties of this object
362
+ def update!(**args)
363
+ @ages = args[:ages] if args.key?(:ages)
364
+ @country = args[:country] if args.key?(:country)
365
+ @country_subdivision = args[:country_subdivision] if args.key?(:country_subdivision)
366
+ @gender = args[:gender] if args.key?(:gender)
367
+ @languages = args[:languages] if args.key?(:languages)
368
+ @mobile_app_panel_id = args[:mobile_app_panel_id] if args.key?(:mobile_app_panel_id)
369
+ @population_source = args[:population_source] if args.key?(:population_source)
370
+ end
371
+ end
372
+
373
+ # Message defining the cost to run a given survey through API.
374
+ class SurveyCost
375
+ include Google::Apis::Core::Hashable
376
+
377
+ # Cost per survey response in nano units of the given currency. To get the total
378
+ # cost for a survey, multiply this value by wanted_response_count.
379
+ # Corresponds to the JSON property `costPerResponseNanos`
380
+ # @return [String]
381
+ attr_accessor :cost_per_response_nanos
382
+
383
+ # Currency code that the cost is given in.
384
+ # Corresponds to the JSON property `currencyCode`
385
+ # @return [String]
386
+ attr_accessor :currency_code
387
+
388
+ # Threshold to start a survey automatically if the quoted price is at most this
389
+ # value. When a survey has a Screener (threshold) question, it must go through
390
+ # an incidence pricing test to determine the final cost per response. Typically
391
+ # you will have to make a followup call to start the survey giving the final
392
+ # computed cost per response. If the survey has no threshold_answers, setting
393
+ # this property will return an error. By specifying this property, you indicate
394
+ # the max price per response you are willing to pay in advance of the incidence
395
+ # test. If the price turns out to be lower than the specified value, the survey
396
+ # will begin immediately and you will be charged at the rate determined by the
397
+ # incidence pricing test. If the price turns out to be greater than the
398
+ # specified value the survey will not be started and you will instead be
399
+ # notified what price was determined by the incidence test. At that point, you
400
+ # must raise the value of this property to be greater than or equal to that cost
401
+ # before attempting to start the survey again. This will immediately start the
402
+ # survey as long the incidence test was run within the last 21 days.
403
+ # Corresponds to the JSON property `maxCostPerResponseNanos`
404
+ # @return [String]
405
+ attr_accessor :max_cost_per_response_nanos
406
+
407
+ # Cost of survey in nano units of the given currency. DEPRECATED in favor of
408
+ # cost_per_response_nanos
409
+ # Corresponds to the JSON property `nanos`
410
+ # @return [String]
411
+ attr_accessor :nanos
412
+
413
+ def initialize(**args)
414
+ update!(**args)
415
+ end
416
+
417
+ # Update properties of this object
418
+ def update!(**args)
419
+ @cost_per_response_nanos = args[:cost_per_response_nanos] if args.key?(:cost_per_response_nanos)
420
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
421
+ @max_cost_per_response_nanos = args[:max_cost_per_response_nanos] if args.key?(:max_cost_per_response_nanos)
422
+ @nanos = args[:nanos] if args.key?(:nanos)
423
+ end
424
+ end
425
+
426
+ # Message defining the question specifications.
427
+ class SurveyQuestion
428
+ include Google::Apis::Core::Hashable
429
+
430
+ # The randomization option for multiple choice and multi-select questions. If
431
+ # not specified, this option defaults to randomize.
432
+ # Corresponds to the JSON property `answerOrder`
433
+ # @return [String]
434
+ attr_accessor :answer_order
435
+
436
+ # Required list of answer options for a question.
437
+ # Corresponds to the JSON property `answers`
438
+ # @return [Array<String>]
439
+ attr_accessor :answers
440
+
441
+ # Option to allow open-ended text box for Single Answer and Multiple Answer
442
+ # question types. This can be used with SINGLE_ANSWER, SINGLE_ANSWER_WITH_IMAGE,
443
+ # MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE question types.
444
+ # Corresponds to the JSON property `hasOther`
445
+ # @return [Boolean]
446
+ attr_accessor :has_other
447
+ alias_method :has_other?, :has_other
448
+
449
+ # For rating questions, the text for the higher end of the scale, such as 'Best'.
450
+ # For numeric questions, a string representing a floating-point that is the
451
+ # maximum allowed number for a response.
452
+ # Corresponds to the JSON property `highValueLabel`
453
+ # @return [String]
454
+ attr_accessor :high_value_label
455
+
456
+ #
457
+ # Corresponds to the JSON property `images`
458
+ # @return [Array<Google::Apis::SurveysV2::SurveyQuestionImage>]
459
+ attr_accessor :images
460
+
461
+ # Currently only support pinning an answer option to the last position.
462
+ # Corresponds to the JSON property `lastAnswerPositionPinned`
463
+ # @return [Boolean]
464
+ attr_accessor :last_answer_position_pinned
465
+ alias_method :last_answer_position_pinned?, :last_answer_position_pinned
466
+
467
+ # For rating questions, the text for the lower end of the scale, such as 'Worst'.
468
+ # For numeric questions, a string representing a floating-point that is the
469
+ # minimum allowed number for a response.
470
+ # Corresponds to the JSON property `lowValueLabel`
471
+ # @return [String]
472
+ attr_accessor :low_value_label
473
+
474
+ # Option to force the user to pick one of the open text suggestions. This
475
+ # requires that suggestions are provided for this question.
476
+ # Corresponds to the JSON property `mustPickSuggestion`
477
+ # @return [Boolean]
478
+ attr_accessor :must_pick_suggestion
479
+ alias_method :must_pick_suggestion?, :must_pick_suggestion
480
+
481
+ # Number of stars to use for ratings questions.
482
+ # Corresponds to the JSON property `numStars`
483
+ # @return [String]
484
+ attr_accessor :num_stars
485
+
486
+ # Placeholder text for an open text question.
487
+ # Corresponds to the JSON property `openTextPlaceholder`
488
+ # @return [String]
489
+ attr_accessor :open_text_placeholder
490
+
491
+ # A list of suggested answers for open text question auto-complete. This is only
492
+ # valid if single_line_response is true.
493
+ # Corresponds to the JSON property `openTextSuggestions`
494
+ # @return [Array<String>]
495
+ attr_accessor :open_text_suggestions
496
+
497
+ # Required question text shown to the respondent.
498
+ # Corresponds to the JSON property `question`
499
+ # @return [String]
500
+ attr_accessor :question
501
+
502
+ # Used by the Rating Scale with Text question type. This text goes along with
503
+ # the question field that is presented to the respondent, and is the actual text
504
+ # that the respondent is asked to rate.
505
+ # Corresponds to the JSON property `sentimentText`
506
+ # @return [String]
507
+ attr_accessor :sentiment_text
508
+
509
+ # Option to allow multiple line open text responses instead of a single line
510
+ # response. Note that we don't show auto-complete suggestions with multiple line
511
+ # responses.
512
+ # Corresponds to the JSON property `singleLineResponse`
513
+ # @return [Boolean]
514
+ attr_accessor :single_line_response
515
+ alias_method :single_line_response?, :single_line_response
516
+
517
+ # The threshold/screener answer options, which will screen a user into the rest
518
+ # of the survey. These will be a subset of the answer option strings.
519
+ # Corresponds to the JSON property `thresholdAnswers`
520
+ # @return [Array<String>]
521
+ attr_accessor :threshold_answers
522
+
523
+ # Required field defining the question type. For details about configuring
524
+ # different type of questions, consult the question configuration guide.
525
+ # Corresponds to the JSON property `type`
526
+ # @return [String]
527
+ attr_accessor :type
528
+
529
+ # Optional unit of measurement for display (for example: hours, people, miles).
530
+ # Corresponds to the JSON property `unitOfMeasurementLabel`
531
+ # @return [String]
532
+ attr_accessor :unit_of_measurement_label
533
+
534
+ # The YouTube video ID to be show in video questions.
535
+ # Corresponds to the JSON property `videoId`
536
+ # @return [String]
537
+ attr_accessor :video_id
538
+
539
+ def initialize(**args)
540
+ update!(**args)
541
+ end
542
+
543
+ # Update properties of this object
544
+ def update!(**args)
545
+ @answer_order = args[:answer_order] if args.key?(:answer_order)
546
+ @answers = args[:answers] if args.key?(:answers)
547
+ @has_other = args[:has_other] if args.key?(:has_other)
548
+ @high_value_label = args[:high_value_label] if args.key?(:high_value_label)
549
+ @images = args[:images] if args.key?(:images)
550
+ @last_answer_position_pinned = args[:last_answer_position_pinned] if args.key?(:last_answer_position_pinned)
551
+ @low_value_label = args[:low_value_label] if args.key?(:low_value_label)
552
+ @must_pick_suggestion = args[:must_pick_suggestion] if args.key?(:must_pick_suggestion)
553
+ @num_stars = args[:num_stars] if args.key?(:num_stars)
554
+ @open_text_placeholder = args[:open_text_placeholder] if args.key?(:open_text_placeholder)
555
+ @open_text_suggestions = args[:open_text_suggestions] if args.key?(:open_text_suggestions)
556
+ @question = args[:question] if args.key?(:question)
557
+ @sentiment_text = args[:sentiment_text] if args.key?(:sentiment_text)
558
+ @single_line_response = args[:single_line_response] if args.key?(:single_line_response)
559
+ @threshold_answers = args[:threshold_answers] if args.key?(:threshold_answers)
560
+ @type = args[:type] if args.key?(:type)
561
+ @unit_of_measurement_label = args[:unit_of_measurement_label] if args.key?(:unit_of_measurement_label)
562
+ @video_id = args[:video_id] if args.key?(:video_id)
563
+ end
564
+ end
565
+
566
+ # Container object for image data and alt_text.
567
+ class SurveyQuestionImage
568
+ include Google::Apis::Core::Hashable
569
+
570
+ # The alt text property used in image tags is required for all images.
571
+ # Corresponds to the JSON property `altText`
572
+ # @return [String]
573
+ attr_accessor :alt_text
574
+
575
+ # Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question
576
+ # types.
577
+ # Corresponds to the JSON property `data`
578
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
579
+ # @return [String]
580
+ attr_accessor :data
581
+
582
+ # The read-only URL for the hosted images.
583
+ # Corresponds to the JSON property `url`
584
+ # @return [String]
585
+ attr_accessor :url
586
+
587
+ def initialize(**args)
588
+ update!(**args)
589
+ end
590
+
591
+ # Update properties of this object
592
+ def update!(**args)
593
+ @alt_text = args[:alt_text] if args.key?(:alt_text)
594
+ @data = args[:data] if args.key?(:data)
595
+ @url = args[:url] if args.key?(:url)
596
+ end
597
+ end
598
+
599
+ # Message representing why the survey was rejected from review, if it was.
600
+ class SurveyRejection
601
+ include Google::Apis::Core::Hashable
602
+
603
+ # A human-readable explanation of what was wrong with the survey.
604
+ # Corresponds to the JSON property `explanation`
605
+ # @return [String]
606
+ attr_accessor :explanation
607
+
608
+ # Which category of rejection this was. See the Google Surveys Help Center for
609
+ # additional details on each category.
610
+ # Corresponds to the JSON property `type`
611
+ # @return [String]
612
+ attr_accessor :type
613
+
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
617
+
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ @explanation = args[:explanation] if args.key?(:explanation)
621
+ @type = args[:type] if args.key?(:type)
622
+ end
623
+ end
624
+
625
+ # Reference to the current results for a given survey.
626
+ class SurveyResults
627
+ include Google::Apis::Core::Hashable
628
+
629
+ # Human readable string describing the status of the request.
630
+ # Corresponds to the JSON property `status`
631
+ # @return [String]
632
+ attr_accessor :status
633
+
634
+ # External survey ID as viewable by survey owners in the editor view.
635
+ # Corresponds to the JSON property `surveyUrlId`
636
+ # @return [String]
637
+ attr_accessor :survey_url_id
638
+
639
+ def initialize(**args)
640
+ update!(**args)
641
+ end
642
+
643
+ # Update properties of this object
644
+ def update!(**args)
645
+ @status = args[:status] if args.key?(:status)
646
+ @survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id)
647
+ end
648
+ end
649
+
650
+ #
651
+ class SurveysDeleteResponse
652
+ include Google::Apis::Core::Hashable
653
+
654
+ # Unique request ID used for logging and debugging. Please include in any error
655
+ # reporting or troubleshooting requests.
656
+ # Corresponds to the JSON property `requestId`
657
+ # @return [String]
658
+ attr_accessor :request_id
659
+
660
+ def initialize(**args)
661
+ update!(**args)
662
+ end
663
+
664
+ # Update properties of this object
665
+ def update!(**args)
666
+ @request_id = args[:request_id] if args.key?(:request_id)
667
+ end
668
+ end
669
+
670
+ #
671
+ class SurveysListResponse
672
+ include Google::Apis::Core::Hashable
673
+
674
+ #
675
+ # Corresponds to the JSON property `pageInfo`
676
+ # @return [Google::Apis::SurveysV2::PageInfo]
677
+ attr_accessor :page_info
678
+
679
+ # Unique request ID used for logging and debugging. Please include in any error
680
+ # reporting or troubleshooting requests.
681
+ # Corresponds to the JSON property `requestId`
682
+ # @return [String]
683
+ attr_accessor :request_id
684
+
685
+ # An individual survey resource.
686
+ # Corresponds to the JSON property `resources`
687
+ # @return [Array<Google::Apis::SurveysV2::Survey>]
688
+ attr_accessor :resources
689
+
690
+ #
691
+ # Corresponds to the JSON property `tokenPagination`
692
+ # @return [Google::Apis::SurveysV2::TokenPagination]
693
+ attr_accessor :token_pagination
694
+
695
+ def initialize(**args)
696
+ update!(**args)
697
+ end
698
+
699
+ # Update properties of this object
700
+ def update!(**args)
701
+ @page_info = args[:page_info] if args.key?(:page_info)
702
+ @request_id = args[:request_id] if args.key?(:request_id)
703
+ @resources = args[:resources] if args.key?(:resources)
704
+ @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
705
+ end
706
+ end
707
+
708
+ #
709
+ class SurveysStartRequest
710
+ include Google::Apis::Core::Hashable
711
+
712
+ # Threshold to start a survey automically if the quoted prices is less than or
713
+ # equal to this value. See Survey.Cost for more details.
714
+ # Corresponds to the JSON property `maxCostPerResponseNanos`
715
+ # @return [String]
716
+ attr_accessor :max_cost_per_response_nanos
717
+
718
+ def initialize(**args)
719
+ update!(**args)
720
+ end
721
+
722
+ # Update properties of this object
723
+ def update!(**args)
724
+ @max_cost_per_response_nanos = args[:max_cost_per_response_nanos] if args.key?(:max_cost_per_response_nanos)
725
+ end
726
+ end
727
+
728
+ #
729
+ class SurveysStartResponse
730
+ include Google::Apis::Core::Hashable
731
+
732
+ # Unique request ID used for logging and debugging. Please include in any error
733
+ # reporting or troubleshooting requests.
734
+ # Corresponds to the JSON property `requestId`
735
+ # @return [String]
736
+ attr_accessor :request_id
737
+
738
+ # Representation of an individual survey object.
739
+ # Corresponds to the JSON property `resource`
740
+ # @return [Google::Apis::SurveysV2::Survey]
741
+ attr_accessor :resource
742
+
743
+ def initialize(**args)
744
+ update!(**args)
745
+ end
746
+
747
+ # Update properties of this object
748
+ def update!(**args)
749
+ @request_id = args[:request_id] if args.key?(:request_id)
750
+ @resource = args[:resource] if args.key?(:resource)
751
+ end
752
+ end
753
+
754
+ #
755
+ class SurveysStopResponse
756
+ include Google::Apis::Core::Hashable
757
+
758
+ # Unique request ID used for logging and debugging. Please include in any error
759
+ # reporting or troubleshooting requests.
760
+ # Corresponds to the JSON property `requestId`
761
+ # @return [String]
762
+ attr_accessor :request_id
763
+
764
+ # Representation of an individual survey object.
765
+ # Corresponds to the JSON property `resource`
766
+ # @return [Google::Apis::SurveysV2::Survey]
767
+ attr_accessor :resource
768
+
769
+ def initialize(**args)
770
+ update!(**args)
771
+ end
772
+
773
+ # Update properties of this object
774
+ def update!(**args)
775
+ @request_id = args[:request_id] if args.key?(:request_id)
776
+ @resource = args[:resource] if args.key?(:resource)
777
+ end
778
+ end
779
+
780
+ #
781
+ class TokenPagination
782
+ include Google::Apis::Core::Hashable
783
+
784
+ #
785
+ # Corresponds to the JSON property `nextPageToken`
786
+ # @return [String]
787
+ attr_accessor :next_page_token
788
+
789
+ #
790
+ # Corresponds to the JSON property `previousPageToken`
791
+ # @return [String]
792
+ attr_accessor :previous_page_token
793
+
794
+ def initialize(**args)
795
+ update!(**args)
796
+ end
797
+
798
+ # Update properties of this object
799
+ def update!(**args)
800
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
801
+ @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
802
+ end
803
+ end
804
+ end
805
+ end
806
+ end