google-api-client 0.36.1 → 0.36.2

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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidenterprise_v1/classes.rb +29 -58
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  7. data/generated/google/apis/androidmanagement_v1/representations.rb +67 -0
  8. data/generated/google/apis/androidmanagement_v1/service.rb +6 -1
  9. data/generated/google/apis/bigquery_v2.rb +1 -1
  10. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  11. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  12. data/generated/google/apis/bigquery_v2/service.rb +19 -2
  13. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  14. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +6 -0
  15. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +1 -0
  16. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +6 -0
  18. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  19. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  20. data/generated/google/apis/cloudbuild_v1alpha1.rb +34 -0
  21. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1174 -0
  22. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +435 -0
  23. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +223 -0
  24. data/generated/google/apis/compute_alpha.rb +1 -1
  25. data/generated/google/apis/compute_alpha/classes.rb +234 -240
  26. data/generated/google/apis/compute_alpha/representations.rb +7 -47
  27. data/generated/google/apis/compute_alpha/service.rb +1233 -1068
  28. data/generated/google/apis/compute_beta.rb +1 -1
  29. data/generated/google/apis/compute_beta/classes.rb +936 -164
  30. data/generated/google/apis/compute_beta/representations.rb +371 -0
  31. data/generated/google/apis/compute_beta/service.rb +1394 -899
  32. data/generated/google/apis/compute_v1.rb +1 -1
  33. data/generated/google/apis/compute_v1/classes.rb +479 -147
  34. data/generated/google/apis/compute_v1/representations.rb +127 -0
  35. data/generated/google/apis/compute_v1/service.rb +813 -748
  36. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  37. data/generated/google/apis/datacatalog_v1beta1/classes.rb +9 -7
  38. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  39. data/generated/google/apis/datacatalog_v1beta1/service.rb +8 -3
  40. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  41. data/generated/google/apis/dataflow_v1b3/classes.rb +69 -0
  42. data/generated/google/apis/dataflow_v1b3/representations.rb +34 -0
  43. data/generated/google/apis/dataproc_v1.rb +1 -1
  44. data/generated/google/apis/dataproc_v1/classes.rb +73 -43
  45. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  46. data/generated/google/apis/dataproc_v1beta2/classes.rb +73 -43
  47. data/generated/google/apis/dialogflow_v2.rb +1 -1
  48. data/generated/google/apis/dialogflow_v2/classes.rb +44 -11
  49. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  50. data/generated/google/apis/dialogflow_v2beta1/classes.rb +44 -11
  51. data/generated/google/apis/dialogflow_v2beta1/service.rb +20 -0
  52. data/generated/google/apis/dns_v1.rb +1 -1
  53. data/generated/google/apis/dns_v1/classes.rb +70 -0
  54. data/generated/google/apis/dns_v1/representations.rb +32 -0
  55. data/generated/google/apis/dns_v2beta1.rb +1 -1
  56. data/generated/google/apis/dns_v2beta1/classes.rb +70 -0
  57. data/generated/google/apis/dns_v2beta1/representations.rb +32 -0
  58. data/generated/google/apis/docs_v1.rb +1 -1
  59. data/generated/google/apis/docs_v1/classes.rb +152 -0
  60. data/generated/google/apis/docs_v1/representations.rb +56 -0
  61. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  62. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  63. data/generated/google/apis/driveactivity_v2.rb +1 -1
  64. data/generated/google/apis/driveactivity_v2/classes.rb +6 -0
  65. data/generated/google/apis/driveactivity_v2/representations.rb +2 -0
  66. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  67. data/generated/google/apis/firestore_v1.rb +1 -1
  68. data/generated/google/apis/firestore_v1/classes.rb +1 -1
  69. data/generated/google/apis/firestore_v1/service.rb +24 -22
  70. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  71. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
  72. data/generated/google/apis/firestore_v1beta1/service.rb +16 -14
  73. data/generated/google/apis/fitness_v1.rb +11 -11
  74. data/generated/google/apis/games_management_v1management.rb +1 -1
  75. data/generated/google/apis/games_management_v1management/service.rb +5 -7
  76. data/generated/google/apis/iam_v1.rb +1 -1
  77. data/generated/google/apis/iam_v1/classes.rb +83 -141
  78. data/generated/google/apis/iam_v1/representations.rb +0 -6
  79. data/generated/google/apis/iam_v1/service.rb +11 -21
  80. data/generated/google/apis/language_v1beta2.rb +1 -1
  81. data/generated/google/apis/language_v1beta2/classes.rb +15 -0
  82. data/generated/google/apis/language_v1beta2/representations.rb +2 -0
  83. data/generated/google/apis/logging_v2.rb +3 -2
  84. data/generated/google/apis/logging_v2/service.rb +2 -1
  85. data/generated/google/apis/{surveys_v2.rb → prod_tt_sasportal_v1alpha1.rb} +9 -15
  86. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +1084 -0
  87. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +503 -0
  88. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +1322 -0
  89. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  90. data/generated/google/apis/recommender_v1beta1/classes.rb +6 -0
  91. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  92. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  93. data/generated/google/apis/run_v1alpha1.rb +1 -1
  94. data/generated/google/apis/run_v1alpha1/classes.rb +424 -0
  95. data/generated/google/apis/run_v1alpha1/representations.rb +161 -0
  96. data/generated/google/apis/run_v1alpha1/service.rb +862 -46
  97. data/generated/google/apis/run_v1beta1.rb +1 -1
  98. data/generated/google/apis/run_v1beta1/classes.rb +1 -1
  99. data/generated/google/apis/sasportal_v1alpha1.rb +34 -0
  100. data/generated/google/apis/sasportal_v1alpha1/classes.rb +1084 -0
  101. data/generated/google/apis/sasportal_v1alpha1/representations.rb +503 -0
  102. data/generated/google/apis/sasportal_v1alpha1/service.rb +1322 -0
  103. data/generated/google/apis/securitycenter_v1.rb +1 -1
  104. data/generated/google/apis/securitycenter_v1/classes.rb +18 -0
  105. data/generated/google/apis/securitycenter_v1/representations.rb +3 -0
  106. data/generated/google/apis/securitycenter_v1/service.rb +6 -0
  107. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  108. data/generated/google/apis/servicemanagement_v1/classes.rb +16 -1
  109. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  110. data/generated/google/apis/sheets_v4.rb +1 -1
  111. data/generated/google/apis/sheets_v4/classes.rb +187 -2
  112. data/generated/google/apis/sheets_v4/representations.rb +47 -0
  113. data/generated/google/apis/spanner_v1.rb +1 -1
  114. data/generated/google/apis/spanner_v1/classes.rb +104 -51
  115. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  116. data/generated/google/apis/spanner_v1/service.rb +6 -1
  117. data/generated/google/apis/sql_v1beta4.rb +1 -1
  118. data/generated/google/apis/sql_v1beta4/classes.rb +75 -4
  119. data/generated/google/apis/sql_v1beta4/representations.rb +32 -0
  120. data/generated/google/apis/sql_v1beta4/service.rb +83 -2
  121. data/generated/google/apis/toolresults_v1.rb +31 -0
  122. data/generated/google/apis/toolresults_v1/classes.rb +696 -0
  123. data/generated/google/apis/toolresults_v1/representations.rb +438 -0
  124. data/generated/google/apis/toolresults_v1/service.rb +59 -0
  125. data/generated/google/apis/vision_v1.rb +1 -1
  126. data/generated/google/apis/vision_v1/service.rb +1 -1
  127. data/lib/google/apis/version.rb +1 -1
  128. metadata +19 -7
  129. data/generated/google/apis/surveys_v2/classes.rb +0 -691
  130. data/generated/google/apis/surveys_v2/representations.rb +0 -305
  131. data/generated/google/apis/surveys_v2/service.rb +0 -348
