google-api-client 0.11.2 → 0.11.3

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 (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/dataproc/
26
26
  module DataprocV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170502'
28
+ REVISION = '20170515'
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,35 +22,6 @@ module Google
22
22
  module Apis
23
23
  module DataprocV1
24
24
 
25
- # Encapsulates the full scoping used to reference a job.
26
- class JobReference
27
- include Google::Apis::Core::Hashable
28
-
29
- # Required. The ID of the Google Cloud Platform project that the job belongs to.
30
- # Corresponds to the JSON property `projectId`
31
- # @return [String]
32
- attr_accessor :project_id
33
-
34
- # Optional. The job ID, which must be unique within the project. The job ID is
35
- # generated by the server upon job submission or provided by the user as a means
36
- # to perform retries without creating duplicate jobs. The ID must contain only
37
- # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
38
- # maximum length is 100 characters.
39
- # Corresponds to the JSON property `jobId`
40
- # @return [String]
41
- attr_accessor :job_id
42
-
43
- def initialize(**args)
44
- update!(**args)
45
- end
46
-
47
- # Update properties of this object
48
- def update!(**args)
49
- @project_id = args[:project_id] if args.key?(:project_id)
50
- @job_id = args[:job_id] if args.key?(:job_id)
51
- end
52
- end
53
-
54
25
  # A request to submit a job.
55
26
  class SubmitJobRequest
56
27
  include Google::Apis::Core::Hashable
@@ -82,7 +53,7 @@ module Google
82
53
  # user-facing error message is needed, put the localized message in the error
83
54
  # details or localize it in the client. The optional error details may contain
84
55
  # arbitrary information about the error. There is a predefined set of error
85
- # detail types in the package google.rpc which can be used for common error
56
+ # detail types in the package google.rpc that can be used for common error
86
57
  # conditions.Language mappingThe Status message is the logical representation of
87
58
  # the error model, but it is not necessarily the actual wire format. When the
88
59
  # Status message is exposed in different client libraries and different wire
@@ -95,7 +66,7 @@ module Google
95
66
  # Partial errors. If a service needs to return partial errors to the client, it
96
67
  # may embed the Status in the normal response to indicate the partial errors.
97
68
  # Workflow errors. A typical workflow has multiple steps. Each step may have a
98
- # Status message for error reporting purpose.
69
+ # Status message for error reporting.
99
70
  # Batch operations. If a client uses batch request and batch response, the
100
71
  # Status message should be used directly inside batch response, one for each
101
72
  # error sub-response.
@@ -107,6 +78,11 @@ module Google
107
78
  class Status
108
79
  include Google::Apis::Core::Hashable
109
80
 
81
+ # The status code, which should be an enum value of google.rpc.Code.
82
+ # Corresponds to the JSON property `code`
83
+ # @return [Fixnum]
84
+ attr_accessor :code
85
+
110
86
  # A developer-facing error message, which should be in English. Any user-facing
111
87
  # error message should be localized and sent in the google.rpc.Status.details
112
88
  # field, or localized by the client.
@@ -120,20 +96,15 @@ module Google
120
96
  # @return [Array<Hash<String,Object>>]
121
97
  attr_accessor :details
122
98
 
123
- # The status code, which should be an enum value of google.rpc.Code.
124
- # Corresponds to the JSON property `code`
125
- # @return [Fixnum]
126
- attr_accessor :code
127
-
128
99
  def initialize(**args)
129
100
  update!(**args)
130
101
  end
131
102
 
132
103
  # Update properties of this object
133
104
  def update!(**args)
105
+ @code = args[:code] if args.key?(:code)
134
106
  @message = args[:message] if args.key?(:message)
135
107
  @details = args[:details] if args.key?(:details)
136
- @code = args[:code] if args.key?(:code)
137
108
  end
138
109
  end
139
110
 
@@ -170,12 +141,6 @@ module Google
170
141
  # @return [Google::Apis::DataprocV1::DiskConfig]
171
142
  attr_accessor :disk_config
172
143
 
173
- # Output-only. The Google Compute Engine image resource used for cluster
174
- # instances. Inferred from SoftwareConfig.image_version.
175
- # Corresponds to the JSON property `imageUri`
176
- # @return [String]
177
- attr_accessor :image_uri
178
-
179
144
  # Required. The Google Compute Engine machine type used for cluster instances.
180
145
  # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-
181
146
  # east1-a/machineTypes/n1-standard-2.
@@ -194,6 +159,12 @@ module Google
194
159
  attr_accessor :is_preemptible
195
160
  alias_method :is_preemptible?, :is_preemptible
196
161
 
162
+ # Output-only. The Google Compute Engine image resource used for cluster
163
+ # instances. Inferred from SoftwareConfig.image_version.
164
+ # Corresponds to the JSON property `imageUri`
165
+ # @return [String]
166
+ attr_accessor :image_uri
167
+
197
168
  # Optional. The list of instance names. Cloud Dataproc derives the names from
198
169
  # cluster_name, num_instances, and the instance group if not set by user (
199
170
  # recommended practice is to let Cloud Dataproc derive the name).
@@ -221,43 +192,16 @@ module Google
221
192
  # Update properties of this object
222
193
  def update!(**args)
223
194
  @disk_config = args[:disk_config] if args.key?(:disk_config)
224
- @image_uri = args[:image_uri] if args.key?(:image_uri)
225
195
  @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
226
196
  @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
227
197
  @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
198
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
228
199
  @instance_names = args[:instance_names] if args.key?(:instance_names)
229
200
  @accelerators = args[:accelerators] if args.key?(:accelerators)
230
201
  @num_instances = args[:num_instances] if args.key?(:num_instances)
231
202
  end
232
203
  end
233
204
 
234
- # A list of jobs in a project.
235
- class ListJobsResponse
236
- include Google::Apis::Core::Hashable
237
-
238
- # Output-only. Jobs list.
239
- # Corresponds to the JSON property `jobs`
240
- # @return [Array<Google::Apis::DataprocV1::Job>]
241
- attr_accessor :jobs
242
-
243
- # Optional. This token is included in the response if there are more results to
244
- # fetch. To fetch additional results, provide this value as the page_token in a
245
- # subsequent <code>ListJobsRequest</code>.
246
- # Corresponds to the JSON property `nextPageToken`
247
- # @return [String]
248
- attr_accessor :next_page_token
249
-
250
- def initialize(**args)
251
- update!(**args)
252
- end
253
-
254
- # Update properties of this object
255
- def update!(**args)
256
- @jobs = args[:jobs] if args.key?(:jobs)
257
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
258
- end
259
- end
260
-
261
205
  # Specifies an executable to run on a fully configured node and a timeout period
262
206
  # for executable completion.
263
207
  class NodeInitializationAction
@@ -287,6 +231,33 @@ module Google
287
231
  end
288
232
  end
289
233
 
234
+ # A list of jobs in a project.
235
+ class ListJobsResponse
236
+ include Google::Apis::Core::Hashable
237
+
238
+ # Optional. This token is included in the response if there are more results to
239
+ # fetch. To fetch additional results, provide this value as the page_token in a
240
+ # subsequent <code>ListJobsRequest</code>.
241
+ # Corresponds to the JSON property `nextPageToken`
242
+ # @return [String]
243
+ attr_accessor :next_page_token
244
+
245
+ # Output-only. Jobs list.
246
+ # Corresponds to the JSON property `jobs`
247
+ # @return [Array<Google::Apis::DataprocV1::Job>]
248
+ attr_accessor :jobs
249
+
250
+ def initialize(**args)
251
+ update!(**args)
252
+ end
253
+
254
+ # Update properties of this object
255
+ def update!(**args)
256
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
257
+ @jobs = args[:jobs] if args.key?(:jobs)
258
+ end
259
+ end
260
+
290
261
  # A request to cancel a job.
291
262
  class CancelJobRequest
292
263
  include Google::Apis::Core::Hashable
@@ -305,6 +276,16 @@ module Google
305
276
  class SparkSqlJob
306
277
  include Google::Apis::Core::Hashable
307
278
 
279
+ # A list of queries to run on a cluster.
280
+ # Corresponds to the JSON property `queryList`
281
+ # @return [Google::Apis::DataprocV1::QueryList]
282
+ attr_accessor :query_list
283
+
284
+ # The HCFS URI of the script that contains SQL queries.
285
+ # Corresponds to the JSON property `queryFileUri`
286
+ # @return [String]
287
+ attr_accessor :query_file_uri
288
+
308
289
  # Optional. Mapping of query variable names to values (equivalent to the Spark
309
290
  # SQL command: SET name="value";).
310
291
  # Corresponds to the JSON property `scriptVariables`
@@ -328,28 +309,18 @@ module Google
328
309
  # @return [Hash<String,String>]
329
310
  attr_accessor :properties
330
311
 
331
- # A list of queries to run on a cluster.
332
- # Corresponds to the JSON property `queryList`
333
- # @return [Google::Apis::DataprocV1::QueryList]
334
- attr_accessor :query_list
335
-
336
- # The HCFS URI of the script that contains SQL queries.
337
- # Corresponds to the JSON property `queryFileUri`
338
- # @return [String]
339
- attr_accessor :query_file_uri
340
-
341
312
  def initialize(**args)
342
313
  update!(**args)
343
314
  end
344
315
 
345
316
  # Update properties of this object
346
317
  def update!(**args)
318
+ @query_list = args[:query_list] if args.key?(:query_list)
319
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
347
320
  @script_variables = args[:script_variables] if args.key?(:script_variables)
348
321
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
349
322
  @logging_config = args[:logging_config] if args.key?(:logging_config)
350
323
  @properties = args[:properties] if args.key?(:properties)
351
- @query_list = args[:query_list] if args.key?(:query_list)
352
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
353
324
  end
354
325
  end
355
326
 
@@ -358,6 +329,27 @@ module Google
358
329
  class Cluster
359
330
  include Google::Apis::Core::Hashable
360
331
 
332
+ # Optional. The labels to associate with this cluster. Label keys must contain 1
333
+ # to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
334
+ # rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
335
+ # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
336
+ # . No more than 32 labels can be associated with a cluster.
337
+ # Corresponds to the JSON property `labels`
338
+ # @return [Hash<String,String>]
339
+ attr_accessor :labels
340
+
341
+ # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
342
+ # This report is available for testing purposes only. It may be changed before
343
+ # final release.
344
+ # Corresponds to the JSON property `metrics`
345
+ # @return [Google::Apis::DataprocV1::ClusterMetrics]
346
+ attr_accessor :metrics
347
+
348
+ # The status of a cluster and its instances.
349
+ # Corresponds to the JSON property `status`
350
+ # @return [Google::Apis::DataprocV1::ClusterStatus]
351
+ attr_accessor :status
352
+
361
353
  # Output-only. The previous cluster status.
362
354
  # Corresponds to the JSON property `statusHistory`
363
355
  # @return [Array<Google::Apis::DataprocV1::ClusterStatus>]
@@ -368,58 +360,37 @@ module Google
368
360
  # @return [Google::Apis::DataprocV1::ClusterConfig]
369
361
  attr_accessor :config
370
362
 
371
- # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc
372
- # generates this value when it creates the cluster.
373
- # Corresponds to the JSON property `clusterUuid`
374
- # @return [String]
375
- attr_accessor :cluster_uuid
376
-
377
363
  # Required. The cluster name. Cluster names within a project must be unique.
378
364
  # Names of deleted clusters can be reused.
379
365
  # Corresponds to the JSON property `clusterName`
380
366
  # @return [String]
381
367
  attr_accessor :cluster_name
382
368
 
369
+ # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc
370
+ # generates this value when it creates the cluster.
371
+ # Corresponds to the JSON property `clusterUuid`
372
+ # @return [String]
373
+ attr_accessor :cluster_uuid
374
+
383
375
  # Required. The Google Cloud Platform project ID that the cluster belongs to.
384
376
  # Corresponds to the JSON property `projectId`
385
377
  # @return [String]
386
378
  attr_accessor :project_id
387
379
 
388
- # Optional. The labels to associate with this cluster. Label keys must contain 1
389
- # to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
390
- # rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
391
- # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
392
- # . No more than 32 labels can be associated with a cluster.
393
- # Corresponds to the JSON property `labels`
394
- # @return [Hash<String,String>]
395
- attr_accessor :labels
396
-
397
- # The status of a cluster and its instances.
398
- # Corresponds to the JSON property `status`
399
- # @return [Google::Apis::DataprocV1::ClusterStatus]
400
- attr_accessor :status
401
-
402
- # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
403
- # This report is available for testing purposes only. It may be changed before
404
- # final release.
405
- # Corresponds to the JSON property `metrics`
406
- # @return [Google::Apis::DataprocV1::ClusterMetrics]
407
- attr_accessor :metrics
408
-
409
380
  def initialize(**args)
410
381
  update!(**args)
411
382
  end
412
383
 
413
384
  # Update properties of this object
414
385
  def update!(**args)
386
+ @labels = args[:labels] if args.key?(:labels)
387
+ @metrics = args[:metrics] if args.key?(:metrics)
388
+ @status = args[:status] if args.key?(:status)
415
389
  @status_history = args[:status_history] if args.key?(:status_history)
416
390
  @config = args[:config] if args.key?(:config)
417
- @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
418
391
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
392
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
419
393
  @project_id = args[:project_id] if args.key?(:project_id)
420
- @labels = args[:labels] if args.key?(:labels)
421
- @status = args[:status] if args.key?(:status)
422
- @metrics = args[:metrics] if args.key?(:metrics)
423
394
  end
424
395
  end
425
396
 
@@ -452,6 +423,41 @@ module Google
452
423
  class OperationMetadata
453
424
  include Google::Apis::Core::Hashable
454
425
 
426
+ # Output-only Short description of operation.
427
+ # Corresponds to the JSON property `description`
428
+ # @return [String]
429
+ attr_accessor :description
430
+
431
+ # The status of the operation.
432
+ # Corresponds to the JSON property `status`
433
+ # @return [Google::Apis::DataprocV1::OperationStatus]
434
+ attr_accessor :status
435
+
436
+ # A message containing any operation metadata details.
437
+ # Corresponds to the JSON property `details`
438
+ # @return [String]
439
+ attr_accessor :details
440
+
441
+ # A message containing the operation state.
442
+ # Corresponds to the JSON property `state`
443
+ # @return [String]
444
+ attr_accessor :state
445
+
446
+ # Name of the cluster for the operation.
447
+ # Corresponds to the JSON property `clusterName`
448
+ # @return [String]
449
+ attr_accessor :cluster_name
450
+
451
+ # Cluster UUId for the operation.
452
+ # Corresponds to the JSON property `clusterUuid`
453
+ # @return [String]
454
+ attr_accessor :cluster_uuid
455
+
456
+ # A message containing the detailed operation state.
457
+ # Corresponds to the JSON property `innerState`
458
+ # @return [String]
459
+ attr_accessor :inner_state
460
+
455
461
  # The time that the operation completed.
456
462
  # Corresponds to the JSON property `endTime`
457
463
  # @return [String]
@@ -482,60 +488,25 @@ module Google
482
488
  # @return [String]
483
489
  attr_accessor :operation_type
484
490
 
485
- # Output-only Short description of operation.
486
- # Corresponds to the JSON property `description`
487
- # @return [String]
488
- attr_accessor :description
489
-
490
- # The status of the operation.
491
- # Corresponds to the JSON property `status`
492
- # @return [Google::Apis::DataprocV1::OperationStatus]
493
- attr_accessor :status
494
-
495
- # A message containing the operation state.
496
- # Corresponds to the JSON property `state`
497
- # @return [String]
498
- attr_accessor :state
499
-
500
- # A message containing any operation metadata details.
501
- # Corresponds to the JSON property `details`
502
- # @return [String]
503
- attr_accessor :details
504
-
505
- # Cluster UUId for the operation.
506
- # Corresponds to the JSON property `clusterUuid`
507
- # @return [String]
508
- attr_accessor :cluster_uuid
509
-
510
- # Name of the cluster for the operation.
511
- # Corresponds to the JSON property `clusterName`
512
- # @return [String]
513
- attr_accessor :cluster_name
514
-
515
- # A message containing the detailed operation state.
516
- # Corresponds to the JSON property `innerState`
517
- # @return [String]
518
- attr_accessor :inner_state
519
-
520
- def initialize(**args)
521
- update!(**args)
522
- end
491
+ def initialize(**args)
492
+ update!(**args)
493
+ end
523
494
 
524
495
  # Update properties of this object
525
496
  def update!(**args)
497
+ @description = args[:description] if args.key?(:description)
498
+ @status = args[:status] if args.key?(:status)
499
+ @details = args[:details] if args.key?(:details)
500
+ @state = args[:state] if args.key?(:state)
501
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
502
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
503
+ @inner_state = args[:inner_state] if args.key?(:inner_state)
526
504
  @end_time = args[:end_time] if args.key?(:end_time)
527
505
  @start_time = args[:start_time] if args.key?(:start_time)
528
506
  @warnings = args[:warnings] if args.key?(:warnings)
529
507
  @insert_time = args[:insert_time] if args.key?(:insert_time)
530
508
  @status_history = args[:status_history] if args.key?(:status_history)
531
509
  @operation_type = args[:operation_type] if args.key?(:operation_type)
532
- @description = args[:description] if args.key?(:description)
533
- @status = args[:status] if args.key?(:status)
534
- @state = args[:state] if args.key?(:state)
535
- @details = args[:details] if args.key?(:details)
536
- @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
537
- @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
538
- @inner_state = args[:inner_state] if args.key?(:inner_state)
539
510
  end
540
511
  end
541
512
 
@@ -569,6 +540,13 @@ module Google
569
540
  class SoftwareConfig
570
541
  include Google::Apis::Core::Hashable
571
542
 
543
+ # Optional. The version of software inside the cluster. It must match the
544
+ # regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest
545
+ # version (see Cloud Dataproc Versioning).
546
+ # Corresponds to the JSON property `imageVersion`
547
+ # @return [String]
548
+ attr_accessor :image_version
549
+
572
550
  # Optional. The properties to set on daemon config files.Property keys are
573
551
  # specified in prefix:property format, such as core:fs.defaultFS. The following
574
552
  # are supported prefixes and their mappings:
@@ -585,59 +563,14 @@ module Google
585
563
  # @return [Hash<String,String>]
586
564
  attr_accessor :properties
587
565
 
588
- # Optional. The version of software inside the cluster. It must match the
589
- # regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest
590
- # version (see Cloud Dataproc Versioning).
591
- # Corresponds to the JSON property `imageVersion`
592
- # @return [String]
593
- attr_accessor :image_version
594
-
595
566
  def initialize(**args)
596
567
  update!(**args)
597
568
  end
598
569
 
599
570
  # Update properties of this object
600
571
  def update!(**args)
601
- @properties = args[:properties] if args.key?(:properties)
602
572
  @image_version = args[:image_version] if args.key?(:image_version)
603
- end
604
- end
605
-
606
- # The status of a cluster and its instances.
607
- class ClusterStatus
608
- include Google::Apis::Core::Hashable
609
-
610
- # Output-only. The cluster's state.
611
- # Corresponds to the JSON property `state`
612
- # @return [String]
613
- attr_accessor :state
614
-
615
- # Output-only. Time when this state was entered.
616
- # Corresponds to the JSON property `stateStartTime`
617
- # @return [String]
618
- attr_accessor :state_start_time
619
-
620
- # Output-only. Additional state information that includes status reported by the
621
- # agent.
622
- # Corresponds to the JSON property `substate`
623
- # @return [String]
624
- attr_accessor :substate
625
-
626
- # Output-only. Optional details of cluster's state.
627
- # Corresponds to the JSON property `detail`
628
- # @return [String]
629
- attr_accessor :detail
630
-
631
- def initialize(**args)
632
- update!(**args)
633
- end
634
-
635
- # Update properties of this object
636
- def update!(**args)
637
- @state = args[:state] if args.key?(:state)
638
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
639
- @substate = args[:substate] if args.key?(:substate)
640
- @detail = args[:detail] if args.key?(:detail)
573
+ @properties = args[:properties] if args.key?(:properties)
641
574
  end
642
575
  end
643
576
 
@@ -646,6 +579,23 @@ module Google
646
579
  class PigJob
647
580
  include Google::Apis::Core::Hashable
648
581
 
582
+ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
583
+ # Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
584
+ # Corresponds to the JSON property `jarFileUris`
585
+ # @return [Array<String>]
586
+ attr_accessor :jar_file_uris
587
+
588
+ # Optional. Mapping of query variable names to values (equivalent to the Pig
589
+ # command: name=[value]).
590
+ # Corresponds to the JSON property `scriptVariables`
591
+ # @return [Hash<String,String>]
592
+ attr_accessor :script_variables
593
+
594
+ # The runtime logging config of the job.
595
+ # Corresponds to the JSON property `loggingConfig`
596
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
597
+ attr_accessor :logging_config
598
+
649
599
  # Optional. A mapping of property names to values, used to configure Pig.
650
600
  # Properties that conflict with values set by the Cloud Dataproc API may be
651
601
  # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
@@ -672,36 +622,57 @@ module Google
672
622
  # @return [Google::Apis::DataprocV1::QueryList]
673
623
  attr_accessor :query_list
674
624
 
675
- # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
676
- # Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
677
- # Corresponds to the JSON property `jarFileUris`
678
- # @return [Array<String>]
679
- attr_accessor :jar_file_uris
680
-
681
- # Optional. Mapping of query variable names to values (equivalent to the Pig
682
- # command: name=[value]).
683
- # Corresponds to the JSON property `scriptVariables`
684
- # @return [Hash<String,String>]
685
- attr_accessor :script_variables
686
-
687
- # The runtime logging config of the job.
688
- # Corresponds to the JSON property `loggingConfig`
689
- # @return [Google::Apis::DataprocV1::LoggingConfig]
690
- attr_accessor :logging_config
691
-
692
625
  def initialize(**args)
693
626
  update!(**args)
694
627
  end
695
628
 
696
629
  # Update properties of this object
697
630
  def update!(**args)
631
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
632
+ @script_variables = args[:script_variables] if args.key?(:script_variables)
633
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
698
634
  @properties = args[:properties] if args.key?(:properties)
699
635
  @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
700
636
  @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
701
637
  @query_list = args[:query_list] if args.key?(:query_list)
702
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
703
- @script_variables = args[:script_variables] if args.key?(:script_variables)
704
- @logging_config = args[:logging_config] if args.key?(:logging_config)
638
+ end
639
+ end
640
+
641
+ # The status of a cluster and its instances.
642
+ class ClusterStatus
643
+ include Google::Apis::Core::Hashable
644
+
645
+ # Output-only. Optional details of cluster's state.
646
+ # Corresponds to the JSON property `detail`
647
+ # @return [String]
648
+ attr_accessor :detail
649
+
650
+ # Output-only. The cluster's state.
651
+ # Corresponds to the JSON property `state`
652
+ # @return [String]
653
+ attr_accessor :state
654
+
655
+ # Output-only. Time when this state was entered.
656
+ # Corresponds to the JSON property `stateStartTime`
657
+ # @return [String]
658
+ attr_accessor :state_start_time
659
+
660
+ # Output-only. Additional state information that includes status reported by the
661
+ # agent.
662
+ # Corresponds to the JSON property `substate`
663
+ # @return [String]
664
+ attr_accessor :substate
665
+
666
+ def initialize(**args)
667
+ update!(**args)
668
+ end
669
+
670
+ # Update properties of this object
671
+ def update!(**args)
672
+ @detail = args[:detail] if args.key?(:detail)
673
+ @state = args[:state] if args.key?(:state)
674
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
675
+ @substate = args[:substate] if args.key?(:substate)
705
676
  end
706
677
  end
707
678
 
@@ -737,17 +708,6 @@ module Google
737
708
  class SparkJob
738
709
  include Google::Apis::Core::Hashable
739
710
 
740
- # The HCFS URI of the jar file that contains the main class.
741
- # Corresponds to the JSON property `mainJarFileUri`
742
- # @return [String]
743
- attr_accessor :main_jar_file_uri
744
-
745
- # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver
746
- # and tasks.
747
- # Corresponds to the JSON property `jarFileUris`
748
- # @return [Array<String>]
749
- attr_accessor :jar_file_uris
750
-
751
711
  # The runtime logging config of the job.
752
712
  # Corresponds to the JSON property `loggingConfig`
753
713
  # @return [Google::Apis::DataprocV1::LoggingConfig]
@@ -787,20 +747,31 @@ module Google
787
747
  # @return [Array<String>]
788
748
  attr_accessor :archive_uris
789
749
 
750
+ # The HCFS URI of the jar file that contains the main class.
751
+ # Corresponds to the JSON property `mainJarFileUri`
752
+ # @return [String]
753
+ attr_accessor :main_jar_file_uri
754
+
755
+ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver
756
+ # and tasks.
757
+ # Corresponds to the JSON property `jarFileUris`
758
+ # @return [Array<String>]
759
+ attr_accessor :jar_file_uris
760
+
790
761
  def initialize(**args)
791
762
  update!(**args)
792
763
  end
793
764
 
794
765
  # Update properties of this object
795
766
  def update!(**args)
796
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
797
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
798
767
  @logging_config = args[:logging_config] if args.key?(:logging_config)
799
768
  @properties = args[:properties] if args.key?(:properties)
800
769
  @args = args[:args] if args.key?(:args)
801
770
  @file_uris = args[:file_uris] if args.key?(:file_uris)
802
771
  @main_class = args[:main_class] if args.key?(:main_class)
803
772
  @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
773
+ @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
774
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
804
775
  end
805
776
  end
806
777
 
@@ -808,6 +779,23 @@ module Google
808
779
  class Job
809
780
  include Google::Apis::Core::Hashable
810
781
 
782
+ # Cloud Dataproc job status.
783
+ # Corresponds to the JSON property `status`
784
+ # @return [Google::Apis::DataprocV1::JobStatus]
785
+ attr_accessor :status
786
+
787
+ # Cloud Dataproc job config.
788
+ # Corresponds to the JSON property `placement`
789
+ # @return [Google::Apis::DataprocV1::JobPlacement]
790
+ attr_accessor :placement
791
+
792
+ # Output-only. If present, the location of miscellaneous control files which may
793
+ # be used as part of job setup and handling. If not present, control files may
794
+ # be placed in the same location as driver_output_uri.
795
+ # Corresponds to the JSON property `driverControlFilesUri`
796
+ # @return [String]
797
+ attr_accessor :driver_control_files_uri
798
+
811
799
  # Job scheduling options.Beta Feature: These options are available for testing
812
800
  # purposes only. They may be changed before final release.
813
801
  # Corresponds to the JSON property `scheduling`
@@ -841,17 +829,17 @@ module Google
841
829
  # @return [String]
842
830
  attr_accessor :driver_output_resource_uri
843
831
 
832
+ # Output-only. The previous job status.
833
+ # Corresponds to the JSON property `statusHistory`
834
+ # @return [Array<Google::Apis::DataprocV1::JobStatus>]
835
+ attr_accessor :status_history
836
+
844
837
  # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
845
838
  # applications on YARN.
846
839
  # Corresponds to the JSON property `sparkJob`
847
840
  # @return [Google::Apis::DataprocV1::SparkJob]
848
841
  attr_accessor :spark_job
849
842
 
850
- # Output-only. The previous job status.
851
- # Corresponds to the JSON property `statusHistory`
852
- # @return [Array<Google::Apis::DataprocV1::JobStatus>]
853
- attr_accessor :status_history
854
-
855
843
  # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
856
844
  # ) queries.
857
845
  # Corresponds to the JSON property `sparkSqlJob`
@@ -884,44 +872,27 @@ module Google
884
872
  # @return [Google::Apis::DataprocV1::HadoopJob]
885
873
  attr_accessor :hadoop_job
886
874
 
887
- # Cloud Dataproc job config.
888
- # Corresponds to the JSON property `placement`
889
- # @return [Google::Apis::DataprocV1::JobPlacement]
890
- attr_accessor :placement
891
-
892
- # Cloud Dataproc job status.
893
- # Corresponds to the JSON property `status`
894
- # @return [Google::Apis::DataprocV1::JobStatus]
895
- attr_accessor :status
896
-
897
- # Output-only. If present, the location of miscellaneous control files which may
898
- # be used as part of job setup and handling. If not present, control files may
899
- # be placed in the same location as driver_output_uri.
900
- # Corresponds to the JSON property `driverControlFilesUri`
901
- # @return [String]
902
- attr_accessor :driver_control_files_uri
903
-
904
875
  def initialize(**args)
905
876
  update!(**args)
906
877
  end
907
878
 
908
879
  # Update properties of this object
909
880
  def update!(**args)
881
+ @status = args[:status] if args.key?(:status)
882
+ @placement = args[:placement] if args.key?(:placement)
883
+ @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
910
884
  @scheduling = args[:scheduling] if args.key?(:scheduling)
911
885
  @pig_job = args[:pig_job] if args.key?(:pig_job)
912
886
  @hive_job = args[:hive_job] if args.key?(:hive_job)
913
887
  @labels = args[:labels] if args.key?(:labels)
914
888
  @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
915
- @spark_job = args[:spark_job] if args.key?(:spark_job)
916
889
  @status_history = args[:status_history] if args.key?(:status_history)
890
+ @spark_job = args[:spark_job] if args.key?(:spark_job)
917
891
  @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
918
892
  @yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
919
893
  @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
920
894
  @reference = args[:reference] if args.key?(:reference)
921
895
  @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
922
- @placement = args[:placement] if args.key?(:placement)
923
- @status = args[:status] if args.key?(:status)
924
- @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
925
896
  end
926
897
  end
927
898
 
@@ -994,6 +965,11 @@ module Google
994
965
  class ClusterOperationStatus
995
966
  include Google::Apis::Core::Hashable
996
967
 
968
+ # Output-only. A message containing the detailed operation state.
969
+ # Corresponds to the JSON property `innerState`
970
+ # @return [String]
971
+ attr_accessor :inner_state
972
+
997
973
  # Output-only. The time this state was entered.
998
974
  # Corresponds to the JSON property `stateStartTime`
999
975
  # @return [String]
@@ -1009,53 +985,79 @@ module Google
1009
985
  # @return [String]
1010
986
  attr_accessor :details
1011
987
 
1012
- # Output-only. A message containing the detailed operation state.
1013
- # Corresponds to the JSON property `innerState`
1014
- # @return [String]
1015
- attr_accessor :inner_state
1016
-
1017
988
  def initialize(**args)
1018
989
  update!(**args)
1019
990
  end
1020
991
 
1021
992
  # Update properties of this object
1022
993
  def update!(**args)
994
+ @inner_state = args[:inner_state] if args.key?(:inner_state)
1023
995
  @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1024
996
  @state = args[:state] if args.key?(:state)
1025
997
  @details = args[:details] if args.key?(:details)
1026
- @inner_state = args[:inner_state] if args.key?(:inner_state)
1027
998
  end
1028
999
  end
1029
1000
 
1030
- # A YARN application created by a job. Application information is a subset of <
1031
- # code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
1032
- # Beta Feature: This report is available for testing purposes only. It may be
1033
- # changed before final release.
1034
- class YarnApplication
1001
+ # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
1002
+ # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
1003
+ # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
1004
+ # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
1005
+ class HadoopJob
1035
1006
  include Google::Apis::Core::Hashable
1036
1007
 
1037
- # Required. The application state.
1038
- # Corresponds to the JSON property `state`
1008
+ # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
1009
+ # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
1010
+ # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
1011
+ # mapreduce-examples.jar'
1012
+ # Corresponds to the JSON property `mainJarFileUri`
1039
1013
  # @return [String]
1040
- attr_accessor :state
1014
+ attr_accessor :main_jar_file_uri
1041
1015
 
1042
- # Required. The application name.
1043
- # Corresponds to the JSON property `name`
1044
- # @return [String]
1045
- attr_accessor :name
1016
+ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and
1017
+ # tasks.
1018
+ # Corresponds to the JSON property `jarFileUris`
1019
+ # @return [Array<String>]
1020
+ attr_accessor :jar_file_uris
1046
1021
 
1047
- # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
1048
- # TimelineServer that provides application-specific information. The URL uses
1049
- # the internal hostname, and requires a proxy server for resolution and,
1050
- # possibly, access.
1051
- # Corresponds to the JSON property `trackingUrl`
1022
+ # The runtime logging config of the job.
1023
+ # Corresponds to the JSON property `loggingConfig`
1024
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
1025
+ attr_accessor :logging_config
1026
+
1027
+ # Optional. A mapping of property names to values, used to configure Hadoop.
1028
+ # Properties that conflict with values set by the Cloud Dataproc API may be
1029
+ # overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
1030
+ # in user code.
1031
+ # Corresponds to the JSON property `properties`
1032
+ # @return [Hash<String,String>]
1033
+ attr_accessor :properties
1034
+
1035
+ # Optional. The arguments to pass to the driver. Do not include arguments, such
1036
+ # as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
1037
+ # may occur that causes an incorrect job submission.
1038
+ # Corresponds to the JSON property `args`
1039
+ # @return [Array<String>]
1040
+ attr_accessor :args
1041
+
1042
+ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to
1043
+ # the working directory of Hadoop drivers and distributed tasks. Useful for
1044
+ # naively parallel tasks.
1045
+ # Corresponds to the JSON property `fileUris`
1046
+ # @return [Array<String>]
1047
+ attr_accessor :file_uris
1048
+
1049
+ # The name of the driver's main class. The jar file containing the class must be
1050
+ # in the default CLASSPATH or specified in jar_file_uris.
1051
+ # Corresponds to the JSON property `mainClass`
1052
1052
  # @return [String]
1053
- attr_accessor :tracking_url
1053
+ attr_accessor :main_class
1054
1054
 
1055
- # Required. The numerical progress of the application, from 1 to 100.
1056
- # Corresponds to the JSON property `progress`
1057
- # @return [Float]
1058
- attr_accessor :progress
1055
+ # Optional. HCFS URIs of archives to be extracted in the working directory of
1056
+ # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
1057
+ # zip.
1058
+ # Corresponds to the JSON property `archiveUris`
1059
+ # @return [Array<String>]
1060
+ attr_accessor :archive_uris
1059
1061
 
1060
1062
  def initialize(**args)
1061
1063
  update!(**args)
@@ -1063,10 +1065,14 @@ module Google
1063
1065
 
1064
1066
  # Update properties of this object
1065
1067
  def update!(**args)
1066
- @state = args[:state] if args.key?(:state)
1067
- @name = args[:name] if args.key?(:name)
1068
- @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
1069
- @progress = args[:progress] if args.key?(:progress)
1068
+ @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
1069
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1070
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
1071
+ @properties = args[:properties] if args.key?(:properties)
1072
+ @args = args[:args] if args.key?(:args)
1073
+ @file_uris = args[:file_uris] if args.key?(:file_uris)
1074
+ @main_class = args[:main_class] if args.key?(:main_class)
1075
+ @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1070
1076
  end
1071
1077
  end
1072
1078
 
@@ -1101,66 +1107,35 @@ module Google
1101
1107
  end
1102
1108
  end
1103
1109
 
1104
- # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
1105
- # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
1106
- # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
1107
- # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
1108
- class HadoopJob
1109
- include Google::Apis::Core::Hashable
1110
-
1111
- # The name of the driver's main class. The jar file containing the class must be
1112
- # in the default CLASSPATH or specified in jar_file_uris.
1113
- # Corresponds to the JSON property `mainClass`
1114
- # @return [String]
1115
- attr_accessor :main_class
1116
-
1117
- # Optional. HCFS URIs of archives to be extracted in the working directory of
1118
- # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
1119
- # zip.
1120
- # Corresponds to the JSON property `archiveUris`
1121
- # @return [Array<String>]
1122
- attr_accessor :archive_uris
1123
-
1124
- # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
1125
- # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
1126
- # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
1127
- # mapreduce-examples.jar'
1128
- # Corresponds to the JSON property `mainJarFileUri`
1129
- # @return [String]
1130
- attr_accessor :main_jar_file_uri
1131
-
1132
- # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and
1133
- # tasks.
1134
- # Corresponds to the JSON property `jarFileUris`
1135
- # @return [Array<String>]
1136
- attr_accessor :jar_file_uris
1137
-
1138
- # The runtime logging config of the job.
1139
- # Corresponds to the JSON property `loggingConfig`
1140
- # @return [Google::Apis::DataprocV1::LoggingConfig]
1141
- attr_accessor :logging_config
1110
+ # A YARN application created by a job. Application information is a subset of <
1111
+ # code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
1112
+ # Beta Feature: This report is available for testing purposes only. It may be
1113
+ # changed before final release.
1114
+ class YarnApplication
1115
+ include Google::Apis::Core::Hashable
1142
1116
 
1143
- # Optional. A mapping of property names to values, used to configure Hadoop.
1144
- # Properties that conflict with values set by the Cloud Dataproc API may be
1145
- # overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
1146
- # in user code.
1147
- # Corresponds to the JSON property `properties`
1148
- # @return [Hash<String,String>]
1149
- attr_accessor :properties
1117
+ # Required. The application state.
1118
+ # Corresponds to the JSON property `state`
1119
+ # @return [String]
1120
+ attr_accessor :state
1150
1121
 
1151
- # Optional. The arguments to pass to the driver. Do not include arguments, such
1152
- # as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
1153
- # may occur that causes an incorrect job submission.
1154
- # Corresponds to the JSON property `args`
1155
- # @return [Array<String>]
1156
- attr_accessor :args
1122
+ # Required. The application name.
1123
+ # Corresponds to the JSON property `name`
1124
+ # @return [String]
1125
+ attr_accessor :name
1157
1126
 
1158
- # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to
1159
- # the working directory of Hadoop drivers and distributed tasks. Useful for
1160
- # naively parallel tasks.
1161
- # Corresponds to the JSON property `fileUris`
1162
- # @return [Array<String>]
1163
- attr_accessor :file_uris
1127
+ # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
1128
+ # TimelineServer that provides application-specific information. The URL uses
1129
+ # the internal hostname, and requires a proxy server for resolution and,
1130
+ # possibly, access.
1131
+ # Corresponds to the JSON property `trackingUrl`
1132
+ # @return [String]
1133
+ attr_accessor :tracking_url
1134
+
1135
+ # Required. The numerical progress of the application, from 1 to 100.
1136
+ # Corresponds to the JSON property `progress`
1137
+ # @return [Float]
1138
+ attr_accessor :progress
1164
1139
 
1165
1140
  def initialize(**args)
1166
1141
  update!(**args)
@@ -1168,14 +1143,10 @@ module Google
1168
1143
 
1169
1144
  # Update properties of this object
1170
1145
  def update!(**args)
1171
- @main_class = args[:main_class] if args.key?(:main_class)
1172
- @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1173
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
1174
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1175
- @logging_config = args[:logging_config] if args.key?(:logging_config)
1176
- @properties = args[:properties] if args.key?(:properties)
1177
- @args = args[:args] if args.key?(:args)
1178
- @file_uris = args[:file_uris] if args.key?(:file_uris)
1146
+ @state = args[:state] if args.key?(:state)
1147
+ @name = args[:name] if args.key?(:name)
1148
+ @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
1149
+ @progress = args[:progress] if args.key?(:progress)
1179
1150
  end
1180
1151
  end
1181
1152
 
@@ -1225,6 +1196,26 @@ module Google
1225
1196
  class ClusterOperationMetadata
1226
1197
  include Google::Apis::Core::Hashable
1227
1198
 
1199
+ # The status of the operation.
1200
+ # Corresponds to the JSON property `status`
1201
+ # @return [Google::Apis::DataprocV1::ClusterOperationStatus]
1202
+ attr_accessor :status
1203
+
1204
+ # Output-only. The previous operation status.
1205
+ # Corresponds to the JSON property `statusHistory`
1206
+ # @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
1207
+ attr_accessor :status_history
1208
+
1209
+ # Output-only. Cluster UUID for the operation.
1210
+ # Corresponds to the JSON property `clusterUuid`
1211
+ # @return [String]
1212
+ attr_accessor :cluster_uuid
1213
+
1214
+ # Output-only. Name of the cluster for the operation.
1215
+ # Corresponds to the JSON property `clusterName`
1216
+ # @return [String]
1217
+ attr_accessor :cluster_name
1218
+
1228
1219
  # Output-only. The operation type.
1229
1220
  # Corresponds to the JSON property `operationType`
1230
1221
  # @return [String]
@@ -1245,40 +1236,20 @@ module Google
1245
1236
  # @return [Hash<String,String>]
1246
1237
  attr_accessor :labels
1247
1238
 
1248
- # The status of the operation.
1249
- # Corresponds to the JSON property `status`
1250
- # @return [Google::Apis::DataprocV1::ClusterOperationStatus]
1251
- attr_accessor :status
1252
-
1253
- # Output-only. The previous operation status.
1254
- # Corresponds to the JSON property `statusHistory`
1255
- # @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
1256
- attr_accessor :status_history
1257
-
1258
- # Output-only. Name of the cluster for the operation.
1259
- # Corresponds to the JSON property `clusterName`
1260
- # @return [String]
1261
- attr_accessor :cluster_name
1262
-
1263
- # Output-only. Cluster UUID for the operation.
1264
- # Corresponds to the JSON property `clusterUuid`
1265
- # @return [String]
1266
- attr_accessor :cluster_uuid
1267
-
1268
1239
  def initialize(**args)
1269
1240
  update!(**args)
1270
1241
  end
1271
1242
 
1272
1243
  # Update properties of this object
1273
1244
  def update!(**args)
1245
+ @status = args[:status] if args.key?(:status)
1246
+ @status_history = args[:status_history] if args.key?(:status_history)
1247
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
1248
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
1274
1249
  @operation_type = args[:operation_type] if args.key?(:operation_type)
1275
1250
  @description = args[:description] if args.key?(:description)
1276
1251
  @warnings = args[:warnings] if args.key?(:warnings)
1277
1252
  @labels = args[:labels] if args.key?(:labels)
1278
- @status = args[:status] if args.key?(:status)
1279
- @status_history = args[:status_history] if args.key?(:status_history)
1280
- @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
1281
- @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
1282
1253
  end
1283
1254
  end
1284
1255
 
@@ -1306,6 +1277,24 @@ module Google
1306
1277
  class HiveJob
1307
1278
  include Google::Apis::Core::Hashable
1308
1279
 
1280
+ # Optional. Whether to continue executing queries if a query fails. The default
1281
+ # value is false. Setting to true can be useful when executing independent
1282
+ # parallel queries.
1283
+ # Corresponds to the JSON property `continueOnFailure`
1284
+ # @return [Boolean]
1285
+ attr_accessor :continue_on_failure
1286
+ alias_method :continue_on_failure?, :continue_on_failure
1287
+
1288
+ # A list of queries to run on a cluster.
1289
+ # Corresponds to the JSON property `queryList`
1290
+ # @return [Google::Apis::DataprocV1::QueryList]
1291
+ attr_accessor :query_list
1292
+
1293
+ # The HCFS URI of the script that contains Hive queries.
1294
+ # Corresponds to the JSON property `queryFileUri`
1295
+ # @return [String]
1296
+ attr_accessor :query_file_uri
1297
+
1309
1298
  # Optional. Mapping of query variable names to values (equivalent to the Hive
1310
1299
  # command: SET name="value";).
1311
1300
  # Corresponds to the JSON property `scriptVariables`
@@ -1326,36 +1315,18 @@ module Google
1326
1315
  # @return [Hash<String,String>]
1327
1316
  attr_accessor :properties
1328
1317
 
1329
- # Optional. Whether to continue executing queries if a query fails. The default
1330
- # value is false. Setting to true can be useful when executing independent
1331
- # parallel queries.
1332
- # Corresponds to the JSON property `continueOnFailure`
1333
- # @return [Boolean]
1334
- attr_accessor :continue_on_failure
1335
- alias_method :continue_on_failure?, :continue_on_failure
1336
-
1337
- # The HCFS URI of the script that contains Hive queries.
1338
- # Corresponds to the JSON property `queryFileUri`
1339
- # @return [String]
1340
- attr_accessor :query_file_uri
1341
-
1342
- # A list of queries to run on a cluster.
1343
- # Corresponds to the JSON property `queryList`
1344
- # @return [Google::Apis::DataprocV1::QueryList]
1345
- attr_accessor :query_list
1346
-
1347
1318
  def initialize(**args)
1348
1319
  update!(**args)
1349
1320
  end
1350
1321
 
1351
1322
  # Update properties of this object
1352
1323
  def update!(**args)
1324
+ @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
1325
+ @query_list = args[:query_list] if args.key?(:query_list)
1326
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
1353
1327
  @script_variables = args[:script_variables] if args.key?(:script_variables)
1354
1328
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1355
1329
  @properties = args[:properties] if args.key?(:properties)
1356
- @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
1357
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
1358
- @query_list = args[:query_list] if args.key?(:query_list)
1359
1330
  end
1360
1331
  end
1361
1332
 
@@ -1458,12 +1429,6 @@ module Google
1458
1429
  class PySparkJob
1459
1430
  include Google::Apis::Core::Hashable
1460
1431
 
1461
- # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver
1462
- # and tasks.
1463
- # Corresponds to the JSON property `jarFileUris`
1464
- # @return [Array<String>]
1465
- attr_accessor :jar_file_uris
1466
-
1467
1432
  # The runtime logging config of the job.
1468
1433
  # Corresponds to the JSON property `loggingConfig`
1469
1434
  # @return [Google::Apis::DataprocV1::LoggingConfig]
@@ -1508,13 +1473,18 @@ module Google
1508
1473
  # @return [Array<String>]
1509
1474
  attr_accessor :archive_uris
1510
1475
 
1476
+ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver
1477
+ # and tasks.
1478
+ # Corresponds to the JSON property `jarFileUris`
1479
+ # @return [Array<String>]
1480
+ attr_accessor :jar_file_uris
1481
+
1511
1482
  def initialize(**args)
1512
1483
  update!(**args)
1513
1484
  end
1514
1485
 
1515
1486
  # Update properties of this object
1516
1487
  def update!(**args)
1517
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1518
1488
  @logging_config = args[:logging_config] if args.key?(:logging_config)
1519
1489
  @properties = args[:properties] if args.key?(:properties)
1520
1490
  @args = args[:args] if args.key?(:args)
@@ -1522,6 +1492,7 @@ module Google
1522
1492
  @python_file_uris = args[:python_file_uris] if args.key?(:python_file_uris)
1523
1493
  @main_python_file_uri = args[:main_python_file_uri] if args.key?(:main_python_file_uri)
1524
1494
  @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1495
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1525
1496
  end
1526
1497
  end
1527
1498
 
@@ -1530,6 +1501,23 @@ module Google
1530
1501
  class GceClusterConfig
1531
1502
  include Google::Apis::Core::Hashable
1532
1503
 
1504
+ # Optional. The Google Compute Engine network to be used for machine
1505
+ # communications. Cannot be specified with subnetwork_uri. If neither
1506
+ # network_uri nor subnetwork_uri is specified, the "default" network of the
1507
+ # project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using
1508
+ # Subnetworks for more information). Example: https://www.googleapis.com/compute/
1509
+ # v1/projects/[project_id]/regions/global/default.
1510
+ # Corresponds to the JSON property `networkUri`
1511
+ # @return [String]
1512
+ attr_accessor :network_uri
1513
+
1514
+ # Required. The zone where the Google Compute Engine cluster will be located.
1515
+ # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[
1516
+ # zone].
1517
+ # Corresponds to the JSON property `zoneUri`
1518
+ # @return [String]
1519
+ attr_accessor :zone_uri
1520
+
1533
1521
  # The Google Compute Engine metadata entries to add to all instances (see
1534
1522
  # Project and instance metadata (https://cloud.google.com/compute/docs/storing-
1535
1523
  # retrieving-metadata#project_and_instance_metadata)).
@@ -1585,37 +1573,20 @@ module Google
1585
1573
  # @return [String]
1586
1574
  attr_accessor :subnetwork_uri
1587
1575
 
1588
- # Optional. The Google Compute Engine network to be used for machine
1589
- # communications. Cannot be specified with subnetwork_uri. If neither
1590
- # network_uri nor subnetwork_uri is specified, the "default" network of the
1591
- # project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using
1592
- # Subnetworks for more information). Example: https://www.googleapis.com/compute/
1593
- # v1/projects/[project_id]/regions/global/default.
1594
- # Corresponds to the JSON property `networkUri`
1595
- # @return [String]
1596
- attr_accessor :network_uri
1597
-
1598
- # Required. The zone where the Google Compute Engine cluster will be located.
1599
- # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[
1600
- # zone].
1601
- # Corresponds to the JSON property `zoneUri`
1602
- # @return [String]
1603
- attr_accessor :zone_uri
1604
-
1605
1576
  def initialize(**args)
1606
1577
  update!(**args)
1607
1578
  end
1608
1579
 
1609
1580
  # Update properties of this object
1610
1581
  def update!(**args)
1582
+ @network_uri = args[:network_uri] if args.key?(:network_uri)
1583
+ @zone_uri = args[:zone_uri] if args.key?(:zone_uri)
1611
1584
  @metadata = args[:metadata] if args.key?(:metadata)
1612
1585
  @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
1613
1586
  @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
1614
1587
  @tags = args[:tags] if args.key?(:tags)
1615
1588
  @service_account = args[:service_account] if args.key?(:service_account)
1616
1589
  @subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri)
