google-api-client 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/api_names.yaml +42335 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
  14. data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +61 -61
  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 +403 -403
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  24. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  25. data/generated/google/apis/appengine_v1.rb +6 -5
  26. data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
  27. data/generated/google/apis/appengine_v1/representations.rb +331 -331
  28. data/generated/google/apis/appengine_v1/service.rb +173 -168
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
  37. data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
  38. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  39. data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
  40. data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
  41. data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
  42. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  43. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
  44. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
  45. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
  46. data/generated/google/apis/cloudfunctions_v1.rb +1 -4
  47. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
  48. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
  49. data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
  50. data/generated/google/apis/cloudkms_v1.rb +1 -1
  51. data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
  52. data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
  53. data/generated/google/apis/cloudkms_v1/service.rb +272 -272
  54. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
  63. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
  66. data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +194 -25
  69. data/generated/google/apis/compute_beta/representations.rb +42 -0
  70. data/generated/google/apis/compute_beta/service.rb +196 -100
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +69 -18
  73. data/generated/google/apis/compute_v1/representations.rb +16 -0
  74. data/generated/google/apis/compute_v1/service.rb +84 -26
  75. data/generated/google/apis/container_v1.rb +3 -3
  76. data/generated/google/apis/container_v1/classes.rb +794 -586
  77. data/generated/google/apis/container_v1/representations.rb +202 -118
  78. data/generated/google/apis/container_v1/service.rb +396 -167
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +4 -4
  81. data/generated/google/apis/dataproc_v1.rb +1 -1
  82. data/generated/google/apis/dataproc_v1/classes.rb +487 -484
  83. data/generated/google/apis/dataproc_v1/representations.rb +83 -83
  84. data/generated/google/apis/dataproc_v1/service.rb +299 -297
  85. data/generated/google/apis/datastore_v1.rb +1 -1
  86. data/generated/google/apis/datastore_v1/classes.rb +703 -703
  87. data/generated/google/apis/datastore_v1/representations.rb +148 -148
  88. data/generated/google/apis/datastore_v1/service.rb +62 -62
  89. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  90. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
  91. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  92. data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
  93. data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
  94. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  95. data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
  96. data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
  97. data/generated/google/apis/dfareporting_v2_8.rb +40 -0
  98. data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
  99. data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
  100. data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
  101. data/generated/google/apis/dns_v1.rb +1 -1
  102. data/generated/google/apis/dns_v2beta1.rb +1 -1
  103. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2.rb +1 -1
  105. data/generated/google/apis/drive_v2/classes.rb +15 -0
  106. data/generated/google/apis/drive_v2/representations.rb +2 -0
  107. data/generated/google/apis/drive_v2/service.rb +2 -1
  108. data/generated/google/apis/drive_v3.rb +1 -1
  109. data/generated/google/apis/drive_v3/classes.rb +16 -0
  110. data/generated/google/apis/drive_v3/representations.rb +2 -0
  111. data/generated/google/apis/drive_v3/service.rb +2 -1
  112. data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
  113. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
  114. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
  115. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
  116. data/generated/google/apis/firebaserules_v1.rb +1 -1
  117. data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
  118. data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
  119. data/generated/google/apis/firebaserules_v1/service.rb +118 -118
  120. data/generated/google/apis/fusiontables_v2.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_v1.rb +1 -1
  124. data/generated/google/apis/genomics_v1.rb +1 -1
  125. data/generated/google/apis/genomics_v1/classes.rb +920 -920
  126. data/generated/google/apis/genomics_v1/representations.rb +202 -202
  127. data/generated/google/apis/genomics_v1/service.rb +1092 -1092
  128. data/generated/google/apis/gmail_v1.rb +1 -1
  129. data/generated/google/apis/iam_v1.rb +1 -1
  130. data/generated/google/apis/iam_v1/classes.rb +455 -435
  131. data/generated/google/apis/iam_v1/representations.rb +96 -93
  132. data/generated/google/apis/iam_v1/service.rb +157 -157
  133. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  134. data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
  135. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
  136. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  137. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  138. data/generated/google/apis/kgsearch_v1/service.rb +9 -9
  139. data/generated/google/apis/language_v1.rb +1 -1
  140. data/generated/google/apis/language_v1/classes.rb +455 -455
  141. data/generated/google/apis/language_v1/representations.rb +102 -102
  142. data/generated/google/apis/language_v1/service.rb +42 -42
  143. data/generated/google/apis/language_v1beta1.rb +1 -1
  144. data/generated/google/apis/language_v1beta1/classes.rb +216 -215
  145. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  146. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  147. data/generated/google/apis/logging_v2.rb +1 -1
  148. data/generated/google/apis/logging_v2/classes.rb +908 -895
  149. data/generated/google/apis/logging_v2/representations.rb +121 -120
  150. data/generated/google/apis/logging_v2/service.rb +489 -489
  151. data/generated/google/apis/logging_v2beta1.rb +4 -4
  152. data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
  153. data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
  154. data/generated/google/apis/logging_v2beta1/service.rb +249 -249
  155. data/generated/google/apis/manufacturers_v1.rb +1 -1
  156. data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
  157. data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
  158. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  159. data/generated/google/apis/mirror_v1.rb +1 -1
  160. data/generated/google/apis/ml_v1.rb +1 -1
  161. data/generated/google/apis/ml_v1/classes.rb +1186 -1183
  162. data/generated/google/apis/ml_v1/representations.rb +177 -177
  163. data/generated/google/apis/ml_v1/service.rb +244 -244
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +866 -866
  166. data/generated/google/apis/monitoring_v3/representations.rb +163 -163
  167. data/generated/google/apis/monitoring_v3/service.rb +355 -316
  168. data/generated/google/apis/oauth2_v2.rb +1 -1
  169. data/generated/google/apis/partners_v2.rb +1 -1
  170. data/generated/google/apis/partners_v2/classes.rb +1499 -1499
  171. data/generated/google/apis/partners_v2/representations.rb +368 -368
  172. data/generated/google/apis/partners_v2/service.rb +512 -512
  173. data/generated/google/apis/people_v1.rb +10 -10
  174. data/generated/google/apis/people_v1/classes.rb +544 -423
  175. data/generated/google/apis/people_v1/representations.rb +127 -109
  176. data/generated/google/apis/people_v1/service.rb +8 -8
  177. data/generated/google/apis/plus_domains_v1.rb +1 -1
  178. data/generated/google/apis/plus_v1.rb +1 -1
  179. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  180. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
  181. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
  182. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
  183. data/generated/google/apis/pubsub_v1.rb +1 -1
  184. data/generated/google/apis/pubsub_v1/classes.rb +377 -377
  185. data/generated/google/apis/pubsub_v1/representations.rb +82 -82
  186. data/generated/google/apis/pubsub_v1/service.rb +93 -93
  187. data/generated/google/apis/runtimeconfig_v1.rb +6 -4
  188. data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
  189. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  190. data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
  191. data/generated/google/apis/script_v1.rb +14 -14
  192. data/generated/google/apis/script_v1/classes.rb +113 -58
  193. data/generated/google/apis/script_v1/representations.rb +43 -14
  194. data/generated/google/apis/script_v1/service.rb +6 -6
  195. data/generated/google/apis/searchconsole_v1.rb +1 -1
  196. data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
  197. data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
  198. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  199. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
  202. data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
  203. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  204. data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
  205. data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
  206. data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
  207. data/generated/google/apis/serviceuser_v1.rb +4 -4
  208. data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
  209. data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
  210. data/generated/google/apis/serviceuser_v1/service.rb +19 -19
  211. data/generated/google/apis/sheets_v4.rb +4 -1
  212. data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
  213. data/generated/google/apis/sheets_v4/representations.rb +858 -858
  214. data/generated/google/apis/sheets_v4/service.rb +115 -115
  215. data/generated/google/apis/slides_v1.rb +1 -1
  216. data/generated/google/apis/slides_v1/classes.rb +2890 -2890
  217. data/generated/google/apis/slides_v1/representations.rb +638 -638
  218. data/generated/google/apis/slides_v1/service.rb +36 -36
  219. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  220. data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
  221. data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
  222. data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
  223. data/generated/google/apis/spanner_v1.rb +1 -1
  224. data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
  225. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  226. data/generated/google/apis/spanner_v1/service.rb +466 -466
  227. data/generated/google/apis/speech_v1beta1.rb +2 -2
  228. data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
  229. data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
  230. data/generated/google/apis/speech_v1beta1/service.rb +49 -49
  231. data/generated/google/apis/storage_v1.rb +1 -1
  232. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  233. data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
  234. data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
  235. data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
  236. data/generated/google/apis/surveys_v2.rb +1 -1
  237. data/generated/google/apis/surveys_v2/classes.rb +0 -12
  238. data/generated/google/apis/surveys_v2/representations.rb +0 -4
  239. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  240. data/generated/google/apis/vision_v1.rb +1 -1
  241. data/generated/google/apis/vision_v1/classes.rb +1301 -1302
  242. data/generated/google/apis/vision_v1/representations.rb +183 -183
  243. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
  246. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
  247. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  248. data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
  249. data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
  250. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  251. data/lib/google/apis/version.rb +1 -1
  252. metadata +7 -3
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content
27
27
  module ContentV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170324'
29
+ REVISION = '20170406'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -1281,8 +1281,8 @@ module Google
1281
1281
  execute_or_queue_command(command, &block)
1282
1282
  end
1283
1283
 
1284
- # Cancels all line items in an order. This method can only be called for non-
1285
- # multi-client accounts.
1284
+ # Cancels all line items in an order, making a full refund. This method can only
1285
+ # be called for non-multi-client accounts.
1286
1286
  # @param [Fixnum] merchant_id
