google-api-client 0.18.1 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  4. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +349 -0
  5. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +153 -0
  6. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +412 -0
  7. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  8. data/generated/google/apis/androidmanagement_v1/classes.rb +75 -0
  9. data/generated/google/apis/androidmanagement_v1/representations.rb +22 -0
  10. data/generated/google/apis/bigquery_v2.rb +1 -1
  11. data/generated/google/apis/bigquery_v2/classes.rb +56 -0
  12. data/generated/google/apis/bigquery_v2/representations.rb +20 -0
  13. data/generated/google/apis/calendar_v3.rb +1 -1
  14. data/generated/google/apis/calendar_v3/classes.rb +15 -4
  15. data/generated/google/apis/calendar_v3/representations.rb +1 -0
  16. data/generated/google/apis/calendar_v3/service.rb +8 -4
  17. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  18. data/generated/google/apis/cloudfunctions_v1/service.rb +9 -2
  19. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  20. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +3 -3
  21. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +8 -1
  22. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  23. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +19 -18
  24. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
  25. data/generated/google/apis/compute_alpha.rb +1 -1
  26. data/generated/google/apis/compute_alpha/classes.rb +256 -63
  27. data/generated/google/apis/compute_alpha/representations.rb +44 -1
  28. data/generated/google/apis/compute_alpha/service.rb +217 -2
  29. data/generated/google/apis/compute_beta.rb +1 -1
  30. data/generated/google/apis/compute_beta/classes.rb +776 -46
  31. data/generated/google/apis/compute_beta/representations.rb +254 -0
  32. data/generated/google/apis/compute_beta/service.rb +1070 -13
  33. data/generated/google/apis/compute_v1.rb +1 -1
  34. data/generated/google/apis/compute_v1/classes.rb +83 -46
  35. data/generated/google/apis/compute_v1/service.rb +4 -2
  36. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  37. data/generated/google/apis/deploymentmanager_alpha/classes.rb +52 -0
  38. data/generated/google/apis/deploymentmanager_alpha/representations.rb +19 -0
  39. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  40. data/generated/google/apis/dialogflow_v2beta1/classes.rb +31 -11
  41. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  42. data/generated/google/apis/dlp_v2beta1/classes.rb +70 -4
  43. data/generated/google/apis/dlp_v2beta1/representations.rb +1 -0
  44. data/generated/google/apis/dlp_v2beta2.rb +1 -1
  45. data/generated/google/apis/dlp_v2beta2/classes.rb +124 -30
  46. data/generated/google/apis/dlp_v2beta2/representations.rb +2 -0
  47. data/generated/google/apis/dlp_v2beta2/service.rb +14 -10
  48. data/generated/google/apis/iam_v1.rb +1 -1
  49. data/generated/google/apis/iam_v1/classes.rb +0 -56
  50. data/generated/google/apis/iam_v1/representations.rb +0 -18
  51. data/generated/google/apis/logging_v2.rb +1 -1
  52. data/generated/google/apis/logging_v2/classes.rb +8 -6
  53. data/generated/google/apis/logging_v2beta1.rb +1 -1
  54. data/generated/google/apis/logging_v2beta1/classes.rb +8 -6
  55. data/generated/google/apis/ml_v1.rb +1 -1
  56. data/generated/google/apis/ml_v1/classes.rb +22 -5
  57. data/generated/google/apis/ml_v1/service.rb +19 -5
  58. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  59. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
  60. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  61. data/generated/google/apis/servicecontrol_v1/classes.rb +10 -0
  62. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  63. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  64. data/generated/google/apis/servicemanagement_v1/classes.rb +6 -5
  65. data/generated/google/apis/serviceuser_v1.rb +1 -1
  66. data/generated/google/apis/serviceuser_v1/classes.rb +6 -5
  67. data/generated/google/apis/sheets_v4.rb +1 -1
  68. data/generated/google/apis/sheets_v4/classes.rb +283 -0
  69. data/generated/google/apis/sheets_v4/representations.rb +90 -0
  70. data/generated/google/apis/speech_v1.rb +1 -1
  71. data/generated/google/apis/storage_v1.rb +1 -1
  72. data/generated/google/apis/storage_v1/classes.rb +115 -4
  73. data/generated/google/apis/storage_v1/representations.rb +23 -0
  74. data/generated/google/apis/storage_v1/service.rb +44 -1
  75. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  76. data/generated/google/apis/tpu_v1alpha1/classes.rb +11 -4
  77. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  78. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  79. data/lib/google/apis/version.rb +1 -1
  80. metadata +2 -6
  81. data/generated/google/apis/consumersurveys_v2.rb +0 -40
  82. data/generated/google/apis/consumersurveys_v2/classes.rb +0 -736
  83. data/generated/google/apis/consumersurveys_v2/representations.rb +0 -343
  84. data/generated/google/apis/consumersurveys_v2/service.rb +0 -478
