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
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20191105'
30
+ REVISION = '20191213'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -877,7 +877,7 @@ module Google
877
877
  # @param [String] name
878
878
  # Required. Resource name of the ProductSet to get.
879
879
  # Format is:
880
- # `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
880
+ # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
881
881
  # @param [String] fields
882
882
  # Selector specifying which fields to include in a partial response.
883
883
  # @param [String] quota_user
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.36.1'.freeze
18
+ VERSION = '0.36.2'.freeze
19
19
 
20
20
  # Current operating system
21
21
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.1
4
+ version: 0.36.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-12-16 00:00:00.000000000 Z
14
+ date: 2019-12-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -439,6 +439,10 @@ files:
439
439
  - generated/google/apis/cloudbuild_v1/classes.rb
440
440
  - generated/google/apis/cloudbuild_v1/representations.rb
441
441
  - generated/google/apis/cloudbuild_v1/service.rb
442
+ - generated/google/apis/cloudbuild_v1alpha1.rb
443
+ - generated/google/apis/cloudbuild_v1alpha1/classes.rb
444
+ - generated/google/apis/cloudbuild_v1alpha1/representations.rb
445
+ - generated/google/apis/cloudbuild_v1alpha1/service.rb
442
446
  - generated/google/apis/clouddebugger_v2.rb
443
447
  - generated/google/apis/clouddebugger_v2/classes.rb
444
448
  - generated/google/apis/clouddebugger_v2/representations.rb
@@ -951,6 +955,10 @@ files:
951
955
  - generated/google/apis/poly_v1/classes.rb
952
956
  - generated/google/apis/poly_v1/representations.rb
953
957
  - generated/google/apis/poly_v1/service.rb
958
+ - generated/google/apis/prod_tt_sasportal_v1alpha1.rb
959
+ - generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb
960
+ - generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb
961
+ - generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb
954
962
  - generated/google/apis/proximitybeacon_v1beta1.rb
955
963
  - generated/google/apis/proximitybeacon_v1beta1/classes.rb
956
964
  - generated/google/apis/proximitybeacon_v1beta1/representations.rb
@@ -1023,6 +1031,10 @@ files:
1023
1031
  - generated/google/apis/safebrowsing_v4/classes.rb
1024
1032
  - generated/google/apis/safebrowsing_v4/representations.rb
1025
1033
  - generated/google/apis/safebrowsing_v4/service.rb
1034
+ - generated/google/apis/sasportal_v1alpha1.rb
1035
+ - generated/google/apis/sasportal_v1alpha1/classes.rb
1036
+ - generated/google/apis/sasportal_v1alpha1/representations.rb
1037
+ - generated/google/apis/sasportal_v1alpha1/service.rb
1026
1038
  - generated/google/apis/script_v1.rb
1027
1039
  - generated/google/apis/script_v1/classes.rb
1028
1040
  - generated/google/apis/script_v1/representations.rb
@@ -1139,10 +1151,6 @@ files:
1139
1151
  - generated/google/apis/streetviewpublish_v1/classes.rb
1140
1152
  - generated/google/apis/streetviewpublish_v1/representations.rb
1141
1153
  - generated/google/apis/streetviewpublish_v1/service.rb
1142
- - generated/google/apis/surveys_v2.rb
1143
- - generated/google/apis/surveys_v2/classes.rb
1144
- - generated/google/apis/surveys_v2/representations.rb
1145
- - generated/google/apis/surveys_v2/service.rb
1146
1154
  - generated/google/apis/tagmanager_v1.rb
1147
1155
  - generated/google/apis/tagmanager_v1/classes.rb
1148
1156
  - generated/google/apis/tagmanager_v1/representations.rb
@@ -1167,6 +1175,10 @@ files:
1167
1175
  - generated/google/apis/texttospeech_v1beta1/classes.rb
1168
1176
  - generated/google/apis/texttospeech_v1beta1/representations.rb
1169
1177
  - generated/google/apis/texttospeech_v1beta1/service.rb