@@ -1,305 +0,0 @@
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
- class FieldMask
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class PageInfo
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class ResultsGetRequest
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class ResultsMask
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class Survey
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class SurveyAudience
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class SurveyCost
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class SurveyQuestion
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class SurveyQuestionImage
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class SurveyRejection
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class SurveyResults
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class SurveysDeleteResponse
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class SurveysListResponse
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class SurveysStartRequest
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
- class SurveysStartResponse
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
- class SurveysStopResponse
116
- class Representation < Google::Apis::Core::JsonRepresentation; end
117
-
118
- include Google::Apis::Core::JsonObjectSupport
119
- end
120
-
121
- class TokenPagination
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
- class FieldMask
128
- # @private
129
- class Representation < Google::Apis::Core::JsonRepresentation
130
- collection :fields, as: 'fields', class: Google::Apis::SurveysV2::FieldMask, decorator: Google::Apis::SurveysV2::FieldMask::Representation
131
-
132
- property :id, as: 'id'
133
- end
134
- end
135
-
136
- class PageInfo
137
- # @private
138
- class Representation < Google::Apis::Core::JsonRepresentation
139
- property :result_per_page, as: 'resultPerPage'
140
- property :start_index, as: 'startIndex'
141
- property :total_results, as: 'totalResults'
142
- end
143
- end
144
-
145
- class ResultsGetRequest
146
- # @private
147
- class Representation < Google::Apis::Core::JsonRepresentation
148
- property :result_mask, as: 'resultMask', class: Google::Apis::SurveysV2::ResultsMask, decorator: Google::Apis::SurveysV2::ResultsMask::Representation
149
-
150
- end
151
- end
152
-
153
- class ResultsMask
154
- # @private
155
- class Representation < Google::Apis::Core::JsonRepresentation
156
- collection :fields, as: 'fields', class: Google::Apis::SurveysV2::FieldMask, decorator: Google::Apis::SurveysV2::FieldMask::Representation
157
-
158
- property :projection, as: 'projection'
159
- end
160
- end
161
-
162
- class Survey
163
- # @private
164
- class Representation < Google::Apis::Core::JsonRepresentation
165
- property :audience, as: 'audience', class: Google::Apis::SurveysV2::SurveyAudience, decorator: Google::Apis::SurveysV2::SurveyAudience::Representation
166
-
167
- property :cost, as: 'cost', class: Google::Apis::SurveysV2::SurveyCost, decorator: Google::Apis::SurveysV2::SurveyCost::Representation
168
-
169
- property :customer_data, :base64 => true, as: 'customerData'
170
- property :description, as: 'description'
171
- collection :owners, as: 'owners'
172
- collection :questions, as: 'questions', class: Google::Apis::SurveysV2::SurveyQuestion, decorator: Google::Apis::SurveysV2::SurveyQuestion::Representation
173
-
174
- property :rejection_reason, as: 'rejectionReason', class: Google::Apis::SurveysV2::SurveyRejection, decorator: Google::Apis::SurveysV2::SurveyRejection::Representation
175
-
176
- property :state, as: 'state'
177
- property :survey_url_id, as: 'surveyUrlId'
178
- property :title, as: 'title'
179
- property :wanted_response_count, as: 'wantedResponseCount'
180
- end
181
- end
182
-
183
- class SurveyAudience
184
- # @private
185
- class Representation < Google::Apis::Core::JsonRepresentation
186
- collection :ages, as: 'ages'
187
- property :country, as: 'country'
188
- property :country_subdivision, as: 'countrySubdivision'
189
- property :gender, as: 'gender'
190
- collection :languages, as: 'languages'
191
- property :population_source, as: 'populationSource'
192
- end
193
- end
194
-
195
- class SurveyCost
196
- # @private
197
- class Representation < Google::Apis::Core::JsonRepresentation
198
- property :cost_per_response_nanos, :numeric_string => true, as: 'costPerResponseNanos'
199
- property :currency_code, as: 'currencyCode'
200
- property :max_cost_per_response_nanos, :numeric_string => true, as: 'maxCostPerResponseNanos'
201
- property :nanos, :numeric_string => true, as: 'nanos'
202
- end
203
- end
204
-
205
- class SurveyQuestion
206
- # @private
207
- class Representation < Google::Apis::Core::JsonRepresentation
208
- property :answer_order, as: 'answerOrder'
209
- collection :answers, as: 'answers'
210
- property :has_other, as: 'hasOther'
211
- property :high_value_label, as: 'highValueLabel'
212
- collection :images, as: 'images', class: Google::Apis::SurveysV2::SurveyQuestionImage, decorator: Google::Apis::SurveysV2::SurveyQuestionImage::Representation
213
-
214
- property :last_answer_position_pinned, as: 'lastAnswerPositionPinned'
215
- property :low_value_label, as: 'lowValueLabel'
216
- property :must_pick_suggestion, as: 'mustPickSuggestion'
217
- property :num_stars, as: 'numStars'
218
- property :open_text_placeholder, as: 'openTextPlaceholder'
219
- collection :open_text_suggestions, as: 'openTextSuggestions'
220
- property :question, as: 'question'
221
- property :sentiment_text, as: 'sentimentText'
222
- property :single_line_response, as: 'singleLineResponse'
223
- collection :threshold_answers, as: 'thresholdAnswers'
224
- property :type, as: 'type'
225
- property :unit_of_measurement_label, as: 'unitOfMeasurementLabel'
226
- property :video_id, as: 'videoId'
227
- end
228
- end
229
-
230
- class SurveyQuestionImage
231
- # @private
232
- class Representation < Google::Apis::Core::JsonRepresentation
233
- property :alt_text, as: 'altText'
234
- property :data, :base64 => true, as: 'data'
235
- property :url, as: 'url'
236
- end
237
- end
238
-
239
- class SurveyRejection
240
- # @private
241
- class Representation < Google::Apis::Core::JsonRepresentation
242
- property :explanation, as: 'explanation'
243
- property :type, as: 'type'
244
- end
245
- end
246
-
247
- class SurveyResults
248
- # @private
249
- class Representation < Google::Apis::Core::JsonRepresentation
250
- property :status, as: 'status'
251
- property :survey_url_id, as: 'surveyUrlId'
252
- end
253
- end
254
-
255
- class SurveysDeleteResponse
256
- # @private
257
- class Representation < Google::Apis::Core::JsonRepresentation
258
- property :request_id, as: 'requestId'
259
- end
260
- end
261
-
262
- class SurveysListResponse
263
- # @private
264
- class Representation < Google::Apis::Core::JsonRepresentation
265
- property :page_info, as: 'pageInfo', class: Google::Apis::SurveysV2::PageInfo, decorator: Google::Apis::SurveysV2::PageInfo::Representation
266
-
267
- property :request_id, as: 'requestId'
268
- collection :resources, as: 'resources', class: Google::Apis::SurveysV2::Survey, decorator: Google::Apis::SurveysV2::Survey::Representation
269
-
270
- property :token_pagination, as: 'tokenPagination', class: Google::Apis::SurveysV2::TokenPagination, decorator: Google::Apis::SurveysV2::TokenPagination::Representation
271
-
272
- end
273
- end
274
-
275
- class SurveysStartRequest
276
- # @private
277
- class Representation < Google::Apis::Core::JsonRepresentation
278
- property :max_cost_per_response_nanos, :numeric_string => true, as: 'maxCostPerResponseNanos'
279
- end
280
- end
281
-
282
- class SurveysStartResponse
283
- # @private
284
- class Representation < Google::Apis::Core::JsonRepresentation
285
- property :request_id, as: 'requestId'
286
- end
287
- end
288
-
289
- class SurveysStopResponse
290
- # @private
291
- class Representation < Google::Apis::Core::JsonRepresentation
292
- property :request_id, as: 'requestId'
293
- end
294
- end
295
-
296
- class TokenPagination
297
- # @private
298
- class Representation < Google::Apis::Core::JsonRepresentation
299
- property :next_page_token, as: 'nextPageToken'
300
- property :previous_page_token, as: 'previousPageToken'
301
- end
302
- end
303
- end
304
- end
305
- end
@@ -1,348 +0,0 @@
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/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module SurveysV2
23
- # Surveys API
24
- #
25
- # Creates and conducts surveys, lists the surveys that an authenticated user
26
- # owns, and retrieves survey results and information about specified surveys.
27
- #
28
- # @example
29
- # require 'google/apis/surveys_v2'
30
- #
31
- # Surveys = Google::Apis::SurveysV2 # Alias the module
32
- # service = Surveys::SurveysService.new
33
- #
34
- class SurveysService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
- # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
43
- attr_accessor :quota_user
44
-
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
- def initialize
50
- super('https://www.googleapis.com/', 'surveys/v2/')
51
- @batch_path = 'batch/surveys/v2'
52
- end
53
-
54
- # Retrieves any survey results that have been produced so far. Results are
55
- # formatted as an Excel file. You must add "?alt=media" to the URL as an
56
- # argument to get results.
57
- # @param [String] survey_url_id
58
- # External URL ID for the survey.
59
- # @param [Google::Apis::SurveysV2::ResultsGetRequest] results_get_request_object
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
- # @param [String] quota_user
63
- # An opaque string that represents a user for quota purposes. Must not exceed 40
64
- # characters.
65
- # @param [String] user_ip
66
- # Deprecated. Please use quotaUser instead.
67
- # @param [IO, String] download_dest
68
- # IO stream or filename to receive content download
69
- # @param [Google::Apis::RequestOptions] options
70
- # Request-specific options
71
- #
72
- # @yield [result, err] Result & error if block supplied
73
- # @yieldparam result [Google::Apis::SurveysV2::SurveyResults] parsed result object
74
- # @yieldparam err [StandardError] error object if request failed
75
- #
76
- # @return [Google::Apis::SurveysV2::SurveyResults]
77
- #
78
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
- # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def get_result(survey_url_id, results_get_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
82
- if download_dest.nil?
83
- command = make_simple_command(:get, 'surveys/{surveyUrlId}/results', options)
84
- else
85
- command = make_download_command(:get, 'surveys/{surveyUrlId}/results', options)
86
- command.download_dest = download_dest
87
- end
88
- command.request_representation = Google::Apis::SurveysV2::ResultsGetRequest::Representation
89
- command.request_object = results_get_request_object
90
- command.response_representation = Google::Apis::SurveysV2::SurveyResults::Representation
91
- command.response_class = Google::Apis::SurveysV2::SurveyResults
92
- command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
93
- command.query['fields'] = fields unless fields.nil?
94
- command.query['quotaUser'] = quota_user unless quota_user.nil?
95
- command.query['userIp'] = user_ip unless user_ip.nil?
96
- execute_or_queue_command(command, &block)
97
- end
98
-
99
- # Removes a survey from view in all user GET requests.
100
- # @param [String] survey_url_id
101
- # External URL ID for the survey.
102
- # @param [String] fields
103
- # Selector specifying which fields to include in a partial response.
104
- # @param [String] quota_user
105
- # An opaque string that represents a user for quota purposes. Must not exceed 40
106
- # characters.
107
- # @param [String] user_ip
108
- # Deprecated. Please use quotaUser instead.
109
- # @param [Google::Apis::RequestOptions] options
110
- # Request-specific options
111
- #
112
- # @yield [result, err] Result & error if block supplied
113
- # @yieldparam result [Google::Apis::SurveysV2::SurveysDeleteResponse] parsed result object
114
- # @yieldparam err [StandardError] error object if request failed
115
- #
116
- # @return [Google::Apis::SurveysV2::SurveysDeleteResponse]
117
- #
118
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
- # @raise [Google::Apis::AuthorizationError] Authorization is required
121
- def delete_survey(survey_url_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
122
- command = make_simple_command(:delete, 'surveys/{surveyUrlId}', options)
123
- command.response_representation = Google::Apis::SurveysV2::SurveysDeleteResponse::Representation
124
- command.response_class = Google::Apis::SurveysV2::SurveysDeleteResponse
125
- command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
126
- command.query['fields'] = fields unless fields.nil?
127
- command.query['quotaUser'] = quota_user unless quota_user.nil?
128
- command.query['userIp'] = user_ip unless user_ip.nil?
129
- execute_or_queue_command(command, &block)
130
- end
131
-
132
- # Retrieves information about the specified survey.
133
- # @param [String] survey_url_id
134
- # External URL ID for the survey.
135
- # @param [String] fields
136
- # Selector specifying which fields to include in a partial response.
137
- # @param [String] quota_user
138
- # An opaque string that represents a user for quota purposes. Must not exceed 40
139
- # characters.
140
- # @param [String] user_ip
141
- # Deprecated. Please use quotaUser instead.
142
- # @param [Google::Apis::RequestOptions] options
143
- # Request-specific options
144
- #
145
- # @yield [result, err] Result & error if block supplied
146
- # @yieldparam result [Google::Apis::SurveysV2::Survey] parsed result object
147
- # @yieldparam err [StandardError] error object if request failed
148
- #
149
- # @return [Google::Apis::SurveysV2::Survey]
150
- #
151
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
152
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
153
- # @raise [Google::Apis::AuthorizationError] Authorization is required
154
- def get_survey(survey_url_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
155
- command = make_simple_command(:get, 'surveys/{surveyUrlId}', options)
156
- command.response_representation = Google::Apis::SurveysV2::Survey::Representation
157
- command.response_class = Google::Apis::SurveysV2::Survey
158
- command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
159
- command.query['fields'] = fields unless fields.nil?
160
- command.query['quotaUser'] = quota_user unless quota_user.nil?
161
- command.query['userIp'] = user_ip unless user_ip.nil?
162
- execute_or_queue_command(command, &block)
163
- end
164
-
165
- # Creates a survey.
166
- # @param [Google::Apis::SurveysV2::Survey] survey_object
167
- # @param [String] fields
168
- # Selector specifying which fields to include in a partial response.
169
- # @param [String] quota_user
170
- # An opaque string that represents a user for quota purposes. Must not exceed 40
171
- # characters.
172
- # @param [String] user_ip
173
- # Deprecated. Please use quotaUser instead.
174
- # @param [Google::Apis::RequestOptions] options
175
- # Request-specific options
176
- #
177
- # @yield [result, err] Result & error if block supplied
178
- # @yieldparam result [Google::Apis::SurveysV2::Survey] parsed result object
179
- # @yieldparam err [StandardError] error object if request failed
180
- #
181
- # @return [Google::Apis::SurveysV2::Survey]
182
- #
183
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
- # @raise [Google::Apis::AuthorizationError] Authorization is required
186
- def insert_survey(survey_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
187
- command = make_simple_command(:post, 'surveys', options)
188
- command.request_representation = Google::Apis::SurveysV2::Survey::Representation
189
- command.request_object = survey_object
190
- command.response_representation = Google::Apis::SurveysV2::Survey::Representation
191
- command.response_class = Google::Apis::SurveysV2::Survey
192
- command.query['fields'] = fields unless fields.nil?
193
- command.query['quotaUser'] = quota_user unless quota_user.nil?
194
- command.query['userIp'] = user_ip unless user_ip.nil?
195
- execute_or_queue_command(command, &block)
196
- end
197
-
198
- # Lists the surveys owned by the authenticated user.
199
- # @param [Fixnum] max_results
200
- # @param [Fixnum] start_index
201
- # @param [String] token
202
- # @param [String] fields
203
- # Selector specifying which fields to include in a partial response.
204
- # @param [String] quota_user
205
- # An opaque string that represents a user for quota purposes. Must not exceed 40
206
- # characters.
207
- # @param [String] user_ip
208
- # Deprecated. Please use quotaUser instead.
209
- # @param [Google::Apis::RequestOptions] options
210
- # Request-specific options
211
- #
212
- # @yield [result, err] Result & error if block supplied
213
- # @yieldparam result [Google::Apis::SurveysV2::SurveysListResponse] parsed result object
214
- # @yieldparam err [StandardError] error object if request failed
215
- #
216
- # @return [Google::Apis::SurveysV2::SurveysListResponse]
217
- #
218
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
219
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
220
- # @raise [Google::Apis::AuthorizationError] Authorization is required
221
- def list_surveys(max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
222
- command = make_simple_command(:get, 'surveys', options)
223
- command.response_representation = Google::Apis::SurveysV2::SurveysListResponse::Representation
224
- command.response_class = Google::Apis::SurveysV2::SurveysListResponse
225
- command.query['maxResults'] = max_results unless max_results.nil?
226
- command.query['startIndex'] = start_index unless start_index.nil?
227
- command.query['token'] = token unless token.nil?
228
- command.query['fields'] = fields unless fields.nil?
229
- command.query['quotaUser'] = quota_user unless quota_user.nil?
230
- command.query['userIp'] = user_ip unless user_ip.nil?
231
- execute_or_queue_command(command, &block)
232
- end
233
-
234
- # Begins running a survey.
235
- # @param [String] resource_id
236
- # @param [Google::Apis::SurveysV2::SurveysStartRequest] surveys_start_request_object
237
- # @param [String] fields
238
- # Selector specifying which fields to include in a partial response.
239
- # @param [String] quota_user
240
- # An opaque string that represents a user for quota purposes. Must not exceed 40
241
- # characters.
242
- # @param [String] user_ip
243
- # Deprecated. Please use quotaUser instead.
244
- # @param [Google::Apis::RequestOptions] options
245
- # Request-specific options
246
- #
247
- # @yield [result, err] Result & error if block supplied
248
- # @yieldparam result [Google::Apis::SurveysV2::SurveysStartResponse] parsed result object
249
- # @yieldparam err [StandardError] error object if request failed
250
- #
251
- # @return [Google::Apis::SurveysV2::SurveysStartResponse]
252
- #
253
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
254
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
255
- # @raise [Google::Apis::AuthorizationError] Authorization is required
256
- def start_survey(resource_id, surveys_start_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
257
- command = make_simple_command(:post, 'surveys/{resourceId}/start', options)
258
- command.request_representation = Google::Apis::SurveysV2::SurveysStartRequest::Representation
259
- command.request_object = surveys_start_request_object
260
- command.response_representation = Google::Apis::SurveysV2::SurveysStartResponse::Representation
261
- command.response_class = Google::Apis::SurveysV2::SurveysStartResponse
262
- command.params['resourceId'] = resource_id unless resource_id.nil?
263
- command.query['fields'] = fields unless fields.nil?
264
- command.query['quotaUser'] = quota_user unless quota_user.nil?
265
- command.query['userIp'] = user_ip unless user_ip.nil?
266
- execute_or_queue_command(command, &block)
267
- end
268
-
269
- # Stops a running survey.
270
- # @param [String] resource_id
271
- # @param [String] fields
272
- # Selector specifying which fields to include in a partial response.
273
- # @param [String] quota_user
274
- # An opaque string that represents a user for quota purposes. Must not exceed 40
275
- # characters.
276
- # @param [String] user_ip
277
- # Deprecated. Please use quotaUser instead.
278
- # @param [Google::Apis::RequestOptions] options
279
- # Request-specific options
280
- #
281
- # @yield [result, err] Result & error if block supplied
282
- # @yieldparam result [Google::Apis::SurveysV2::SurveysStopResponse] parsed result object
283
- # @yieldparam err [StandardError] error object if request failed
284
- #
285
- # @return [Google::Apis::SurveysV2::SurveysStopResponse]
286
- #
287
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
- # @raise [Google::Apis::AuthorizationError] Authorization is required
290
- def stop_survey(resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
291
- command = make_simple_command(:post, 'surveys/{resourceId}/stop', options)
292
- command.response_representation = Google::Apis::SurveysV2::SurveysStopResponse::Representation
293
- command.response_class = Google::Apis::SurveysV2::SurveysStopResponse
294
- command.params['resourceId'] = resource_id unless resource_id.nil?
295
- command.query['fields'] = fields unless fields.nil?
296
- command.query['quotaUser'] = quota_user unless quota_user.nil?
297
- command.query['userIp'] = user_ip unless user_ip.nil?
298
- execute_or_queue_command(command, &block)
299
- end
300
-
301
- # Updates a survey. Currently the only property that can be updated is the
302
- # owners property.
303
- # @param [String] survey_url_id
304
- # External URL ID for the survey.
305
- # @param [Google::Apis::SurveysV2::Survey] survey_object
306
- # @param [String] fields
307
- # Selector specifying which fields to include in a partial response.
308
- # @param [String] quota_user
309
- # An opaque string that represents a user for quota purposes. Must not exceed 40
310
- # characters.
311
- # @param [String] user_ip
312
- # Deprecated. Please use quotaUser instead.
313
- # @param [Google::Apis::RequestOptions] options
314
- # Request-specific options
315
- #
316
- # @yield [result, err] Result & error if block supplied
317
- # @yieldparam result [Google::Apis::SurveysV2::Survey] parsed result object
318
- # @yieldparam err [StandardError] error object if request failed
319
- #
320
- # @return [Google::Apis::SurveysV2::Survey]
321
- #
322
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
- # @raise [Google::Apis::AuthorizationError] Authorization is required
325
- def update_survey(survey_url_id, survey_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
326
- command = make_simple_command(:put, 'surveys/{surveyUrlId}', options)
327
- command.request_representation = Google::Apis::SurveysV2::Survey::Representation
328
- command.request_object = survey_object
329
- command.response_representation = Google::Apis::SurveysV2::Survey::Representation
330
- command.response_class = Google::Apis::SurveysV2::Survey
331
- command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
332
- command.query['fields'] = fields unless fields.nil?
333
- command.query['quotaUser'] = quota_user unless quota_user.nil?
334
- command.query['userIp'] = user_ip unless user_ip.nil?
335
- execute_or_queue_command(command, &block)
336
- end
337
-
338
- protected
339
-
340
- def apply_command_defaults(command)
341
- command.query['key'] = key unless key.nil?
342
- command.query['quotaUser'] = quota_user unless quota_user.nil?
343
- command.query['userIp'] = user_ip unless user_ip.nil?
344
- end
345
- end
346
- end
347
- end
348
- end