google-api-client 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/dataproc/
26
26
  module DataprocV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170606'
28
+ REVISION = '20170707'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,18 +22,198 @@ module Google
22
22
  module Apis
23
23
  module DataprocV1
24
24
 
25
- # Job scheduling options.Beta Feature: These options are available for testing
26
- # purposes only. They may be changed before final release.
27
- class JobScheduling
25
+ # This resource represents a long-running operation that is the result of a
26
+ # network API call.
27
+ class Operation
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # Optional. Maximum number of times per hour a driver may be restarted as a
31
- # result of driver terminating with non-zero code before job is reported failed.
32
- # A job may be reported as thrashing if driver exits with non-zero code 4 times
33
- # within 10 minute window.Maximum value is 10.
34
- # Corresponds to the JSON property `maxFailuresPerHour`
30
+ # The server-assigned name, which is only unique within the same service that
31
+ # originally returns it. If you use the default HTTP mapping, the name should
32
+ # have the format of operations/some/unique/name.
33
+ # Corresponds to the JSON property `name`
34
+ # @return [String]
35
+ attr_accessor :name
36
+
37
+ # The Status type defines a logical error model that is suitable for different
38
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
39
+ # (https://github.com/grpc). The error model is designed to be:
40
+ # Simple to use and understand for most users
41
+ # Flexible enough to meet unexpected needsOverviewThe Status message contains
42
+ # three pieces of data: error code, error message, and error details. The error
43
+ # code should be an enum value of google.rpc.Code, but it may accept additional
44
+ # error codes if needed. The error message should be a developer-facing English
45
+ # message that helps developers understand and resolve the error. If a localized
46
+ # user-facing error message is needed, put the localized message in the error
47
+ # details or localize it in the client. The optional error details may contain
48
+ # arbitrary information about the error. There is a predefined set of error
49
+ # detail types in the package google.rpc that can be used for common error
50
+ # conditions.Language mappingThe Status message is the logical representation of
51
+ # the error model, but it is not necessarily the actual wire format. When the
52
+ # Status message is exposed in different client libraries and different wire
53
+ # protocols, it can be mapped differently. For example, it will likely be mapped
54
+ # to some exceptions in Java, but more likely mapped to some error codes in C.
55
+ # Other usesThe error model and the Status message can be used in a variety of
56
+ # environments, either with or without APIs, to provide a consistent developer
57
+ # experience across different environments.Example uses of this error model
58
+ # include:
59
+ # Partial errors. If a service needs to return partial errors to the client, it
60
+ # may embed the Status in the normal response to indicate the partial errors.
61
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a
62
+ # Status message for error reporting.
63
+ # Batch operations. If a client uses batch request and batch response, the
64
+ # Status message should be used directly inside batch response, one for each
65
+ # error sub-response.
66
+ # Asynchronous operations. If an API call embeds asynchronous operation results
67
+ # in its response, the status of those operations should be represented directly
68
+ # using the Status message.
69
+ # Logging. If some API errors are stored in logs, the message Status could be
70
+ # used directly after any stripping needed for security/privacy reasons.
71
+ # Corresponds to the JSON property `error`
72
+ # @return [Google::Apis::DataprocV1::Status]
73
+ attr_accessor :error
74
+
75
+ # Service-specific metadata associated with the operation. It typically contains
76
+ # progress information and common metadata such as create time. Some services
77
+ # might not provide such metadata. Any method that returns a long-running
78
+ # operation should document the metadata type, if any.
79
+ # Corresponds to the JSON property `metadata`
80
+ # @return [Hash<String,Object>]
81
+ attr_accessor :metadata
82
+
83
+ # If the value is false, it means the operation is still in progress. If true,
84
+ # the operation is completed, and either error or response is available.
85
+ # Corresponds to the JSON property `done`
86
+ # @return [Boolean]
87
+ attr_accessor :done
88
+ alias_method :done?, :done
89
+
90
+ # The normal response of the operation in case of success. If the original
91
+ # method returns no data on success, such as Delete, the response is google.
92
+ # protobuf.Empty. If the original method is standard Get/Create/Update, the
93
+ # response should be the resource. For other methods, the response should have
94
+ # the type XxxResponse, where Xxx is the original method name. For example, if
95
+ # the original method name is TakeSnapshot(), the inferred response type is
96
+ # TakeSnapshotResponse.
97
+ # Corresponds to the JSON property `response`
98
+ # @return [Hash<String,Object>]
99
+ attr_accessor :response
100
+
101
+ def initialize(**args)
102
+ update!(**args)
103
+ end
104
+
105
+ # Update properties of this object
106
+ def update!(**args)
107
+ @name = args[:name] if args.key?(:name)
108
+ @error = args[:error] if args.key?(:error)
109
+ @metadata = args[:metadata] if args.key?(:metadata)
110
+ @done = args[:done] if args.key?(:done)
111
+ @response = args[:response] if args.key?(:response)
112
+ end
113
+ end
114
+
115
+ # Encapsulates the full scoping used to reference a job.
116
+ class JobReference
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # Optional. The job ID, which must be unique within the project. The job ID is
120
+ # generated by the server upon job submission or provided by the user as a means
121
+ # to perform retries without creating duplicate jobs. The ID must contain only
122
+ # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
123
+ # maximum length is 100 characters.
124
+ # Corresponds to the JSON property `jobId`
125
+ # @return [String]
126
+ attr_accessor :job_id
127
+
128
+ # Required. The ID of the Google Cloud Platform project that the job belongs to.
129
+ # Corresponds to the JSON property `projectId`
130
+ # @return [String]
131
+ attr_accessor :project_id
132
+
133
+ def initialize(**args)
134
+ update!(**args)
135
+ end
136
+
137
+ # Update properties of this object
138
+ def update!(**args)
139
+ @job_id = args[:job_id] if args.key?(:job_id)
140
+ @project_id = args[:project_id] if args.key?(:project_id)
141
+ end
142
+ end
143
+
144
+ # A request to submit a job.
145
+ class SubmitJobRequest
146
+ include Google::Apis::Core::Hashable
147
+
148
+ # A Cloud Dataproc job resource.
149
+ # Corresponds to the JSON property `job`
150
+ # @return [Google::Apis::DataprocV1::Job]
151
+ attr_accessor :job
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @job = args[:job] if args.key?(:job)
160
+ end
161
+ end
162
+
163
+ # The Status type defines a logical error model that is suitable for different
164
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
165
+ # (https://github.com/grpc). The error model is designed to be:
166
+ # Simple to use and understand for most users
167
+ # Flexible enough to meet unexpected needsOverviewThe Status message contains
168
+ # three pieces of data: error code, error message, and error details. The error
169
+ # code should be an enum value of google.rpc.Code, but it may accept additional
170
+ # error codes if needed. The error message should be a developer-facing English
171
+ # message that helps developers understand and resolve the error. If a localized
172
+ # user-facing error message is needed, put the localized message in the error
173
+ # details or localize it in the client. The optional error details may contain
174
+ # arbitrary information about the error. There is a predefined set of error
175
+ # detail types in the package google.rpc that can be used for common error
176
+ # conditions.Language mappingThe Status message is the logical representation of
177
+ # the error model, but it is not necessarily the actual wire format. When the
178
+ # Status message is exposed in different client libraries and different wire
179
+ # protocols, it can be mapped differently. For example, it will likely be mapped
180
+ # to some exceptions in Java, but more likely mapped to some error codes in C.
181
+ # Other usesThe error model and the Status message can be used in a variety of
182
+ # environments, either with or without APIs, to provide a consistent developer
183
+ # experience across different environments.Example uses of this error model
184
+ # include:
185
+ # Partial errors. If a service needs to return partial errors to the client, it
186
+ # may embed the Status in the normal response to indicate the partial errors.
187
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a
188
+ # Status message for error reporting.
189
+ # Batch operations. If a client uses batch request and batch response, the
190
+ # Status message should be used directly inside batch response, one for each
191
+ # error sub-response.
192
+ # Asynchronous operations. If an API call embeds asynchronous operation results
193
+ # in its response, the status of those operations should be represented directly
194
+ # using the Status message.
195
+ # Logging. If some API errors are stored in logs, the message Status could be
196
+ # used directly after any stripping needed for security/privacy reasons.
197
+ class Status
198
+ include Google::Apis::Core::Hashable
199
+
200
+ # The status code, which should be an enum value of google.rpc.Code.
201
+ # Corresponds to the JSON property `code`
35
202
  # @return [Fixnum]