1287
1287
  # The ID of the managing account.
1288
1288
  # @param [String] order_id
@@ -1323,8 +1323,8 @@ module Google
1323
1323
  execute_or_queue_command(command, &block)
1324
1324
  end
1325
1325
 
1326
- # Cancels a line item. This method can only be called for non-multi-client
1327
- # accounts.
1326
+ # Cancels a line item, making a full refund. This method can only be called for
1327
+ # non-multi-client accounts.
1328
1328
  # @param [Fixnum] merchant_id
1329
1329
  # The ID of the managing account.
1330
1330
  # @param [String] order_id
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/dataproc/
26
26
  module DataprocV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170328'
28
+ REVISION = '20170502'
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'
@@ -26,12 +26,12 @@ module Google
26
26
  class JobReference
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # Required The ID of the Google Cloud Platform project that the job belongs to.
29
+ # Required. The ID of the Google Cloud Platform project that the job belongs to.
30
30
  # Corresponds to the JSON property `projectId`
31
31
  # @return [String]
32
32
  attr_accessor :project_id
33
33
 
34
- # Optional The job ID, which must be unique within the project. The job ID is
34
+ # Optional. The job ID, which must be unique within the project. The job ID is
35
35
  # generated by the server upon job submission or provided by the user as a means
36
36
  # to perform retries without creating duplicate jobs. The ID must contain only
37
37
  # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
@@ -107,6 +107,13 @@ module Google
107
107
  class Status
108
108
  include Google::Apis::Core::Hashable
109
109
 
110
+ # A developer-facing error message, which should be in English. Any user-facing
111
+ # error message should be localized and sent in the google.rpc.Status.details
112
+ # field, or localized by the client.
113
+ # Corresponds to the JSON property `message`
114
+ # @return [String]
115
+ attr_accessor :message
116
+
110
117
  # A list of messages that carry the error details. There will be a common set of
111
118
  # message types for APIs to use.
112
119
  # Corresponds to the JSON property `details`
@@ -118,108 +125,94 @@ module Google
118
125
  # @return [Fixnum]
119
126
  attr_accessor :code
120
127
 
121
- # A developer-facing error message, which should be in English. Any user-facing
122
- # error message should be localized and sent in the google.rpc.Status.details
123
- # field, or localized by the client.
124
- # Corresponds to the JSON property `message`
125
- # @return [String]
126
- attr_accessor :message
127
-
128
128
  def initialize(**args)
129
129
  update!(**args)
130
130
  end
131
131
 
132
132
  # Update properties of this object
133
133
  def update!(**args)
134
+ @message = args[:message] if args.key?(:message)
134
135
  @details = args[:details] if args.key?(:details)
135
136
  @code = args[:code] if args.key?(:code)
136
- @message = args[:message] if args.key?(:message)
137
137
  end
138
138
  end
139
139
 
140
- # Optional The config settings for Google Compute Engine resources in an
141
- # instance group, such as a master or worker group.
142
- class InstanceGroupConfig
140
+ # Job scheduling options.Beta Feature: These options are available for testing
141
+ # purposes only. They may be changed before final release.
142
+ class JobScheduling
143
143
  include Google::Apis::Core::Hashable
144
144
 
145
- # Optional The list of instance names. Cloud Dataproc derives the names from
146
- # cluster_name, num_instances, and the instance group if not set by user (
147
- # recommended practice is to let Cloud Dataproc derive the name).
148
- # Corresponds to the JSON property `instanceNames`
149
- # @return [Array<String>]
150
- attr_accessor :instance_names
145
+ # Optional. Maximum number of times per hour a driver may be restarted as a
146
+ # result of driver terminating with non-zero code before job is reported failed.
147
+ # A job may be reported as thrashing if driver exits with non-zero code 4 times
148
+ # within 10 minute window.Maximum value is 10.
149
+ # Corresponds to the JSON property `maxFailuresPerHour`
150
+ # @return [Fixnum]
151
+ attr_accessor :max_failures_per_hour
151
152
 
152
- # Optional The Google Compute Engine accelerator configuration for these
153
- # instances.Beta Feature: This feature is still under development. It may be
154
- # changed before final release.
155
- # Corresponds to the JSON property `accelerators`
156
- # @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]
157
- attr_accessor :accelerators
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
158
156
 
159
- # Required The number of VM instances in the instance group. For master instance
160
- # groups, must be set to 1.
161
- # Corresponds to the JSON property `numInstances`
162
- # @return [Fixnum]
163
- attr_accessor :num_instances
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
160
+ end
161
+ end
162
+
163
+ # Optional. The config settings for Google Compute Engine resources in an
164
+ # instance group, such as a master or worker group.
165
+ class InstanceGroupConfig
166
+ include Google::Apis::Core::Hashable
164
167
 
165
168
  # Specifies the config of disk options for a group of VM instances.
166
169
  # Corresponds to the JSON property `diskConfig`
167
170
  # @return [Google::Apis::DataprocV1::DiskConfig]
168
171
  attr_accessor :disk_config
169
172
 
170
- # Optional Specifies that this instance group contains preemptible instances.
171
- # Corresponds to the JSON property `isPreemptible`
172
- # @return [Boolean]
173
- attr_accessor :is_preemptible
174
- alias_method :is_preemptible?, :is_preemptible
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
175
178
 
176
- # Required The Google Compute Engine machine type used for cluster instances.
179
+ # Required. The Google Compute Engine machine type used for cluster instances.
177
180
  # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-
178
181
  # east1-a/machineTypes/n1-standard-2.
179
182
  # Corresponds to the JSON property `machineTypeUri`
180
183
  # @return [String]
181
184
  attr_accessor :machine_type_uri
182
185
 
183
- # Output-only The Google Compute Engine image resource used for cluster
184
- # instances. Inferred from SoftwareConfig.image_version.
185
- # Corresponds to the JSON property `imageUri`
186
- # @return [String]
187
- attr_accessor :image_uri
188
-
189
186
  # Specifies the resources used to actively manage an instance group.
190
187
  # Corresponds to the JSON property `managedGroupConfig`
191
188
  # @return [Google::Apis::DataprocV1::ManagedGroupConfig]
192
189
  attr_accessor :managed_group_config
193
190
 
194
- def initialize(**args)
195
- update!(**args)
196
- end
191
+ # Optional. Specifies that this instance group contains preemptible instances.
192
+ # Corresponds to the JSON property `isPreemptible`
193
+ # @return [Boolean]
194
+ attr_accessor :is_preemptible
195
+ alias_method :is_preemptible?, :is_preemptible
197
196
 
198
- # Update properties of this object
199
- def update!(**args)
200
- @instance_names = args[:instance_names] if args.key?(:instance_names)
201
- @accelerators = args[:accelerators] if args.key?(:accelerators)
202
- @num_instances = args[:num_instances] if args.key?(:num_instances)
203
- @disk_config = args[:disk_config] if args.key?(:disk_config)
204
- @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
205
- @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
206
- @image_uri = args[:image_uri] if args.key?(:image_uri)
207
- @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
208
- end
209
- end
197
+ # Optional. The list of instance names. Cloud Dataproc derives the names from
198
+ # cluster_name, num_instances, and the instance group if not set by user (
199
+ # recommended practice is to let Cloud Dataproc derive the name).
200
+ # Corresponds to the JSON property `instanceNames`
201
+ # @return [Array<String>]
202
+ attr_accessor :instance_names
210
203
 
211
- # Job scheduling options.Beta Feature: These options are available for testing
212
- # purposes only. They may be changed before final release.
213
- class JobScheduling
214
- include Google::Apis::Core::Hashable
204
+ # Optional. The Google Compute Engine accelerator configuration for these
205
+ # instances.Beta Feature: This feature is still under development. It may be
206
+ # changed before final release.
207
+ # Corresponds to the JSON property `accelerators`
208
+ # @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]
209
+ attr_accessor :accelerators
215
210
 
216
- # Optional Maximum number of times per hour a driver may be restarted as a
217
- # result of driver terminating with non-zero code before job is reported failed.
218
- # A job may be reported as thrashing if driver exits with non-zero code 4 times
219
- # within 10 minute window.Maximum value is 10.
220
- # Corresponds to the JSON property `maxFailuresPerHour`
211
+ # Required. The number of VM instances in the instance group. For master
212
+ # instance groups, must be set to 1.
213
+ # Corresponds to the JSON property `numInstances`
221
214
  # @return [Fixnum]
222
- attr_accessor :max_failures_per_hour
215
+ attr_accessor :num_instances
223
216
 
224
217
  def initialize(**args)
225
218
  update!(**args)
@@ -227,7 +220,14 @@ module Google
227
220
 
228
221
  # Update properties of this object
229
222
  def update!(**args)
230
- @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
223
+ @disk_config = args[:disk_config] if args.key?(:disk_config)
224
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
225
+ @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
226
+ @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
227
+ @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
228
+ @instance_names = args[:instance_names] if args.key?(:instance_names)
229
+ @accelerators = args[:accelerators] if args.key?(:accelerators)
230
+ @num_instances = args[:num_instances] if args.key?(:num_instances)
231
231
  end
232
232
  end
233
233
 
@@ -235,12 +235,12 @@ module Google
235
235
  class ListJobsResponse
236
236
  include Google::Apis::Core::Hashable
237
237
 
238
- # Output-only Jobs list.
238
+ # Output-only. Jobs list.
239
239
  # Corresponds to the JSON property `jobs`
240
240
  # @return [Array<Google::Apis::DataprocV1::Job>]
241
241
  attr_accessor :jobs
