google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -28,7 +28,7 @@ module Google
28
28
  # @see https://cloud.google.com/deployment-manager/runtime-configurator/
29
29
  module RuntimeconfigV1
30
30
  VERSION = 'V1'
31
- REVISION = '20170429'
31
+ REVISION = '20170522'
32
32
 
33
33
  # Manage your Google Cloud Platform services' runtime configuration
34
34
  AUTH_CLOUDRUNTIMECONFIG = 'https://www.googleapis.com/auth/cloudruntimeconfig'
@@ -49,7 +49,7 @@ module Google
49
49
  # error message is needed, put the localized message in the error details or
50
50
  # localize it in the client. The optional error details may contain arbitrary
51
51
  # information about the error. There is a predefined set of error detail types
52
- # in the package `google.rpc` which can be used for common error conditions.
52
+ # in the package `google.rpc` that can be used for common error conditions.
53
53
  # # Language mapping
54
54
  # The `Status` message is the logical representation of the error model, but it
55
55
  # is not necessarily the actual wire format. When the `Status` message is
@@ -65,7 +65,7 @@ module Google
65
65
  # it may embed the `Status` in the normal response to indicate the partial
66
66
  # errors.
67
67
  # - Workflow errors. A typical workflow has multiple steps. Each step may
68
- # have a `Status` message for error reporting purpose.
68
+ # have a `Status` message for error reporting.
69
69
  # - Batch operations. If a client uses batch request and batch response, the
70
70
  # `Status` message should be used directly inside batch response, one for
71
71
  # each error sub-response.
@@ -77,6 +77,12 @@ module Google
77
77
  class Status
78
78
  include Google::Apis::Core::Hashable
79
79
 
80
+ # A list of messages that carry the error details. There will be a
81
+ # common set of message types for APIs to use.
82
+ # Corresponds to the JSON property `details`
83
+ # @return [Array<Hash<String,Object>>]
84
+ attr_accessor :details
85
+
80
86
  # The status code, which should be an enum value of google.rpc.Code.
81
87
  # Corresponds to the JSON property `code`
82
88
  # @return [Fixnum]
@@ -89,21 +95,15 @@ module Google
89
95
  # @return [String]
90
96
  attr_accessor :message
91
97
 
92
- # A list of messages that carry the error details. There will be a
93
- # common set of message types for APIs to use.
94
- # Corresponds to the JSON property `details`
95
- # @return [Array<Hash<String,Object>>]
96
- attr_accessor :details
97
-
98
98
  def initialize(**args)
99
99
  update!(**args)
100
100
  end
101
101
 
102
102
  # Update properties of this object
103
103
  def update!(**args)
104
+ @details = args[:details] if args.key?(:details)
104
105
  @code = args[:code] if args.key?(:code)
105
106
  @message = args[:message] if args.key?(:message)
106
- @details = args[:details] if args.key?(:details)
107
107
  end
108
108
  end
109
109
 
@@ -137,14 +137,6 @@ module Google
137
137
  class Operation
138
138
  include Google::Apis::Core::Hashable
139
139
 
140
- # If the value is `false`, it means the operation is still in progress.
141
- # If true, the operation is completed, and either `error` or `response` is
142
- # available.
143
- # Corresponds to the JSON property `done`
144
- # @return [Boolean]
145
- attr_accessor :done
146
- alias_method :done?, :done
147
-
148
140
  # The normal response of the operation in case of success. If the original
149
141
  # method returns no data on success, such as `Delete`, the response is
150
142
  # `google.protobuf.Empty`. If the original method is standard
@@ -178,7 +170,7 @@ module Google
178
170
  # error message is needed, put the localized message in the error details or
179
171
  # localize it in the client. The optional error details may contain arbitrary
180
172
  # information about the error. There is a predefined set of error detail types
181
- # in the package `google.rpc` which can be used for common error conditions.
173
+ # in the package `google.rpc` that can be used for common error conditions.
182
174
  # # Language mapping
183
175
  # The `Status` message is the logical representation of the error model, but it
184
176
  # is not necessarily the actual wire format. When the `Status` message is
@@ -194,7 +186,7 @@ module Google
194
186
  # it may embed the `Status` in the normal response to indicate the partial
195
187
  # errors.
196
188
  # - Workflow errors. A typical workflow has multiple steps. Each step may
197
- # have a `Status` message for error reporting purpose.
189
+ # have a `Status` message for error reporting.
198
190
  # - Batch operations. If a client uses batch request and batch response, the