36
- attr_accessor :max_failures_per_hour
203
+ attr_accessor :code
204
+
205
+ # A developer-facing error message, which should be in English. Any user-facing
206
+ # error message should be localized and sent in the google.rpc.Status.details
207
+ # field, or localized by the client.
208
+ # Corresponds to the JSON property `message`
209
+ # @return [String]
210
+ attr_accessor :message
211
+
212
+ # A list of messages that carry the error details. There will be a common set of
213
+ # message types for APIs to use.
214
+ # Corresponds to the JSON property `details`
215
+ # @return [Array<Hash<String,Object>>]
216
+ attr_accessor :details
37
217
 
38
218
  def initialize(**args)
39
219
  update!(**args)
@@ -41,7 +221,9 @@ module Google
41
221
 
42
222
  # Update properties of this object
43
223
  def update!(**args)
44
- @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
224
+ @code = args[:code] if args.key?(:code)
225
+ @message = args[:message] if args.key?(:message)
226
+ @details = args[:details] if args.key?(:details)
45
227
  end
46
228
  end
47
229
 
@@ -55,9 +237,12 @@ module Google
55
237
  # @return [Google::Apis::DataprocV1::DiskConfig]
56
238
  attr_accessor :disk_config
57
239
 
58
- # Required. The Google Compute Engine machine type used for cluster instances.
59
- # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-
60
- # east1-a/machineTypes/n1-standard-2.
240
+ # Optional. The Google Compute Engine machine type used for cluster instances.A
241
+ # full URL, partial URI, or short name are valid. Examples:
242
+ # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
243
+ # machineTypes/n1-standard-2
244
+ # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
245
+ # n1-standard-2
61
246
  # Corresponds to the JSON property `machineTypeUri`
62
247
  # @return [String]
63
248
  attr_accessor :machine_type_uri
@@ -93,7 +278,7 @@ module Google
93
278
  # @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]
94
279
  attr_accessor :accelerators
95
280
 
96
- # Required. The number of VM instances in the instance group. For master
281
+ # Optional. The number of VM instances in the instance group. For master
97
282
  # instance groups, must be set to 1.
98
283
  # Corresponds to the JSON property `numInstances`
99
284
  # @return [Fixnum]
@@ -116,21 +301,18 @@ module Google
116
301
  end
117
302
  end
118
303
 
119
- # A list of jobs in a project.
120
- class ListJobsResponse
304
+ # Job scheduling options.Beta Feature: These options are available for testing
305
+ # purposes only. They may be changed before final release.
306
+ class JobScheduling
121
307
  include Google::Apis::Core::Hashable
122
308
 
123
- # Optional. This token is included in the response if there are more results to
124
- # fetch. To fetch additional results, provide this value as the page_token in a
125
- # subsequent <code>ListJobsRequest</code>.
126
- # Corresponds to the JSON property `nextPageToken`
127
- # @return [String]
128
- attr_accessor :next_page_token
129
-
130
- # Output-only. Jobs list.
131
- # Corresponds to the JSON property `jobs`
132
- # @return [Array<Google::Apis::DataprocV1::Job>]
133
- attr_accessor :jobs
309
+ # Optional. Maximum number of times per hour a driver may be restarted as a
310
+ # result of driver terminating with non-zero code before job is reported failed.
311
+ # A job may be reported as thrashing if driver exits with non-zero code 4 times
312
+ # within 10 minute window.Maximum value is 10.
313
+ # Corresponds to the JSON property `maxFailuresPerHour`
314
+ # @return [Fixnum]
315
+ attr_accessor :max_failures_per_hour
134
316
 
135
317
  def initialize(**args)
136
318
  update!(**args)
@@ -138,8 +320,7 @@ module Google
138
320
 
139
321
  # Update properties of this object
140
322
  def update!(**args)
141
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
142
- @jobs = args[:jobs] if args.key?(:jobs)
323
+ @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
143
324
  end
144
325
  end
145
326
 
@@ -172,6 +353,33 @@ module Google
172
353
  end
173
354
  end
174
355
 
356
+ # A list of jobs in a project.
357
+ class ListJobsResponse
358
+ include Google::Apis::Core::Hashable
359
+
360
+ # Output-only. Jobs list.
361
+ # Corresponds to the JSON property `jobs`
362
+ # @return [Array<Google::Apis::DataprocV1::Job>]
363
+ attr_accessor :jobs
364
+
365
+ # Optional. This token is included in the response if there are more results to
366
+ # fetch. To fetch additional results, provide this value as the page_token in a
367
+ # subsequent <code>ListJobsRequest</code>.
368
+ # Corresponds to the JSON property `nextPageToken`
369
+ # @return [String]
370
+ attr_accessor :next_page_token
371
+
372
+ def initialize(**args)
373
+ update!(**args)
374
+ end
375
+
376
+ # Update properties of this object
377
+ def update!(**args)
378
+ @jobs = args[:jobs] if args.key?(:jobs)
379
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
380
+ end
381
+ end
382
+
175
383
  # A request to cancel a job.
176
384
  class CancelJobRequest
177
385
  include Google::Apis::Core::Hashable
@@ -190,16 +398,16 @@ module Google
190
398
  class SparkSqlJob
191
399
  include Google::Apis::Core::Hashable
192
400
 