242
242
 
243
- # Optional This token is included in the response if there are more results to
243
+ # Optional. This token is included in the response if there are more results to
244
244
  # fetch. To fetch additional results, provide this value as the page_token in a
245
245
  # subsequent <code>ListJobsRequest</code>.
246
246
  # Corresponds to the JSON property `nextPageToken`
@@ -263,7 +263,7 @@ module Google
263
263
  class NodeInitializationAction
264
264
  include Google::Apis::Core::Hashable
265
265
 
266
- # Optional Amount of time executable has to complete. Default is 10 minutes.
266
+ # Optional. Amount of time executable has to complete. Default is 10 minutes.
267
267
  # Cluster creation fails with an explanatory error message (the name of the
268
268
  # executable that caused the error and the exceeded timeout period) if the
269
269
  # executable is not completed at end of the timeout period.
@@ -271,7 +271,7 @@ module Google
271
271
  # @return [String]
272
272
  attr_accessor :execution_timeout
273
273
 
274
- # Required Google Cloud Storage URI of executable file.
274
+ # Required. Google Cloud Storage URI of executable file.
275
275
  # Corresponds to the JSON property `executableFile`
276
276
  # @return [String]
277
277
  attr_accessor :executable_file
@@ -305,23 +305,13 @@ module Google
305
305
  class SparkSqlJob
306
306
  include Google::Apis::Core::Hashable
307
307
 
308
- # A list of queries to run on a cluster.
309
- # Corresponds to the JSON property `queryList`
310
- # @return [Google::Apis::DataprocV1::QueryList]
311
- attr_accessor :query_list
312
-
313
- # The HCFS URI of the script that contains SQL queries.
314
- # Corresponds to the JSON property `queryFileUri`
315
- # @return [String]
316
- attr_accessor :query_file_uri
317
-
318
- # Optional Mapping of query variable names to values (equivalent to the Spark
308
+ # Optional. Mapping of query variable names to values (equivalent to the Spark
319
309
  # SQL command: SET name="value";).
320
310
  # Corresponds to the JSON property `scriptVariables`
321
311
  # @return [Hash<String,String>]
322
312
  attr_accessor :script_variables
323
313
 
324
- # Optional HCFS URIs of jar files to be added to the Spark CLASSPATH.
314
+ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
325
315
  # Corresponds to the JSON property `jarFileUris`
326
316
  # @return [Array<String>]
327
317
  attr_accessor :jar_file_uris
@@ -331,25 +321,35 @@ module Google
331
321
  # @return [Google::Apis::DataprocV1::LoggingConfig]
332
322
  attr_accessor :logging_config
333
323
 
334
- # Optional A mapping of property names to values, used to configure Spark SQL's
324
+ # Optional. A mapping of property names to values, used to configure Spark SQL's
335
325
  # SparkConf. Properties that conflict with values set by the Cloud Dataproc API
336
326
  # may be overwritten.
337
327
  # Corresponds to the JSON property `properties`
338
328
  # @return [Hash<String,String>]
339
329
  attr_accessor :properties
340
330
 
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
341
  def initialize(**args)
342
342
  update!(**args)
343
343
  end
344
344
 
345
345
  # Update properties of this object
346
346
  def update!(**args)
347
- @query_list = args[:query_list] if args.key?(:query_list)
348
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
349
347
  @script_variables = args[:script_variables] if args.key?(:script_variables)
350
348
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
351
349
  @logging_config = args[:logging_config] if args.key?(:logging_config)
352
350
  @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
353
  end
354
354
  end
355
355
 
@@ -358,28 +358,7 @@ module Google
358
358
  class Cluster
359
359
  include Google::Apis::Core::Hashable
360
360
 
361
- # Optional The labels to associate with this cluster. Label keys must contain 1
362
- # to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
363
- # rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
364
- # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
365
- # . No more than 32 labels can be associated with a cluster.
366
- # Corresponds to the JSON property `labels`
367
- # @return [Hash<String,String>]
368
- attr_accessor :labels
369
-
370
- # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
371
- # This report is available for testing purposes only. It may be changed before
372
- # final release.
373
- # Corresponds to the JSON property `metrics`
374
- # @return [Google::Apis::DataprocV1::ClusterMetrics]
375
- attr_accessor :metrics
376
-
377
- # The status of a cluster and its instances.
378
- # Corresponds to the JSON property `status`
379
- # @return [Google::Apis::DataprocV1::ClusterStatus]
380
- attr_accessor :status
381
-
382
- # Output-only The previous cluster status.
361
+ # Output-only. The previous cluster status.
383
362
  # Corresponds to the JSON property `statusHistory`
384
363
  # @return [Array<Google::Apis::DataprocV1::ClusterStatus>]
385
364
  attr_accessor :status_history
@@ -389,37 +368,58 @@ module Google
389
368
  # @return [Google::Apis::DataprocV1::ClusterConfig]
390
369
  attr_accessor :config
391
370
 
392
- # Required The cluster name. Cluster names within a project must be unique.
393
- # Names of deleted clusters can be reused.
394
- # Corresponds to the JSON property `clusterName`
395
- # @return [String]
396
- attr_accessor :cluster_name
397
-
398
- # Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc
371
+ # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc
399
372
  # generates this value when it creates the cluster.
400
373
  # Corresponds to the JSON property `clusterUuid`
401
374
  # @return [String]
402
375
  attr_accessor :cluster_uuid
403
376
 
404
- # Required The Google Cloud Platform project ID that the cluster belongs to.
377
+ # Required. The cluster name. Cluster names within a project must be unique.
378
+ # Names of deleted clusters can be reused.
379
+ # Corresponds to the JSON property `clusterName`
380
+ # @return [String]
381
+ attr_accessor :cluster_name
382
+
383
+ # Required. The Google Cloud Platform project ID that the cluster belongs to.
405
384
  # Corresponds to the JSON property `projectId`
406
385
  # @return [String]
407
386
  attr_accessor :project_id
408
387
 
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
409
  def initialize(**args)
410
410
  update!(**args)
411
411
  end
412
412
 
413
413
  # Update properties of this object
414
414
  def update!(**args)
415
- @labels = args[:labels] if args.key?(:labels)
416
- @metrics = args[:metrics] if args.key?(:metrics)
417
- @status = args[:status] if args.key?(:status)
418
415
  @status_history = args[:status_history] if args.key?(:status_history)
419
416
  @config = args[:config] if args.key?(:config)
420
- @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
421
417
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
418
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
422
419
  @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
423
  end
424
424
  end
425
425
 
@@ -492,16 +492,16 @@ module Google
492
492
  # @return [Google::Apis::DataprocV1::OperationStatus]
493
493
  attr_accessor :status
494
494
 
495
- # A message containing any operation metadata details.
496
- # Corresponds to the JSON property `details`
497
- # @return [String]
498
- attr_accessor :details
499
-
500
495
  # A message containing the operation state.
501
496
  # Corresponds to the JSON property `state`
502
497
  # @return [String]
503
498
  attr_accessor :state
504
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
505
  # Cluster UUId for the operation.
506
506
  # Corresponds to the JSON property `clusterUuid`
507
507
  # @return [String]
@@ -531,8 +531,8 @@ module Google
531
531
  @operation_type = args[:operation_type] if args.key?(:operation_type)
532
532
  @description = args[:description] if args.key?(:description)
533
533
  @status = args[:status] if args.key?(:status)
534
- @details = args[:details] if args.key?(:details)
535
534
  @state = args[:state] if args.key?(:state)
535
+ @details = args[:details] if args.key?(:details)
536
536
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
537
537
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
538
538
  @inner_state = args[:inner_state] if args.key?(:inner_state)
@@ -543,12 +543,12 @@ module Google
543
543
  class JobPlacement
544
544
  include Google::Apis::Core::Hashable
545
545
 
546
- # Required The name of the cluster where the job will be submitted.
546
+ # Required. The name of the cluster where the job will be submitted.
547
547
  # Corresponds to the JSON property `clusterName`
548
548
  # @return [String]
549
549
  attr_accessor :cluster_name
550
550
 
551
- # Output-only A cluster UUID generated by the Cloud Dataproc service when the
551
+ # Output-only. A cluster UUID generated by the Cloud Dataproc service when the
552
552
  # job is submitted.
553
553
  # Corresponds to the JSON property `clusterUuid`
554
554
  # @return [String]
@@ -569,61 +569,84 @@ module Google
569
569
  class SoftwareConfig
570
570
  include Google::Apis::Core::Hashable
571
571
 
572
- # Optional The version of software inside the cluster. It must match the regular
573
- # expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest version (
574
- # see Cloud Dataproc Versioning).
575
- # Corresponds to the JSON property `imageVersion`
576
- # @return [String]
577
- attr_accessor :image_version
578
-
579
- # Optional The properties to set on daemon config files.Property keys are
572
+ # Optional. The properties to set on daemon config files.Property keys are
580
573
  # specified in prefix:property format, such as core:fs.defaultFS. The following
581
574
  # are supported prefixes and their mappings:
575
+ # capacity-scheduler: capacity-scheduler.xml
582
576
  # core: core-site.xml
577
+ # distcp: distcp-default.xml
583
578
  # hdfs: hdfs-site.xml
584
- # mapred: mapred-site.xml
585
- # yarn: yarn-site.xml
586
579
  # hive: hive-site.xml
580
+ # mapred: mapred-site.xml
587
581
  # pig: pig.properties
588
582
  # spark: spark-defaults.conf
583
+ # yarn: yarn-site.xml
589
584
  # Corresponds to the JSON property `properties`
590
585
  # @return [Hash<String,String>]
