google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -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 = '20170612'
31
+ REVISION = '20170620'
32
32
 
33
33
  # Manage your Google Cloud Platform services' runtime configuration
34
34
  AUTH_CLOUDRUNTIMECONFIG = 'https://www.googleapis.com/auth/cloudruntimeconfig'
@@ -22,6 +22,19 @@ module Google
22
22
  module Apis
23
23
  module RuntimeconfigV1
24
24
 
25
+ # The request message for Operations.CancelOperation.
26
+ class CancelOperationRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
25
38
  # The `Status` type defines a logical error model that is suitable for different
26
39
  # programming environments, including REST APIs and RPC APIs. It is used by
27
40
  # [gRPC](https://github.com/grpc). The error model is designed to be:
@@ -64,6 +77,13 @@ module Google
64
77
  class Status
65
78
  include Google::Apis::Core::Hashable
66
79
 
80
+ # A developer-facing error message, which should be in English. Any
81
+ # user-facing error message should be localized and sent in the
82
+ # google.rpc.Status.details field, or localized by the client.
83
+ # Corresponds to the JSON property `message`
84
+ # @return [String]
85
+ attr_accessor :message
86
+
67
87
  # A list of messages that carry the error details. There will be a
68
88
  # common set of message types for APIs to use.
69
89
  # Corresponds to the JSON property `details`
@@ -75,47 +95,15 @@ module Google
75
95
  # @return [Fixnum]
76
96
  attr_accessor :code
77
97
 
78
- # A developer-facing error message, which should be in English. Any
79
- # user-facing error message should be localized and sent in the
80
- # google.rpc.Status.details field, or localized by the client.
81
- # Corresponds to the JSON property `message`
82
- # @return [String]
83
- attr_accessor :message
84
-
85
98
  def initialize(**args)
86
99
  update!(**args)
87
100
  end
88
101
 
89
102
  # Update properties of this object
90
103
  def update!(**args)
104
+ @message = args[:message] if args.key?(:message)
91
105
  @details = args[:details] if args.key?(:details)
92
106
  @code = args[:code] if args.key?(:code)
93
- @message = args[:message] if args.key?(:message)
94
- end
95
- end
96
-
97
- # The response message for Operations.ListOperations.
98
- class ListOperationsResponse
99
- include Google::Apis::Core::Hashable
100
-
101
- # The standard List next-page token.
102
- # Corresponds to the JSON property `nextPageToken`
103
- # @return [String]
104
- attr_accessor :next_page_token
105
-
106
- # A list of operations that matches the specified filter in the request.
107
- # Corresponds to the JSON property `operations`
108
- # @return [Array<Google::Apis::RuntimeconfigV1::Operation>]
109
- attr_accessor :operations
110
-
111
- def initialize(**args)
112
- update!(**args)
113
- end
114
-
115
- # Update properties of this object
116
- def update!(**args)
117
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
118
- @operations = args[:operations] if args.key?(:operations)
119
107
  end
120
108
  end
121
109
 
@@ -124,6 +112,14 @@ module Google
124
112
  class Operation
125
113
  include Google::Apis::Core::Hashable
126
114
 
115
+ # Service-specific metadata associated with the operation. It typically
116
+ # contains progress information and common metadata such as create time.
117
+ # Some services might not provide such metadata. Any method that returns a
118
+ # long-running operation should document the metadata type, if any.
119
+ # Corresponds to the JSON property `metadata`
120
+ # @return [Hash<String,Object>]
121
+ attr_accessor :metadata
122
+
127
123
  # If the value is `false`, it means the operation is still in progress.
128
124
  # If true, the operation is completed, and either `error` or `response` is
129
125
  # available.
@@ -194,49 +190,53 @@ module Google
194
190
  # @return [Google::Apis::RuntimeconfigV1::Status]
195
191
  attr_accessor :error
196
192
 
197
- # Service-specific metadata associated with the operation. It typically
198
- # contains progress information and common metadata such as create time.
199
- # Some services might not provide such metadata. Any method that returns a
200
- # long-running operation should document the metadata type, if any.
201
- # Corresponds to the JSON property `metadata`
202
- # @return [Hash<String,Object>]
203
- attr_accessor :metadata
204
-
205
193
  def initialize(**args)