193
- # A list of queries to run on a cluster.
194
- # Corresponds to the JSON property `queryList`
195
- # @return [Google::Apis::DataprocV1::QueryList]
196
- attr_accessor :query_list
197
-
198
401
  # The HCFS URI of the script that contains SQL queries.
199
402
  # Corresponds to the JSON property `queryFileUri`
200
403
  # @return [String]
201
404
  attr_accessor :query_file_uri
202
405
 
406
+ # A list of queries to run on a cluster.
407
+ # Corresponds to the JSON property `queryList`
408
+ # @return [Google::Apis::DataprocV1::QueryList]
409
+ attr_accessor :query_list
410
+
203
411
  # Optional. Mapping of query variable names to values (equivalent to the Spark
204
412
  # SQL command: SET name="value";).
205
413
  # Corresponds to the JSON property `scriptVariables`
@@ -229,8 +437,8 @@ module Google
229
437
 
230
438
  # Update properties of this object
231
439
  def update!(**args)
232
- @query_list = args[:query_list] if args.key?(:query_list)
233
440
  @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
441
+ @query_list = args[:query_list] if args.key?(:query_list)
234
442
  @script_variables = args[:script_variables] if args.key?(:script_variables)
235
443
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
236
444
  @logging_config = args[:logging_config] if args.key?(:logging_config)
@@ -252,11 +460,6 @@ module Google
252
460
  # @return [Hash<String,String>]
253
461
  attr_accessor :labels
254
462
 
255
- # The status of a cluster and its instances.
256
- # Corresponds to the JSON property `status`
257
- # @return [Google::Apis::DataprocV1::ClusterStatus]
258
- attr_accessor :status
259
-
260
463
  # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
261
464
  # This report is available for testing purposes only. It may be changed before
262
465
  # final release.
@@ -264,6 +467,11 @@ module Google
264
467
  # @return [Google::Apis::DataprocV1::ClusterMetrics]
265
468
  attr_accessor :metrics
266
469
 
470
+ # The status of a cluster and its instances.
471
+ # Corresponds to the JSON property `status`
472
+ # @return [Google::Apis::DataprocV1::ClusterStatus]
473
+ attr_accessor :status
474
+
267
475
  # Output-only. The previous cluster status.
268
476
  # Corresponds to the JSON property `statusHistory`
269
477
  # @return [Array<Google::Apis::DataprocV1::ClusterStatus>]
@@ -274,18 +482,18 @@ module Google
274
482
  # @return [Google::Apis::DataprocV1::ClusterConfig]
275
483
  attr_accessor :config
276
484
 
277
- # Required. The cluster name. Cluster names within a project must be unique.
278
- # Names of deleted clusters can be reused.
279
- # Corresponds to the JSON property `clusterName`
280
- # @return [String]
281
- attr_accessor :cluster_name
282
-
283
485
  # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc
284
486
  # generates this value when it creates the cluster.
285
487
  # Corresponds to the JSON property `clusterUuid`
286
488
  # @return [String]
287
489
  attr_accessor :cluster_uuid
288
490
 
491
+ # Required. The cluster name. Cluster names within a project must be unique.
492
+ # Names of deleted clusters can be reused.
493
+ # Corresponds to the JSON property `clusterName`
494
+ # @return [String]
495
+ attr_accessor :cluster_name
496
+
289
497
  # Required. The Google Cloud Platform project ID that the cluster belongs to.
290
498
  # Corresponds to the JSON property `projectId`
291
499
  # @return [String]
@@ -298,12 +506,12 @@ module Google
298
506
  # Update properties of this object
299
507
  def update!(**args)
300
508
  @labels = args[:labels] if args.key?(:labels)
301
- @status = args[:status] if args.key?(:status)
302
509
  @metrics = args[:metrics] if args.key?(:metrics)
510
+ @status = args[:status] if args.key?(:status)
303
511
  @status_history = args[:status_history] if args.key?(:status_history)
304
512
  @config = args[:config] if args.key?(:config)
305
- @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
306
513
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
514
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
307
515
  @project_id = args[:project_id] if args.key?(:project_id)
308
516
  end
309
517
  end
@@ -312,24 +520,24 @@ module Google
312
520
  class ListOperationsResponse
313
521
  include Google::Apis::Core::Hashable
314
522
 
315
- # The standard List next-page token.
316
- # Corresponds to the JSON property `nextPageToken`
317
- # @return [String]
318
- attr_accessor :next_page_token
319
-
320
523
  # A list of operations that matches the specified filter in the request.
321
524
  # Corresponds to the JSON property `operations`
322
525
  # @return [Array<Google::Apis::DataprocV1::Operation>]
323
526
  attr_accessor :operations
324
527
 
528
+ # The standard List next-page token.
529
+ # Corresponds to the JSON property `nextPageToken`
530
+ # @return [String]
531
+ attr_accessor :next_page_token
532
+
325
533
  def initialize(**args)
326
534
  update!(**args)
327
535
  end
328
536
 
329
537
  # Update properties of this object
330
538
  def update!(**args)
331
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
332
539
  @operations = args[:operations] if args.key?(:operations)
540
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
333
541
  end
334
542
  end
335
543
 
@@ -435,10 +643,28 @@ module Google
435
643
  end
436
644
  end
437
645
 
438
- # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
439
- # on YARN.
440
- class PigJob
441
- include Google::Apis::Core::Hashable
646
+ # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
647
+ # on YARN.
648
+ class PigJob
649
+ include Google::Apis::Core::Hashable
650
+
651
+ # Optional. Whether to continue executing queries if a query fails. The default
652
+ # value is false. Setting to true can be useful when executing independent
653
+ # parallel queries.
654
+ # Corresponds to the JSON property `continueOnFailure`
655
+ # @return [Boolean]
656
+ attr_accessor :continue_on_failure
657
+ alias_method :continue_on_failure?, :continue_on_failure
658
+
659
+ # A list of queries to run on a cluster.
660
+ # Corresponds to the JSON property `queryList`
661
+ # @return [Google::Apis::DataprocV1::QueryList]
662
+ attr_accessor :query_list
663
+
664
+ # The HCFS URI of the script that contains the Pig queries.
665
+ # Corresponds to the JSON property `queryFileUri`
666
+ # @return [String]
667
+ attr_accessor :query_file_uri
442
668
 
443
669
  # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
444
670
  # Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
@@ -465,37 +691,19 @@ module Google
465
691
  # @return [Hash<String,String>]
466
692
  attr_accessor :properties
467
693
 
468
- # Optional. Whether to continue executing queries if a query fails. The default
469
- # value is false. Setting to true can be useful when executing independent
470
- # parallel queries.
471
- # Corresponds to the JSON property `continueOnFailure`
472
- # @return [Boolean]
473
- attr_accessor :continue_on_failure
474
- alias_method :continue_on_failure?, :continue_on_failure
475
-
476
- # The HCFS URI of the script that contains the Pig queries.
477
- # Corresponds to the JSON property `queryFileUri`
478
- # @return [String]
479
- attr_accessor :query_file_uri
480
-
481
- # A list of queries to run on a cluster.
482
- # Corresponds to the JSON property `queryList`
483
- # @return [Google::Apis::DataprocV1::QueryList]
484
- attr_accessor :query_list
485
-
486
694
  def initialize(**args)