1178
+ - generated/google/apis/toolresults_v1.rb
1179
+ - generated/google/apis/toolresults_v1/classes.rb
1180
+ - generated/google/apis/toolresults_v1/representations.rb
1181
+ - generated/google/apis/toolresults_v1/service.rb
1170
1182
  - generated/google/apis/toolresults_v1beta3.rb
1171
1183
  - generated/google/apis/toolresults_v1beta3/classes.rb
1172
1184
  - generated/google/apis/toolresults_v1beta3/representations.rb
@@ -1339,7 +1351,7 @@ homepage: https://github.com/google/google-api-ruby-client
1339
1351
  licenses:
1340
1352
  - Apache-2.0
1341
1353
  metadata:
1342
- documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.36.1
1354
+ documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.36.2
1343
1355
  post_install_message:
1344
1356
  rdoc_options: []
1345
1357
  require_paths:
@@ -1,691 +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
- #
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
- #
51
- class PageInfo
52
- include Google::Apis::Core::Hashable
53
-
54
- #
55
- # Corresponds to the JSON property `resultPerPage`
56
- # @return [Fixnum]
57
- attr_accessor :result_per_page
58
-
59
- #
60
- # Corresponds to the JSON property `startIndex`
61
- # @return [Fixnum]
62
- attr_accessor :start_index
63
-
64
- #
65
- # Corresponds to the JSON property `totalResults`
66
- # @return [Fixnum]
67
- attr_accessor :total_results
68
-
69
- def initialize(**args)
70
- update!(**args)
71
- end
72
-
73
- # Update properties of this object
74
- def update!(**args)
75
- @result_per_page = args[:result_per_page] if args.key?(:result_per_page)
76
- @start_index = args[:start_index] if args.key?(:start_index)
77
- @total_results = args[:total_results] if args.key?(:total_results)
78
- end
79
- end
80
-
81
- #
82
- class ResultsGetRequest
83
- include Google::Apis::Core::Hashable
84
-
85
- #
86
- # Corresponds to the JSON property `resultMask`
87
- # @return [Google::Apis::SurveysV2::ResultsMask]
88
- attr_accessor :result_mask
89
-
90
- def initialize(**args)
91
- update!(**args)
92
- end
93
-
94
- # Update properties of this object
95
- def update!(**args)
96
- @result_mask = args[:result_mask] if args.key?(:result_mask)
97
- end
98
- end
99
-
100
- #
101
- class ResultsMask
102
- include Google::Apis::Core::Hashable
103
-
104
- #
105
- # Corresponds to the JSON property `fields`
106
- # @return [Array<Google::Apis::SurveysV2::FieldMask>]
107
- attr_accessor :fields
108
-
109
- #
110
- # Corresponds to the JSON property `projection`
111
- # @return [String]
112
- attr_accessor :projection
113
-
114
- def initialize(**args)
115
- update!(**args)
116
- end
117
-
118
- # Update properties of this object
119
- def update!(**args)
120
- @fields = args[:fields] if args.key?(:fields)
121
- @projection = args[:projection] if args.key?(:projection)
122
- end
123
- end
124
-
125
- # Representation of an individual survey object.
126
- class Survey
127
- include Google::Apis::Core::Hashable
128
-
129
- # Specifications for the target audience of a survey run through the API.
130
- # Corresponds to the JSON property `audience`
131
- # @return [Google::Apis::SurveysV2::SurveyAudience]
132
- attr_accessor :audience
133
-
134
- # Message defining the cost to run a given survey through API.
135
- # Corresponds to the JSON property `cost`
136
- # @return [Google::Apis::SurveysV2::SurveyCost]
137
- attr_accessor :cost
138
-
139
- # Additional information to store on behalf of the API consumer and associate
140
- # with this question. This binary blob is treated as opaque. This field is
141
- # limited to 64K bytes.
142
- # Corresponds to the JSON property `customerData`
143
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
144
- # @return [String]
145
- attr_accessor :customer_data
146
-
147
- # Text description of the survey.
148
- # Corresponds to the JSON property `description`
149
- # @return [String]
150
- attr_accessor :description
151
-
152
- # List of email addresses for survey owners. Must contain at least the address
153
- # of the user making the API call.
154
- # Corresponds to the JSON property `owners`
155
- # @return [Array<String>]
156
- attr_accessor :owners
157
-
158
- # List of questions defining the survey.
159
- # Corresponds to the JSON property `questions`
160
- # @return [Array<Google::Apis::SurveysV2::SurveyQuestion>]
161
- attr_accessor :questions
162
-
163
- # Message representing why the survey was rejected from review, if it was.
164
- # Corresponds to the JSON property `rejectionReason`
165
- # @return [Google::Apis::SurveysV2::SurveyRejection]
166
- attr_accessor :rejection_reason
167
-
168
- # State that the survey is in.
169
- # Corresponds to the JSON property `state`
170
- # @return [String]
171
- attr_accessor :state
172
-
173
- # Unique survey ID, that is viewable in the URL of the Survey Creator UI
174
- # Corresponds to the JSON property `surveyUrlId`
175
- # @return [String]
176
- attr_accessor :survey_url_id
177
-
178
- # Optional name that will be given to the survey.
179
- # Corresponds to the JSON property `title`
180
- # @return [String]
181
- attr_accessor :title
182
-
183
- # Number of responses desired for the survey.
184
- # Corresponds to the JSON property `wantedResponseCount`
185
- # @return [Fixnum]
186
- attr_accessor :wanted_response_count
187
-
188
- def initialize(**args)
189
- update!(**args)
190
- end
191
-
192
- # Update properties of this object
193
- def update!(**args)
194
- @audience = args[:audience] if args.key?(:audience)
195
- @cost = args[:cost] if args.key?(:cost)
196
- @customer_data = args[:customer_data] if args.key?(:customer_data)
197
- @description = args[:description] if args.key?(:description)
198
- @owners = args[:owners] if args.key?(:owners)
199
- @questions = args[:questions] if args.key?(:questions)
200
- @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
201
- @state = args[:state] if args.key?(:state)
202
- @survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id)
203
- @title = args[:title] if args.key?(:title)
204
- @wanted_response_count = args[:wanted_response_count] if args.key?(:wanted_response_count)
205
- end
206
- end
207
-
208
- # Specifications for the target audience of a survey run through the API.
209
- class SurveyAudience
210
- include Google::Apis::Core::Hashable
211
-
212
- # Optional list of age buckets to target. Supported age buckets are: ['18-24', '
213
- # 25-34', '35-44', '45-54', '55-64', '65+']
214
- # Corresponds to the JSON property `ages`
215
- # @return [Array<String>]
216
- attr_accessor :ages
217
-
218
- # Required country code that surveys should be targeted to. Accepts standard ISO
219
- # 3166-1 2 character language codes. For instance, 'US' for the United States,
220
- # and 'GB' for the United Kingdom.
221
- # Corresponds to the JSON property `country`
222
- # @return [String]
223
- attr_accessor :country
224
-
225
- # Country subdivision (states/provinces/etc) that surveys should be targeted to.
226
- # For all countries except GB, ISO-3166-2 subdivision code is required (eg. 'US-
227
- # OH' for Ohio, United States). For GB, NUTS 1 statistical region codes for the
228
- # United Kingdom is required (eg. 'UK-UKC' for North East England).
229
- # Corresponds to the JSON property `countrySubdivision`
230
- # @return [String]
231
- attr_accessor :country_subdivision
232
-
233
- # Optional gender to target.
234
- # Corresponds to the JSON property `gender`
235
- # @return [String]
236
- attr_accessor :gender
237
-
238
- # Language code that surveys should be targeted to. For instance, 'en-US'.
239
- # Surveys may target bilingual users by specifying a list of language codes (for
240
- # example, 'de' and 'en-US'). In that case, all languages will be used for
241
- # targeting users but the survey content (which is displayed) must match the
242
- # first language listed. Accepts standard BCP47 language codes. See
243
- # specification.
244
- # Corresponds to the JSON property `languages`
245
- # @return [Array<String>]
246
- attr_accessor :languages
247
-
248
- # Online population source where the respondents are sampled from.
249
- # Corresponds to the JSON property `populationSource`
250
- # @return [String]
251
- attr_accessor :population_source
252
-
253
- def initialize(**args)
254
- update!(**args)
255
- end
256
-
257
- # Update properties of this object
258
- def update!(**args)
259
- @ages = args[:ages] if args.key?(:ages)
260
- @country = args[:country] if args.key?(:country)
261
- @country_subdivision = args[:country_subdivision] if args.key?(:country_subdivision)
262
- @gender = args[:gender] if args.key?(:gender)
263
- @languages = args[:languages] if args.key?(:languages)
264
- @population_source = args[:population_source] if args.key?(:population_source)
265
- end
266
- end
267
-
268
- # Message defining the cost to run a given survey through API.
269
- class SurveyCost
270
- include Google::Apis::Core::Hashable
271
-
272
- # Cost per survey response in nano units of the given currency. To get the total
273
- # cost for a survey, multiply this value by wanted_response_count.
274
- # Corresponds to the JSON property `costPerResponseNanos`
275
- # @return [Fixnum]
276
- attr_accessor :cost_per_response_nanos
277
-
278
- # Currency code that the cost is given in.
279
- # Corresponds to the JSON property `currencyCode`
280
- # @return [String]
281
- attr_accessor :currency_code
282
-
283
- # *Deprecated* Threshold to start a survey automatically if the quoted price is
284
- # at most this value. When a survey has a Screener (threshold) question, it must
285
- # go through an incidence pricing test to determine the final cost per response.
286
- # Typically you will have to make a followup call to start the survey giving the
287
- # final computed cost per response. If the survey has no threshold_answers,
288
- # setting this property will return an error. By specifying this property, you
289
- # indicate the max price per response you are willing to pay in advance of the
290
- # incidence test. If the price turns out to be lower than the specified value,
291
- # the survey will begin immediately and you will be charged at the rate
292
- # determined by the incidence pricing test. If the price turns out to be greater
293
- # than the specified value the survey will not be started and you will instead
294
- # be notified what price was determined by the incidence test. At that point,
295
- # you must raise the value of this property to be greater than or equal to that
296
- # cost before attempting to start the survey again. This will immediately start
297
- # the survey as long the incidence test was run within the last 21 days. This
298
- # will no longer be available after June 2018.
299
- # Corresponds to the JSON property `maxCostPerResponseNanos`
300
- # @return [Fixnum]
301
- attr_accessor :max_cost_per_response_nanos
302
-
303
- # Cost of survey in nano units of the given currency. DEPRECATED in favor of
304
- # cost_per_response_nanos
305
- # Corresponds to the JSON property `nanos`
306
- # @return [Fixnum]
307
- attr_accessor :nanos
308
-
309
- def initialize(**args)
310
- update!(**args)
311
- end
312
-
313
- # Update properties of this object
314
- def update!(**args)
315
- @cost_per_response_nanos = args[:cost_per_response_nanos] if args.key?(:cost_per_response_nanos)
316
- @currency_code = args[:currency_code] if args.key?(:currency_code)
317
- @max_cost_per_response_nanos = args[:max_cost_per_response_nanos] if args.key?(:max_cost_per_response_nanos)
318
- @nanos = args[:nanos] if args.key?(:nanos)
319
- end
320
- end
321
-
322
- # Message defining the question specifications.
323
- class SurveyQuestion
324
- include Google::Apis::Core::Hashable
325
-
326
- # The randomization option for multiple choice and multi-select questions. If
327
- # not specified, this option defaults to randomize.
328
- # Corresponds to the JSON property `answerOrder`
329
- # @return [String]
330
- attr_accessor :answer_order
331
-
332
- # Required list of answer options for a question.
333
- # Corresponds to the JSON property `answers`
334
- # @return [Array<String>]
335
- attr_accessor :answers
336
-
337
- # Option to allow open-ended text box for Single Answer and Multiple Answer
338
- # question types. This can be used with SINGLE_ANSWER, SINGLE_ANSWER_WITH_IMAGE,
339
- # MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE question types.
340
- # Corresponds to the JSON property `hasOther`
341
- # @return [Boolean]
342
- attr_accessor :has_other
343
- alias_method :has_other?, :has_other
344
-
345
- # For rating questions, the text for the higher end of the scale, such as 'Best'.
346
- # For numeric questions, a string representing a floating-point that is the
347
- # maximum allowed number for a response.
348
- # Corresponds to the JSON property `highValueLabel`
349
- # @return [String]
350
- attr_accessor :high_value_label
351
-
352
- #
353
- # Corresponds to the JSON property `images`
354
- # @return [Array<Google::Apis::SurveysV2::SurveyQuestionImage>]
355
- attr_accessor :images
356
-
357
- # Currently only support pinning an answer option to the last position.
358
- # Corresponds to the JSON property `lastAnswerPositionPinned`
359
- # @return [Boolean]
360
- attr_accessor :last_answer_position_pinned
361
- alias_method :last_answer_position_pinned?, :last_answer_position_pinned
362
-
363
- # For rating questions, the text for the lower end of the scale, such as 'Worst'.
364
- # For numeric questions, a string representing a floating-point that is the
365
- # minimum allowed number for a response.
366
- # Corresponds to the JSON property `lowValueLabel`
367
- # @return [String]
368
- attr_accessor :low_value_label
369
-
370
- # Option to force the user to pick one of the open text suggestions. This
371
- # requires that suggestions are provided for this question.
372
- # Corresponds to the JSON property `mustPickSuggestion`
373
- # @return [Boolean]
374
- attr_accessor :must_pick_suggestion
375
- alias_method :must_pick_suggestion?, :must_pick_suggestion
376
-
377
- # Number of stars to use for ratings questions.
378
- # Corresponds to the JSON property `numStars`
379
- # @return [String]
380
- attr_accessor :num_stars
381
-
382
- # Placeholder text for an open text question.
383
- # Corresponds to the JSON property `openTextPlaceholder`
384
- # @return [String]
385
- attr_accessor :open_text_placeholder
386
-
387
- # A list of suggested answers for open text question auto-complete. This is only
388
- # valid if single_line_response is true.
389
- # Corresponds to the JSON property `openTextSuggestions`
390
- # @return [Array<String>]
391
- attr_accessor :open_text_suggestions
392
-
393
- # Required question text shown to the respondent.
394
- # Corresponds to the JSON property `question`
395
- # @return [String]
396
- attr_accessor :question
397
-
398
- # Used by the Rating Scale with Text question type. This text goes along with
399
- # the question field that is presented to the respondent, and is the actual text
400
- # that the respondent is asked to rate.
401
- # Corresponds to the JSON property `sentimentText`
402
- # @return [String]
403
- attr_accessor :sentiment_text
404
-
405
- # Option to allow multiple line open text responses instead of a single line
406
- # response. Note that we don't show auto-complete suggestions with multiple line
407
- # responses.
408
- # Corresponds to the JSON property `singleLineResponse`
409
- # @return [Boolean]
410
- attr_accessor :single_line_response
411
- alias_method :single_line_response?, :single_line_response
412
-
413
- # The threshold/screener answer options, which will screen a user into the rest
414
- # of the survey. These will be a subset of the answer option strings.
415
- # Corresponds to the JSON property `thresholdAnswers`
416
- # @return [Array<String>]
417
- attr_accessor :threshold_answers
418
-
419
- # Required field defining the question type. For details about configuring
420
- # different type of questions, consult the question configuration guide.
421
- # Corresponds to the JSON property `type`
422
- # @return [String]
423
- attr_accessor :type
424
-
425
- # Optional unit of measurement for display (for example: hours, people, miles).
426
- # Corresponds to the JSON property `unitOfMeasurementLabel`
427
- # @return [String]
428
- attr_accessor :unit_of_measurement_label
429
-
430
- # The YouTube video ID to be show in video questions.
431
- # Corresponds to the JSON property `videoId`
432
- # @return [String]
433
- attr_accessor :video_id
434
-
435
- def initialize(**args)
436
- update!(**args)
437
- end
438
-
439
- # Update properties of this object
440
- def update!(**args)
441
- @answer_order = args[:answer_order] if args.key?(:answer_order)
442
- @answers = args[:answers] if args.key?(:answers)
443
- @has_other = args[:has_other] if args.key?(:has_other)
444
- @high_value_label = args[:high_value_label] if args.key?(:high_value_label)
445
- @images = args[:images] if args.key?(:images)
446
- @last_answer_position_pinned = args[:last_answer_position_pinned] if args.key?(:last_answer_position_pinned)
447
- @low_value_label = args[:low_value_label] if args.key?(:low_value_label)
448
- @must_pick_suggestion = args[:must_pick_suggestion] if args.key?(:must_pick_suggestion)
449
- @num_stars = args[:num_stars] if args.key?(:num_stars)
450
- @open_text_placeholder = args[:open_text_placeholder] if args.key?(:open_text_placeholder)
451
- @open_text_suggestions = args[:open_text_suggestions] if args.key?(:open_text_suggestions)
452
- @question = args[:question] if args.key?(:question)
453
- @sentiment_text = args[:sentiment_text] if args.key?(:sentiment_text)
454
- @single_line_response = args[:single_line_response] if args.key?(:single_line_response)
455
- @threshold_answers = args[:threshold_answers] if args.key?(:threshold_answers)
456
- @type = args[:type] if args.key?(:type)
457
- @unit_of_measurement_label = args[:unit_of_measurement_label] if args.key?(:unit_of_measurement_label)
458
- @video_id = args[:video_id] if args.key?(:video_id)
459
- end
460
- end
461
-
462
- # Container object for image data and alt_text.
463
- class SurveyQuestionImage
464
- include Google::Apis::Core::Hashable
465
-
466
- # The alt text property used in image tags is required for all images.
467
- # Corresponds to the JSON property `altText`
468
- # @return [String]
469
- attr_accessor :alt_text
470
-
471
- # Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question
472
- # types.
473
- # Corresponds to the JSON property `data`
474
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
475
- # @return [String]
476
- attr_accessor :data
477
-
478
- # The read-only URL for the hosted images.
479
- # Corresponds to the JSON property `url`
480
- # @return [String]
481
- attr_accessor :url
482
-
483
- def initialize(**args)
484
- update!(**args)
485
- end
486
-
487
- # Update properties of this object
488
- def update!(**args)
489
- @alt_text = args[:alt_text] if args.key?(:alt_text)
490
- @data = args[:data] if args.key?(:data)
491
- @url = args[:url] if args.key?(:url)
492
- end
493
- end
494
-
495
- # Message representing why the survey was rejected from review, if it was.
496
- class SurveyRejection
497
- include Google::Apis::Core::Hashable
498
-
499
- # A human-readable explanation of what was wrong with the survey.
500
- # Corresponds to the JSON property `explanation`
501
- # @return [String]
502
- attr_accessor :explanation
503
-
504
- # Which category of rejection this was. See the Google Surveys Help Center for
505
- # additional details on each category.
506
- # Corresponds to the JSON property `type`
507
- # @return [String]
508
- attr_accessor :type
509
-
510
- def initialize(**args)
511
- update!(**args)
512
- end
513
-
514
- # Update properties of this object
515
- def update!(**args)
516
- @explanation = args[:explanation] if args.key?(:explanation)
517
- @type = args[:type] if args.key?(:type)
518
- end
519
- end
520
-
521
- # Reference to the current results for a given survey.
522
- class SurveyResults
523
- include Google::Apis::Core::Hashable
524
-
525
- # Human readable string describing the status of the request.
526
- # Corresponds to the JSON property `status`
527
- # @return [String]
528
- attr_accessor :status
529
-
530
- # External survey ID as viewable by survey owners in the editor view.
531
- # Corresponds to the JSON property `surveyUrlId`
532
- # @return [String]
533
- attr_accessor :survey_url_id
534
-
535
- def initialize(**args)
536
- update!(**args)
537
- end
538
-
539
- # Update properties of this object
540
- def update!(**args)
541
- @status = args[:status] if args.key?(:status)
542
- @survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id)
543
- end
544
- end
545
-
546
- #
547
- class SurveysDeleteResponse
548
- include Google::Apis::Core::Hashable
549
-
550
- # Unique request ID used for logging and debugging. Please include in any error
551
- # reporting or troubleshooting requests.
552
- # Corresponds to the JSON property `requestId`
553
- # @return [String]
554
- attr_accessor :request_id
555
-
556
- def initialize(**args)
557
- update!(**args)
558
- end
559
-
560
- # Update properties of this object
561
- def update!(**args)
562
- @request_id = args[:request_id] if args.key?(:request_id)
563
- end
564
- end
565
-
566
- #
567
- class SurveysListResponse
568
- include Google::Apis::Core::Hashable
569
-
570
- #
571
- # Corresponds to the JSON property `pageInfo`
572
- # @return [Google::Apis::SurveysV2::PageInfo]
573
- attr_accessor :page_info
574
-
575
- # Unique request ID used for logging and debugging. Please include in any error
576
- # reporting or troubleshooting requests.
577
- # Corresponds to the JSON property `requestId`
578
- # @return [String]
579
- attr_accessor :request_id
580
-
581
- # An individual survey resource.
582
- # Corresponds to the JSON property `resources`
583
- # @return [Array<Google::Apis::SurveysV2::Survey>]
584
- attr_accessor :resources
585
-
586
- #
587
- # Corresponds to the JSON property `tokenPagination`
588
- # @return [Google::Apis::SurveysV2::TokenPagination]
589
- attr_accessor :token_pagination
590
-
591
- def initialize(**args)
592
- update!(**args)
593
- end
594
-
595
- # Update properties of this object
596
- def update!(**args)
597
- @page_info = args[:page_info] if args.key?(:page_info)
598
- @request_id = args[:request_id] if args.key?(:request_id)
599
- @resources = args[:resources] if args.key?(:resources)
600
- @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
601
- end
602
- end
603
-
604
- #
605
- class SurveysStartRequest
606
- include Google::Apis::Core::Hashable
607
-
608
- # *Deprecated* Threshold to start a survey automatically if the quoted prices is
609
- # less than or equal to this value. See Survey.Cost for more details. This will
610
- # no longer be available after June 2018.
611
- # Corresponds to the JSON property `maxCostPerResponseNanos`
612
- # @return [Fixnum]
613
- attr_accessor :max_cost_per_response_nanos
614
-
615
- def initialize(**args)
616
- update!(**args)
617
- end
618
-
619
- # Update properties of this object
620
- def update!(**args)
621
- @max_cost_per_response_nanos = args[:max_cost_per_response_nanos] if args.key?(:max_cost_per_response_nanos)
622
- end
623
- end
624
-
625
- #
626
- class SurveysStartResponse
627
- include Google::Apis::Core::Hashable
628
-
629
- # Unique request ID used for logging and debugging. Please include in any error
630
- # reporting or troubleshooting requests.
631
- # Corresponds to the JSON property `requestId`
632
- # @return [String]
633
- attr_accessor :request_id
634
-
635
- def initialize(**args)
636
- update!(**args)
637
- end
638
-
639
- # Update properties of this object
640
- def update!(**args)
641
- @request_id = args[:request_id] if args.key?(:request_id)
642
- end
643
- end
644
-
645
- #
646
- class SurveysStopResponse
647
- include Google::Apis::Core::Hashable
648
-
649
- # Unique request ID used for logging and debugging. Please include in any error
650
- # reporting or troubleshooting requests.
651
- # Corresponds to the JSON property `requestId`
652
- # @return [String]
653
- attr_accessor :request_id
654
-
655
- def initialize(**args)
656
- update!(**args)
657
- end
658
-
659
- # Update properties of this object
660
- def update!(**args)
661
- @request_id = args[:request_id] if args.key?(:request_id)
662
- end
663
- end
664
-
665
- #
666
- class TokenPagination
667
- include Google::Apis::Core::Hashable
668
-
669
- #
670
- # Corresponds to the JSON property `nextPageToken`
671
- # @return [String]
672
- attr_accessor :next_page_token
673
-
674
- #
675
- # Corresponds to the JSON property `previousPageToken`
676
- # @return [String]
677
- attr_accessor :previous_page_token
678
-
679
- def initialize(**args)
680
- update!(**args)
681
- end
682
-
683
- # Update properties of this object
684
- def update!(**args)
685
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
686
- @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
687
- end
688
- end
689
- end
690
- end
691
- end