206
194
  update!(**args)
207
195
  end
208
196
 
209
197
  # Update properties of this object
210
198
  def update!(**args)
199
+ @metadata = args[:metadata] if args.key?(:metadata)
211
200
  @done = args[:done] if args.key?(:done)
212
201
  @response = args[:response] if args.key?(:response)
213
202
  @name = args[:name] if args.key?(:name)
214
203
  @error = args[:error] if args.key?(:error)
215
- @metadata = args[:metadata] if args.key?(:metadata)
216
204
  end
217
205
  end
218
206
 
219
- # A generic empty message that you can re-use to avoid defining duplicated
220
- # empty messages in your APIs. A typical example is to use it as the request
221
- # or the response type of an API method. For instance:
222
- # service Foo `
223
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
224
- # `
225
- # The JSON representation for `Empty` is empty JSON object ````.
226
- class Empty
207
+ # The response message for Operations.ListOperations.
208
+ class ListOperationsResponse
227
209
  include Google::Apis::Core::Hashable
228
210
 
211
+ # The standard List next-page token.
212
+ # Corresponds to the JSON property `nextPageToken`
213
+ # @return [String]
214
+ attr_accessor :next_page_token
215
+
216
+ # A list of operations that matches the specified filter in the request.
217
+ # Corresponds to the JSON property `operations`
218
+ # @return [Array<Google::Apis::RuntimeconfigV1::Operation>]
219
+ attr_accessor :operations
220
+
229
221
  def initialize(**args)
230
222
  update!(**args)
231
223
  end
232
224
 
233
225
  # Update properties of this object
234
226
  def update!(**args)
227
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
228
+ @operations = args[:operations] if args.key?(:operations)
235
229
  end
236
230
  end
237
231
 
238
- # The request message for Operations.CancelOperation.
239
- class CancelOperationRequest
232
+ # A generic empty message that you can re-use to avoid defining duplicated
233
+ # empty messages in your APIs. A typical example is to use it as the request
234
+ # or the response type of an API method. For instance:
235
+ # service Foo `
236
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
237
+ # `
238
+ # The JSON representation for `Empty` is empty JSON object ````.
239
+ class Empty
240
240
  include Google::Apis::Core::Hashable
241
241
 
242
242
  def initialize(**args)
@@ -22,13 +22,13 @@ module Google
22
22
  module Apis
23
23
  module RuntimeconfigV1
24
24
 
25
- class Status
25
+ class CancelOperationRequest
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ListOperationsResponse
31
+ class Status
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
@@ -40,55 +40,55 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Empty
43
+ class ListOperationsResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class CancelOperationRequest
49
+ class Empty
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Status
55
+ class CancelOperationRequest
56
56
  # @private
57
57
  class Representation < Google::Apis::Core::JsonRepresentation
58
- collection :details, as: 'details'
59
- property :code, as: 'code'
60
- property :message, as: 'message'
61
58
  end
62
59
  end
63
60
 
64
- class ListOperationsResponse
61
+ class Status
65
62
  # @private
66
63
  class Representation < Google::Apis::Core::JsonRepresentation
67
- property :next_page_token, as: 'nextPageToken'
68
- collection :operations, as: 'operations', class: Google::Apis::RuntimeconfigV1::Operation, decorator: Google::Apis::RuntimeconfigV1::Operation::Representation
69
-
64
+ property :message, as: 'message'
65
+ collection :details, as: 'details'
66
+ property :code, as: 'code'
70
67
  end
71
68
  end
72
69
 
73
70
  class Operation
74
71
  # @private
75
72
  class Representation < Google::Apis::Core::JsonRepresentation
73
+ hash :metadata, as: 'metadata'
76
74
  property :done, as: 'done'
77
75
  hash :response, as: 'response'
78
76
  property :name, as: 'name'