591
586
  attr_accessor :properties
592
587
 
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
+
593
595
  def initialize(**args)
594
596
  update!(**args)
595
597
  end
596
598
 
597
599
  # Update properties of this object
598
600
  def update!(**args)
599
- @image_version = args[:image_version] if args.key?(:image_version)
600
601
  @properties = args[:properties] if args.key?(:properties)
602
+ @image_version = args[:image_version] if args.key?(:image_version)
601
603
  end
602
604
  end
603
605
 
604
- # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
605
- # on YARN.
606
- class PigJob
606
+ # The status of a cluster and its instances.
607
+ class ClusterStatus
607
608
  include Google::Apis::Core::Hashable
608
609
 
609
- # Optional HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
610
- # Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
611
- # Corresponds to the JSON property `jarFileUris`
612
- # @return [Array<String>]
613
- attr_accessor :jar_file_uris
610
+ # Output-only. The cluster's state.
611
+ # Corresponds to the JSON property `state`
612
+ # @return [String]
613
+ attr_accessor :state
614
614
 
615
- # Optional Mapping of query variable names to values (equivalent to the Pig
616
- # command: name=[value]).
617
- # Corresponds to the JSON property `scriptVariables`
618
- # @return [Hash<String,String>]
619
- attr_accessor :script_variables
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
620
619
 
621
- # The runtime logging config of the job.
622
- # Corresponds to the JSON property `loggingConfig`
623
- # @return [Google::Apis::DataprocV1::LoggingConfig]
624
- attr_accessor :logging_config
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
625
 
626
- # Optional A mapping of property names to values, used to configure Pig.
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)
641
+ end
642
+ end
643
+
644
+ # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
645
+ # on YARN.
646
+ class PigJob
647
+ include Google::Apis::Core::Hashable
648
+
649
+ # Optional. A mapping of property names to values, used to configure Pig.
627
650
  # Properties that conflict with values set by the Cloud Dataproc API may be
628
651
  # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
629
652
  # pig/conf/pig.properties, and classes in user code.
@@ -631,7 +654,7 @@ module Google
631
654
  # @return [Hash<String,String>]
632
655
  attr_accessor :properties
633
656
 
634
- # Optional Whether to continue executing queries if a query fails. The default
657
+ # Optional. Whether to continue executing queries if a query fails. The default
635
658
  # value is false. Setting to true can be useful when executing independent
636
659
  # parallel queries.
637
660
  # Corresponds to the JSON property `continueOnFailure`
@@ -639,56 +662,32 @@ module Google
639
662
  attr_accessor :continue_on_failure
640
663
  alias_method :continue_on_failure?, :continue_on_failure
641
664
 
642
- # A list of queries to run on a cluster.
643
- # Corresponds to the JSON property `queryList`
644
- # @return [Google::Apis::DataprocV1::QueryList]
645
- attr_accessor :query_list
646
-
647
665
  # The HCFS URI of the script that contains the Pig queries.
648
666
  # Corresponds to the JSON property `queryFileUri`
649
667
  # @return [String]
650
668
  attr_accessor :query_file_uri
651
669
 
652
- def initialize(**args)
653
- update!(**args)
654
- end
655
-
656
- # Update properties of this object
657
- def update!(**args)
658
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
659
- @script_variables = args[:script_variables] if args.key?(:script_variables)
660
- @logging_config = args[:logging_config] if args.key?(:logging_config)
661
- @properties = args[:properties] if args.key?(:properties)
662
- @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
663
- @query_list = args[:query_list] if args.key?(:query_list)
664
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
665
- end
666
- end
667
-
668
- # The status of a cluster and its instances.
669
- class ClusterStatus
670
- include Google::Apis::Core::Hashable
671
-
672
- # Output-only The cluster's state.
673
- # Corresponds to the JSON property `state`
674
- # @return [String]
675
- attr_accessor :state
670
+ # A list of queries to run on a cluster.
671
+ # Corresponds to the JSON property `queryList`
672
+ # @return [Google::Apis::DataprocV1::QueryList]
673
+ attr_accessor :query_list
676
674
 
677
- # Output-only Time when this state was entered.
678
- # Corresponds to the JSON property `stateStartTime`
679
- # @return [String]
680
- attr_accessor :state_start_time
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
681
680
 
682
- # Output-only Additional state information that includes status reported by the
683
- # agent.
684
- # Corresponds to the JSON property `substate`
685
- # @return [String]
686
- attr_accessor :substate
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
687
686
 
688
- # Output-only Optional details of cluster's state.
689
- # Corresponds to the JSON property `detail`
690
- # @return [String]
691
- attr_accessor :detail
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
692
691
 
693
692
  def initialize(**args)
694
693
  update!(**args)
@@ -696,10 +695,13 @@ module Google
696
695
 
697
696
  # Update properties of this object
698
697
  def update!(**args)
699
- @state = args[:state] if args.key?(:state)
700
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
701
- @substate = args[:substate] if args.key?(:substate)
702
- @detail = args[:detail] if args.key?(:detail)
698
+ @properties = args[:properties] if args.key?(:properties)
699
+ @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
700
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
701
+ @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)
703
705
  end
704
706
  end
705
707
 
@@ -707,14 +709,14 @@ module Google
707
709
  class ListClustersResponse
708
710
  include Google::Apis::Core::Hashable
709
711
 
710
- # Output-only The clusters in the project.
712
+ # Output-only. The clusters in the project.
711
713
  # Corresponds to the JSON property `clusters`
712
714
  # @return [Array<Google::Apis::DataprocV1::Cluster>]
713
715
  attr_accessor :clusters
714
716
 
715
- # Output-only This token is included in the response if there are more results
717
+ # Output-only. This token is included in the response if there are more results
716
718
  # to fetch. To fetch additional results, provide this value as the page_token in
717
- # a subsequent <code>ListClustersRequest</code>.
719
+ # a subsequent ListClustersRequest.
718
720
  # Corresponds to the JSON property `nextPageToken`
719
721
  # @return [String]
720
722
  attr_accessor :next_page_token
@@ -735,7 +737,12 @@ module Google
735
737
  class SparkJob
736
738
  include Google::Apis::Core::Hashable
737
739
 
738
- # Optional HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver
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
739
746
  # and tasks.
740
747
  # Corresponds to the JSON property `jarFileUris`
741
748
  # @return [Array<String>]
@@ -746,7 +753,7 @@ module Google
746
753
  # @return [Google::Apis::DataprocV1::LoggingConfig]
747
754
  attr_accessor :logging_config
748
755
 
749
- # Optional A mapping of property names to values, used to configure Spark.
756
+ # Optional. A mapping of property names to values, used to configure Spark.
750
757
  # Properties that conflict with values set by the Cloud Dataproc API may be
751
758
  # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
752
759
  # and classes in user code.
@@ -754,14 +761,14 @@ module Google
754
761
  # @return [Hash<String,String>]
755
762
  attr_accessor :properties
756
763
 
757
- # Optional The arguments to pass to the driver. Do not include arguments, such
764
+ # Optional. The arguments to pass to the driver. Do not include arguments, such
758
765
  # as --conf, that can be set as job properties, since a collision may occur that
759
766
  # causes an incorrect job submission.
760
767
  # Corresponds to the JSON property `args`
761
768
  # @return [Array<String>]
762
769
  attr_accessor :args
763
770
 
764
- # Optional HCFS URIs of files to be copied to the working directory of Spark
771
+ # Optional. HCFS URIs of files to be copied to the working directory of Spark
765
772
  # drivers and distributed tasks. Useful for naively parallel tasks.
766
773
  # Corresponds to the JSON property `fileUris`
767
774
  # @return [Array<String>]
@@ -773,24 +780,20 @@ module Google
773
780
  # @return [String]
774
781
  attr_accessor :main_class
775
782
 
776
- # Optional HCFS URIs of archives to be extracted in the working directory of
783
+ # Optional. HCFS URIs of archives to be extracted in the working directory of
777
784
  # Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
778
785
  # zip.
779
786
  # Corresponds to the JSON property `archiveUris`
780
787
  # @return [Array<String>]
781
788
  attr_accessor :archive_uris
782
789
 
783
- # The HCFS URI of the jar file that contains the main class.
784
- # Corresponds to the JSON property `mainJarFileUri`
785
- # @return [String]
786
- attr_accessor :main_jar_file_uri
787
-
788
790
  def initialize(**args)
789
791
  update!(**args)
790
792
  end
791
793
 
792
794
  # Update properties of this object
793
795
  def update!(**args)
796
+ @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
794
797
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
795
798
  @logging_config = args[:logging_config] if args.key?(:logging_config)
796
799
  @properties = args[:properties] if args.key?(:properties)
@@ -798,7 +801,6 @@ module Google
798
801
  @file_uris = args[:file_uris] if args.key?(:file_uris)
799
802
  @main_class = args[:main_class] if args.key?(:main_class)
800
803
  @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
801
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
802
804
  end
803
805
  end
804
806
 
@@ -806,13 +808,6 @@ module Google
806
808
  class Job
807
809
  include Google::Apis::Core::Hashable
808
810
 
809
- # Output-only If present, the location of miscellaneous control files which may
810
- # be used as part of job setup and handling. If not present, control files may
811
- # be placed in the same location as driver_output_uri.
812
- # Corresponds to the JSON property `driverControlFilesUri`
813
- # @return [String]
814
- attr_accessor :driver_control_files_uri
815
-
816
811
  # Job scheduling options.Beta Feature: These options are available for testing
817
812
  # purposes only. They may be changed before final release.
818
813
  # Corresponds to the JSON property `scheduling`