1617
- @network_uri = args[:network_uri] if args.key?(:network_uri)
1618
- @zone_uri = args[:zone_uri] if args.key?(:zone_uri)
1619
1590
  end
1620
1591
  end
1621
1592
 
@@ -1651,11 +1622,6 @@ module Google
1651
1622
  class AcceleratorConfig
1652
1623
  include Google::Apis::Core::Hashable
1653
1624
 
1654
- # The number of the accelerator cards of this type exposed to this instance.
1655
- # Corresponds to the JSON property `acceleratorCount`
1656
- # @return [Fixnum]
1657
- attr_accessor :accelerator_count
1658
-
1659
1625
  # Full or partial URI of the accelerator type resource to expose to this
1660
1626
  # instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/
1661
1627
  # beta/acceleratorTypes)
@@ -1663,14 +1629,19 @@ module Google
1663
1629
  # @return [String]
1664
1630
  attr_accessor :accelerator_type_uri
1665
1631
 
1632
+ # The number of the accelerator cards of this type exposed to this instance.
1633
+ # Corresponds to the JSON property `acceleratorCount`
1634
+ # @return [Fixnum]
1635
+ attr_accessor :accelerator_count
1636
+
1666
1637
  def initialize(**args)
1667
1638
  update!(**args)
1668
1639
  end