79
77
  property :error, as: 'error', class: Google::Apis::RuntimeconfigV1::Status, decorator: Google::Apis::RuntimeconfigV1::Status::Representation
80
78
 
81
- hash :metadata, as: 'metadata'
82
79
  end
83
80
  end
84
81
 
85
- class Empty
82
+ class ListOperationsResponse
86
83
  # @private
87
84
  class Representation < Google::Apis::Core::JsonRepresentation
85
+ property :next_page_token, as: 'nextPageToken'
86
+ collection :operations, as: 'operations', class: Google::Apis::RuntimeconfigV1::Operation, decorator: Google::Apis::RuntimeconfigV1::Operation::Representation
87
+
88
88
  end
89
89
  end
90
90
 
91
- class CancelOperationRequest
91
+ class Empty
92
92
  # @private
93
93
  class Representation < Google::Apis::Core::JsonRepresentation
94
94
  end
@@ -35,16 +35,16 @@ module Google
35
35
  #
36
36
  # @see https://cloud.google.com/deployment-manager/runtime-configurator/
37
37
  class CloudRuntimeConfigService < Google::Apis::Core::BaseService
38
- # @return [String]
39
- # API key. Your API key identifies your project and provides you with API access,
40
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
41
- attr_accessor :key
42
-
43
38
  # @return [String]
44
39
  # Available to use for quota purposes for server-side applications. Can be any
45
40
  # arbitrary string assigned to a user, but should not exceed 40 characters.
46
41
  attr_accessor :quota_user
47
42
 
43
+ # @return [String]
44
+ # API key. Your API key identifies your project and provides you with API access,
45
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
46
+ attr_accessor :key
47
+
48
48
  def initialize
49
49
  super('https://runtimeconfig.googleapis.com/', '')
50
50
  @batch_path = 'batch'
@@ -63,11 +63,11 @@ module Google
63
63
  # @param [String] name
64
64
  # The name of the operation resource to be cancelled.
65
65
  # @param [Google::Apis::RuntimeconfigV1::CancelOperationRequest] cancel_operation_request_object
66
- # @param [String] fields
67
- # Selector specifying which fields to include in a partial response.
68
66
  # @param [String] quota_user
69
67
  # Available to use for quota purposes for server-side applications. Can be any
70
68
  # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # @param [String] fields
70
+ # Selector specifying which fields to include in a partial response.
71
71
  # @param [Google::Apis::RequestOptions] options
72
72
  # Request-specific options
73
73
  #
@@ -80,15 +80,15 @@ module Google
80
80
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81
81
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
82
  # @raise [Google::Apis::AuthorizationError] Authorization is required
83
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
84
84
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
85
85
  command.request_representation = Google::Apis::RuntimeconfigV1::CancelOperationRequest::Representation
86
86
  command.request_object = cancel_operation_request_object
87
87
  command.response_representation = Google::Apis::RuntimeconfigV1::Empty::Representation
88
88
  command.response_class = Google::Apis::RuntimeconfigV1::Empty
89
89
  command.params['name'] = name unless name.nil?
90
- command.query['fields'] = fields unless fields.nil?
91
90
  command.query['quotaUser'] = quota_user unless quota_user.nil?
91
+ command.query['fields'] = fields unless fields.nil?
92
92
  execute_or_queue_command(command, &block)
93
93
  end
94
94
 
@@ -98,11 +98,11 @@ module Google
98
98
  # `google.rpc.Code.UNIMPLEMENTED`.
99
99
  # @param [String] name
100
100
  # The name of the operation resource to be deleted.
101
- # @param [String] fields
102
- # Selector specifying which fields to include in a partial response.
103
101
  # @param [String] quota_user
104
102
  # Available to use for quota purposes for server-side applications. Can be any
105
103
  # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [String] fields
105
+ # Selector specifying which fields to include in a partial response.
106
106
  # @param [Google::Apis::RequestOptions] options
107
107
  # Request-specific options
108
108
  #
@@ -115,13 +115,13 @@ module Google
115
115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
118
- def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
118
+ def delete_operation(name, quota_user: nil, fields: nil, options: nil, &block)
119
119
  command = make_simple_command(:delete, 'v1/{+name}', options)