199
191
  # `Status` message should be used directly inside batch response, one for
200
192
  # each error sub-response.
@@ -215,17 +207,25 @@ module Google
215
207
  # @return [Hash<String,Object>]
216
208
  attr_accessor :metadata
217
209
 
210
+ # If the value is `false`, it means the operation is still in progress.
211
+ # If true, the operation is completed, and either `error` or `response` is
212
+ # available.
213
+ # Corresponds to the JSON property `done`
214
+ # @return [Boolean]
215
+ attr_accessor :done
216
+ alias_method :done?, :done
217
+
218
218
  def initialize(**args)
219
219
  update!(**args)
220
220
  end
221
221
 
222
222
  # Update properties of this object
223
223
  def update!(**args)
224
- @done = args[:done] if args.key?(:done)
225
224
  @response = args[:response] if args.key?(:response)
226
225
  @name = args[:name] if args.key?(:name)
227
226
  @error = args[:error] if args.key?(:error)
228
227
  @metadata = args[:metadata] if args.key?(:metadata)
228
+ @done = args[:done] if args.key?(:done)
229
229
  end
230
230
  end
231
231
 
@@ -61,9 +61,9 @@ module Google
61
61
  class Status
62
62
  # @private
63
63
  class Representation < Google::Apis::Core::JsonRepresentation
64
+ collection :details, as: 'details'
64
65
  property :code, as: 'code'
65
66
  property :message, as: 'message'
66
- collection :details, as: 'details'
67
67
  end
68
68
  end
69
69
 
@@ -79,12 +79,12 @@ module Google
79
79
  class Operation
80
80
  # @private
81
81
  class Representation < Google::Apis::Core::JsonRepresentation
82
- property :done, as: 'done'
83
82
  hash :response, as: 'response'
84
83
  property :name, as: 'name'
85
84
  property :error, as: 'error', class: Google::Apis::RuntimeconfigV1::Status, decorator: Google::Apis::RuntimeconfigV1::Status::Representation
86
85
 
87
86
  hash :metadata, as: 'metadata'
87
+ property :done, as: 'done'
88
88
  end
89
89
  end
90
90
 
@@ -127,16 +127,21 @@ module Google
127
127
 
128
128
  # Lists operations that match the specified filter in the request. If the
129
129
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
130
- # NOTE: the `name` binding below allows API services to override the binding
131
- # to use different resource name schemes, such as `users/*/operations`.
130
+ # NOTE: the `name` binding allows API services to override the binding
131
+ # to use different resource name schemes, such as `users/*/operations`. To
132
+ # override the binding, API services can add a binding such as
133
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
134
+ # For backwards compatibility, the default name includes the operations
135
+ # collection id, however overriding users must ensure the name binding
136
+ # is the parent resource, without the operations collection id.
132
137
  # @param [String] name
133
- # The name of the operation collection.
138
+ # The name of the operation's parent resource.
139
+ # @param [Fixnum] page_size
140
+ # The standard list page size.
134
141
  # @param [String] filter
135
142
  # The standard list filter.
136
143
  # @param [String] page_token
137
144
  # The standard list page token.
138
- # @param [Fixnum] page_size
139
- # The standard list page size.
140
145
  # @param [String] fields
141
146
  # Selector specifying which fields to include in a partial response.
142
147
  # @param [String] quota_user
@@ -154,14 +159,14 @@ module Google
154
159
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
160
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
161
  # @raise [Google::Apis::AuthorizationError] Authorization is required