@@ -831,7 +826,7 @@ module Google
831
826
  # @return [Google::Apis::DataprocV1::HiveJob]
832
827
  attr_accessor :hive_job
833
828
 
834
- # Optional The labels to associate with this job. Label keys must contain 1 to
829
+ # Optional. The labels to associate with this job. Label keys must contain 1 to
835
830
  # 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.
836
831
  # txt). Label values may be empty, but, if present, must contain 1 to 63
837
832
  # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
@@ -840,13 +835,19 @@ module Google
840
835
  # @return [Hash<String,String>]
841
836
  attr_accessor :labels
842
837
 
843
- # Output-only A URI pointing to the location of the stdout of the job's driver
838
+ # Output-only. A URI pointing to the location of the stdout of the job's driver
844
839
  # program.
845
840
  # Corresponds to the JSON property `driverOutputResourceUri`
846
841
  # @return [String]
847
842
  attr_accessor :driver_output_resource_uri
848
843
 
849
- # Output-only The previous job status.
844
+ # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
845
+ # applications on YARN.
846
+ # Corresponds to the JSON property `sparkJob`
847
+ # @return [Google::Apis::DataprocV1::SparkJob]
848
+ attr_accessor :spark_job
849
+
850
+ # Output-only. The previous job status.
850
851
  # Corresponds to the JSON property `statusHistory`
851
852
  # @return [Array<Google::Apis::DataprocV1::JobStatus>]
852
853
  attr_accessor :status_history
@@ -857,13 +858,7 @@ module Google
857
858
  # @return [Google::Apis::DataprocV1::SparkSqlJob]
858
859
  attr_accessor :spark_sql_job
859
860
 
860
- # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
861
- # applications on YARN.
862
- # Corresponds to the JSON property `sparkJob`
863
- # @return [Google::Apis::DataprocV1::SparkJob]
864
- attr_accessor :spark_job
865
-
866
- # Output-only The collection of YARN applications spun up by this job.Beta
861
+ # Output-only. The collection of YARN applications spun up by this job.Beta
867
862
  # Feature: This report is available for testing purposes only. It may be changed
868
863
  # before final release.
869
864
  # Corresponds to the JSON property `yarnApplications`
@@ -889,15 +884,22 @@ module Google
889
884
  # @return [Google::Apis::DataprocV1::HadoopJob]
890
885
  attr_accessor :hadoop_job
891
886
 
887
+ # Cloud Dataproc job config.
888
+ # Corresponds to the JSON property `placement`
889
+ # @return [Google::Apis::DataprocV1::JobPlacement]
890
+ attr_accessor :placement
891
+
892
892
  # Cloud Dataproc job status.
893
893
  # Corresponds to the JSON property `status`
894
894
  # @return [Google::Apis::DataprocV1::JobStatus]
895
895
  attr_accessor :status
896
896
 
897
- # Cloud Dataproc job config.
898
- # Corresponds to the JSON property `placement`
899
- # @return [Google::Apis::DataprocV1::JobPlacement]
900
- attr_accessor :placement
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
901
903
 
902
904
  def initialize(**args)
903
905
  update!(**args)
@@ -905,21 +907,21 @@ module Google
905
907
 
906
908
  # Update properties of this object
907
909
  def update!(**args)
908
- @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
909
910
  @scheduling = args[:scheduling] if args.key?(:scheduling)
910
911
  @pig_job = args[:pig_job] if args.key?(:pig_job)
911
912
  @hive_job = args[:hive_job] if args.key?(:hive_job)
912
913
  @labels = args[:labels] if args.key?(:labels)
913
914
  @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)
914
916
  @status_history = args[:status_history] if args.key?(:status_history)
915
917
  @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
916
- @spark_job = args[:spark_job] if args.key?(:spark_job)
917
918
  @yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
918
919
  @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
919
920
  @reference = args[:reference] if args.key?(:reference)
920
921
  @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
921
- @status = args[:status] if args.key?(:status)
922
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)
923
925
  end
924
926
  end
925
927
 
@@ -927,38 +929,38 @@ module Google
927
929
  class JobStatus
928
930
  include Google::Apis::Core::Hashable
929
931
 
930
- # Output-only The time when this state was entered.
931
- # Corresponds to the JSON property `stateStartTime`
932
- # @return [String]
933
- attr_accessor :state_start_time
934
-
935
- # Output-only Additional state information, which includes status reported by
936
- # the agent.
937
- # Corresponds to the JSON property `substate`
938
- # @return [String]
939
- attr_accessor :substate
940
-
941
- # Output-only A state message specifying the overall job state.
932
+ # Output-only. A state message specifying the overall job state.
942
933
  # Corresponds to the JSON property `state`
943
934
  # @return [String]
944
935
  attr_accessor :state
945
936
 
946
- # Output-only Optional job state details, such as an error description if the
937
+ # Output-only. Optional job state details, such as an error description if the
947
938
  # state is <code>ERROR</code>.
948
939
  # Corresponds to the JSON property `details`
949
940
  # @return [String]
950
941
  attr_accessor :details
951
942
 
943
+ # Output-only. The time when this state was entered.
944
+ # Corresponds to the JSON property `stateStartTime`
945
+ # @return [String]
946
+ attr_accessor :state_start_time
947
+
948
+ # Output-only. Additional state information, which includes status reported by
949
+ # the agent.
950
+ # Corresponds to the JSON property `substate`
951
+ # @return [String]
952
+ attr_accessor :substate
953
+
952
954
  def initialize(**args)
953
955
  update!(**args)
954
956
  end
955
957
 
956
958
  # Update properties of this object
957
959
  def update!(**args)
958
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
959
- @substate = args[:substate] if args.key?(:substate)
960
960
  @state = args[:state] if args.key?(:state)
961
961
  @details = args[:details] if args.key?(:details)
962
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
963
+ @substate = args[:substate] if args.key?(:substate)
962
964
  end
963
965
  end
964
966
 
@@ -966,12 +968,12 @@ module Google
966
968
  class ManagedGroupConfig
967
969
  include Google::Apis::Core::Hashable
968
970
 
969
- # Output-only The name of the Instance Group Manager for this group.
971
+ # Output-only. The name of the Instance Group Manager for this group.
970
972
  # Corresponds to the JSON property `instanceGroupManagerName`
971
973
  # @return [String]
972
974
  attr_accessor :instance_group_manager_name
973
975
 
974
- # Output-only The name of the Instance Template used for the Managed Instance
976
+ # Output-only. The name of the Instance Template used for the Managed Instance
975
977
  # Group.
976
978
  # Corresponds to the JSON property `instanceTemplateName`
977
979
  # @return [String]
@@ -992,98 +994,68 @@ module Google
992
994
  class ClusterOperationStatus
993
995
  include Google::Apis::Core::Hashable
994
996
 
995
- # Output-only A message containing the operation state.
997
+ # Output-only. The time this state was entered.
998
+ # Corresponds to the JSON property `stateStartTime`
999
+ # @return [String]
1000
+ attr_accessor :state_start_time
1001
+
1002
+ # Output-only. A message containing the operation state.
996
1003
  # Corresponds to the JSON property `state`
997
1004
  # @return [String]
998
1005
  attr_accessor :state
999
1006
 
1000
- # Output-onlyA message containing any operation metadata details.
1007
+ # Output-only.A message containing any operation metadata details.
1001
1008
  # Corresponds to the JSON property `details`
1002
1009
  # @return [String]
1003
1010
  attr_accessor :details
1004
1011
 
1005
- # Output-only A message containing the detailed operation state.
1012
+ # Output-only. A message containing the detailed operation state.
1006
1013
  # Corresponds to the JSON property `innerState`
1007
1014
  # @return [String]
1008
1015
  attr_accessor :inner_state
1009
1016
 
1010
- # Output-only The time this state was entered.
1011
- # Corresponds to the JSON property `stateStartTime`
1012
- # @return [String]
1013
- attr_accessor :state_start_time
1014
-
1015
1017
  def initialize(**args)
1016
1018
  update!(**args)
1017
1019
  end
1018
1020
 
1019
1021
  # Update properties of this object
1020
1022
  def update!(**args)
1023
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1021
1024
  @state = args[:state] if args.key?(:state)
1022
1025
  @details = args[:details] if args.key?(:details)
1023
1026
  @inner_state = args[:inner_state] if args.key?(:inner_state)
1024
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1025
1027
  end
1026
1028
  end
1027
1029
 
1028
- # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
1029
- # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
1030
- # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
1031
- # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
1032
- class HadoopJob
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
1033
1035
  include Google::Apis::Core::Hashable
1034
1036
 
1035
- # Optional A mapping of property names to values, used to configure Hadoop.
1036
- # Properties that conflict with values set by the Cloud Dataproc API may be
1037
- # overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
1038
- # in user code.
1039
- # Corresponds to the JSON property `properties`
1040
- # @return [Hash<String,String>]
1041
- attr_accessor :properties
1042
-
1043
- # Optional The arguments to pass to the driver. Do not include arguments, such
1044
- # as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
1045
- # may occur that causes an incorrect job submission.
1046
- # Corresponds to the JSON property `args`
1047
- # @return [Array<String>]
1048
- attr_accessor :args
1049
-
1050
- # Optional HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the
1051
- # working directory of Hadoop drivers and distributed tasks. Useful for naively
1052
- # parallel tasks.
1053
- # Corresponds to the JSON property `fileUris`
1054
- # @return [Array<String>]
1055
- attr_accessor :file_uris
1056
-
1057
- # The name of the driver's main class. The jar file containing the class must be
1058
- # in the default CLASSPATH or specified in jar_file_uris.
1059
- # Corresponds to the JSON property `mainClass`
1037
+ # Required. The application state.
1038
+ # Corresponds to the JSON property `state`
1060
1039
  # @return [String]