487
695
  update!(**args)
488
696
  end
489
697
 
490
698
  # Update properties of this object
491
699
  def update!(**args)
700
+ @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
701
+ @query_list = args[:query_list] if args.key?(:query_list)
702
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
492
703
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
493
704
  @script_variables = args[:script_variables] if args.key?(:script_variables)
494
705
  @logging_config = args[:logging_config] if args.key?(:logging_config)
495
706
  @properties = args[:properties] if args.key?(:properties)
496
- @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
497
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
498
- @query_list = args[:query_list] if args.key?(:query_list)
499
707
  end
500
708
  end
501
709
 
@@ -530,6 +738,44 @@ module Google
530
738
  class Job
531
739
  include Google::Apis::Core::Hashable
532
740
 
741
+ # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
742
+ # queries on YARN.
743
+ # Corresponds to the JSON property `hiveJob`
744
+ # @return [Google::Apis::DataprocV1::HiveJob]
745
+ attr_accessor :hive_job
746
+
747
+ # Optional. The labels to associate with this job. Label keys must contain 1 to
748
+ # 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.
749
+ # txt). Label values may be empty, but, if present, must contain 1 to 63
750
+ # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
751
+ # . No more than 32 labels can be associated with a job.
752
+ # Corresponds to the JSON property `labels`
753
+ # @return [Hash<String,String>]
754
+ attr_accessor :labels
755
+
756
+ # Output-only. A URI pointing to the location of the stdout of the job's driver
757
+ # program.
758
+ # Corresponds to the JSON property `driverOutputResourceUri`
759
+ # @return [String]
760
+ attr_accessor :driver_output_resource_uri
761
+
762
+ # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
763
+ # ) queries.
764
+ # Corresponds to the JSON property `sparkSqlJob`
765
+ # @return [Google::Apis::DataprocV1::SparkSqlJob]
766
+ attr_accessor :spark_sql_job
767
+
768
+ # Output-only. The previous job status.
769
+ # Corresponds to the JSON property `statusHistory`
770
+ # @return [Array<Google::Apis::DataprocV1::JobStatus>]
771
+ attr_accessor :status_history
772
+
773
+ # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
774
+ # applications on YARN.
775
+ # Corresponds to the JSON property `sparkJob`
776
+ # @return [Google::Apis::DataprocV1::SparkJob]
777
+ attr_accessor :spark_job
778
+
533
779
  # Output-only. The collection of YARN applications spun up by this job.Beta
534
780
  # Feature: This report is available for testing purposes only. It may be changed
535
781
  # before final release.
@@ -585,50 +831,18 @@ module Google
585
831
  # @return [Google::Apis::DataprocV1::PigJob]
586
832
  attr_accessor :pig_job
587
833
 
588
- # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
589
- # queries on YARN.
590
- # Corresponds to the JSON property `hiveJob`
591
- # @return [Google::Apis::DataprocV1::HiveJob]
592
- attr_accessor :hive_job
593
-
594
- # Optional. The labels to associate with this job. Label keys must contain 1 to
595
- # 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.
596
- # txt). Label values may be empty, but, if present, must contain 1 to 63
597
- # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
598
- # . No more than 32 labels can be associated with a job.
599
- # Corresponds to the JSON property `labels`
600
- # @return [Hash<String,String>]
601
- attr_accessor :labels
602
-
603
- # Output-only. A URI pointing to the location of the stdout of the job's driver
604
- # program.
605
- # Corresponds to the JSON property `driverOutputResourceUri`
606
- # @return [String]
607
- attr_accessor :driver_output_resource_uri
608
-
609
- # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
610
- # ) queries.
611
- # Corresponds to the JSON property `sparkSqlJob`
612
- # @return [Google::Apis::DataprocV1::SparkSqlJob]
613
- attr_accessor :spark_sql_job
614
-
615
- # Output-only. The previous job status.
616
- # Corresponds to the JSON property `statusHistory`
617
- # @return [Array<Google::Apis::DataprocV1::JobStatus>]
618
- attr_accessor :status_history
619
-
620
- # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
621
- # applications on YARN.
622
- # Corresponds to the JSON property `sparkJob`
623
- # @return [Google::Apis::DataprocV1::SparkJob]
624
- attr_accessor :spark_job
625
-
626
834
  def initialize(**args)
627
835
  update!(**args)
628
836
  end
629
837
 
630
838
  # Update properties of this object
631
839
  def update!(**args)
840
+ @hive_job = args[:hive_job] if args.key?(:hive_job)
841
+ @labels = args[:labels] if args.key?(:labels)
842
+ @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
843
+ @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
844
+ @status_history = args[:status_history] if args.key?(:status_history)
845
+ @spark_job = args[:spark_job] if args.key?(:spark_job)
632
846
  @yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
633
847
  @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
634
848
  @reference = args[:reference] if args.key?(:reference)
@@ -638,12 +852,6 @@ module Google
638
852
  @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
639
853
  @scheduling = args[:scheduling] if args.key?(:scheduling)
640
854
  @pig_job = args[:pig_job] if args.key?(:pig_job)
641
- @hive_job = args[:hive_job] if args.key?(:hive_job)
642
- @labels = args[:labels] if args.key?(:labels)
643
- @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
644
- @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
645
- @status_history = args[:status_history] if args.key?(:status_history)
646
- @spark_job = args[:spark_job] if args.key?(:spark_job)
647
855
  end
648
856
  end
649
857
 
@@ -652,19 +860,6 @@ module Google
652
860
  class SparkJob
653
861
  include Google::Apis::Core::Hashable
654
862
 
655
- # Optional. The arguments to pass to the driver. Do not include arguments, such
656
- # as --conf, that can be set as job properties, since a collision may occur that
657
- # causes an incorrect job submission.
658
- # Corresponds to the JSON property `args`
659
- # @return [Array<String>]
660
- attr_accessor :args
661
-
662
- # Optional. HCFS URIs of files to be copied to the working directory of Spark
663
- # drivers and distributed tasks. Useful for naively parallel tasks.
664
- # Corresponds to the JSON property `fileUris`
665
- # @return [Array<String>]
666
- attr_accessor :file_uris
667
-
668
863
  # The name of the driver's main class. The jar file that contains the class must
669
864
  # be in the default CLASSPATH or specified in jar_file_uris.
670
865
  # Corresponds to the JSON property `mainClass`
@@ -702,20 +897,33 @@ module Google
702
897
  # @return [Hash<String,String>]
703
898
  attr_accessor :properties
704
899
 