120
120
  command.response_representation = Google::Apis::RuntimeconfigV1::Empty::Representation
121
121
  command.response_class = Google::Apis::RuntimeconfigV1::Empty
122
122
  command.params['name'] = name unless name.nil?
123
- command.query['fields'] = fields unless fields.nil?
124
123
  command.query['quotaUser'] = quota_user unless quota_user.nil?
124
+ command.query['fields'] = fields unless fields.nil?
125
125
  execute_or_queue_command(command, &block)
126
126
  end
127
127
 
@@ -136,17 +136,17 @@ module Google
136
136
  # is the parent resource, without the operations collection id.
137
137
  # @param [String] name
138
138
  # The name of the operation's parent resource.
139
- # @param [String] page_token
140
- # The standard list page token.
141
139
  # @param [Fixnum] page_size
142
140
  # The standard list page size.
143
141
  # @param [String] filter
144
142
  # The standard list filter.
145
- # @param [String] fields
146
- # Selector specifying which fields to include in a partial response.
143
+ # @param [String] page_token
144
+ # The standard list page token.
147
145
  # @param [String] quota_user
148
146
  # Available to use for quota purposes for server-side applications. Can be any
149
147
  # arbitrary string assigned to a user, but should not exceed 40 characters.
148
+ # @param [String] fields
149
+ # Selector specifying which fields to include in a partial response.
150
150
  # @param [Google::Apis::RequestOptions] options
151
151
  # Request-specific options
152
152
  #
@@ -159,24 +159,24 @@ module Google
159
159
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
160
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
161
  # @raise [Google::Apis::AuthorizationError] Authorization is required