@@ -1,343 +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 ConsumersurveysV2
24
-
25
- class FieldMask
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class MobileAppPanel
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class MobileAppPanelsListResponse
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class PageInfo
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class ResultsGetRequest
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class ResultsMask
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class Survey
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class SurveyAudience
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class SurveyCost
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class SurveyQuestion
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class SurveyQuestionImage
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class SurveyRejection
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class SurveyResults
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class SurveysDeleteResponse
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
- class SurveysListResponse
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
- class SurveysStartRequest
116
- class Representation < Google::Apis::Core::JsonRepresentation; end
117
-
118
- include Google::Apis::Core::JsonObjectSupport
119
- end
120
-
121
- class SurveysStartResponse
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
- class SurveysStopResponse
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
129
-
130
- include Google::Apis::Core::JsonObjectSupport
131
- end
132
-
133
- class TokenPagination
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
135
-
136
- include Google::Apis::Core::JsonObjectSupport
137
- end
138
-
139
- class FieldMask
140
- # @private
141
- class Representation < Google::Apis::Core::JsonRepresentation
142
- collection :fields, as: 'fields', class: Google::Apis::ConsumersurveysV2::FieldMask, decorator: Google::Apis::ConsumersurveysV2::FieldMask::Representation
143
-
144
- property :id, as: 'id'
145
- end
146
- end
147
-
148
- class MobileAppPanel
149
- # @private
150
- class Representation < Google::Apis::Core::JsonRepresentation
151
- property :country, as: 'country'
152
- property :is_public_panel, as: 'isPublicPanel'
153
- property :language, as: 'language'
154
- property :mobile_app_panel_id, as: 'mobileAppPanelId'
155
- property :name, as: 'name'
156
- collection :owners, as: 'owners'
157
- end
158
- end
159
-
160
- class MobileAppPanelsListResponse
161
- # @private
162
- class Representation < Google::Apis::Core::JsonRepresentation
163
- property :page_info, as: 'pageInfo', class: Google::Apis::ConsumersurveysV2::PageInfo, decorator: Google::Apis::ConsumersurveysV2::PageInfo::Representation
164
-
165
- property :request_id, as: 'requestId'
166
- collection :resources, as: 'resources', class: Google::Apis::ConsumersurveysV2::MobileAppPanel, decorator: Google::Apis::ConsumersurveysV2::MobileAppPanel::Representation
167
-
168
- property :token_pagination, as: 'tokenPagination', class: Google::Apis::ConsumersurveysV2::TokenPagination, decorator: Google::Apis::ConsumersurveysV2::TokenPagination::Representation
169
-
170
- end
171
- end
172
-
173
- class PageInfo
174
- # @private
175
- class Representation < Google::Apis::Core::JsonRepresentation
176
- property :result_per_page, as: 'resultPerPage'
177
- property :start_index, as: 'startIndex'
178
- property :total_results, as: 'totalResults'
179
- end
180
- end
181
-
182
- class ResultsGetRequest
183
- # @private
184
- class Representation < Google::Apis::Core::JsonRepresentation
185
- property :result_mask, as: 'resultMask', class: Google::Apis::ConsumersurveysV2::ResultsMask, decorator: Google::Apis::ConsumersurveysV2::ResultsMask::Representation
186
-
187
- end
188
- end
189
-
190
- class ResultsMask
191
- # @private
192
- class Representation < Google::Apis::Core::JsonRepresentation
193
- collection :fields, as: 'fields', class: Google::Apis::ConsumersurveysV2::FieldMask, decorator: Google::Apis::ConsumersurveysV2::FieldMask::Representation
194
-
195
- property :projection, as: 'projection'
196
- end
197
- end
198
-
199
- class Survey
200
- # @private
201
- class Representation < Google::Apis::Core::JsonRepresentation
202
- property :audience, as: 'audience', class: Google::Apis::ConsumersurveysV2::SurveyAudience, decorator: Google::Apis::ConsumersurveysV2::SurveyAudience::Representation
203
-
204
- property :cost, as: 'cost', class: Google::Apis::ConsumersurveysV2::SurveyCost, decorator: Google::Apis::ConsumersurveysV2::SurveyCost::Representation
205
-
206
- property :customer_data, :base64 => true, as: 'customerData'
207
- property :description, as: 'description'
208
- collection :owners, as: 'owners'
209
- collection :questions, as: 'questions', class: Google::Apis::ConsumersurveysV2::SurveyQuestion, decorator: Google::Apis::ConsumersurveysV2::SurveyQuestion::Representation
210
-
211
- property :rejection_reason, as: 'rejectionReason', class: Google::Apis::ConsumersurveysV2::SurveyRejection, decorator: Google::Apis::ConsumersurveysV2::SurveyRejection::Representation
212
-
213
- property :state, as: 'state'
214
- property :survey_url_id, as: 'surveyUrlId'
215
- property :title, as: 'title'
216
- property :wanted_response_count, as: 'wantedResponseCount'
217
- end
218
- end
219
-
220
- class SurveyAudience
221
- # @private
222
- class Representation < Google::Apis::Core::JsonRepresentation
223
- collection :ages, as: 'ages'
224
- property :country, as: 'country'
225
- property :country_subdivision, as: 'countrySubdivision'
226
- property :gender, as: 'gender'
227
- collection :languages, as: 'languages'
228
- property :mobile_app_panel_id, as: 'mobileAppPanelId'
229
- property :population_source, as: 'populationSource'
230
- end
231
- end
232
-
233
- class SurveyCost
234
- # @private
235
- class Representation < Google::Apis::Core::JsonRepresentation
236
- property :cost_per_response_nanos, :numeric_string => true, as: 'costPerResponseNanos'
237
- property :currency_code, as: 'currencyCode'
238
- property :max_cost_per_response_nanos, :numeric_string => true, as: 'maxCostPerResponseNanos'
239
- property :nanos, :numeric_string => true, as: 'nanos'
240
- end
241
- end
242
-
243
- class SurveyQuestion
244
- # @private
245
- class Representation < Google::Apis::Core::JsonRepresentation
246
- property :answer_order, as: 'answerOrder'
247
- collection :answers, as: 'answers'
248
- property :has_other, as: 'hasOther'
249
- property :high_value_label, as: 'highValueLabel'
250
- collection :images, as: 'images', class: Google::Apis::ConsumersurveysV2::SurveyQuestionImage, decorator: Google::Apis::ConsumersurveysV2::SurveyQuestionImage::Representation
251
-
252
- property :last_answer_position_pinned, as: 'lastAnswerPositionPinned'
253
- property :low_value_label, as: 'lowValueLabel'
254
- property :must_pick_suggestion, as: 'mustPickSuggestion'
255
- property :num_stars, as: 'numStars'
256
- property :open_text_placeholder, as: 'openTextPlaceholder'
257
- collection :open_text_suggestions, as: 'openTextSuggestions'
258
- property :question, as: 'question'
259
- property :sentiment_text, as: 'sentimentText'
260
- property :single_line_response, as: 'singleLineResponse'
261
- collection :threshold_answers, as: 'thresholdAnswers'
262
- property :type, as: 'type'
263
- property :unit_of_measurement_label, as: 'unitOfMeasurementLabel'
264
- property :video_id, as: 'videoId'
265
- end
266
- end
267
-
268
- class SurveyQuestionImage
269
- # @private
270
- class Representation < Google::Apis::Core::JsonRepresentation
271
- property :alt_text, as: 'altText'
272
- property :data, :base64 => true, as: 'data'
273
- property :url, as: 'url'
274
- end
275
- end
276
-
277
- class SurveyRejection
278
- # @private
279
- class Representation < Google::Apis::Core::JsonRepresentation
280
- property :explanation, as: 'explanation'
281
- property :type, as: 'type'
282
- end
283
- end
284
-
285
- class SurveyResults
286
- # @private
287
- class Representation < Google::Apis::Core::JsonRepresentation
288
- property :status, as: 'status'
289
- property :survey_url_id, as: 'surveyUrlId'
290
- end
291
- end
292
-
293
- class SurveysDeleteResponse
294
- # @private
295
- class Representation < Google::Apis::Core::JsonRepresentation
296
- property :request_id, as: 'requestId'
297
- end
298
- end
299
-
300
- class SurveysListResponse
301
- # @private
302
- class Representation < Google::Apis::Core::JsonRepresentation
303
- property :page_info, as: 'pageInfo', class: Google::Apis::ConsumersurveysV2::PageInfo, decorator: Google::Apis::ConsumersurveysV2::PageInfo::Representation
304
-
305
- property :request_id, as: 'requestId'
306
- collection :resources, as: 'resources', class: Google::Apis::ConsumersurveysV2::Survey, decorator: Google::Apis::ConsumersurveysV2::Survey::Representation
307
-
308
- property :token_pagination, as: 'tokenPagination', class: Google::Apis::ConsumersurveysV2::TokenPagination, decorator: Google::Apis::ConsumersurveysV2::TokenPagination::Representation
309
-
310
- end
311
- end
312
-
313
- class SurveysStartRequest
314
- # @private
315
- class Representation < Google::Apis::Core::JsonRepresentation
316
- property :max_cost_per_response_nanos, :numeric_string => true, as: 'maxCostPerResponseNanos'
317
- end
318
- end
319
-
320
- class SurveysStartResponse
321
- # @private
322
- class Representation < Google::Apis::Core::JsonRepresentation
323
- property :request_id, as: 'requestId'
324
- end
325
- end
326
-
327
- class SurveysStopResponse
328
- # @private
329
- class Representation < Google::Apis::Core::JsonRepresentation
330
- property :request_id, as: 'requestId'
331
- end
332
- end
333
-
334
- class TokenPagination
335
- # @private
336
- class Representation < Google::Apis::Core::JsonRepresentation
337
- property :next_page_token, as: 'nextPageToken'
338
- property :previous_page_token, as: 'previousPageToken'
339
- end
340
- end
341
- end
342
- end
343
- end
@@ -1,478 +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 ConsumersurveysV2
23
- # Consumer 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/consumersurveys_v2'
30
- #
31
- # Consumersurveys = Google::Apis::ConsumersurveysV2 # Alias the module
32
- # service = Consumersurveys::ConsumerSurveysService.new
33
- #
34
- class ConsumerSurveysService < 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
- # Available to use for quota purposes for server-side applications. Can be any
42
- # arbitrary string assigned to a user, but should not exceed 40 characters.
43
- # Overrides userIp if both are provided.
44
- attr_accessor :quota_user
45
-
46
- # @return [String]
47
- # IP address of the site where the request originates. Use this if you want to
48
- # enforce per-user limits.
49
- attr_accessor :user_ip
50
-
51
- def initialize
52
- super('https://www.googleapis.com/', 'consumersurveys/v2/')
53
- @batch_path = 'batch/consumersurveys/v2'
54
- end
55
-
56
- # Retrieves a MobileAppPanel that is available to the authenticated user.
57
- # @param [String] panel_id
58
- # External URL ID for the panel.
59
- # @param [String] fields
60
- # Selector specifying which fields to include in a partial response.
61
- # @param [String] quota_user
62
- # Available to use for quota purposes for server-side applications. Can be any
63
- # arbitrary string assigned to a user, but should not exceed 40 characters.
64
- # Overrides userIp if both are provided.
65
- # @param [String] user_ip
66
- # IP address of the site where the request originates. Use this if you want to
67
- # enforce per-user limits.
68
- # @param [Google::Apis::RequestOptions] options
69
- # Request-specific options
70
- #
71
- # @yield [result, err] Result & error if block supplied
72
- # @yieldparam result [Google::Apis::ConsumersurveysV2::MobileAppPanel] parsed result object
73
- # @yieldparam err [StandardError] error object if request failed
74
- #
75
- # @return [Google::Apis::ConsumersurveysV2::MobileAppPanel]
76
- #
77
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
- # @raise [Google::Apis::AuthorizationError] Authorization is required
80
- def get_mobileapppanel(panel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
81
- command = make_simple_command(:get, 'mobileAppPanels/{panelId}', options)
82
- command.response_representation = Google::Apis::ConsumersurveysV2::MobileAppPanel::Representation
83
- command.response_class = Google::Apis::ConsumersurveysV2::MobileAppPanel
84
- command.params['panelId'] = panel_id unless panel_id.nil?
85
- command.query['fields'] = fields unless fields.nil?
86
- command.query['quotaUser'] = quota_user unless quota_user.nil?
87
- command.query['userIp'] = user_ip unless user_ip.nil?
88
- execute_or_queue_command(command, &block)
89
- end
90
-
91
- # Lists the MobileAppPanels available to the authenticated user.
92
- # @param [Fixnum] max_results
93
- # @param [Fixnum] start_index
94
- # @param [String] token
95
- # @param [String] fields
96
- # Selector specifying which fields to include in a partial response.
97
- # @param [String] quota_user
98
- # Available to use for quota purposes for server-side applications. Can be any
99
- # arbitrary string assigned to a user, but should not exceed 40 characters.
100
- # Overrides userIp if both are provided.
101
- # @param [String] user_ip
102
- # IP address of the site where the request originates. Use this if you want to
103
- # enforce per-user limits.
104
- # @param [Google::Apis::RequestOptions] options
105
- # Request-specific options
106
- #
107
- # @yield [result, err] Result & error if block supplied
108
- # @yieldparam result [Google::Apis::ConsumersurveysV2::MobileAppPanelsListResponse] parsed result object
109
- # @yieldparam err [StandardError] error object if request failed
110
- #
111
- # @return [Google::Apis::ConsumersurveysV2::MobileAppPanelsListResponse]
112
- #
113
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
- # @raise [Google::Apis::AuthorizationError] Authorization is required
116
- def list_mobileapppanels(max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
117
- command = make_simple_command(:get, 'mobileAppPanels', options)
118
- command.response_representation = Google::Apis::ConsumersurveysV2::MobileAppPanelsListResponse::Representation
119
- command.response_class = Google::Apis::ConsumersurveysV2::MobileAppPanelsListResponse
120
- command.query['maxResults'] = max_results unless max_results.nil?
121
- command.query['startIndex'] = start_index unless start_index.nil?
122
- command.query['token'] = token unless token.nil?
123
- command.query['fields'] = fields unless fields.nil?
124
- command.query['quotaUser'] = quota_user unless quota_user.nil?
125
- command.query['userIp'] = user_ip unless user_ip.nil?
126
- execute_or_queue_command(command, &block)
127
- end
128
-
129
- # Updates a MobileAppPanel. Currently the only property that can be updated is
130
- # the owners property.
131
- # @param [String] panel_id
132
- # External URL ID for the panel.
133
- # @param [Google::Apis::ConsumersurveysV2::MobileAppPanel] mobile_app_panel_object
134
- # @param [String] fields
135
- # Selector specifying which fields to include in a partial response.
136
- # @param [String] quota_user
137
- # Available to use for quota purposes for server-side applications. Can be any
138
- # arbitrary string assigned to a user, but should not exceed 40 characters.
139
- # Overrides userIp if both are provided.
140
- # @param [String] user_ip
141
- # IP address of the site where the request originates. Use this if you want to
142
- # enforce per-user limits.
143
- # @param [Google::Apis::RequestOptions] options
144
- # Request-specific options
145
- #
146
- # @yield [result, err] Result & error if block supplied
147
- # @yieldparam result [Google::Apis::ConsumersurveysV2::MobileAppPanel] parsed result object
148
- # @yieldparam err [StandardError] error object if request failed
149
- #
150
- # @return [Google::Apis::ConsumersurveysV2::MobileAppPanel]
151
- #
152
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
- # @raise [Google::Apis::AuthorizationError] Authorization is required
155
- def update_mobileapppanel(panel_id, mobile_app_panel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
156
- command = make_simple_command(:put, 'mobileAppPanels/{panelId}', options)
157
- command.request_representation = Google::Apis::ConsumersurveysV2::MobileAppPanel::Representation
158
- command.request_object = mobile_app_panel_object
159
- command.response_representation = Google::Apis::ConsumersurveysV2::MobileAppPanel::Representation
160
- command.response_class = Google::Apis::ConsumersurveysV2::MobileAppPanel
161
- command.params['panelId'] = panel_id unless panel_id.nil?
162
- command.query['fields'] = fields unless fields.nil?
163
- command.query['quotaUser'] = quota_user unless quota_user.nil?
164
- command.query['userIp'] = user_ip unless user_ip.nil?
165
- execute_or_queue_command(command, &block)
166
- end
167
-
168
- # Retrieves any survey results that have been produced so far. Results are
169
- # formatted as an Excel file. You must add "?alt=media" to the URL as an
170
- # argument to get results.
171
- # @param [String] survey_url_id
172
- # External URL ID for the survey.
173
- # @param [Google::Apis::ConsumersurveysV2::ResultsGetRequest] results_get_request_object
174
- # @param [String] fields
175
- # Selector specifying which fields to include in a partial response.
176
- # @param [String] quota_user
177
- # Available to use for quota purposes for server-side applications. Can be any
178
- # arbitrary string assigned to a user, but should not exceed 40 characters.
179
- # Overrides userIp if both are provided.
180
- # @param [String] user_ip
181
- # IP address of the site where the request originates. Use this if you want to
182
- # enforce per-user limits.
183
- # @param [IO, String] download_dest
184
- # IO stream or filename to receive content download
185
- # @param [Google::Apis::RequestOptions] options
186
- # Request-specific options
187
- #
188
- # @yield [result, err] Result & error if block supplied
189
- # @yieldparam result [Google::Apis::ConsumersurveysV2::SurveyResults] parsed result object
190
- # @yieldparam err [StandardError] error object if request failed
191
- #
192
- # @return [Google::Apis::ConsumersurveysV2::SurveyResults]
193
- #
194
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
195
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
196
- # @raise [Google::Apis::AuthorizationError] Authorization is required
197
- 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)
198
- if download_dest.nil?
199
- command = make_simple_command(:get, 'surveys/{surveyUrlId}/results', options)
200
- else
201
- command = make_download_command(:get, 'surveys/{surveyUrlId}/results', options)
202
- command.download_dest = download_dest
203
- end
204
- command.request_representation = Google::Apis::ConsumersurveysV2::ResultsGetRequest::Representation
205
- command.request_object = results_get_request_object
206
- command.response_representation = Google::Apis::ConsumersurveysV2::SurveyResults::Representation
207
- command.response_class = Google::Apis::ConsumersurveysV2::SurveyResults
208
- command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
209
- command.query['fields'] = fields unless fields.nil?
210
- command.query['quotaUser'] = quota_user unless quota_user.nil?
211
- command.query['userIp'] = user_ip unless user_ip.nil?
212
- execute_or_queue_command(command, &block)
213
- end
214
-
215
- # Removes a survey from view in all user GET requests.
216
- # @param [String] survey_url_id
217
- # External URL ID for the survey.
218
- # @param [String] fields
219
- # Selector specifying which fields to include in a partial response.
220
- # @param [String] quota_user
221
- # Available to use for quota purposes for server-side applications. Can be any
222
- # arbitrary string assigned to a user, but should not exceed 40 characters.
223
- # Overrides userIp if both are provided.
224
- # @param [String] user_ip
225
- # IP address of the site where the request originates. Use this if you want to
226
- # enforce per-user limits.
227
- # @param [Google::Apis::RequestOptions] options
228
- # Request-specific options
229
- #
230
- # @yield [result, err] Result & error if block supplied
231
- # @yieldparam result [Google::Apis::ConsumersurveysV2::SurveysDeleteResponse] parsed result object
232
- # @yieldparam err [StandardError] error object if request failed
233
- #
234
- # @return [Google::Apis::ConsumersurveysV2::SurveysDeleteResponse]
235
- #
236
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
237
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
238
- # @raise [Google::Apis::AuthorizationError] Authorization is required
239
- def delete_survey(survey_url_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
240
- command = make_simple_command(:delete, 'surveys/{surveyUrlId}', options)
241
- command.response_representation = Google::Apis::ConsumersurveysV2::SurveysDeleteResponse::Representation
242
- command.response_class = Google::Apis::ConsumersurveysV2::SurveysDeleteResponse
243
- command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
244
- command.query['fields'] = fields unless fields.nil?
245
- command.query['quotaUser'] = quota_user unless quota_user.nil?
246
- command.query['userIp'] = user_ip unless user_ip.nil?
247
- execute_or_queue_command(command, &block)
248
- end
249
-
250
- # Retrieves information about the specified survey.
251
- # @param [String] survey_url_id
252
- # External URL ID for the survey.
253
- # @param [String] fields
254
- # Selector specifying which fields to include in a partial response.
255
- # @param [String] quota_user
256
- # Available to use for quota purposes for server-side applications. Can be any
257
- # arbitrary string assigned to a user, but should not exceed 40 characters.
258
- # Overrides userIp if both are provided.
259
- # @param [String] user_ip
260
- # IP address of the site where the request originates. Use this if you want to
261
- # enforce per-user limits.
262
- # @param [Google::Apis::RequestOptions] options
263
- # Request-specific options
264
- #
265
- # @yield [result, err] Result & error if block supplied
266
- # @yieldparam result [Google::Apis::ConsumersurveysV2::Survey] parsed result object
267
- # @yieldparam err [StandardError] error object if request failed
268
- #
269
- # @return [Google::Apis::ConsumersurveysV2::Survey]
270
- #
271
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
- # @raise [Google::Apis::AuthorizationError] Authorization is required
274
- def get_survey(survey_url_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
275
- command = make_simple_command(:get, 'surveys/{surveyUrlId}', options)
276
- command.response_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
277
- command.response_class = Google::Apis::ConsumersurveysV2::Survey
278
- command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
279
- command.query['fields'] = fields unless fields.nil?
280
- command.query['quotaUser'] = quota_user unless quota_user.nil?
281
- command.query['userIp'] = user_ip unless user_ip.nil?
282
- execute_or_queue_command(command, &block)
283
- end
284
-
285
- # Creates a survey.
286
- # @param [Google::Apis::ConsumersurveysV2::Survey] survey_object
287
- # @param [String] fields
288
- # Selector specifying which fields to include in a partial response.
289
- # @param [String] quota_user
290
- # Available to use for quota purposes for server-side applications. Can be any
291
- # arbitrary string assigned to a user, but should not exceed 40 characters.
292
- # Overrides userIp if both are provided.
293
- # @param [String] user_ip
294
- # IP address of the site where the request originates. Use this if you want to
295
- # enforce per-user limits.
296
- # @param [Google::Apis::RequestOptions] options
297
- # Request-specific options
298
- #
299
- # @yield [result, err] Result & error if block supplied
300
- # @yieldparam result [Google::Apis::ConsumersurveysV2::Survey] parsed result object
301
- # @yieldparam err [StandardError] error object if request failed
302
- #
303
- # @return [Google::Apis::ConsumersurveysV2::Survey]
304
- #
305
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
306
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
307
- # @raise [Google::Apis::AuthorizationError] Authorization is required
308
- def insert_survey(survey_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
309
- command = make_simple_command(:post, 'surveys', options)
310
- command.request_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
311
- command.request_object = survey_object
312
- command.response_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
313
- command.response_class = Google::Apis::ConsumersurveysV2::Survey
314
- command.query['fields'] = fields unless fields.nil?
315
- command.query['quotaUser'] = quota_user unless quota_user.nil?
316
- command.query['userIp'] = user_ip unless user_ip.nil?
317
- execute_or_queue_command(command, &block)
318
- end
319
-
320
- # Lists the surveys owned by the authenticated user.
321
- # @param [Fixnum] max_results
322
- # @param [Fixnum] start_index
323
- # @param [String] token
324
- # @param [String] fields
325
- # Selector specifying which fields to include in a partial response.
326
- # @param [String] quota_user
327
- # Available to use for quota purposes for server-side applications. Can be any
328
- # arbitrary string assigned to a user, but should not exceed 40 characters.
329
- # Overrides userIp if both are provided.
330
- # @param [String] user_ip
331
- # IP address of the site where the request originates. Use this if you want to
332
- # enforce per-user limits.
333
- # @param [Google::Apis::RequestOptions] options
334
- # Request-specific options
335
- #
336
- # @yield [result, err] Result & error if block supplied
337
- # @yieldparam result [Google::Apis::ConsumersurveysV2::SurveysListResponse] parsed result object
338
- # @yieldparam err [StandardError] error object if request failed
339
- #
340
- # @return [Google::Apis::ConsumersurveysV2::SurveysListResponse]
341
- #
342
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
343
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
344
- # @raise [Google::Apis::AuthorizationError] Authorization is required
345
- def list_surveys(max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
346
- command = make_simple_command(:get, 'surveys', options)
347
- command.response_representation = Google::Apis::ConsumersurveysV2::SurveysListResponse::Representation
348
- command.response_class = Google::Apis::ConsumersurveysV2::SurveysListResponse
349
- command.query['maxResults'] = max_results unless max_results.nil?
350
- command.query['startIndex'] = start_index unless start_index.nil?
351
- command.query['token'] = token unless token.nil?
352
- command.query['fields'] = fields unless fields.nil?
353
- command.query['quotaUser'] = quota_user unless quota_user.nil?
354
- command.query['userIp'] = user_ip unless user_ip.nil?
355
- execute_or_queue_command(command, &block)
356
- end
357
-
358
- # Begins running a survey.
359
- # @param [String] resource_id
360
- # @param [Google::Apis::ConsumersurveysV2::SurveysStartRequest] surveys_start_request_object
361
- # @param [String] fields
362
- # Selector specifying which fields to include in a partial response.
363
- # @param [String] quota_user
364
- # Available to use for quota purposes for server-side applications. Can be any
365
- # arbitrary string assigned to a user, but should not exceed 40 characters.
366
- # Overrides userIp if both are provided.
367
- # @param [String] user_ip
368
- # IP address of the site where the request originates. Use this if you want to
369
- # enforce per-user limits.
370
- # @param [Google::Apis::RequestOptions] options
371
- # Request-specific options
372
- #
373
- # @yield [result, err] Result & error if block supplied
374
- # @yieldparam result [Google::Apis::ConsumersurveysV2::SurveysStartResponse] parsed result object
375
- # @yieldparam err [StandardError] error object if request failed
376
- #
377
- # @return [Google::Apis::ConsumersurveysV2::SurveysStartResponse]
378
- #
379
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
- # @raise [Google::Apis::AuthorizationError] Authorization is required
382
- def start_survey(resource_id, surveys_start_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
383
- command = make_simple_command(:post, 'surveys/{resourceId}/start', options)
384
- command.request_representation = Google::Apis::ConsumersurveysV2::SurveysStartRequest::Representation
385
- command.request_object = surveys_start_request_object
386
- command.response_representation = Google::Apis::ConsumersurveysV2::SurveysStartResponse::Representation
387
- command.response_class = Google::Apis::ConsumersurveysV2::SurveysStartResponse
388
- command.params['resourceId'] = resource_id unless resource_id.nil?
389
- command.query['fields'] = fields unless fields.nil?
390
- command.query['quotaUser'] = quota_user unless quota_user.nil?
391
- command.query['userIp'] = user_ip unless user_ip.nil?
392
- execute_or_queue_command(command, &block)
393
- end
394
-
395
- # Stops a running survey.
396
- # @param [String] resource_id
397
- # @param [String] fields
398
- # Selector specifying which fields to include in a partial response.
399
- # @param [String] quota_user
400
- # Available to use for quota purposes for server-side applications. Can be any
401
- # arbitrary string assigned to a user, but should not exceed 40 characters.
402
- # Overrides userIp if both are provided.
403
- # @param [String] user_ip
404
- # IP address of the site where the request originates. Use this if you want to
405
- # enforce per-user limits.
406
- # @param [Google::Apis::RequestOptions] options
407
- # Request-specific options
408
- #
409
- # @yield [result, err] Result & error if block supplied
410
- # @yieldparam result [Google::Apis::ConsumersurveysV2::SurveysStopResponse] parsed result object
411
- # @yieldparam err [StandardError] error object if request failed
412
- #
413
- # @return [Google::Apis::ConsumersurveysV2::SurveysStopResponse]
414
- #
415
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
- # @raise [Google::Apis::AuthorizationError] Authorization is required
418
- def stop_survey(resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
419
- command = make_simple_command(:post, 'surveys/{resourceId}/stop', options)
420
- command.response_representation = Google::Apis::ConsumersurveysV2::SurveysStopResponse::Representation
421
- command.response_class = Google::Apis::ConsumersurveysV2::SurveysStopResponse
422
- command.params['resourceId'] = resource_id unless resource_id.nil?
423
- command.query['fields'] = fields unless fields.nil?
424
- command.query['quotaUser'] = quota_user unless quota_user.nil?
425
- command.query['userIp'] = user_ip unless user_ip.nil?
426
- execute_or_queue_command(command, &block)
427
- end
428
-
429
- # Updates a survey. Currently the only property that can be updated is the
430
- # owners property.
431
- # @param [String] survey_url_id
432
- # External URL ID for the survey.
433
- # @param [Google::Apis::ConsumersurveysV2::Survey] survey_object
434
- # @param [String] fields
435
- # Selector specifying which fields to include in a partial response.
436
- # @param [String] quota_user
437
- # Available to use for quota purposes for server-side applications. Can be any
438
- # arbitrary string assigned to a user, but should not exceed 40 characters.
439
- # Overrides userIp if both are provided.
440
- # @param [String] user_ip
441
- # IP address of the site where the request originates. Use this if you want to
442
- # enforce per-user limits.
443
- # @param [Google::Apis::RequestOptions] options
444
- # Request-specific options
445
- #
446
- # @yield [result, err] Result & error if block supplied
447
- # @yieldparam result [Google::Apis::ConsumersurveysV2::Survey] parsed result object
448
- # @yieldparam err [StandardError] error object if request failed
449
- #
450
- # @return [Google::Apis::ConsumersurveysV2::Survey]
451
- #
452
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
453
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
454
- # @raise [Google::Apis::AuthorizationError] Authorization is required
455
- def update_survey(survey_url_id, survey_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
456
- command = make_simple_command(:put, 'surveys/{surveyUrlId}', options)
457
- command.request_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
458
- command.request_object = survey_object
459
- command.response_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
460
- command.response_class = Google::Apis::ConsumersurveysV2::Survey
461
- command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
462
- command.query['fields'] = fields unless fields.nil?
463
- command.query['quotaUser'] = quota_user unless quota_user.nil?
464
- command.query['userIp'] = user_ip unless user_ip.nil?
465
- execute_or_queue_command(command, &block)
466
- end
467
-
468
- protected
469
-
470
- def apply_command_defaults(command)
471
- command.query['key'] = key unless key.nil?
472
- command.query['quotaUser'] = quota_user unless quota_user.nil?
473
- command.query['userIp'] = user_ip unless user_ip.nil?
474
- end
475
- end
476
- end
477
- end
478
- end