900
+ # Optional. The arguments to pass to the driver. Do not include arguments, such
901
+ # as --conf, that can be set as job properties, since a collision may occur that
902
+ # causes an incorrect job submission.
903
+ # Corresponds to the JSON property `args`
904
+ # @return [Array<String>]
905
+ attr_accessor :args
906
+
907
+ # Optional. HCFS URIs of files to be copied to the working directory of Spark
908
+ # drivers and distributed tasks. Useful for naively parallel tasks.
909
+ # Corresponds to the JSON property `fileUris`
910
+ # @return [Array<String>]
911
+ attr_accessor :file_uris
912
+
705
913
  def initialize(**args)
706
914
  update!(**args)
707
915
  end
708
916
 
709
917
  # Update properties of this object
710
918
  def update!(**args)
711
- @args = args[:args] if args.key?(:args)
712
- @file_uris = args[:file_uris] if args.key?(:file_uris)
713
919
  @main_class = args[:main_class] if args.key?(:main_class)
714
920
  @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
715
921
  @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
716
922
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
717
923
  @logging_config = args[:logging_config] if args.key?(:logging_config)
718
924
  @properties = args[:properties] if args.key?(:properties)
925
+ @args = args[:args] if args.key?(:args)
926
+ @file_uris = args[:file_uris] if args.key?(:file_uris)
719
927
  end
720
928
  end
721
929
 
@@ -723,17 +931,6 @@ module Google
723
931
  class JobStatus
724
932
  include Google::Apis::Core::Hashable
725
933
 
726
- # Output-only. Additional state information, which includes status reported by
727
- # the agent.
728
- # Corresponds to the JSON property `substate`
729
- # @return [String]
730
- attr_accessor :substate
731
-
732
- # Output-only. The time when this state was entered.
733
- # Corresponds to the JSON property `stateStartTime`
734
- # @return [String]
735
- attr_accessor :state_start_time
736
-
737
934
  # Output-only. Optional job state details, such as an error description if the
738
935
  # state is <code>ERROR</code>.
739
936
  # Corresponds to the JSON property `details`
@@ -745,16 +942,27 @@ module Google
745
942
  # @return [String]
746
943
  attr_accessor :state
747
944
 
945
+ # Output-only. Additional state information, which includes status reported by
946
+ # the agent.
947
+ # Corresponds to the JSON property `substate`
948
+ # @return [String]
949
+ attr_accessor :substate
950
+
951
+ # Output-only. The time when this state was entered.
952
+ # Corresponds to the JSON property `stateStartTime`
953
+ # @return [String]
954
+ attr_accessor :state_start_time
955
+
748
956
  def initialize(**args)
749
957
  update!(**args)
750
958
  end
751
959
 
752
960
  # Update properties of this object
753
961
  def update!(**args)
754
- @substate = args[:substate] if args.key?(:substate)
755
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
756
962
  @details = args[:details] if args.key?(:details)
757
963
  @state = args[:state] if args.key?(:state)
964
+ @substate = args[:substate] if args.key?(:substate)
965
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
758
966
  end
759
967
  end
760
968
 
@@ -828,14 +1036,6 @@ module Google
828
1036
  class HadoopJob
829
1037
  include Google::Apis::Core::Hashable
830
1038
 
831
- # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
832
- # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
833
- # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
834
- # mapreduce-examples.jar'
835
- # Corresponds to the JSON property `mainJarFileUri`
836
- # @return [String]
837
- attr_accessor :main_jar_file_uri
838
-
839
1039
  # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and
840
1040
  # tasks.
841
1041
  # Corresponds to the JSON property `jarFileUris`
@@ -882,13 +1082,20 @@ module Google
882
1082
  # @return [Array<String>]
883
1083
  attr_accessor :archive_uris
884
1084
 
1085
+ # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
1086
+ # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
1087
+ # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
1088
+ # mapreduce-examples.jar'
1089
+ # Corresponds to the JSON property `mainJarFileUri`
1090
+ # @return [String]
1091
+ attr_accessor :main_jar_file_uri
1092
+
885
1093
  def initialize(**args)
886
1094
  update!(**args)
887
1095
  end
888
1096
 
889
1097
  # Update properties of this object
890
1098
  def update!(**args)
891
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
892
1099
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
893
1100
  @logging_config = args[:logging_config] if args.key?(:logging_config)
894
1101
  @properties = args[:properties] if args.key?(:properties)
@@ -896,6 +1103,7 @@ module Google
896
1103
  @file_uris = args[:file_uris] if args.key?(:file_uris)
897
1104
  @main_class = args[:main_class] if args.key?(:main_class)
898
1105
  @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1106
+ @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
899
1107
  end
900
1108
  end
901
1109
 
@@ -937,6 +1145,16 @@ module Google
937
1145
  class YarnApplication
938
1146
  include Google::Apis::Core::Hashable
939
1147
 
1148
+ # Required. The application state.
1149
+ # Corresponds to the JSON property `state`
1150
+ # @return [String]
1151
+ attr_accessor :state
1152
+
1153
+ # Required. The application name.
1154
+ # Corresponds to the JSON property `name`
1155
+ # @return [String]
1156
+ attr_accessor :name
1157
+
940
1158
  # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
941
1159
  # TimelineServer that provides application-specific information. The URL uses
942
1160
  # the internal hostname, and requires a proxy server for resolution and,
@@ -950,26 +1168,16 @@ module Google
950
1168
  # @return [Float]
951
1169
  attr_accessor :progress
952
1170
 
953
- # Required. The application state.
954
- # Corresponds to the JSON property `state`
955
- # @return [String]
956
- attr_accessor :state
957
-
958
- # Required. The application name.
959
- # Corresponds to the JSON property `name`
960
- # @return [String]
961
- attr_accessor :name
962
-
963
1171
  def initialize(**args)
964
1172
  update!(**args)
965
1173
  end
966
1174
 
967
1175
  # Update properties of this object
968
1176
  def update!(**args)
969
- @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
970
- @progress = args[:progress] if args.key?(:progress)
971
1177
  @state = args[:state] if args.key?(:state)
972
1178
  @name = args[:name] if args.key?(:name)
1179
+ @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
1180
+ @progress = args[:progress] if args.key?(:progress)
973
1181
  end
974
1182
  end
975
1183
 
@@ -990,11 +1198,6 @@ module Google
990
1198
  class DiskConfig
991
1199
  include Google::Apis::Core::Hashable
992
1200
 
993
- # Optional. Size in GB of the boot disk (default is 500GB).
994
- # Corresponds to the JSON property `bootDiskSizeGb`
995
- # @return [Fixnum]
996
- attr_accessor :boot_disk_size_gb
997
-
998
1201
  # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
999
1202
  # attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
1000
1203
  # apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
@@ -1004,14 +1207,19 @@ module Google
1004
1207
  # @return [Fixnum]
1005
1208
  attr_accessor :num_local_ssds
1006
1209
 