1669
1640
 
1670
1641
  # Update properties of this object
1671
1642
  def update!(**args)
1672
- @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
1673
1643
  @accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri)
1644
+ @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
1674
1645
  end
1675
1646
  end
1676
1647
 
@@ -1750,7 +1721,7 @@ module Google
1750
1721
  # user-facing error message is needed, put the localized message in the error
1751
1722
  # details or localize it in the client. The optional error details may contain
1752
1723
  # arbitrary information about the error. There is a predefined set of error
1753
- # detail types in the package google.rpc which can be used for common error
1724
+ # detail types in the package google.rpc that can be used for common error
1754
1725
  # conditions.Language mappingThe Status message is the logical representation of
1755
1726
  # the error model, but it is not necessarily the actual wire format. When the
1756
1727
  # Status message is exposed in different client libraries and different wire
@@ -1763,7 +1734,7 @@ module Google
1763
1734
  # Partial errors. If a service needs to return partial errors to the client, it
1764
1735
  # may embed the Status in the normal response to indicate the partial errors.
1765
1736
  # Workflow errors. A typical workflow has multiple steps. Each step may have a
1766
- # Status message for error reporting purpose.
1737
+ # Status message for error reporting.
1767
1738
  # Batch operations. If a client uses batch request and batch response, the