1061
- attr_accessor :main_class
1062
-
1063
- # Optional HCFS URIs of archives to be extracted in the working directory of
1064
- # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
1065
- # zip.
1066
- # Corresponds to the JSON property `archiveUris`
1067
- # @return [Array<String>]
1068
- attr_accessor :archive_uris
1040
+ attr_accessor :state
1069
1041
 
1070
- # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
1071
- # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
1072
- # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
1073
- # mapreduce-examples.jar'
1074
- # Corresponds to the JSON property `mainJarFileUri`
1042
+ # Required. The application name.
1043
+ # Corresponds to the JSON property `name`
1075
1044
  # @return [String]
1076
- attr_accessor :main_jar_file_uri
1045
+ attr_accessor :name
1077
1046
 
1078
- # Optional Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1079
- # Corresponds to the JSON property `jarFileUris`
1080
- # @return [Array<String>]
1081
- attr_accessor :jar_file_uris
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`
1052
+ # @return [String]
1053
+ attr_accessor :tracking_url
1082
1054
 
1083
- # The runtime logging config of the job.
1084
- # Corresponds to the JSON property `loggingConfig`
1085
- # @return [Google::Apis::DataprocV1::LoggingConfig]
1086
- attr_accessor :logging_config
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
1087
1059
 
1088
1060
  def initialize(**args)
1089
1061
  update!(**args)
@@ -1091,14 +1063,10 @@ module Google
1091
1063
 
1092
1064
  # Update properties of this object
1093
1065
  def update!(**args)
1094
- @properties = args[:properties] if args.key?(:properties)
1095
- @args = args[:args] if args.key?(:args)
1096
- @file_uris = args[:file_uris] if args.key?(:file_uris)
1097
- @main_class = args[:main_class] if args.key?(:main_class)
1098
- @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1099
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
1100
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1101
- @logging_config = args[:logging_config] if args.key?(:logging_config)
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)
1102
1070
  end
1103
1071
  end
1104
1072
 
@@ -1106,7 +1074,7 @@ module Google
1106
1074
  class QueryList
1107
1075
  include Google::Apis::Core::Hashable
1108
1076
 
1109
- # Required The queries to execute. You do not need to terminate a query with a
1077
+ # Required. The queries to execute. You do not need to terminate a query with a
1110
1078
  # semicolon. Multiple queries can be specified in one string by separating each
1111
1079
  # with a semicolon. Here is an example of an Cloud Dataproc API snippet that
1112
1080
  # uses a QueryList to specify a HiveJob:
@@ -1132,36 +1100,67 @@ module Google
1132
1100
  @queries = args[:queries] if args.key?(:queries)
1133
1101
  end
1134
1102
  end
1135
-
1136
- # A YARN application created by a job. Application information is a subset of <
1137
- # code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
1138
- # Beta Feature: This report is available for testing purposes only. It may be
1139
- # changed before final release.
1140
- class YarnApplication
1103
+
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
1141
1109
  include Google::Apis::Core::Hashable
1142
1110
 
1143
- # Required The application state.
1144
- # Corresponds to the JSON property `state`
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`
1145
1114
  # @return [String]
1146
- attr_accessor :state
1115
+ attr_accessor :main_class
1147
1116
 
1148
- # Required The application name.
1149
- # Corresponds to the JSON property `name`
1150
- # @return [String]
1151
- attr_accessor :name
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
1152
1123
 