1210
+ # Optional. Size in GB of the boot disk (default is 500GB).
1211
+ # Corresponds to the JSON property `bootDiskSizeGb`
1212
+ # @return [Fixnum]
1213
+ attr_accessor :boot_disk_size_gb
1214
+
1007
1215
  def initialize(**args)
1008
1216
  update!(**args)
1009
1217
  end
1010
1218
 
1011
1219
  # Update properties of this object
1012
1220
  def update!(**args)
1013
- @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
1014
1221
  @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
1222
+ @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
1015
1223
  end
1016
1224
  end
1017
1225
 
@@ -1019,11 +1227,6 @@ module Google
1019
1227
  class ClusterOperationMetadata
1020
1228
  include Google::Apis::Core::Hashable
1021
1229
 
1022
- # Output-only. Labels associated with the operation
1023
- # Corresponds to the JSON property `labels`
1024
- # @return [Hash<String,String>]
1025
- attr_accessor :labels
1026
-
1027
1230
  # The status of the operation.
1028
1231
  # Corresponds to the JSON property `status`
1029
1232
  # @return [Google::Apis::DataprocV1::ClusterOperationStatus]
@@ -1059,13 +1262,17 @@ module Google
1059
1262
  # @return [Array<String>]
1060
1263
  attr_accessor :warnings
1061
1264
 
1265
+ # Output-only. Labels associated with the operation
1266
+ # Corresponds to the JSON property `labels`
1267
+ # @return [Hash<String,String>]
1268
+ attr_accessor :labels
1269
+
1062
1270
  def initialize(**args)
1063
1271
  update!(**args)
1064
1272
  end
1065
1273
 
1066
1274
  # Update properties of this object
1067
1275
  def update!(**args)
1068
- @labels = args[:labels] if args.key?(:labels)
1069
1276
  @status = args[:status] if args.key?(:status)
1070
1277
  @status_history = args[:status_history] if args.key?(:status_history)
1071
1278
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
@@ -1073,6 +1280,7 @@ module Google
1073
1280
  @operation_type = args[:operation_type] if args.key?(:operation_type)
1074
1281
  @description = args[:description] if args.key?(:description)
1075
1282
  @warnings = args[:warnings] if args.key?(:warnings)
1283
+ @labels = args[:labels] if args.key?(:labels)
1076
1284
  end
1077
1285
  end
1078
1286
 
@@ -1081,18 +1289,18 @@ module Google
1081
1289
  class HiveJob
1082
1290
  include Google::Apis::Core::Hashable
1083
1291
 
1084
- # Optional. Mapping of query variable names to values (equivalent to the Hive
1085
- # command: SET name="value";).
1086
- # Corresponds to the JSON property `scriptVariables`
1087
- # @return [Hash<String,String>]
1088
- attr_accessor :script_variables
1089
-
1090
1292
  # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server
1091
1293
  # and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
1092
1294
  # Corresponds to the JSON property `jarFileUris`
1093
1295
  # @return [Array<String>]
1094
1296
  attr_accessor :jar_file_uris
1095
1297
 
1298
+ # Optional. Mapping of query variable names to values (equivalent to the Hive
1299
+ # command: SET name="value";).
1300
+ # Corresponds to the JSON property `scriptVariables`
1301
+ # @return [Hash<String,String>]
1302
+ attr_accessor :script_variables
1303
+
1096
1304
  # Optional. A mapping of property names and values, used to configure Hive.
1097
1305
  # Properties that conflict with values set by the Cloud Dataproc API may be
1098
1306
  # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
@@ -1125,8 +1333,8 @@ module Google
1125
1333
 
1126
1334
  # Update properties of this object
1127
1335
  def update!(**args)
1128
- @script_variables = args[:script_variables] if args.key?(:script_variables)
1129
1336
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1337
+ @script_variables = args[:script_variables] if args.key?(:script_variables)
1130
1338
  @properties = args[:properties] if args.key?(:properties)
1131
1339
  @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
1132
1340
  @query_list = args[:query_list] if args.key?(:query_list)
@@ -1177,6 +1385,18 @@ module Google
1177
1385
  class ClusterConfig
1178
1386
  include Google::Apis::Core::Hashable
1179
1387
 
1388
+ # Optional. The config settings for Google Compute Engine resources in an
1389
+ # instance group, such as a master or worker group.
1390
+ # Corresponds to the JSON property `masterConfig`
1391
+ # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1392
+ attr_accessor :master_config
1393
+
1394
+ # Optional. The config settings for Google Compute Engine resources in an
1395
+ # instance group, such as a master or worker group.
1396
+ # Corresponds to the JSON property `secondaryWorkerConfig`
1397
+ # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1398
+ attr_accessor :secondary_worker_config
1399
+
1180
1400
  # Optional. Commands to execute on each node after config is completed. By
1181
1401
  # default, executables are run on master and all worker nodes. You can test a
1182
1402
  # node's role metadata to run an executable on a master or worker node, as shown
@@ -1219,31 +1439,19 @@ module Google
1219
1439
  # @return [Google::Apis::DataprocV1::SoftwareConfig]
1220
1440
  attr_accessor :software_config
1221
1441
 
1222
- # Optional. The config settings for Google Compute Engine resources in an
1223
- # instance group, such as a master or worker group.
1224
- # Corresponds to the JSON property `masterConfig`
1225
- # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1226
- attr_accessor :master_config
1227
-
1228
- # Optional. The config settings for Google Compute Engine resources in an
1229
- # instance group, such as a master or worker group.
1230
- # Corresponds to the JSON property `secondaryWorkerConfig`
1231
- # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1232
- attr_accessor :secondary_worker_config
1233
-
1234
1442
  def initialize(**args)
1235
1443
  update!(**args)
1236
1444
  end
1237
1445
 
1238
1446
  # Update properties of this object
1239
1447
  def update!(**args)
1448
+ @master_config = args[:master_config] if args.key?(:master_config)
1449
+ @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
1240
1450
  @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
1241
1451
  @config_bucket = args[:config_bucket] if args.key?(:config_bucket)
1242
1452
  @worker_config = args[:worker_config] if args.key?(:worker_config)
1243
1453
  @gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
1244
1454
  @software_config = args[:software_config] if args.key?(:software_config)
1245
- @master_config = args[:master_config] if args.key?(:master_config)
1246
- @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
1247
1455
  end
1248
1456
  end
1249
1457
 
@@ -1373,8 +1581,12 @@ module Google
1373
1581
  attr_accessor :service_account
1374
1582
 
1375
1583
  # Optional. The Google Compute Engine subnetwork to be used for machine
1376
- # communications. Cannot be specified with network_uri. Example: https://www.
1377
- # googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0.
1584
+ # communications. Cannot be specified with network_uri.A full URL, partial URI,
1585
+ # or short name are valid. Examples:
1586
+ # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/
1587
+ # sub0
1588
+ # projects/[project_id]/regions/us-east1/sub0
1589
+ # sub0
1378
1590
  # Corresponds to the JSON property `subnetworkUri`