157
- def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ def list_operations(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
158
163
  command = make_simple_command(:get, 'v1/{+name}', options)
159
164
  command.response_representation = Google::Apis::RuntimeconfigV1::ListOperationsResponse::Representation
160
165
  command.response_class = Google::Apis::RuntimeconfigV1::ListOperationsResponse
161
166
  command.params['name'] = name unless name.nil?
167
+ command.query['pageSize'] = page_size unless page_size.nil?
162
168
  command.query['filter'] = filter unless filter.nil?
163
169
  command.query['pageToken'] = page_token unless page_token.nil?
164
- command.query['pageSize'] = page_size unless page_size.nil?
165
170
  command.query['fields'] = fields unless fields.nil?
166
171
  command.query['quotaUser'] = quota_user unless quota_user.nil?
167
172
  execute_or_queue_command(command, &block)
@@ -25,22 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
26
26
  module ScriptV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170503'
29
-
30
- # View and manage your Google Groups
31
- AUTH_GROUPS = 'https://www.googleapis.com/auth/groups'
32
-
33
- # View and manage forms that this application has been installed in
34
- AUTH_FORMS_CURRENTONLY = 'https://www.googleapis.com/auth/forms.currentonly'
35
-
36
- # View and manage the files in your Google Drive
37
- AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
38
-
39
- # View and manage the provisioning of users on your domain
40
- AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
41
-
42
- # View and manage the provisioning of groups on your domain
43
- AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
28
+ REVISION = '20170522'
44
29
 
45
30
  # View and manage your spreadsheets in Google Drive
46
31
  AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
@@ -48,6 +33,12 @@ module Google
48
33
  # Read, send, delete, and manage your email
49
34
  AUTH_SCOPE = 'https://mail.google.com/'
50
35
 
36
+ # View and manage the provisioning of groups on your domain
37
+ AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
38
+
39
+ # View and manage the provisioning of users on your domain
40
+ AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
41
+
51
42
  # View and manage your forms in Google Drive
52
43
  AUTH_FORMS = 'https://www.googleapis.com/auth/forms'
53
44
 
@@ -59,6 +50,15 @@ module Google
59
50
 
60
51
  # Manage your calendars
61
52
  CALENDAR_FEEDS = 'https://www.google.com/calendar/feeds'
53
+
54
+ # View and manage your Google Groups
55
+ AUTH_GROUPS = 'https://www.googleapis.com/auth/groups'
56
+
57
+ # View and manage forms that this application has been installed in
58
+ AUTH_FORMS_CURRENTONLY = 'https://www.googleapis.com/auth/forms.currentonly'
59
+
60
+ # View and manage the files in your Google Drive
61
+ AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
62
62
  end
63
63
  end
64
64
  end
@@ -22,11 +22,109 @@ module Google
22
22
  module Apis
23
23
  module ScriptV1
24
24
 
25
+ # If a `run` call succeeds but the script function (or Apps Script itself)
26
+ # throws an exception, the response body's `error` field will contain this `
27
+ # Status` object.
28
+ class Status
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # An array that contains a single `ExecutionError` object that provides
32
+ # information about the nature of the error.
33
+ # Corresponds to the JSON property `details`
34
+ # @return [Array<Hash<String,Object>>]
35
+ attr_accessor :details
36
+
37
+ # The status code. For this API, this value will always be 3, corresponding to
38
+ # an INVALID_ARGUMENT error.
39
+ # Corresponds to the JSON property `code`
40
+ # @return [Fixnum]
41
+ attr_accessor :code
42
+
43
+ # A developer-facing error message, which is in English. Any user-facing error
44
+ # message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
45
+ # Status.details) field, or localized by the client.
46
+ # Corresponds to the JSON property `message`
47
+ # @return [String]
48
+ attr_accessor :message
49
+
50
+ def initialize(**args)
51
+ update!(**args)
52
+ end
53
+
54
+ # Update properties of this object
55
+ def update!(**args)
56
+ @details = args[:details] if args.key?(:details)
57
+ @code = args[:code] if args.key?(:code)
58
+ @message = args[:message] if args.key?(:message)
59
+ end
60
+ end
61
+
62
+ # A request to run the function in a script. The script is identified by the
63
+ # specified `script_id`. Executing a function on a script returns results
64
+ # based on the implementation of the script.
65
+ class ExecutionRequest
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # For Android add-ons only. An ID that represents the user's current session
69
+ # in the Android app for Google Docs or Sheets, included as extra data in the
70
+ # [`Intent`](https://developer.android.com/guide/components/intents-filters.html)
71
+ # that launches the add-on. When an Android add-on is run with a session
72
+ # state, it gains the privileges of a
73
+ # [bound](https://developers.google.com/apps-script/guides/bound) script &mdash;
74
+ # that is, it can access information like the user's current cursor position
75
+ # (in Docs) or selected cell (in Sheets). To retrieve the state, call
76
+ # `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`.
77
+ # Optional.
78
+ # Corresponds to the JSON property `sessionState`
79
+ # @return [String]
80
+ attr_accessor :session_state
81
+
82
+ # The name of the function to execute in the given script. The name does not
83
+ # include parentheses or parameters.
84
+ # Corresponds to the JSON property `function`
85
+ # @return [String]
86
+ attr_accessor :function
87
+
88
+ # If `true` and the user is an owner of the script, the script runs at the
89
+ # most recently saved version rather than the version deployed for use with
90
+ # the Execution API. Optional; default is `false`.
91
+ # Corresponds to the JSON property `devMode`
92
+ # @return [Boolean]
93
+ attr_accessor :dev_mode
94
+ alias_method :dev_mode?, :dev_mode
95
+
96
+ # The parameters to be passed to the function being executed. The object type
97
+ # for each parameter should match the expected type in Apps Script.
98
+ # Parameters cannot be Apps Script-specific object types (such as a
99
+ # `Document` or a `Calendar`); they can only be primitive types such as
100
+ # `string`, `number`, `array`, `object`, or `boolean`. Optional.
101
+ # Corresponds to the JSON property `parameters`
102
+ # @return [Array<Object>]
103
+ attr_accessor :parameters
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ @session_state = args[:session_state] if args.key?(:session_state)
112
+ @function = args[:function] if args.key?(:function)
113
+ @dev_mode = args[:dev_mode] if args.key?(:dev_mode)
114
+ @parameters = args[:parameters] if args.key?(:parameters)
115
+ end
116
+ end
117
+
25
118
  # A request to retrieve the results from a collection of requests,
26
119
  # specified by the operation resource names.
27
120
  class JoinAsyncRequest
28
121
  include Google::Apis::Core::Hashable
29
122
 
123
+ # Timeout for information retrieval in milliseconds.
124
+ # Corresponds to the JSON property `timeout`
125
+ # @return [String]
126
+ attr_accessor :timeout
127
+
30
128
  # The script id which specifies the script which all processes in the names
31
129
  # field must be from.
32
130
  # Corresponds to the JSON property `scriptId`
@@ -39,20 +137,15 @@ module Google
39
137
  # @return [Array<String>]
40
138
  attr_accessor :names
41
139
 
42
- # Timeout for information retrieval in milliseconds.
43
- # Corresponds to the JSON property `timeout`
44
- # @return [String]
45
- attr_accessor :timeout
46
-
47
140
  def initialize(**args)
48
141
  update!(**args)
49
142
  end
50
143
 
51
144
  # Update properties of this object
52
145
  def update!(**args)
146
+ @timeout = args[:timeout] if args.key?(:timeout)
53
147
  @script_id = args[:script_id] if args.key?(:script_id)
54
148
  @names = args[:names] if args.key?(:names)
55
- @timeout = args[:timeout] if args.key?(:timeout)
56
149
  end
57
150
  end
58
151
 
@@ -101,6 +194,12 @@ module Google
101
194
  class Operation
102
195
  include Google::Apis::Core::Hashable
103
196
 
197
+ # This field is not used.
198
+ # Corresponds to the JSON property `done`
199
+ # @return [Boolean]
200
+ attr_accessor :done
201
+ alias_method :done?, :done
202
+
104
203
  # If the script function returns successfully, this field will contain an `
105
204
  # ExecutionResponse` object with the function's return value as the object's `
106
205
  # result` field.
@@ -125,23 +224,17 @@ module Google
125
224
  # @return [Hash<String,Object>]
126
225
  attr_accessor :metadata
127
226
 
128
- # This field is not used.
129
- # Corresponds to the JSON property `done`
130
- # @return [Boolean]
131
- attr_accessor :done
132
- alias_method :done?, :done
133
-
134
227
  def initialize(**args)
135
228
  update!(**args)
136
229
  end
137
230
 
138
231
  # Update properties of this object
139
232
  def update!(**args)
233
+ @done = args[:done] if args.key?(:done)
140
234
  @response = args[:response] if args.key?(:response)
141
235
  @name = args[:name] if args.key?(:name)
142
236
  @error = args[:error] if args.key?(:error)
143
237
  @metadata = args[:metadata] if args.key?(:metadata)
144
- @done = args[:done] if args.key?(:done)
145
238
  end
146
239
  end
147
240
 
@@ -201,12 +294,6 @@ module Google
201
294
  class ExecutionError
202
295
  include Google::Apis::Core::Hashable
203
296
 
204
- # An array of objects that provide a stack trace through the script to show
205
- # where the execution failed, with the deepest call first.
206
- # Corresponds to the JSON property `scriptStackTraceElements`
207
- # @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
208
- attr_accessor :script_stack_trace_elements
209
-
210
297
  # The error type, for example `TypeError` or `ReferenceError`. If the error
211
298
  # type is unavailable, this field is not included.
212
299
  # Corresponds to the JSON property `errorType`
@@ -219,108 +306,21 @@ module Google
219
306
  # @return [String]
220
307
  attr_accessor :error_message
221
308
 
309
+ # An array of objects that provide a stack trace through the script to show
310
+ # where the execution failed, with the deepest call first.
311
+ # Corresponds to the JSON property `scriptStackTraceElements`
312
+ # @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
313
+ attr_accessor :script_stack_trace_elements
314
+
222
315
  def initialize(**args)
223
316
  update!(**args)
224
317
  end
225
318
 
226
319
  # Update properties of this object
227
320
  def update!(**args)
228
- @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
229
321
  @error_type = args[:error_type] if args.key?(:error_type)
230
322
  @error_message = args[:error_message] if args.key?(:error_message)
231
- end
232
- end
233
-
234
- # If a `run` call succeeds but the script function (or Apps Script itself)
235
- # throws an exception, the response body's `error` field will contain this `
236
- # Status` object.
237
- class Status
238
- include Google::Apis::Core::Hashable
239
-
240
- # A developer-facing error message, which is in English. Any user-facing error
241
- # message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
242
- # Status.details) field, or localized by the client.
243
- # Corresponds to the JSON property `message`
244
- # @return [String]
245
- attr_accessor :message
246
-
247
- # An array that contains a single `ExecutionError` object that provides
248
- # information about the nature of the error.
249
- # Corresponds to the JSON property `details`
250
- # @return [Array<Hash<String,Object>>]
251
- attr_accessor :details
252
-
253
- # The status code. For this API, this value will always be 3, corresponding to
254
- # an INVALID_ARGUMENT error.
255
- # Corresponds to the JSON property `code`
256
- # @return [Fixnum]
257
- attr_accessor :code
258
-
259
- def initialize(**args)
260
- update!(**args)
261
- end
262
-
263
- # Update properties of this object
264
- def update!(**args)
265
- @message = args[:message] if args.key?(:message)
266
- @details = args[:details] if args.key?(:details)
267
- @code = args[:code] if args.key?(:code)
268
- end
269
- end
270
-
271
- # A request to run the function in a script. The script is identified by the
272
- # specified `script_id`. Executing a function on a script returns results
273
- # based on the implementation of the script.
274
- class ExecutionRequest
275
- include Google::Apis::Core::Hashable
276
-
277
- # The name of the function to execute in the given script. The name does not
278
- # include parentheses or parameters.
279
- # Corresponds to the JSON property `function`
280
- # @return [String]
281
- attr_accessor :function
282
-
283
- # If `true` and the user is an owner of the script, the script runs at the
284
- # most recently saved version rather than the version deployed for use with
285
- # the Execution API. Optional; default is `false`.
286
- # Corresponds to the JSON property `devMode`
287
- # @return [Boolean]
288
- attr_accessor :dev_mode
289
- alias_method :dev_mode?, :dev_mode
290
-
291
- # The parameters to be passed to the function being executed. The object type
292
- # for each parameter should match the expected type in Apps Script.
293
- # Parameters cannot be Apps Script-specific object types (such as a
294
- # `Document` or a `Calendar`); they can only be primitive types such as
295
- # `string`, `number`, `array`, `object`, or `boolean`. Optional.
296
- # Corresponds to the JSON property `parameters`
297
- # @return [Array<Object>]
298
- attr_accessor :parameters
299
-
300
- # For Android add-ons only. An ID that represents the user's current session
301
- # in the Android app for Google Docs or Sheets, included as extra data in the
302
- # [`Intent`](https://developer.android.com/guide/components/intents-filters.html)
303
- # that launches the add-on. When an Android add-on is run with a session
304
- # state, it gains the privileges of a
305
- # [bound](https://developers.google.com/apps-script/guides/bound) script &mdash;
306
- # that is, it can access information like the user's current cursor position
307
- # (in Docs) or selected cell (in Sheets). To retrieve the state, call
308
- # `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`.
309
- # Optional.
310
- # Corresponds to the JSON property `sessionState`
311
- # @return [String]
312
- attr_accessor :session_state
313
-
314
- def initialize(**args)
315
- update!(**args)
316
- end
317
-
318
- # Update properties of this object
319
- def update!(**args)
320
- @function = args[:function] if args.key?(:function)
321
- @dev_mode = args[:dev_mode] if args.key?(:dev_mode)
322
- @parameters = args[:parameters] if args.key?(:parameters)
323
- @session_state = args[:session_state] if args.key?(:session_state)
323
+ @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
324
324
  end
325
325
  end
326
326
  end