1153
- # Optional The HTTP URL of the ApplicationMaster, HistoryServer, or
1154
- # TimelineServer that provides application-specific information. The URL uses
1155
- # the internal hostname, and requires a proxy server for resolution and,
1156
- # possibly, access.
1157
- # Corresponds to the JSON property `trackingUrl`
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`
1158
1129
  # @return [String]
1159
- attr_accessor :tracking_url
1130
+ attr_accessor :main_jar_file_uri
1160
1131
 
1161
- # Required The numerical progress of the application, from 1 to 100.
1162
- # Corresponds to the JSON property `progress`
1163
- # @return [Float]
1164
- attr_accessor :progress
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
1142
+
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
1150
+
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
1157
+
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
1165
1164
 
1166
1165
  def initialize(**args)
1167
1166
  update!(**args)
@@ -1169,10 +1168,14 @@ module Google
1169
1168
 
1170
1169
  # Update properties of this object
1171
1170
  def update!(**args)
1172
- @state = args[:state] if args.key?(:state)
1173
- @name = args[:name] if args.key?(:name)
1174
- @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
1175
- @progress = args[:progress] if args.key?(:progress)
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)
1176
1179
  end
1177
1180
  end
1178
1181
 
@@ -1193,12 +1196,7 @@ module Google
1193
1196
  class DiskConfig
1194
1197
  include Google::Apis::Core::Hashable
1195
1198
 
1196
- # Optional Size in GB of the boot disk (default is 500GB).
1197
- # Corresponds to the JSON property `bootDiskSizeGb`
1198
- # @return [Fixnum]
1199
- attr_accessor :boot_disk_size_gb
1200
-
1201
- # Optional Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
1199
+ # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
1202
1200
  # attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
1203
1201
  # apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
1204
1202
  # attached, this runtime bulk data is spread across them, and the boot disk
@@ -1207,14 +1205,19 @@ module Google
1207
1205
  # @return [Fixnum]
1208
1206
  attr_accessor :num_local_ssds
1209
1207
 
1208
+ # Optional. Size in GB of the boot disk (default is 500GB).
1209
+ # Corresponds to the JSON property `bootDiskSizeGb`
1210
+ # @return [Fixnum]
1211
+ attr_accessor :boot_disk_size_gb
1212
+
1210
1213
  def initialize(**args)
1211
1214
  update!(**args)
1212
1215
  end
1213
1216
 
1214
1217
  # Update properties of this object
1215
1218
  def update!(**args)
1216
- @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
1217
1219
  @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
1220
+ @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
1218
1221
  end
1219
1222
  end
1220
1223
 
@@ -1222,12 +1225,22 @@ module Google
1222
1225
  class ClusterOperationMetadata
1223
1226
  include Google::Apis::Core::Hashable
1224
1227
 
1225
- # Output-only Errors encountered during operation execution.
1228
+ # Output-only. The operation type.
1229
+ # Corresponds to the JSON property `operationType`
1230
+ # @return [String]
1231
+ attr_accessor :operation_type
1232
+
1233
+ # Output-only. Short description of operation.
1234
+ # Corresponds to the JSON property `description`
1235
+ # @return [String]
1236
+ attr_accessor :description
1237
+
1238
+ # Output-only. Errors encountered during operation execution.
1226
1239
  # Corresponds to the JSON property `warnings`
1227
1240
  # @return [Array<String>]
1228
1241
  attr_accessor :warnings
1229
1242
 
1230
- # Output-only Labels associated with the operation
1243
+ # Output-only. Labels associated with the operation
1231
1244
  # Corresponds to the JSON property `labels`
1232
1245
  # @return [Hash<String,String>]
1233
1246
  attr_accessor :labels
@@ -1237,45 +1250,35 @@ module Google
1237
1250
  # @return [Google::Apis::DataprocV1::ClusterOperationStatus]
1238
1251
  attr_accessor :status
1239
1252
 
1240
- # Output-only The previous operation status.
1253
+ # Output-only. The previous operation status.
1241
1254
  # Corresponds to the JSON property `statusHistory`
1242
1255
  # @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
1243
1256
  attr_accessor :status_history
1244
1257
 
1245
- # Output-only Name of the cluster for the operation.
1258
+ # Output-only. Name of the cluster for the operation.
1246
1259
  # Corresponds to the JSON property `clusterName`
1247
1260
  # @return [String]
1248
1261
  attr_accessor :cluster_name
1249
1262
 
1250
- # Output-only Cluster UUID for the operation.
1263
+ # Output-only. Cluster UUID for the operation.
1251
1264
  # Corresponds to the JSON property `clusterUuid`
1252
1265
  # @return [String]
1253
1266
  attr_accessor :cluster_uuid
1254
1267
 
1255
- # Output-only The operation type.
1256
- # Corresponds to the JSON property `operationType`
1257
- # @return [String]
1258
- attr_accessor :operation_type
1259
-
1260
- # Output-only Short description of operation.
1261
- # Corresponds to the JSON property `description`
1262
- # @return [String]
1263
- attr_accessor :description
1264
-
1265
1268
  def initialize(**args)
1266
1269
  update!(**args)
1267
1270
  end
1268
1271
 
1269
1272
  # Update properties of this object
1270
1273
  def update!(**args)
1274
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
1275
+ @description = args[:description] if args.key?(:description)
1271
1276
  @warnings = args[:warnings] if args.key?(:warnings)
1272
1277
  @labels = args[:labels] if args.key?(:labels)
1273
1278
  @status = args[:status] if args.key?(:status)
1274
1279
  @status_history = args[:status_history] if args.key?(:status_history)
1275
1280
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
1276
1281
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
1277
- @operation_type = args[:operation_type] if args.key?(:operation_type)
1278
- @description = args[:description] if args.key?(:description)
1279
1282
  end
1280
1283
  end
1281
1284
 
@@ -1303,7 +1306,27 @@ module Google
1303
1306
  class HiveJob
1304
1307
  include Google::Apis::Core::Hashable
1305
1308
 
1306
- # Optional Whether to continue executing queries if a query fails. The default
1309
+ # Optional. Mapping of query variable names to values (equivalent to the Hive
1310
+ # command: SET name="value";).
1311
+ # Corresponds to the JSON property `scriptVariables`
1312
+ # @return [Hash<String,String>]
1313
+ attr_accessor :script_variables
1314
+
1315
+ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server
1316
+ # and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
1317
+ # Corresponds to the JSON property `jarFileUris`
1318
+ # @return [Array<String>]
1319
+ attr_accessor :jar_file_uris
1320
+
1321
+ # Optional. A mapping of property names and values, used to configure Hive.
1322
+ # Properties that conflict with values set by the Cloud Dataproc API may be
1323
+ # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
1324
+ # hive/conf/hive-site.xml, and classes in user code.
1325
+ # Corresponds to the JSON property `properties`
1326
+ # @return [Hash<String,String>]
1327
+ attr_accessor :properties
1328
+
1329
+ # Optional. Whether to continue executing queries if a query fails. The default
1307
1330
  # value is false. Setting to true can be useful when executing independent
1308
1331
  # parallel queries.
1309
1332
  # Corresponds to the JSON property `continueOnFailure`
@@ -1321,38 +1344,18 @@ module Google
1321
1344
  # @return [Google::Apis::DataprocV1::QueryList]
1322
1345
  attr_accessor :query_list
1323
1346
 
1324
- # Optional HCFS URIs of jar files to add to the CLASSPATH of the Hive server and
1325
- # Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
1326
- # Corresponds to the JSON property `jarFileUris`
1327
- # @return [Array<String>]
1328
- attr_accessor :jar_file_uris
1329
-
1330
- # Optional Mapping of query variable names to values (equivalent to the Hive
1331
- # command: SET name="value";).
1332
- # Corresponds to the JSON property `scriptVariables`
1333
- # @return [Hash<String,String>]
1334
- attr_accessor :script_variables
1335
-
1336
- # Optional A mapping of property names and values, used to configure Hive.
1337
- # Properties that conflict with values set by the Cloud Dataproc API may be
1338
- # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
1339
- # hive/conf/hive-site.xml, and classes in user code.
1340
- # Corresponds to the JSON property `properties`
1341
- # @return [Hash<String,String>]
1342
- attr_accessor :properties
1343
-
1344
1347
  def initialize(**args)
1345
1348
  update!(**args)
1346
1349
  end
1347
1350
 
1348
1351
  # Update properties of this object
1349
1352
  def update!(**args)
1353
+ @script_variables = args[:script_variables] if args.key?(:script_variables)
1354
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1355
+ @properties = args[:properties] if args.key?(:properties)
1350
1356
  @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
1351
1357
  @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
1352
1358
  @query_list = args[:query_list] if args.key?(:query_list)
1353
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1354
- @script_variables = args[:script_variables] if args.key?(:script_variables)
1355
- @properties = args[:properties] if args.key?(:properties)
1356
1359
  end
1357
1360
  end
1358
1361
 
@@ -1360,7 +1363,7 @@ module Google
1360
1363
  class DiagnoseClusterResults
1361
1364
  include Google::Apis::Core::Hashable
1362
1365
 
1363
- # Output-only The Google Cloud Storage URI of the diagnostic output. The output
1366
+ # Output-only. The Google Cloud Storage URI of the diagnostic output. The output
1364
1367
  # report is a plain text file with a summary of collected diagnostics.
1365
1368
  # Corresponds to the JSON property `outputUri`
1366
1369
  # @return [String]
@@ -1380,7 +1383,32 @@ module Google
1380
1383
  class ClusterConfig
1381
1384
  include Google::Apis::Core::Hashable
1382
1385
 
1383
- # Optional The config settings for Google Compute Engine resources in an
1386
+ # Optional. Commands to execute on each node after config is completed. By
1387
+ # default, executables are run on master and all worker nodes. You can test a
1388
+ # node's role metadata to run an executable on a master or worker node, as shown
1389
+ # below using curl (you can also use wget):
1390
+ # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/
1391
+ # instance/attributes/dataproc-role)
1392
+ # if [[ "$`ROLE`" == 'Master' ]]; then
1393
+ # ... master specific actions ...
1394
+ # else
1395
+ # ... worker specific actions ...
1396
+ # fi
1397
+ # Corresponds to the JSON property `initializationActions`
1398
+ # @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>]
1399
+ attr_accessor :initialization_actions
1400
+
1401
+ # Optional. A Google Cloud Storage staging bucket used for sharing generated SSH
1402
+ # keys and config. If you do not specify a staging bucket, Cloud Dataproc will
1403
+ # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
1404
+ # cluster's staging bucket according to the Google Compute Engine zone where
1405
+ # your cluster is deployed, and then it will create and manage this project-
1406
+ # level, per-location bucket for you.
1407
+ # Corresponds to the JSON property `configBucket`
1408
+ # @return [String]
1409
+ attr_accessor :config_bucket
1410
+
1411
+ # Optional. The config settings for Google Compute Engine resources in an
1384
1412
  # instance group, such as a master or worker group.
1385
1413
  # Corresponds to the JSON property `workerConfig`
1386
1414
  # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
@@ -1397,56 +1425,31 @@ module Google
1397
1425
  # @return [Google::Apis::DataprocV1::SoftwareConfig]
1398
1426
  attr_accessor :software_config
1399
1427
 
1400
- # Optional The config settings for Google Compute Engine resources in an
1428
+ # Optional. The config settings for Google Compute Engine resources in an
1401
1429
  # instance group, such as a master or worker group.
1402
1430
  # Corresponds to the JSON property `masterConfig`
1403
1431
  # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1404
1432
  attr_accessor :master_config
1405
1433
 
1406
- # Optional The config settings for Google Compute Engine resources in an
1434
+ # Optional. The config settings for Google Compute Engine resources in an
1407
1435
  # instance group, such as a master or worker group.
1408
1436
  # Corresponds to the JSON property `secondaryWorkerConfig`
1409
1437
  # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1410
1438
  attr_accessor :secondary_worker_config
1411
1439
 
1412
- # Optional Commands to execute on each node after config is completed. By
1413
- # default, executables are run on master and all worker nodes. You can test a
1414
- # node's <code>role</code> metadata to run an executable on a master or worker
1415
- # node, as shown below using curl (you can also use wget):
1416
- # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/
1417
- # instance/attributes/dataproc-role)
1418
- # if [[ "$`ROLE`" == 'Master' ]]; then
1419
- # ... master specific actions ...
1420
- # else
1421
- # ... worker specific actions ...
1422
- # fi
1423
- # Corresponds to the JSON property `initializationActions`
1424
- # @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>]
1425
- attr_accessor :initialization_actions
1426
-
1427
- # Optional A Google Cloud Storage staging bucket used for sharing generated SSH
1428
- # keys and config. If you do not specify a staging bucket, Cloud Dataproc will
1429
- # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
1430
- # cluster's staging bucket according to the Google Compute Engine zone where
1431
- # your cluster is deployed, and then it will create and manage this project-
1432
- # level, per-location bucket for you.
1433
- # Corresponds to the JSON property `configBucket`
1434
- # @return [String]
1435
- attr_accessor :config_bucket
1436
-
1437
1440
  def initialize(**args)
1438
1441
  update!(**args)
1439
1442
  end
1440
1443
 
1441
1444
  # Update properties of this object
1442
1445
  def update!(**args)
1446
+ @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
1447
+ @config_bucket = args[:config_bucket] if args.key?(:config_bucket)
1443
1448
  @worker_config = args[:worker_config] if args.key?(:worker_config)
1444
1449
  @gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
1445
1450
  @software_config = args[:software_config] if args.key?(:software_config)
1446
1451
  @master_config = args[:master_config] if args.key?(:master_config)
1447
1452
  @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
1448
- @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
1449
- @config_bucket = args[:config_bucket] if args.key?(:config_bucket)
1450
1453
  end
1451
1454
  end
1452
1455
 
@@ -1455,7 +1458,18 @@ module Google
1455
1458
  class PySparkJob
1456
1459
  include Google::Apis::Core::Hashable
1457
1460
 
1458
- # Optional A mapping of property names to values, used to configure PySpark.
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
+ # The runtime logging config of the job.
1468
+ # Corresponds to the JSON property `loggingConfig`
1469
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
1470
+ attr_accessor :logging_config
1471
+
1472
+ # Optional. A mapping of property names to values, used to configure PySpark.
1459
1473
  # Properties that conflict with values set by the Cloud Dataproc API may be
1460
1474
  # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
1461
1475
  # and classes in user code.
@@ -1463,62 +1477,51 @@ module Google
1463
1477
  # @return [Hash<String,String>]
1464
1478
  attr_accessor :properties
1465
1479
 
1466
- # Optional The arguments to pass to the driver. Do not include arguments, such
1480
+ # Optional. The arguments to pass to the driver. Do not include arguments, such
1467
1481
  # as --conf, that can be set as job properties, since a collision may occur that
1468
1482
  # causes an incorrect job submission.
1469
1483
  # Corresponds to the JSON property `args`
1470
1484
  # @return [Array<String>]
1471
1485
  attr_accessor :args
1472
1486
 
1473
- # Optional HCFS URIs of files to be copied to the working directory of Python
1487
+ # Optional. HCFS URIs of files to be copied to the working directory of Python
1474
1488
  # drivers and distributed tasks. Useful for naively parallel tasks.
1475
1489
  # Corresponds to the JSON property `fileUris`
1476
1490
  # @return [Array<String>]
1477
1491
  attr_accessor :file_uris
1478
1492
 
1479
- # Optional HCFS file URIs of Python files to pass to the PySpark framework.
1493
+ # Optional. HCFS file URIs of Python files to pass to the PySpark framework.
1480
1494
  # Supported file types: .py, .egg, and .zip.
1481
1495
  # Corresponds to the JSON property `pythonFileUris`
1482
1496
  # @return [Array<String>]
1483
1497
  attr_accessor :python_file_uris
1484
1498
 
1485
- # Required The HCFS URI of the main Python file to use as the driver. Must be a .
1486
- # py file.
1499
+ # Required. The HCFS URI of the main Python file to use as the driver. Must be a
1500
+ # .py file.
1487
1501
  # Corresponds to the JSON property `mainPythonFileUri`
1488
1502
  # @return [String]
1489
1503
  attr_accessor :main_python_file_uri
1490
1504
 
1491
- # Optional HCFS URIs of archives to be extracted in the working directory of .
1505
+ # Optional. HCFS URIs of archives to be extracted in the working directory of .
1492
1506
  # jar, .tar, .tar.gz, .tgz, and .zip.
1493
1507
  # Corresponds to the JSON property `archiveUris`
1494
1508
  # @return [Array<String>]
1495
1509
  attr_accessor :archive_uris
1496
1510
 
1497
- # Optional HCFS URIs of jar files to add to the CLASSPATHs of the Python driver
1498
- # and tasks.
1499
- # Corresponds to the JSON property `jarFileUris`
1500
- # @return [Array<String>]
1501
- attr_accessor :jar_file_uris
1502
-
1503
- # The runtime logging config of the job.
1504
- # Corresponds to the JSON property `loggingConfig`
1505
- # @return [Google::Apis::DataprocV1::LoggingConfig]
1506
- attr_accessor :logging_config
1507
-
1508
1511
  def initialize(**args)
1509
1512
  update!(**args)
1510
1513
  end
1511
1514
 
1512
1515
  # Update properties of this object
1513
1516
  def update!(**args)
1517
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1518
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
1514
1519
  @properties = args[:properties] if args.key?(:properties)
1515
1520
  @args = args[:args] if args.key?(:args)
1516
1521
  @file_uris = args[:file_uris] if args.key?(:file_uris)
1517
1522
  @python_file_uris = args[:python_file_uris] if args.key?(:python_file_uris)
1518
1523
  @main_python_file_uri = args[:main_python_file_uri] if args.key?(:main_python_file_uri)
1519
1524
  @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1520
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1521
- @logging_config = args[:logging_config] if args.key?(:logging_config)
1522
1525
  end
1523
1526
  end
1524
1527
 
@@ -1527,7 +1530,14 @@ module Google
1527
1530
  class GceClusterConfig
1528
1531
  include Google::Apis::Core::Hashable
1529
1532
 
1530
- # Optional If true, all instances in the cluster will only have internal IP
1533
+ # The Google Compute Engine metadata entries to add to all instances (see
1534
+ # Project and instance metadata (https://cloud.google.com/compute/docs/storing-
1535
+ # retrieving-metadata#project_and_instance_metadata)).
1536
+ # Corresponds to the JSON property `metadata`
1537
+ # @return [Hash<String,String>]
1538
+ attr_accessor :metadata
1539
+
1540
+ # Optional. If true, all instances in the cluster will only have internal IP
1531
1541
  # addresses. By default, clusters are not restricted to internal IP addresses,
1532
1542
  # and will have ephemeral external IP addresses assigned to each instance. This
1533
1543
  # internal_ip_only restriction can only be enabled for subnetwork enabled
@@ -1538,14 +1548,7 @@ module Google
1538
1548
  attr_accessor :internal_ip_only
1539
1549
  alias_method :internal_ip_only?, :internal_ip_only
1540
1550
 
1541
- # The Google Compute Engine metadata entries to add to all instances (see
1542
- # Project and instance metadata (https://cloud.google.com/compute/docs/storing-
1543
- # retrieving-metadata#project_and_instance_metadata)).
1544
- # Corresponds to the JSON property `metadata`
1545
- # @return [Hash<String,String>]
1546
- attr_accessor :metadata
1547
-
1548
- # Optional The URIs of service account scopes to be included in Google Compute
1551
+ # Optional. The URIs of service account scopes to be included in Google Compute
1549
1552
  # Engine instances. The following base set of scopes is always included:
1550
1553
  # https://www.googleapis.com/auth/cloud.useraccounts.readonly
1551
1554
  # https://www.googleapis.com/auth/devstorage.read_write
@@ -1564,7 +1567,7 @@ module Google
1564
1567
  # @return [Array<String>]
1565
1568
  attr_accessor :tags
1566
1569
 
1567
- # Optional The service account of the instances. Defaults to the default Google
1570
+ # Optional. The service account of the instances. Defaults to the default Google
1568
1571
  # Compute Engine service account. Custom service accounts need permissions
1569
1572
  # equivalent to the folloing IAM roles:
1570
1573
  # roles/logging.logWriter
@@ -1575,14 +1578,14 @@ module Google
1575
1578
  # @return [String]
1576
1579
  attr_accessor :service_account
1577
1580
 
1578
- # Optional The Google Compute Engine subnetwork to be used for machine
1581
+ # Optional. The Google Compute Engine subnetwork to be used for machine
1579
1582
  # communications. Cannot be specified with network_uri. Example: https://www.
1580
1583
  # googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0.
1581
1584
  # Corresponds to the JSON property `subnetworkUri`
1582
1585
  # @return [String]
1583
1586
  attr_accessor :subnetwork_uri
1584
1587
 
1585
- # Optional The Google Compute Engine network to be used for machine
1588
+ # Optional. The Google Compute Engine network to be used for machine
1586
1589
  # communications. Cannot be specified with subnetwork_uri. If neither
1587
1590
  # network_uri nor subnetwork_uri is specified, the "default" network of the
1588
1591
  # project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using
@@ -1592,7 +1595,7 @@ module Google
1592
1595
  # @return [String]
1593
1596
  attr_accessor :network_uri
1594
1597
 
1595
- # Required The zone where the Google Compute Engine cluster will be located.
1598
+ # Required. The zone where the Google Compute Engine cluster will be located.
1596
1599
  # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[
1597
1600
  # zone].
1598
1601
  # Corresponds to the JSON property `zoneUri`
@@ -1605,8 +1608,8 @@ module Google
1605
1608
 
1606
1609
  # Update properties of this object
1607
1610
  def update!(**args)
1608
- @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
1609
1611
  @metadata = args[:metadata] if args.key?(:metadata)
1612
+ @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
1610
1613
  @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
1611
1614
  @tags = args[:tags] if args.key?(:tags)
1612
1615
  @service_account = args[:service_account] if args.key?(:service_account)
@@ -1717,13 +1720,6 @@ module Google
1717
1720
  class Operation
1718
1721
  include Google::Apis::Core::Hashable
1719
1722
 
1720
- # If the value is false, it means the operation is still in progress. If true,
1721
- # the operation is completed, and either error or response is available.
1722
- # Corresponds to the JSON property `done`
1723
- # @return [Boolean]
1724
- attr_accessor :done
1725
- alias_method :done?, :done
1726
-
1727
1723
  # The normal response of the operation in case of success. If the original
1728
1724
  # method returns no data on success, such as Delete, the response is google.
1729
1725
  # protobuf.Empty. If the original method is standard Get/Create/Update, the
@@ -1788,17 +1784,24 @@ module Google
1788
1784
  # @return [Hash<String,Object>]
1789
1785
  attr_accessor :metadata
1790
1786
 
1787
+ # If the value is false, it means the operation is still in progress. If true,
1788
+ # the operation is completed, and either error or response is available.
1789
+ # Corresponds to the JSON property `done`
1790
+ # @return [Boolean]
1791
+ attr_accessor :done
1792
+ alias_method :done?, :done
1793
+
1791
1794
  def initialize(**args)
1792
1795
  update!(**args)
1793
1796
  end
1794
1797
 
1795
1798
  # Update properties of this object
1796
1799
  def update!(**args)
1797
- @done = args[:done] if args.key?(:done)
1798
1800
  @response = args[:response] if args.key?(:response)
1799
1801
  @name = args[:name] if args.key?(:name)
1800
1802
  @error = args[:error] if args.key?(:error)
1801
1803
  @metadata = args[:metadata] if args.key?(:metadata)
1804
+ @done = args[:done] if args.key?(:done)
1802
1805
  end
1803
1806
  end
1804
1807
 
@@ -1806,6 +1809,11 @@ module Google
1806
1809
  class OperationStatus
1807
1810
  include Google::Apis::Core::Hashable
1808
1811
 
1812
+ # The time this state was entered.
1813
+ # Corresponds to the JSON property `stateStartTime`
1814
+ # @return [String]
1815
+ attr_accessor :state_start_time
1816
+
1809
1817
  # A message containing the operation state.
1810
1818
  # Corresponds to the JSON property `state`
1811
1819
  # @return [String]
@@ -1821,21 +1829,16 @@ module Google
1821
1829
  # @return [String]
1822
1830
  attr_accessor :inner_state
1823
1831
 
1824
- # The time this state was entered.
1825
- # Corresponds to the JSON property `stateStartTime`
1826
- # @return [String]
1827
- attr_accessor :state_start_time
1828
-
1829
1832
  def initialize(**args)
1830
1833
  update!(**args)
1831
1834
  end
1832
1835
 
1833
1836
  # Update properties of this object
1834
1837
  def update!(**args)
1838
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1835
1839
  @state = args[:state] if args.key?(:state)
1836
1840
  @details = args[:details] if args.key?(:details)
1837
1841
  @inner_state = args[:inner_state] if args.key?(:inner_state)
1838
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1839
1842
  end
1840
1843
  end
1841
1844
  end