1379
1591
  # @return [String]
1380
1592
  attr_accessor :subnetwork_uri
@@ -1383,15 +1595,24 @@ module Google
1383
1595
  # communications. Cannot be specified with subnetwork_uri. If neither
1384
1596
  # network_uri nor subnetwork_uri is specified, the "default" network of the
1385
1597
  # project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using
1386
- # Subnetworks for more information). Example: https://www.googleapis.com/compute/
1387
- # v1/projects/[project_id]/regions/global/default.
1598
+ # Subnetworks for more information).A full URL, partial URI, or short name are
1599
+ # valid. Examples:
1600
+ # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
1601
+ # default
1602
+ # projects/[project_id]/regions/global/default
1603
+ # default
1388
1604
  # Corresponds to the JSON property `networkUri`
1389
1605
  # @return [String]
1390
1606
  attr_accessor :network_uri
1391
1607
 
1392
- # Required. The zone where the Google Compute Engine cluster will be located.
1393
- # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[
1394
- # zone].
1608
+ # Optional. The zone where the Google Compute Engine cluster will be located. On
1609
+ # a create request, it is required in the "global" region. If omitted in a non-
1610
+ # global Cloud Dataproc region, the service will pick a zone in the
1611
+ # corresponding GCE region. On a get request, zone will always be present.A full
1612
+ # URL, partial URI, or short name are valid. Examples:
1613
+ # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
1614
+ # projects/[project_id]/zones/[zone]
1615
+ # us-central1-f
1395
1616
  # Corresponds to the JSON property `zoneUri`
1396
1617
  # @return [String]
1397
1618
  attr_accessor :zone_uri
@@ -1419,24 +1640,24 @@ module Google
1419
1640
  class ClusterMetrics
1420
1641
  include Google::Apis::Core::Hashable
1421
1642
 
1422
- # The YARN metrics.
1423
- # Corresponds to the JSON property `yarnMetrics`
1424
- # @return [Hash<String,Fixnum>]
1425
- attr_accessor :yarn_metrics
1426
-
1427
1643
  # The HDFS metrics.
1428
1644
  # Corresponds to the JSON property `hdfsMetrics`
1429
1645
  # @return [Hash<String,Fixnum>]
1430
1646
  attr_accessor :hdfs_metrics
1431
1647
 
1648
+ # The YARN metrics.
1649
+ # Corresponds to the JSON property `yarnMetrics`
1650
+ # @return [Hash<String,Fixnum>]
1651
+ attr_accessor :yarn_metrics
1652
+
1432
1653
  def initialize(**args)
1433
1654
  update!(**args)
1434
1655
  end
1435
1656
 
1436
1657
  # Update properties of this object
1437
1658
  def update!(**args)
1438
- @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
1439
1659
  @hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
1660
+ @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
1440
1661
  end
1441
1662
  end
1442
1663
 
@@ -1445,26 +1666,29 @@ module Google
1445
1666
  class AcceleratorConfig
1446
1667
  include Google::Apis::Core::Hashable
1447
1668
 
1448
- # Full or partial URI of the accelerator type resource to expose to this
1449
- # instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/
1450
- # beta/acceleratorTypes)
1451
- # Corresponds to the JSON property `acceleratorTypeUri`
1452
- # @return [String]
1453
- attr_accessor :accelerator_type_uri
1454
-
1455
1669
  # The number of the accelerator cards of this type exposed to this instance.
1456
1670
  # Corresponds to the JSON property `acceleratorCount`
1457
1671
  # @return [Fixnum]
1458
1672
  attr_accessor :accelerator_count
1459
1673
 
1674
+ # Full URL, partial URI, or short name of the accelerator type resource to
1675
+ # expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/
1676
+ # docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/
1677
+ # compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
1678
+ # tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
1679
+ # tesla-k80 * nvidia-tesla-k80
1680
+ # Corresponds to the JSON property `acceleratorTypeUri`
1681
+ # @return [String]
1682
+ attr_accessor :accelerator_type_uri
1683
+
1460
1684
  def initialize(**args)
1461
1685
  update!(**args)
1462
1686
  end
1463
1687
 
1464
1688
  # Update properties of this object
1465
1689
  def update!(**args)
1466
- @accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri)
1467
1690
  @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
1691
+ @accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri)
1468
1692
  end
1469
1693
  end
1470
1694
 
@@ -1488,211 +1712,6 @@ module Google
1488
1712
  @driver_log_levels = args[:driver_log_levels] if args.key?(:driver_log_levels)
1489
1713
  end
1490
1714
  end