162
- def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ def list_operations(name, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
163
163
  command = make_simple_command(:get, 'v1/{+name}', options)
164
164
  command.response_representation = Google::Apis::RuntimeconfigV1::ListOperationsResponse::Representation
165
165
  command.response_class = Google::Apis::RuntimeconfigV1::ListOperationsResponse
166
166
  command.params['name'] = name unless name.nil?
167
- command.query['pageToken'] = page_token unless page_token.nil?
168
167
  command.query['pageSize'] = page_size unless page_size.nil?
169
168
  command.query['filter'] = filter unless filter.nil?
170
- command.query['fields'] = fields unless fields.nil?
169
+ command.query['pageToken'] = page_token unless page_token.nil?
171
170
  command.query['quotaUser'] = quota_user unless quota_user.nil?
171
+ command.query['fields'] = fields unless fields.nil?
172
172
  execute_or_queue_command(command, &block)
173
173
  end
174
174
 
175
175
  protected
176
176
 
177
177
  def apply_command_defaults(command)
178
- command.query['key'] = key unless key.nil?
179
178
  command.query['quotaUser'] = quota_user unless quota_user.nil?
179
+ command.query['key'] = key unless key.nil?
180
180
  end
181
181
  end
182
182
  end
@@ -25,7 +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 = '20170612'
28
+ REVISION = '20170705'
29
29
 
30
30
  # View your email address
31
31
  AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
@@ -42,6 +42,9 @@ module Google
42
42
  # View and manage the files in your Google Drive
43
43
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
44
44
 
45
+ # View and manage the provisioning of users on your domain
46
+ AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
47
+
45
48
  # View and manage the provisioning of groups on your domain
46
49
  AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
47
50
 
@@ -51,9 +54,6 @@ module Google
51
54
  # View and manage your spreadsheets in Google Drive
52
55
  AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
53
56
 
54
- # View and manage the provisioning of users on your domain
55
- AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
56
-
57
57
  # View and manage your forms in Google Drive
58
58
  AUTH_FORMS = 'https://www.googleapis.com/auth/forms'
59
59
 
@@ -22,28 +22,172 @@ module Google
22
22
  module Apis
23
23
  module ScriptV1
24
24
 
25
+ # A request to retrieve the results from a collection of requests,
26
+ # specified by the operation resource names.
27
+ class JoinAsyncRequest
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Timeout for information retrieval in milliseconds.
31
+ # Corresponds to the JSON property `timeout`
32
+ # @return [String]
33
+ attr_accessor :timeout
34
+
35
+ # The script id which specifies the script which all processes in the names
36
+ # field must be from.
37
+ # Corresponds to the JSON property `scriptId`
38
+ # @return [String]
39
+ attr_accessor :script_id
40
+
41
+ # List of operation resource names that we want to join,
42
+ # as returned from a call to RunAsync.
43
+ # Corresponds to the JSON property `names`
44
+ # @return [Array<String>]
45
+ attr_accessor :names
46
+
47
+ def initialize(**args)
48
+ update!(**args)
49
+ end
50
+
51
+ # Update properties of this object
52
+ def update!(**args)
53
+ @timeout = args[:timeout] if args.key?(:timeout)
54
+ @script_id = args[:script_id] if args.key?(:script_id)
55
+ @names = args[:names] if args.key?(:names)
56
+ end
57
+ end
58
+
59
+ # An object that provides the return value of a function executed through the
60
+ # Apps Script Execution API. If a
61
+ # `run` call succeeds and the
62
+ # script function returns successfully, the response body's
63
+ # `response` field contains this
64
+ # `ExecutionResponse` object.
65
+ class ExecutionResponse
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # The return value of the script function. The type matches the object type
69
+ # returned in Apps Script. Functions called through the Execution API cannot
70
+ # return Apps Script-specific objects (such as a `Document` or a `Calendar`);
71
+ # they can only return primitive types such as a `string`, `number`, `array`,
72
+ # `object`, or `boolean`.
73
+ # Corresponds to the JSON property `result`
74
+ # @return [Object]
75
+ attr_accessor :result
76
+
77
+ def initialize(**args)
78
+ update!(**args)
79
+ end
80
+
81
+ # Update properties of this object
82
+ def update!(**args)
83
+ @result = args[:result] if args.key?(:result)
84
+ end
85
+ end
86
+
87
+ # An object that provides the return value for the JoinAsync method.
88
+ class JoinAsyncResponse
89
+ include Google::Apis::Core::Hashable
90
+
91
+ # The return values for each script function, in a map of operation resource
92
+ # names to the Operation containing the result of the process. The response
93
+ # will contain either an error or the result of the script function.
94
+ # Corresponds to the JSON property `results`
95
+ # @return [Hash<String,Google::Apis::ScriptV1::Operation>]
96
+ attr_accessor :results
97
+
98
+ def initialize(**args)
99
+ update!(**args)
100
+ end
101
+
102
+ # Update properties of this object
103
+ def update!(**args)
104
+ @results = args[:results] if args.key?(:results)
105
+ end
106
+ end
107
+
108
+ # The response will not arrive until the function finishes executing. The
109
+ # maximum runtime is listed in the guide to [limitations in Apps Script](https://
110
+ # developers.google.com/apps-script/guides/services/quotas#current_limitations).
111
+ # <p>If the script function returns successfully, the `response` field will
112
+ # contain an `ExecutionResponse` object with the function's return value in the
113
+ # object's `result` field.</p>
114
+ # <p>If the script function (or Apps Script itself) throws an exception, the `
115
+ # error` field will contain a `Status` object. The `Status` object's `details`
116
+ # field will contain an array with a single `ExecutionError` object that
117
+ # provides information about the nature of the error.</p>
118
+ # <p>If the `run` call itself fails (for example, because of a malformed request
119
+ # or an authorization error), the method will return an HTTP response code in
120
+ # the 4XX range with a different format for the response body. Client libraries
121
+ # will automatically convert a 4XX response into an exception class.</p>
122
+ class Operation
123
+ include Google::Apis::Core::Hashable
124
+
125
+ # This field is not used.
126
+ # Corresponds to the JSON property `done`
127
+ # @return [Boolean]
128
+ attr_accessor :done
129
+ alias_method :done?, :done
130
+
131
+ # If the script function returns successfully, this field will contain an `
132
+ # ExecutionResponse` object with the function's return value as the object's `
133
+ # result` field.
134
+ # Corresponds to the JSON property `response`
135
+ # @return [Hash<String,Object>]
136
+ attr_accessor :response
137
+
138
+ # This field is not used.
139
+ # Corresponds to the JSON property `name`
140
+ # @return [String]
141
+ attr_accessor :name
142
+
143
+ # If a `run` call succeeds but the script function (or Apps Script itself)
144
+ # throws an exception, the response body's `error` field will contain this `
145
+ # Status` object.
146
+ # Corresponds to the JSON property `error`
147
+ # @return [Google::Apis::ScriptV1::Status]
148
+ attr_accessor :error
149
+
150
+ # This field is not used.
151
+ # Corresponds to the JSON property `metadata`
152
+ # @return [Hash<String,Object>]
153
+ attr_accessor :metadata
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @done = args[:done] if args.key?(:done)
162
+ @response = args[:response] if args.key?(:response)
163
+ @name = args[:name] if args.key?(:name)
164
+ @error = args[:error] if args.key?(:error)
165
+ @metadata = args[:metadata] if args.key?(:metadata)
166
+ end
167
+ end
168
+
25
169
  # A stack trace through the script that shows where the execution failed.
26
170
  class ScriptStackTraceElement
27
171
  include Google::Apis::Core::Hashable
28
172
 
29
- # The line number where the script failed.
30
- # Corresponds to the JSON property `lineNumber`
31
- # @return [Fixnum]
32
- attr_accessor :line_number
33
-
34
173
  # The name of the function that failed.
35
174
  # Corresponds to the JSON property `function`
36
175
  # @return [String]
37
176
  attr_accessor :function
38
177
 
178
+ # The line number where the script failed.
179
+ # Corresponds to the JSON property `lineNumber`
180
+ # @return [Fixnum]
181
+ attr_accessor :line_number
182
+
39
183
  def initialize(**args)
40
184
  update!(**args)
41
185
  end
42
186
 
43
187
  # Update properties of this object
44
188
  def update!(**args)
45
- @line_number = args[:line_number] if args.key?(:line_number)
46
189
  @function = args[:function] if args.key?(:function)
190
+ @line_number = args[:line_number] if args.key?(:line_number)
47
191
  end
48
192
  end
49
193
 
@@ -57,12 +201,6 @@ module Google
57
201
  class ExecutionError
58
202
  include Google::Apis::Core::Hashable
59
203
 
60
- # An array of objects that provide a stack trace through the script to show
61
- # where the execution failed, with the deepest call first.
62
- # Corresponds to the JSON property `scriptStackTraceElements`
63
- # @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
64
- attr_accessor :script_stack_trace_elements
65
-
66
204
  # The error type, for example `TypeError` or `ReferenceError`. If the error
67
205
  # type is unavailable, this field is not included.
68
206
  # Corresponds to the JSON property `errorType`
@@ -75,15 +213,21 @@ module Google
75
213
  # @return [String]
76
214
  attr_accessor :error_message
77
215
 
216
+ # An array of objects that provide a stack trace through the script to show
217
+ # where the execution failed, with the deepest call first.
218
+ # Corresponds to the JSON property `scriptStackTraceElements`
219
+ # @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
220
+ attr_accessor :script_stack_trace_elements
221
+
78
222
  def initialize(**args)
79
223
  update!(**args)
80
224
  end
81
225
 
82
226
  # Update properties of this object
83
227
  def update!(**args)
84
- @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
85
228
  @error_type = args[:error_type] if args.key?(:error_type)
86
229
  @error_message = args[:error_message] if args.key?(:error_message)
230
+ @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
87
231
  end
88
232
  end
89
233
 
@@ -93,13 +237,6 @@ module Google
93
237
  class Status
94
238
  include Google::Apis::Core::Hashable
95
239
 
96
- # A developer-facing error message, which is in English. Any user-facing error
97
- # message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
98
- # Status.details) field, or localized by the client.
99
- # Corresponds to the JSON property `message`
100
- # @return [String]
101
- attr_accessor :message
102
-
103
240
  # An array that contains a single `ExecutionError` object that provides
104
241
  # information about the nature of the error.
105
242
  # Corresponds to the JSON property `details`
@@ -112,15 +249,22 @@ module Google
112
249
  # @return [Fixnum]
113
250
  attr_accessor :code
114
251
 
252
+ # A developer-facing error message, which is in English. Any user-facing error
253
+ # message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
254
+ # Status.details) field, or localized by the client.
255
+ # Corresponds to the JSON property `message`
256
+ # @return [String]
257
+ attr_accessor :message
258
+
115
259
  def initialize(**args)
116
260
  update!(**args)
117
261
  end
118
262
 
119
263
  # Update properties of this object
120
264
  def update!(**args)
121
- @message = args[:message] if args.key?(:message)
122
265
  @details = args[:details] if args.key?(:details)
123
266
  @code = args[:code] if args.key?(:code)
267
+ @message = args[:message] if args.key?(:message)
124
268
  end
125
269
  end
126
270
 
@@ -130,12 +274,6 @@ module Google
130
274
  class ExecutionRequest
131
275
  include Google::Apis::Core::Hashable
132
276
 
133
- # The name of the function to execute in the given script. The name does not
134
- # include parentheses or parameters.
135
- # Corresponds to the JSON property `function`
136
- # @return [String]
137
- attr_accessor :function
138
-
139
277
  # If `true` and the user is an owner of the script, the script runs at the
140
278
  # most recently saved version rather than the version deployed for use with
141
279
  # the Execution API. Optional; default is `false`.
@@ -144,6 +282,12 @@ module Google
144
282
  attr_accessor :dev_mode
145
283
  alias_method :dev_mode?, :dev_mode
146
284
 
285
+ # The name of the function to execute in the given script. The name does not
286
+ # include parentheses or parameters.
287
+ # Corresponds to the JSON property `function`
288
+ # @return [String]
289
+ attr_accessor :function
290
+
147
291
  # The parameters to be passed to the function being executed. The object type
148
292
  # for each parameter should match the expected type in Apps Script.
149
293
  # Parameters cannot be Apps Script-specific object types (such as a
@@ -173,156 +317,12 @@ module Google
173
317
 
174
318
  # Update properties of this object
175
319
  def update!(**args)
176
- @function = args[:function] if args.key?(:function)
177
320
  @dev_mode = args[:dev_mode] if args.key?(:dev_mode)
321
+ @function = args[:function] if args.key?(:function)
178
322
  @parameters = args[:parameters] if args.key?(:parameters)
179
323
  @session_state = args[:session_state] if args.key?(:session_state)
180
324
  end
181
325
  end
182
-
183
- # A request to retrieve the results from a collection of requests,
184
- # specified by the operation resource names.
185
- class JoinAsyncRequest
186
- include Google::Apis::Core::Hashable
187
-
188
- # List of operation resource names that we want to join,
189
- # as returned from a call to RunAsync.
190
- # Corresponds to the JSON property `names`
191
- # @return [Array<String>]
192
- attr_accessor :names
193
-
194
- # Timeout for information retrieval in milliseconds.
195
- # Corresponds to the JSON property `timeout`
196
- # @return [String]
197
- attr_accessor :timeout
198
-
199
- # The script id which specifies the script which all processes in the names
200
- # field must be from.
201
- # Corresponds to the JSON property `scriptId`
202
- # @return [String]
203
- attr_accessor :script_id
204
-
205
- def initialize(**args)
206
- update!(**args)
207
- end
208
-
209
- # Update properties of this object
210
- def update!(**args)
211
- @names = args[:names] if args.key?(:names)
212
- @timeout = args[:timeout] if args.key?(:timeout)
213
- @script_id = args[:script_id] if args.key?(:script_id)
214
- end
215
- end
216
-
217
- # An object that provides the return value of a function executed through the
218
- # Apps Script Execution API. If a
219
- # `run` call succeeds and the
220
- # script function returns successfully, the response body's
221
- # `response` field contains this
222
- # `ExecutionResponse` object.
223
- class ExecutionResponse
224
- include Google::Apis::Core::Hashable
225
-
226
- # The return value of the script function. The type matches the object type
227
- # returned in Apps Script. Functions called through the Execution API cannot
228
- # return Apps Script-specific objects (such as a `Document` or a `Calendar`);
229
- # they can only return primitive types such as a `string`, `number`, `array`,
230
- # `object`, or `boolean`.
231
- # Corresponds to the JSON property `result`
232
- # @return [Object]
233
- attr_accessor :result
234
-
235
- def initialize(**args)
236
- update!(**args)
237
- end
238
-
239
- # Update properties of this object
240
- def update!(**args)
241
- @result = args[:result] if args.key?(:result)
242
- end
243
- end
244
-
245
- # The response will not arrive until the function finishes executing. The
246
- # maximum runtime is listed in the guide to [limitations in Apps Script](https://
247
- # developers.google.com/apps-script/guides/services/quotas#current_limitations).
248
- # <p>If the script function returns successfully, the `response` field will
249
- # contain an `ExecutionResponse` object with the function's return value in the
250
- # object's `result` field.</p>
251
- # <p>If the script function (or Apps Script itself) throws an exception, the `
252
- # error` field will contain a `Status` object. The `Status` object's `details`
253
- # field will contain an array with a single `ExecutionError` object that
254
- # provides information about the nature of the error.</p>
255
- # <p>If the `run` call itself fails (for example, because of a malformed request
256
- # or an authorization error), the method will return an HTTP response code in
257
- # the 4XX range with a different format for the response body. Client libraries
258
- # will automatically convert a 4XX response into an exception class.</p>
259
- class Operation
260
- include Google::Apis::Core::Hashable
261
-
262
- # If the script function returns successfully, this field will contain an `
263
- # ExecutionResponse` object with the function's return value as the object's `
264
- # result` field.
265
- # Corresponds to the JSON property `response`
266
- # @return [Hash<String,Object>]
267
- attr_accessor :response
268
-
269
- # This field is not used.
270
- # Corresponds to the JSON property `name`
271
- # @return [String]
272
- attr_accessor :name
273
-
274
- # If a `run` call succeeds but the script function (or Apps Script itself)
275
- # throws an exception, the response body's `error` field will contain this `
276
- # Status` object.
277
- # Corresponds to the JSON property `error`
278
- # @return [Google::Apis::ScriptV1::Status]
279
- attr_accessor :error
280
-
281
- # This field is not used.
282
- # Corresponds to the JSON property `metadata`
283
- # @return [Hash<String,Object>]
284
- attr_accessor :metadata
285
-
286
- # This field is not used.
287
- # Corresponds to the JSON property `done`
288
- # @return [Boolean]
289
- attr_accessor :done
290
- alias_method :done?, :done
291
-
292
- def initialize(**args)
293
- update!(**args)
294
- end
295
-
296
- # Update properties of this object
297
- def update!(**args)
298
- @response = args[:response] if args.key?(:response)
299
- @name = args[:name] if args.key?(:name)
300
- @error = args[:error] if args.key?(:error)
301
- @metadata = args[:metadata] if args.key?(:metadata)
302
- @done = args[:done] if args.key?(:done)
303
- end
304
- end
305
-
306
- # An object that provides the return value for the JoinAsync method.
307
- class JoinAsyncResponse
308
- include Google::Apis::Core::Hashable
309
-
310
- # The return values for each script function, in a map of operation resource
311
- # names to the Operation containing the result of the process. The response
312
- # will contain either an error or the result of the script function.
313
- # Corresponds to the JSON property `results`
314
- # @return [Hash<String,Google::Apis::ScriptV1::Operation>]
315
- attr_accessor :results
316
-
317
- def initialize(**args)
318
- update!(**args)
319
- end
320
-
321
- # Update properties of this object
322
- def update!(**args)
323
- @results = args[:results] if args.key?(:results)
324
- end
325
- end
326
326
  end
327
327
  end
328
328
  end