1768
1739
  # Status message should be used directly inside batch response, one for each
1769
1740
  # error sub-response.
@@ -1809,11 +1780,6 @@ module Google
1809
1780
  class OperationStatus
1810
1781
  include Google::Apis::Core::Hashable
1811
1782
 
1812
- # The time this state was entered.
1813
- # Corresponds to the JSON property `stateStartTime`
1814
- # @return [String]
1815
- attr_accessor :state_start_time
1816
-
1817
1783
  # A message containing the operation state.
1818
1784
  # Corresponds to the JSON property `state`
1819
1785
  # @return [String]
@@ -1829,16 +1795,50 @@ module Google
1829
1795
  # @return [String]
1830
1796
  attr_accessor :inner_state
1831
1797
 
1798
+ # The time this state was entered.
1799
+ # Corresponds to the JSON property `stateStartTime`
1800
+ # @return [String]
1801
+ attr_accessor :state_start_time
1802
+
1832
1803
  def initialize(**args)
1833
1804
  update!(**args)
1834
1805
  end
1835
1806
 
1836
1807
  # Update properties of this object
1837
1808
  def update!(**args)
1838
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1839
1809
  @state = args[:state] if args.key?(:state)
1840
1810
  @details = args[:details] if args.key?(:details)
1841
1811
  @inner_state = args[:inner_state] if args.key?(:inner_state)
1812
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1813
+ end
1814
+ end
1815
+
1816
+ # Encapsulates the full scoping used to reference a job.
1817
+ class JobReference
1818
+ include Google::Apis::Core::Hashable
1819
+
1820
+ # Required. The ID of the Google Cloud Platform project that the job belongs to.
1821
+ # Corresponds to the JSON property `projectId`
1822
+ # @return [String]
1823
+ attr_accessor :project_id
1824
+
1825
+ # Optional. The job ID, which must be unique within the project. The job ID is
1826
+ # generated by the server upon job submission or provided by the user as a means
1827
+ # to perform retries without creating duplicate jobs. The ID must contain only
1828
+ # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
1829
+ # maximum length is 100 characters.
1830
+ # Corresponds to the JSON property `jobId`
1831
+ # @return [String]
1832
+ attr_accessor :job_id
1833
+
1834
+ def initialize(**args)
1835
+ update!(**args)
1836
+ end
1837
+
1838
+ # Update properties of this object
1839
+ def update!(**args)
1840
+ @project_id = args[:project_id] if args.key?(:project_id)
1841
+ @job_id = args[:job_id] if args.key?(:job_id)
1842
1842
  end
1843
1843
  end
1844
1844
  end