1491
-
1492
- # This resource represents a long-running operation that is the result of a
1493
- # network API call.
1494
- class Operation
1495
- include Google::Apis::Core::Hashable
1496
-
1497
- # If the value is false, it means the operation is still in progress. If true,
1498
- # the operation is completed, and either error or response is available.
1499
- # Corresponds to the JSON property `done`
1500
- # @return [Boolean]
1501
- attr_accessor :done
1502
- alias_method :done?, :done
1503
-
1504
- # The normal response of the operation in case of success. If the original
1505
- # method returns no data on success, such as Delete, the response is google.
1506
- # protobuf.Empty. If the original method is standard Get/Create/Update, the
1507
- # response should be the resource. For other methods, the response should have
1508
- # the type XxxResponse, where Xxx is the original method name. For example, if
1509
- # the original method name is TakeSnapshot(), the inferred response type is
1510
- # TakeSnapshotResponse.
1511
- # Corresponds to the JSON property `response`
1512
- # @return [Hash<String,Object>]
1513
- attr_accessor :response
1514
-
1515
- # The server-assigned name, which is only unique within the same service that
1516
- # originally returns it. If you use the default HTTP mapping, the name should
1517
- # have the format of operations/some/unique/name.
1518
- # Corresponds to the JSON property `name`
1519
- # @return [String]
1520
- attr_accessor :name
1521
-
1522
- # The Status type defines a logical error model that is suitable for different
1523
- # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1524
- # (https://github.com/grpc). The error model is designed to be:
1525
- # Simple to use and understand for most users
1526
- # Flexible enough to meet unexpected needsOverviewThe Status message contains
1527
- # three pieces of data: error code, error message, and error details. The error
1528
- # code should be an enum value of google.rpc.Code, but it may accept additional
1529
- # error codes if needed. The error message should be a developer-facing English
1530
- # message that helps developers understand and resolve the error. If a localized
1531
- # user-facing error message is needed, put the localized message in the error
1532
- # details or localize it in the client. The optional error details may contain
1533
- # arbitrary information about the error. There is a predefined set of error
1534
- # detail types in the package google.rpc that can be used for common error
1535
- # conditions.Language mappingThe Status message is the logical representation of
1536
- # the error model, but it is not necessarily the actual wire format. When the
1537
- # Status message is exposed in different client libraries and different wire
1538
- # protocols, it can be mapped differently. For example, it will likely be mapped
1539
- # to some exceptions in Java, but more likely mapped to some error codes in C.
1540
- # Other usesThe error model and the Status message can be used in a variety of
1541
- # environments, either with or without APIs, to provide a consistent developer
1542
- # experience across different environments.Example uses of this error model
1543
- # include:
1544
- # Partial errors. If a service needs to return partial errors to the client, it
1545
- # may embed the Status in the normal response to indicate the partial errors.
1546
- # Workflow errors. A typical workflow has multiple steps. Each step may have a
1547
- # Status message for error reporting.
1548
- # Batch operations. If a client uses batch request and batch response, the
1549
- # Status message should be used directly inside batch response, one for each
1550
- # error sub-response.
1551
- # Asynchronous operations. If an API call embeds asynchronous operation results
1552
- # in its response, the status of those operations should be represented directly
1553
- # using the Status message.
1554
- # Logging. If some API errors are stored in logs, the message Status could be
1555
- # used directly after any stripping needed for security/privacy reasons.
1556
- # Corresponds to the JSON property `error`
1557
- # @return [Google::Apis::DataprocV1::Status]
1558
- attr_accessor :error
1559
-
1560
- # Service-specific metadata associated with the operation. It typically contains
1561
- # progress information and common metadata such as create time. Some services
1562
- # might not provide such metadata. Any method that returns a long-running
1563
- # operation should document the metadata type, if any.
1564
- # Corresponds to the JSON property `metadata`
1565
- # @return [Hash<String,Object>]
1566
- attr_accessor :metadata
1567
-
1568
- def initialize(**args)
1569
- update!(**args)
1570
- end
1571
-
1572
- # Update properties of this object
1573
- def update!(**args)
1574
- @done = args[:done] if args.key?(:done)
1575
- @response = args[:response] if args.key?(:response)
1576
- @name = args[:name] if args.key?(:name)
1577
- @error = args[:error] if args.key?(:error)
1578
- @metadata = args[:metadata] if args.key?(:metadata)
1579
- end
1580
- end
1581
-
1582
- # Encapsulates the full scoping used to reference a job.
1583
- class JobReference
1584
- include Google::Apis::Core::Hashable
1585
-
1586
- # Optional. The job ID, which must be unique within the project. The job ID is
1587
- # generated by the server upon job submission or provided by the user as a means
1588
- # to perform retries without creating duplicate jobs. The ID must contain only
1589
- # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
1590
- # maximum length is 100 characters.
1591
- # Corresponds to the JSON property `jobId`
1592
- # @return [String]
1593
- attr_accessor :job_id
1594
-
1595
- # Required. The ID of the Google Cloud Platform project that the job belongs to.
1596
- # Corresponds to the JSON property `projectId`
1597
- # @return [String]
1598
- attr_accessor :project_id
1599
-
1600
- def initialize(**args)
1601
- update!(**args)
1602
- end
1603
-
1604
- # Update properties of this object
1605
- def update!(**args)
1606
- @job_id = args[:job_id] if args.key?(:job_id)
1607
- @project_id = args[:project_id] if args.key?(:project_id)
1608
- end
1609
- end
1610
-
1611
- # A request to submit a job.
1612
- class SubmitJobRequest
1613
- include Google::Apis::Core::Hashable
1614
-
1615
- # A Cloud Dataproc job resource.
1616
- # Corresponds to the JSON property `job`
1617
- # @return [Google::Apis::DataprocV1::Job]
1618
- attr_accessor :job
1619
-
1620
- def initialize(**args)
1621
- update!(**args)
1622
- end
1623
-
1624
- # Update properties of this object
1625
- def update!(**args)
1626
- @job = args[:job] if args.key?(:job)
1627
- end
1628
- end
1629
-
1630
- # The Status type defines a logical error model that is suitable for different
1631
- # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1632
- # (https://github.com/grpc). The error model is designed to be:
1633
- # Simple to use and understand for most users
1634
- # Flexible enough to meet unexpected needsOverviewThe Status message contains
1635
- # three pieces of data: error code, error message, and error details. The error
1636
- # code should be an enum value of google.rpc.Code, but it may accept additional
1637
- # error codes if needed. The error message should be a developer-facing English
1638
- # message that helps developers understand and resolve the error. If a localized
1639
- # user-facing error message is needed, put the localized message in the error
1640
- # details or localize it in the client. The optional error details may contain
1641
- # arbitrary information about the error. There is a predefined set of error
1642
- # detail types in the package google.rpc that can be used for common error
1643
- # conditions.Language mappingThe Status message is the logical representation of
1644
- # the error model, but it is not necessarily the actual wire format. When the
1645
- # Status message is exposed in different client libraries and different wire
1646
- # protocols, it can be mapped differently. For example, it will likely be mapped
1647
- # to some exceptions in Java, but more likely mapped to some error codes in C.
1648
- # Other usesThe error model and the Status message can be used in a variety of
1649
- # environments, either with or without APIs, to provide a consistent developer
1650
- # experience across different environments.Example uses of this error model
1651
- # include:
1652
- # Partial errors. If a service needs to return partial errors to the client, it
1653
- # may embed the Status in the normal response to indicate the partial errors.
1654
- # Workflow errors. A typical workflow has multiple steps. Each step may have a
1655
- # Status message for error reporting.
1656
- # Batch operations. If a client uses batch request and batch response, the
1657
- # Status message should be used directly inside batch response, one for each
1658
- # error sub-response.
1659
- # Asynchronous operations. If an API call embeds asynchronous operation results
1660
- # in its response, the status of those operations should be represented directly
1661
- # using the Status message.
1662
- # Logging. If some API errors are stored in logs, the message Status could be
1663
- # used directly after any stripping needed for security/privacy reasons.
1664
- class Status
1665
- include Google::Apis::Core::Hashable
1666
-
1667
- # A list of messages that carry the error details. There will be a common set of
1668
- # message types for APIs to use.
1669
- # Corresponds to the JSON property `details`
1670
- # @return [Array<Hash<String,Object>>]
1671
- attr_accessor :details
1672
-
1673
- # The status code, which should be an enum value of google.rpc.Code.
1674
- # Corresponds to the JSON property `code`
1675
- # @return [Fixnum]
1676
- attr_accessor :code
1677
-
1678
- # A developer-facing error message, which should be in English. Any user-facing
1679
- # error message should be localized and sent in the google.rpc.Status.details
1680
- # field, or localized by the client.
1681
- # Corresponds to the JSON property `message`
1682
- # @return [String]
1683
- attr_accessor :message
1684
-
1685
- def initialize(**args)
1686
- update!(**args)
1687
- end
1688
-
1689
- # Update properties of this object
1690
- def update!(**args)
1691
- @details = args[:details] if args.key?(:details)
1692
- @code = args[:code] if args.key?(:code)
1693
- @message = args[:message] if args.key?(:message)
1694
- end
1695
- end
1696
1715
  end
1697
1716
  end
1698
1717
  end