google-api-client 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/MIGRATING.md +22 -7
- data/README.md +4 -8
- data/api_names.yaml +1210 -37815
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
- data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
- data/generated/google/apis/appengine_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +2251 -0
- data/generated/google/apis/appengine_v1/representations.rb +858 -0
- data/generated/google/apis/appengine_v1/service.rb +894 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +11 -6
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +26 -0
- data/generated/google/apis/books_v1/representations.rb +15 -0
- data/generated/google/apis/books_v1/service.rb +4 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
- data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
- data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
- data/generated/google/apis/cloudfunctions_v1.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
- data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
- data/generated/google/apis/cloudkms_v1/service.rb +194 -194
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +32 -7
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +11 -11
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -2
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
- data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
- data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
- data/generated/google/apis/dataproc_v1/representations.rb +200 -200
- data/generated/google/apis/dataproc_v1/service.rb +356 -356
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +701 -690
- data/generated/google/apis/datastore_v1/representations.rb +160 -160
- data/generated/google/apis/datastore_v1/service.rb +52 -52
- data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +158 -35
- data/generated/google/apis/drive_v2/representations.rb +39 -0
- data/generated/google/apis/drive_v2/service.rb +4 -4
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +162 -33
- data/generated/google/apis/drive_v3/representations.rb +39 -0
- data/generated/google/apis/drive_v3/service.rb +4 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
- data/generated/google/apis/firebaserules_v1.rb +41 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
- data/generated/google/apis/firebaserules_v1/service.rb +495 -0
- data/generated/google/apis/games_v1/classes.rb +4 -0
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
- data/generated/google/apis/genomics_v1/representations.rb +387 -387
- data/generated/google/apis/genomics_v1/service.rb +1187 -1187
- data/generated/google/apis/gmail_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -117
- data/generated/google/apis/iam_v1/representations.rb +33 -33
- data/generated/google/apis/iam_v1/service.rb +109 -109
- data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +36 -0
- data/generated/google/apis/language_v1/classes.rb +757 -0
- data/generated/google/apis/language_v1/representations.rb +338 -0
- data/generated/google/apis/language_v1/service.rb +185 -0
- data/generated/google/apis/language_v1beta1/classes.rb +407 -407
- data/generated/google/apis/language_v1beta1/representations.rb +103 -103
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +46 -0
- data/generated/google/apis/logging_v2/classes.rb +1271 -0
- data/generated/google/apis/logging_v2/representations.rb +421 -0
- data/generated/google/apis/logging_v2/service.rb +1569 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
- data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
- data/generated/google/apis/logging_v2beta1/service.rb +235 -235
- data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
- data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
- data/generated/google/apis/ml_v1.rb +34 -0
- data/generated/google/apis/ml_v1/classes.rb +1617 -0
- data/generated/google/apis/ml_v1/representations.rb +498 -0
- data/generated/google/apis/ml_v1/service.rb +769 -0
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +630 -630
- data/generated/google/apis/monitoring_v3/representations.rb +134 -134
- data/generated/google/apis/monitoring_v3/service.rb +240 -240
- data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +639 -639
- data/generated/google/apis/partners_v2/representations.rb +168 -168
- data/generated/google/apis/partners_v2/service.rb +381 -381
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +524 -524
- data/generated/google/apis/people_v1/representations.rb +143 -143
- data/generated/google/apis/people_v1/service.rb +30 -30
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
- data/generated/google/apis/pubsub_v1/classes.rb +175 -173
- data/generated/google/apis/pubsub_v1/representations.rb +53 -53
- data/generated/google/apis/pubsub_v1/service.rb +210 -210
- data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
- data/generated/google/apis/runtimeconfig_v1.rb +38 -0
- data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
- data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
- data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -6
- data/generated/google/apis/script_v1/representations.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +31 -0
- data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
- data/generated/google/apis/searchconsole_v1/service.rb +88 -0
- data/generated/google/apis/servicecontrol_v1.rb +38 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
- data/generated/google/apis/servicemanagement_v1.rb +45 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
- data/generated/google/apis/serviceuser_v1.rb +42 -0
- data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
- data/generated/google/apis/serviceuser_v1/service.rb +214 -0
- data/generated/google/apis/sheets_v4.rb +3 -3
- data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
- data/generated/google/apis/sheets_v4/representations.rb +381 -381
- data/generated/google/apis/sheets_v4/service.rb +48 -48
- data/generated/google/apis/slides_v1.rb +3 -3
- data/generated/google/apis/slides_v1/classes.rb +2860 -2860
- data/generated/google/apis/slides_v1/representations.rb +693 -693
- data/generated/google/apis/slides_v1/service.rb +30 -30
- data/generated/google/apis/sourcerepo_v1.rb +34 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
- data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
- data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
- data/generated/google/apis/spanner_v1.rb +35 -0
- data/generated/google/apis/spanner_v1/classes.rb +3294 -0
- data/generated/google/apis/spanner_v1/representations.rb +984 -0
- data/generated/google/apis/spanner_v1/service.rb +1504 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
- data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
- data/generated/google/apis/speech_v1beta1/service.rb +27 -27
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +131 -0
- data/generated/google/apis/storage_v1/representations.rb +51 -0
- data/generated/google/apis/storage_v1/service.rb +182 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
- data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
- data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
- data/generated/google/apis/surveys_v2.rb +40 -0
- data/generated/google/apis/surveys_v2/classes.rb +806 -0
- data/generated/google/apis/surveys_v2/representations.rb +347 -0
- data/generated/google/apis/surveys_v2/service.rb +477 -0
- data/generated/google/apis/tagmanager_v2.rb +52 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
- data/generated/google/apis/toolresults_v1beta3.rb +34 -0
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
- data/generated/google/apis/tracing_v1.rb +40 -0
- data/generated/google/apis/tracing_v1/classes.rb +664 -0
- data/generated/google/apis/tracing_v1/representations.rb +279 -0
- data/generated/google/apis/tracing_v1/service.rb +225 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1223 -1222
- data/generated/google/apis/vision_v1/representations.rb +234 -234
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webfonts_v1.rb +33 -0
- data/generated/google/apis/webfonts_v1/classes.rb +113 -0
- data/generated/google/apis/webfonts_v1/representations.rb +62 -0
- data/generated/google/apis/webfonts_v1/service.rb +102 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
- data/generated/google/apis/youtube_v3/classes.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
- data/lib/google/apis/generator/annotator.rb +5 -4
- data/lib/google/apis/generator/templates/_class.tmpl +3 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/adsense.rb +99 -0
- data/samples/cli/lib/samples/analytics.rb +18 -0
- data/samples/cli/lib/samples/gmail.rb +33 -0
- data/samples/cli/lib/samples/vision.rb +69 -0
- metadata +89 -4
- data/sync.rb +0 -71
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/dataproc/
|
|
26
26
|
module DataprocV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170328'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -22,74 +22,126 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module DataprocV1
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
|
|
25
|
+
# The Status type defines a logical error model that is suitable for different
|
|
26
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
27
|
+
# (https://github.com/grpc). The error model is designed to be:
|
|
28
|
+
# Simple to use and understand for most users
|
|
29
|
+
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
30
|
+
# three pieces of data: error code, error message, and error details. The error
|
|
31
|
+
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
32
|
+
# error codes if needed. The error message should be a developer-facing English
|
|
33
|
+
# message that helps developers understand and resolve the error. If a localized
|
|
34
|
+
# user-facing error message is needed, put the localized message in the error
|
|
35
|
+
# details or localize it in the client. The optional error details may contain
|
|
36
|
+
# arbitrary information about the error. There is a predefined set of error
|
|
37
|
+
# detail types in the package google.rpc which can be used for common error
|
|
38
|
+
# conditions.Language mappingThe Status message is the logical representation of
|
|
39
|
+
# the error model, but it is not necessarily the actual wire format. When the
|
|
40
|
+
# Status message is exposed in different client libraries and different wire
|
|
41
|
+
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
42
|
+
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
43
|
+
# Other usesThe error model and the Status message can be used in a variety of
|
|
44
|
+
# environments, either with or without APIs, to provide a consistent developer
|
|
45
|
+
# experience across different environments.Example uses of this error model
|
|
46
|
+
# include:
|
|
47
|
+
# Partial errors. If a service needs to return partial errors to the client, it
|
|
48
|
+
# may embed the Status in the normal response to indicate the partial errors.
|
|
49
|
+
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
50
|
+
# Status message for error reporting purpose.
|
|
51
|
+
# Batch operations. If a client uses batch request and batch response, the
|
|
52
|
+
# Status message should be used directly inside batch response, one for each
|
|
53
|
+
# error sub-response.
|
|
54
|
+
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
55
|
+
# in its response, the status of those operations should be represented directly
|
|
56
|
+
# using the Status message.
|
|
57
|
+
# Logging. If some API errors are stored in logs, the message Status could be
|
|
58
|
+
# used directly after any stripping needed for security/privacy reasons.
|
|
59
|
+
class Status
|
|
27
60
|
include Google::Apis::Core::Hashable
|
|
28
61
|
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
# @return [String]
|
|
32
|
-
attr_accessor :description
|
|
33
|
-
|
|
34
|
-
# The status of the operation.
|
|
35
|
-
# Corresponds to the JSON property `status`
|
|
36
|
-
# @return [Google::Apis::DataprocV1::OperationStatus]
|
|
37
|
-
attr_accessor :status
|
|
38
|
-
|
|
39
|
-
# A message containing any operation metadata details.
|
|
62
|
+
# A list of messages that carry the error details. There will be a common set of
|
|
63
|
+
# message types for APIs to use.
|
|
40
64
|
# Corresponds to the JSON property `details`
|
|
41
|
-
# @return [String]
|
|
65
|
+
# @return [Array<Hash<String,Object>>]
|
|
42
66
|
attr_accessor :details
|
|
43
67
|
|
|
44
|
-
#
|
|
45
|
-
# Corresponds to the JSON property `
|
|
46
|
-
# @return [
|
|
47
|
-
attr_accessor :
|
|
68
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
69
|
+
# Corresponds to the JSON property `code`
|
|
70
|
+
# @return [Fixnum]
|
|
71
|
+
attr_accessor :code
|
|
48
72
|
|
|
49
|
-
#
|
|
50
|
-
#
|
|
73
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
|
74
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
|
75
|
+
# field, or localized by the client.
|
|
76
|
+
# Corresponds to the JSON property `message`
|
|
51
77
|
# @return [String]
|
|
52
|
-
attr_accessor :
|
|
78
|
+
attr_accessor :message
|
|
53
79
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
attr_accessor :cluster_uuid
|
|
80
|
+
def initialize(**args)
|
|
81
|
+
update!(**args)
|
|
82
|
+
end
|
|
58
83
|
|
|
59
|
-
#
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
84
|
+
# Update properties of this object
|
|
85
|
+
def update!(**args)
|
|
86
|
+
@details = args[:details] if args.key?(:details)
|
|
87
|
+
@code = args[:code] if args.key?(:code)
|
|
88
|
+
@message = args[:message] if args.key?(:message)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
63
91
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
92
|
+
# Optional The config settings for Google Compute Engine resources in an
|
|
93
|
+
# instance group, such as a master or worker group.
|
|
94
|
+
class InstanceGroupConfig
|
|
95
|
+
include Google::Apis::Core::Hashable
|
|
68
96
|
|
|
69
|
-
# The
|
|
70
|
-
#
|
|
71
|
-
#
|
|
72
|
-
|
|
97
|
+
# Optional The Google Compute Engine accelerator configuration for these
|
|
98
|
+
# instances.Beta Feature: This feature is still under development. It may be
|
|
99
|
+
# changed before final release.
|
|
100
|
+
# Corresponds to the JSON property `accelerators`
|
|
101
|
+
# @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]
|
|
102
|
+
attr_accessor :accelerators
|
|
73
103
|
|
|
74
|
-
#
|
|
75
|
-
#
|
|
76
|
-
#
|
|
77
|
-
|
|
104
|
+
# Required The number of VM instances in the instance group. For master instance
|
|
105
|
+
# groups, must be set to 1.
|
|
106
|
+
# Corresponds to the JSON property `numInstances`
|
|
107
|
+
# @return [Fixnum]
|
|
108
|
+
attr_accessor :num_instances
|
|
78
109
|
|
|
79
|
-
#
|
|
80
|
-
# Corresponds to the JSON property `
|
|
81
|
-
# @return [
|
|
82
|
-
attr_accessor :
|
|
110
|
+
# Specifies the config of disk options for a group of VM instances.
|
|
111
|
+
# Corresponds to the JSON property `diskConfig`
|
|
112
|
+
# @return [Google::Apis::DataprocV1::DiskConfig]
|
|
113
|
+
attr_accessor :disk_config
|
|
83
114
|
|
|
84
|
-
#
|
|
85
|
-
# Corresponds to the JSON property `
|
|
86
|
-
# @return [
|
|
87
|
-
attr_accessor :
|
|
115
|
+
# Optional Specifies that this instance group contains preemptible instances.
|
|
116
|
+
# Corresponds to the JSON property `isPreemptible`
|
|
117
|
+
# @return [Boolean]
|
|
118
|
+
attr_accessor :is_preemptible
|
|
119
|
+
alias_method :is_preemptible?, :is_preemptible
|
|
88
120
|
|
|
89
|
-
#
|
|
90
|
-
# Corresponds to the JSON property `
|
|
121
|
+
# Specifies the resources used to actively manage an instance group.
|
|
122
|
+
# Corresponds to the JSON property `managedGroupConfig`
|
|
123
|
+
# @return [Google::Apis::DataprocV1::ManagedGroupConfig]
|
|
124
|
+
attr_accessor :managed_group_config
|
|
125
|
+
|
|
126
|
+
# Required The Google Compute Engine machine type used for cluster instances.
|
|
127
|
+
# Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-
|
|
128
|
+
# east1-a/machineTypes/n1-standard-2.
|
|
129
|
+
# Corresponds to the JSON property `machineTypeUri`
|
|
91
130
|
# @return [String]
|
|
92
|
-
attr_accessor :
|
|
131
|
+
attr_accessor :machine_type_uri
|
|
132
|
+
|
|
133
|
+
# Output-only The Google Compute Engine image resource used for cluster
|
|
134
|
+
# instances. Inferred from SoftwareConfig.image_version.
|
|
135
|
+
# Corresponds to the JSON property `imageUri`
|
|
136
|
+
# @return [String]
|
|
137
|
+
attr_accessor :image_uri
|
|
138
|
+
|
|
139
|
+
# Optional The list of instance names. Cloud Dataproc derives the names from
|
|
140
|
+
# cluster_name, num_instances, and the instance group if not set by user (
|
|
141
|
+
# recommended practice is to let Cloud Dataproc derive the name).
|
|
142
|
+
# Corresponds to the JSON property `instanceNames`
|
|
143
|
+
# @return [Array<String>]
|
|
144
|
+
attr_accessor :instance_names
|
|
93
145
|
|
|
94
146
|
def initialize(**args)
|
|
95
147
|
update!(**args)
|
|
@@ -97,46 +149,29 @@ module Google
|
|
|
97
149
|
|
|
98
150
|
# Update properties of this object
|
|
99
151
|
def update!(**args)
|
|
100
|
-
@
|
|
101
|
-
@
|
|
102
|
-
@
|
|
103
|
-
@
|
|
104
|
-
@
|
|
105
|
-
@
|
|
106
|
-
@
|
|
107
|
-
@
|
|
108
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
|
109
|
-
@warnings = args[:warnings] if args.key?(:warnings)
|
|
110
|
-
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
111
|
-
@status_history = args[:status_history] if args.key?(:status_history)
|
|
112
|
-
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
152
|
+
@accelerators = args[:accelerators] if args.key?(:accelerators)
|
|
153
|
+
@num_instances = args[:num_instances] if args.key?(:num_instances)
|
|
154
|
+
@disk_config = args[:disk_config] if args.key?(:disk_config)
|
|
155
|
+
@is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
|
|
156
|
+
@managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
|
|
157
|
+
@machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
|
|
158
|
+
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
|
159
|
+
@instance_names = args[:instance_names] if args.key?(:instance_names)
|
|
113
160
|
end
|
|
114
161
|
end
|
|
115
162
|
|
|
116
|
-
#
|
|
117
|
-
|
|
163
|
+
# Job scheduling options.Beta Feature: These options are available for testing
|
|
164
|
+
# purposes only. They may be changed before final release.
|
|
165
|
+
class JobScheduling
|
|
118
166
|
include Google::Apis::Core::Hashable
|
|
119
167
|
|
|
120
|
-
# Optional
|
|
121
|
-
#
|
|
122
|
-
#
|
|
123
|
-
#
|
|
124
|
-
#
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
# Optional The properties to set on daemon config files.Property keys are
|
|
128
|
-
# specified in prefix:property format, such as core:fs.defaultFS. The following
|
|
129
|
-
# are supported prefixes and their mappings:
|
|
130
|
-
# core: core-site.xml
|
|
131
|
-
# hdfs: hdfs-site.xml
|
|
132
|
-
# mapred: mapred-site.xml
|
|
133
|
-
# yarn: yarn-site.xml
|
|
134
|
-
# hive: hive-site.xml
|
|
135
|
-
# pig: pig.properties
|
|
136
|
-
# spark: spark-defaults.conf
|
|
137
|
-
# Corresponds to the JSON property `properties`
|
|
138
|
-
# @return [Hash<String,String>]
|
|
139
|
-
attr_accessor :properties
|
|
168
|
+
# Optional Maximum number of times per hour a driver may be restarted as a
|
|
169
|
+
# result of driver terminating with non-zero code before job is reported failed.
|
|
170
|
+
# A job may be reported as thrashing if driver exits with non-zero code 4 times
|
|
171
|
+
# within 10 minute window.Maximum value is 10.
|
|
172
|
+
# Corresponds to the JSON property `maxFailuresPerHour`
|
|
173
|
+
# @return [Fixnum]
|
|
174
|
+
attr_accessor :max_failures_per_hour
|
|
140
175
|
|
|
141
176
|
def initialize(**args)
|
|
142
177
|
update!(**args)
|
|
@@ -144,25 +179,25 @@ module Google
|
|
|
144
179
|
|
|
145
180
|
# Update properties of this object
|
|
146
181
|
def update!(**args)
|
|
147
|
-
@
|
|
148
|
-
@properties = args[:properties] if args.key?(:properties)
|
|
182
|
+
@max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
|
|
149
183
|
end
|
|
150
184
|
end
|
|
151
185
|
|
|
152
|
-
#
|
|
153
|
-
class
|
|
186
|
+
# A list of jobs in a project.
|
|
187
|
+
class ListJobsResponse
|
|
154
188
|
include Google::Apis::Core::Hashable
|
|
155
189
|
|
|
156
|
-
#
|
|
157
|
-
# Corresponds to the JSON property `
|
|
158
|
-
# @return [
|
|
159
|
-
attr_accessor :
|
|
190
|
+
# Output-only Jobs list.
|
|
191
|
+
# Corresponds to the JSON property `jobs`
|
|
192
|
+
# @return [Array<Google::Apis::DataprocV1::Job>]
|
|
193
|
+
attr_accessor :jobs
|
|
160
194
|
|
|
161
|
-
#
|
|
162
|
-
#
|
|
163
|
-
#
|
|
195
|
+
# Optional This token is included in the response if there are more results to
|
|
196
|
+
# fetch. To fetch additional results, provide this value as the page_token in a
|
|
197
|
+
# subsequent <code>ListJobsRequest</code>.
|
|
198
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
164
199
|
# @return [String]
|
|
165
|
-
attr_accessor :
|
|
200
|
+
attr_accessor :next_page_token
|
|
166
201
|
|
|
167
202
|
def initialize(**args)
|
|
168
203
|
update!(**args)
|
|
@@ -170,55 +205,87 @@ module Google
|
|
|
170
205
|
|
|
171
206
|
# Update properties of this object
|
|
172
207
|
def update!(**args)
|
|
173
|
-
@
|
|
174
|
-
@
|
|
208
|
+
@jobs = args[:jobs] if args.key?(:jobs)
|
|
209
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
175
210
|
end
|
|
176
211
|
end
|
|
177
212
|
|
|
178
|
-
#
|
|
179
|
-
#
|
|
180
|
-
class
|
|
213
|
+
# Specifies an executable to run on a fully configured node and a timeout period
|
|
214
|
+
# for executable completion.
|
|
215
|
+
class NodeInitializationAction
|
|
181
216
|
include Google::Apis::Core::Hashable
|
|
182
217
|
|
|
183
|
-
# Optional
|
|
184
|
-
#
|
|
185
|
-
#
|
|
186
|
-
#
|
|
187
|
-
#
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
#
|
|
192
|
-
# Corresponds to the JSON property `
|
|
193
|
-
# @return [String]
|
|
194
|
-
attr_accessor :
|
|
195
|
-
|
|
218
|
+
# Optional Amount of time executable has to complete. Default is 10 minutes.
|
|
219
|
+
# Cluster creation fails with an explanatory error message (the name of the
|
|
220
|
+
# executable that caused the error and the exceeded timeout period) if the
|
|
221
|
+
# executable is not completed at end of the timeout period.
|
|
222
|
+
# Corresponds to the JSON property `executionTimeout`
|
|
223
|
+
# @return [String]
|
|
224
|
+
attr_accessor :execution_timeout
|
|
225
|
+
|
|
226
|
+
# Required Google Cloud Storage URI of executable file.
|
|
227
|
+
# Corresponds to the JSON property `executableFile`
|
|
228
|
+
# @return [String]
|
|
229
|
+
attr_accessor :executable_file
|
|
230
|
+
|
|
231
|
+
def initialize(**args)
|
|
232
|
+
update!(**args)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Update properties of this object
|
|
236
|
+
def update!(**args)
|
|
237
|
+
@execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout)
|
|
238
|
+
@executable_file = args[:executable_file] if args.key?(:executable_file)
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# A request to cancel a job.
|
|
243
|
+
class CancelJobRequest
|
|
244
|
+
include Google::Apis::Core::Hashable
|
|
245
|
+
|
|
246
|
+
def initialize(**args)
|
|
247
|
+
update!(**args)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Update properties of this object
|
|
251
|
+
def update!(**args)
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
|
|
256
|
+
# ) queries.
|
|
257
|
+
class SparkSqlJob
|
|
258
|
+
include Google::Apis::Core::Hashable
|
|
259
|
+
|
|
260
|
+
# The HCFS URI of the script that contains SQL queries.
|
|
261
|
+
# Corresponds to the JSON property `queryFileUri`
|
|
262
|
+
# @return [String]
|
|
263
|
+
attr_accessor :query_file_uri
|
|
264
|
+
|
|
196
265
|
# A list of queries to run on a cluster.
|
|
197
266
|
# Corresponds to the JSON property `queryList`
|
|
198
267
|
# @return [Google::Apis::DataprocV1::QueryList]
|
|
199
268
|
attr_accessor :query_list
|
|
200
269
|
|
|
201
|
-
# Optional
|
|
202
|
-
#
|
|
203
|
-
# Corresponds to the JSON property `jarFileUris`
|
|
204
|
-
# @return [Array<String>]
|
|
205
|
-
attr_accessor :jar_file_uris
|
|
206
|
-
|
|
207
|
-
# Optional Mapping of query variable names to values (equivalent to the Pig
|
|
208
|
-
# command: name=[value]).
|
|
270
|
+
# Optional Mapping of query variable names to values (equivalent to the Spark
|
|
271
|
+
# SQL command: SET name="value";).
|
|
209
272
|
# Corresponds to the JSON property `scriptVariables`
|
|
210
273
|
# @return [Hash<String,String>]
|
|
211
274
|
attr_accessor :script_variables
|
|
212
275
|
|
|
276
|
+
# Optional HCFS URIs of jar files to be added to the Spark CLASSPATH.
|
|
277
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
278
|
+
# @return [Array<String>]
|
|
279
|
+
attr_accessor :jar_file_uris
|
|
280
|
+
|
|
213
281
|
# The runtime logging config of the job.
|
|
214
282
|
# Corresponds to the JSON property `loggingConfig`
|
|
215
283
|
# @return [Google::Apis::DataprocV1::LoggingConfig]
|
|
216
284
|
attr_accessor :logging_config
|
|
217
285
|
|
|
218
|
-
# Optional A mapping of property names to values, used to configure
|
|
219
|
-
# Properties that conflict with values set by the Cloud Dataproc API
|
|
220
|
-
#
|
|
221
|
-
# pig/conf/pig.properties, and classes in user code.
|
|
286
|
+
# Optional A mapping of property names to values, used to configure Spark SQL's
|
|
287
|
+
# SparkConf. Properties that conflict with values set by the Cloud Dataproc API
|
|
288
|
+
# may be overwritten.
|
|
222
289
|
# Corresponds to the JSON property `properties`
|
|
223
290
|
# @return [Hash<String,String>]
|
|
224
291
|
attr_accessor :properties
|
|
@@ -229,40 +296,67 @@ module Google
|
|
|
229
296
|
|
|
230
297
|
# Update properties of this object
|
|
231
298
|
def update!(**args)
|
|
232
|
-
@continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
|
|
233
299
|
@query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
|
|
234
300
|
@query_list = args[:query_list] if args.key?(:query_list)
|
|
235
|
-
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
236
301
|
@script_variables = args[:script_variables] if args.key?(:script_variables)
|
|
302
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
237
303
|
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
238
304
|
@properties = args[:properties] if args.key?(:properties)
|
|
239
305
|
end
|
|
240
306
|
end
|
|
241
307
|
|
|
242
|
-
#
|
|
243
|
-
|
|
308
|
+
# Describes the identifying information, config, and status of a cluster of
|
|
309
|
+
# Google Compute Engine instances.
|
|
310
|
+
class Cluster
|
|
244
311
|
include Google::Apis::Core::Hashable
|
|
245
312
|
|
|
246
|
-
#
|
|
247
|
-
#
|
|
248
|
-
#
|
|
249
|
-
|
|
313
|
+
# Optional The labels to associate with this cluster. Label keys must contain 1
|
|
314
|
+
# to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
|
|
315
|
+
# rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
|
|
316
|
+
# characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
|
|
317
|
+
# . No more than 32 labels can be associated with a cluster.
|
|
318
|
+
# Corresponds to the JSON property `labels`
|
|
319
|
+
# @return [Hash<String,String>]
|
|
320
|
+
attr_accessor :labels
|
|
250
321
|
|
|
251
|
-
#
|
|
252
|
-
#
|
|
322
|
+
# Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
|
|
323
|
+
# This report is available for testing purposes only. It may be changed before
|
|
324
|
+
# final release.
|
|
325
|
+
# Corresponds to the JSON property `metrics`
|
|
326
|
+
# @return [Google::Apis::DataprocV1::ClusterMetrics]
|
|
327
|
+
attr_accessor :metrics
|
|
328
|
+
|
|
329
|
+
# The status of a cluster and its instances.
|
|
330
|
+
# Corresponds to the JSON property `status`
|
|
331
|
+
# @return [Google::Apis::DataprocV1::ClusterStatus]
|
|
332
|
+
attr_accessor :status
|
|
333
|
+
|
|
334
|
+
# Output-only The previous cluster status.
|
|
335
|
+
# Corresponds to the JSON property `statusHistory`
|
|
336
|
+
# @return [Array<Google::Apis::DataprocV1::ClusterStatus>]
|
|
337
|
+
attr_accessor :status_history
|
|
338
|
+
|
|
339
|
+
# The cluster config.
|
|
340
|
+
# Corresponds to the JSON property `config`
|
|
341
|
+
# @return [Google::Apis::DataprocV1::ClusterConfig]
|
|
342
|
+
attr_accessor :config
|
|
343
|
+
|
|
344
|
+
# Required The cluster name. Cluster names within a project must be unique.
|
|
345
|
+
# Names of deleted clusters can be reused.
|
|
346
|
+
# Corresponds to the JSON property `clusterName`
|
|
253
347
|
# @return [String]
|
|
254
|
-
attr_accessor :
|
|
348
|
+
attr_accessor :cluster_name
|
|
255
349
|
|
|
256
|
-
# Output-only
|
|
257
|
-
#
|
|
350
|
+
# Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc
|
|
351
|
+
# generates this value when it creates the cluster.
|
|
352
|
+
# Corresponds to the JSON property `clusterUuid`
|
|
258
353
|
# @return [String]
|
|
259
|
-
attr_accessor :
|
|
354
|
+
attr_accessor :cluster_uuid
|
|
260
355
|
|
|
261
|
-
#
|
|
262
|
-
#
|
|
263
|
-
# Corresponds to the JSON property `substate`
|
|
356
|
+
# Required The Google Cloud Platform project ID that the cluster belongs to.
|
|
357
|
+
# Corresponds to the JSON property `projectId`
|
|
264
358
|
# @return [String]
|
|
265
|
-
attr_accessor :
|
|
359
|
+
attr_accessor :project_id
|
|
266
360
|
|
|
267
361
|
def initialize(**args)
|
|
268
362
|
update!(**args)
|
|
@@ -270,25 +364,27 @@ module Google
|
|
|
270
364
|
|
|
271
365
|
# Update properties of this object
|
|
272
366
|
def update!(**args)
|
|
273
|
-
@
|
|
274
|
-
@
|
|
275
|
-
@
|
|
276
|
-
@
|
|
367
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
368
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
|
369
|
+
@status = args[:status] if args.key?(:status)
|
|
370
|
+
@status_history = args[:status_history] if args.key?(:status_history)
|
|
371
|
+
@config = args[:config] if args.key?(:config)
|
|
372
|
+
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
373
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
374
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
|
277
375
|
end
|
|
278
376
|
end
|
|
279
377
|
|
|
280
|
-
# The
|
|
281
|
-
class
|
|
378
|
+
# The response message for Operations.ListOperations.
|
|
379
|
+
class ListOperationsResponse
|
|
282
380
|
include Google::Apis::Core::Hashable
|
|
283
381
|
|
|
284
|
-
#
|
|
285
|
-
# Corresponds to the JSON property `
|
|
286
|
-
# @return [Array<Google::Apis::DataprocV1::
|
|
287
|
-
attr_accessor :
|
|
382
|
+
# A list of operations that matches the specified filter in the request.
|
|
383
|
+
# Corresponds to the JSON property `operations`
|
|
384
|
+
# @return [Array<Google::Apis::DataprocV1::Operation>]
|
|
385
|
+
attr_accessor :operations
|
|
288
386
|
|
|
289
|
-
#
|
|
290
|
-
# to fetch. To fetch additional results, provide this value as the page_token in
|
|
291
|
-
# a subsequent <code>ListClustersRequest</code>.
|
|
387
|
+
# The standard List next-page token.
|
|
292
388
|
# Corresponds to the JSON property `nextPageToken`
|
|
293
389
|
# @return [String]
|
|
294
390
|
attr_accessor :next_page_token
|
|
@@ -299,107 +395,79 @@ module Google
|
|
|
299
395
|
|
|
300
396
|
# Update properties of this object
|
|
301
397
|
def update!(**args)
|
|
302
|
-
@
|
|
398
|
+
@operations = args[:operations] if args.key?(:operations)
|
|
303
399
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
304
400
|
end
|
|
305
401
|
end
|
|
306
402
|
|
|
307
|
-
#
|
|
308
|
-
class
|
|
403
|
+
# Metadata describing the operation.
|
|
404
|
+
class OperationMetadata
|
|
309
405
|
include Google::Apis::Core::Hashable
|
|
310
406
|
|
|
311
|
-
#
|
|
312
|
-
# Corresponds to the JSON property `
|
|
313
|
-
# @return [Google::Apis::DataprocV1::JobStatus]
|
|
314
|
-
attr_accessor :status
|
|
315
|
-
|
|
316
|
-
# Cloud Dataproc job config.
|
|
317
|
-
# Corresponds to the JSON property `placement`
|
|
318
|
-
# @return [Google::Apis::DataprocV1::JobPlacement]
|
|
319
|
-
attr_accessor :placement
|
|
320
|
-
|
|
321
|
-
# Output-only If present, the location of miscellaneous control files which may
|
|
322
|
-
# be used as part of job setup and handling. If not present, control files may
|
|
323
|
-
# be placed in the same location as driver_output_uri.
|
|
324
|
-
# Corresponds to the JSON property `driverControlFilesUri`
|
|
407
|
+
# The time that the operation completed.
|
|
408
|
+
# Corresponds to the JSON property `endTime`
|
|
325
409
|
# @return [String]
|
|
326
|
-
attr_accessor :
|
|
410
|
+
attr_accessor :end_time
|
|
327
411
|
|
|
328
|
-
#
|
|
329
|
-
#
|
|
330
|
-
#
|
|
331
|
-
|
|
332
|
-
attr_accessor :scheduling
|
|
412
|
+
# The time that the operation was started by the server.
|
|
413
|
+
# Corresponds to the JSON property `startTime`
|
|
414
|
+
# @return [String]
|
|
415
|
+
attr_accessor :start_time
|
|
333
416
|
|
|
334
|
-
#
|
|
335
|
-
#
|
|
336
|
-
#
|
|
337
|
-
|
|
338
|
-
attr_accessor :pig_job
|
|
417
|
+
# Output-only Errors encountered during operation execution.
|
|
418
|
+
# Corresponds to the JSON property `warnings`
|
|
419
|
+
# @return [Array<String>]
|
|
420
|
+
attr_accessor :warnings
|
|
339
421
|
|
|
340
|
-
#
|
|
341
|
-
#
|
|
342
|
-
#
|
|
343
|
-
|
|
344
|
-
attr_accessor :hive_job
|
|
422
|
+
# The time that the operation was requested.
|
|
423
|
+
# Corresponds to the JSON property `insertTime`
|
|
424
|
+
# @return [String]
|
|
425
|
+
attr_accessor :insert_time
|
|
345
426
|
|
|
346
|
-
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
|
|
350
|
-
# . No more than 32 labels can be associated with a job.
|
|
351
|
-
# Corresponds to the JSON property `labels`
|
|
352
|
-
# @return [Hash<String,String>]
|
|
353
|
-
attr_accessor :labels
|
|
427
|
+
# Output-only Previous operation status.
|
|
428
|
+
# Corresponds to the JSON property `statusHistory`
|
|
429
|
+
# @return [Array<Google::Apis::DataprocV1::OperationStatus>]
|
|
430
|
+
attr_accessor :status_history
|
|
354
431
|
|
|
355
|
-
# Output-only
|
|
356
|
-
#
|
|
357
|
-
# Corresponds to the JSON property `driverOutputResourceUri`
|
|
432
|
+
# Output-only The operation type.
|
|
433
|
+
# Corresponds to the JSON property `operationType`
|
|
358
434
|
# @return [String]
|
|
359
|
-
attr_accessor :
|
|
435
|
+
attr_accessor :operation_type
|
|
360
436
|
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
|
|
365
|
-
attr_accessor :spark_job
|
|
437
|
+
# Output-only Short description of operation.
|
|
438
|
+
# Corresponds to the JSON property `description`
|
|
439
|
+
# @return [String]
|
|
440
|
+
attr_accessor :description
|
|
366
441
|
|
|
367
|
-
#
|
|
368
|
-
#
|
|
369
|
-
#
|
|
370
|
-
|
|
371
|
-
attr_accessor :spark_sql_job
|
|
442
|
+
# The status of the operation.
|
|
443
|
+
# Corresponds to the JSON property `status`
|
|
444
|
+
# @return [Google::Apis::DataprocV1::OperationStatus]
|
|
445
|
+
attr_accessor :status
|
|
372
446
|
|
|
373
|
-
#
|
|
374
|
-
# Corresponds to the JSON property `
|
|
375
|
-
# @return [
|
|
376
|
-
attr_accessor :
|
|
447
|
+
# A message containing any operation metadata details.
|
|
448
|
+
# Corresponds to the JSON property `details`
|
|
449
|
+
# @return [String]
|
|
450
|
+
attr_accessor :details
|
|
377
451
|
|
|
378
|
-
#
|
|
379
|
-
#
|
|
380
|
-
#
|
|
381
|
-
|
|
382
|
-
# @return [Array<Google::Apis::DataprocV1::YarnApplication>]
|
|
383
|
-
attr_accessor :yarn_applications
|
|
452
|
+
# A message containing the operation state.
|
|
453
|
+
# Corresponds to the JSON property `state`
|
|
454
|
+
# @return [String]
|
|
455
|
+
attr_accessor :state
|
|
384
456
|
|
|
385
|
-
#
|
|
386
|
-
#
|
|
387
|
-
#
|
|
388
|
-
|
|
389
|
-
attr_accessor :pyspark_job
|
|
457
|
+
# Cluster UUId for the operation.
|
|
458
|
+
# Corresponds to the JSON property `clusterUuid`
|
|
459
|
+
# @return [String]
|
|
460
|
+
attr_accessor :cluster_uuid
|
|
390
461
|
|
|
391
|
-
#
|
|
392
|
-
# Corresponds to the JSON property `
|
|
393
|
-
# @return [
|
|
394
|
-
attr_accessor :
|
|
462
|
+
# Name of the cluster for the operation.
|
|
463
|
+
# Corresponds to the JSON property `clusterName`
|
|
464
|
+
# @return [String]
|
|
465
|
+
attr_accessor :cluster_name
|
|
395
466
|
|
|
396
|
-
# A
|
|
397
|
-
#
|
|
398
|
-
#
|
|
399
|
-
|
|
400
|
-
# Corresponds to the JSON property `hadoopJob`
|
|
401
|
-
# @return [Google::Apis::DataprocV1::HadoopJob]
|
|
402
|
-
attr_accessor :hadoop_job
|
|
467
|
+
# A message containing the detailed operation state.
|
|
468
|
+
# Corresponds to the JSON property `innerState`
|
|
469
|
+
# @return [String]
|
|
470
|
+
attr_accessor :inner_state
|
|
403
471
|
|
|
404
472
|
def initialize(**args)
|
|
405
473
|
update!(**args)
|
|
@@ -407,121 +475,72 @@ module Google
|
|
|
407
475
|
|
|
408
476
|
# Update properties of this object
|
|
409
477
|
def update!(**args)
|
|
410
|
-
@
|
|
411
|
-
@
|
|
412
|
-
@
|
|
413
|
-
@
|
|
414
|
-
@pig_job = args[:pig_job] if args.key?(:pig_job)
|
|
415
|
-
@hive_job = args[:hive_job] if args.key?(:hive_job)
|
|
416
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
417
|
-
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
|
|
418
|
-
@spark_job = args[:spark_job] if args.key?(:spark_job)
|
|
419
|
-
@spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
|
|
478
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
479
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
480
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
|
481
|
+
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
420
482
|
@status_history = args[:status_history] if args.key?(:status_history)
|
|
421
|
-
@
|
|
422
|
-
@
|
|
423
|
-
@
|
|
424
|
-
@
|
|
483
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
484
|
+
@description = args[:description] if args.key?(:description)
|
|
485
|
+
@status = args[:status] if args.key?(:status)
|
|
486
|
+
@details = args[:details] if args.key?(:details)
|
|
487
|
+
@state = args[:state] if args.key?(:state)
|
|
488
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
489
|
+
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
490
|
+
@inner_state = args[:inner_state] if args.key?(:inner_state)
|
|
425
491
|
end
|
|
426
492
|
end
|
|
427
493
|
|
|
428
|
-
#
|
|
429
|
-
|
|
430
|
-
class SparkJob
|
|
494
|
+
# Specifies the selection and config of software inside the cluster.
|
|
495
|
+
class SoftwareConfig
|
|
431
496
|
include Google::Apis::Core::Hashable
|
|
432
497
|
|
|
433
|
-
# Optional
|
|
434
|
-
#
|
|
435
|
-
#
|
|
436
|
-
#
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
# The runtime logging config of the job.
|
|
440
|
-
# Corresponds to the JSON property `loggingConfig`
|
|
441
|
-
# @return [Google::Apis::DataprocV1::LoggingConfig]
|
|
442
|
-
attr_accessor :logging_config
|
|
498
|
+
# Optional The version of software inside the cluster. It must match the regular
|
|
499
|
+
# expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest version (
|
|
500
|
+
# see Cloud Dataproc Versioning).
|
|
501
|
+
# Corresponds to the JSON property `imageVersion`
|
|
502
|
+
# @return [String]
|
|
503
|
+
attr_accessor :image_version
|
|
443
504
|
|
|
444
|
-
# Optional
|
|
445
|
-
#
|
|
446
|
-
#
|
|
447
|
-
#
|
|
505
|
+
# Optional The properties to set on daemon config files.Property keys are
|
|
506
|
+
# specified in prefix:property format, such as core:fs.defaultFS. The following
|
|
507
|
+
# are supported prefixes and their mappings:
|
|
508
|
+
# core: core-site.xml
|
|
509
|
+
# hdfs: hdfs-site.xml
|
|
510
|
+
# mapred: mapred-site.xml
|
|
511
|
+
# yarn: yarn-site.xml
|
|
512
|
+
# hive: hive-site.xml
|
|
513
|
+
# pig: pig.properties
|
|
514
|
+
# spark: spark-defaults.conf
|
|
448
515
|
# Corresponds to the JSON property `properties`
|
|
449
516
|
# @return [Hash<String,String>]
|
|
450
517
|
attr_accessor :properties
|
|
451
518
|
|
|
452
|
-
# Optional The arguments to pass to the driver. Do not include arguments, such
|
|
453
|
-
# as --conf, that can be set as job properties, since a collision may occur that
|
|
454
|
-
# causes an incorrect job submission.
|
|
455
|
-
# Corresponds to the JSON property `args`
|
|
456
|
-
# @return [Array<String>]
|
|
457
|
-
attr_accessor :args
|
|
458
|
-
|
|
459
|
-
# Optional HCFS URIs of files to be copied to the working directory of Spark
|
|
460
|
-
# drivers and distributed tasks. Useful for naively parallel tasks.
|
|
461
|
-
# Corresponds to the JSON property `fileUris`
|
|
462
|
-
# @return [Array<String>]
|
|
463
|
-
attr_accessor :file_uris
|
|
464
|
-
|
|
465
|
-
# The name of the driver's main class. The jar file that contains the class must
|
|
466
|
-
# be in the default CLASSPATH or specified in jar_file_uris.
|
|
467
|
-
# Corresponds to the JSON property `mainClass`
|
|
468
|
-
# @return [String]
|
|
469
|
-
attr_accessor :main_class
|
|
470
|
-
|
|
471
|
-
# Optional HCFS URIs of archives to be extracted in the working directory of
|
|
472
|
-
# Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
|
|
473
|
-
# zip.
|
|
474
|
-
# Corresponds to the JSON property `archiveUris`
|
|
475
|
-
# @return [Array<String>]
|
|
476
|
-
attr_accessor :archive_uris
|
|
477
|
-
|
|
478
|
-
# The HCFS URI of the jar file that contains the main class.
|
|
479
|
-
# Corresponds to the JSON property `mainJarFileUri`
|
|
480
|
-
# @return [String]
|
|
481
|
-
attr_accessor :main_jar_file_uri
|
|
482
|
-
|
|
483
519
|
def initialize(**args)
|
|
484
520
|
update!(**args)
|
|
485
521
|
end
|
|
486
522
|
|
|
487
523
|
# Update properties of this object
|
|
488
524
|
def update!(**args)
|
|
489
|
-
@
|
|
490
|
-
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
525
|
+
@image_version = args[:image_version] if args.key?(:image_version)
|
|
491
526
|
@properties = args[:properties] if args.key?(:properties)
|
|
492
|
-
@args = args[:args] if args.key?(:args)
|
|
493
|
-
@file_uris = args[:file_uris] if args.key?(:file_uris)
|
|
494
|
-
@main_class = args[:main_class] if args.key?(:main_class)
|
|
495
|
-
@archive_uris = args[:archive_uris] if args.key?(:archive_uris)
|
|
496
|
-
@main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
|
|
497
527
|
end
|
|
498
528
|
end
|
|
499
529
|
|
|
500
|
-
# Cloud Dataproc job
|
|
501
|
-
class
|
|
530
|
+
# Cloud Dataproc job config.
|
|
531
|
+
class JobPlacement
|
|
502
532
|
include Google::Apis::Core::Hashable
|
|
503
533
|
|
|
504
|
-
#
|
|
505
|
-
# Corresponds to the JSON property `
|
|
506
|
-
# @return [String]
|
|
507
|
-
attr_accessor :state
|
|
508
|
-
|
|
509
|
-
# Output-only Optional job state details, such as an error description if the
|
|
510
|
-
# state is <code>ERROR</code>.
|
|
511
|
-
# Corresponds to the JSON property `details`
|
|
512
|
-
# @return [String]
|
|
513
|
-
attr_accessor :details
|
|
514
|
-
|
|
515
|
-
# Output-only The time when this state was entered.
|
|
516
|
-
# Corresponds to the JSON property `stateStartTime`
|
|
534
|
+
# Required The name of the cluster where the job will be submitted.
|
|
535
|
+
# Corresponds to the JSON property `clusterName`
|
|
517
536
|
# @return [String]
|
|
518
|
-
attr_accessor :
|
|
537
|
+
attr_accessor :cluster_name
|
|
519
538
|
|
|
520
|
-
# Output-only
|
|
521
|
-
#
|
|
522
|
-
# Corresponds to the JSON property `
|
|
539
|
+
# Output-only A cluster UUID generated by the Cloud Dataproc service when the
|
|
540
|
+
# job is submitted.
|
|
541
|
+
# Corresponds to the JSON property `clusterUuid`
|
|
523
542
|
# @return [String]
|
|
524
|
-
attr_accessor :
|
|
543
|
+
attr_accessor :cluster_uuid
|
|
525
544
|
|
|
526
545
|
def initialize(**args)
|
|
527
546
|
update!(**args)
|
|
@@ -529,27 +548,58 @@ module Google
|
|
|
529
548
|
|
|
530
549
|
# Update properties of this object
|
|
531
550
|
def update!(**args)
|
|
532
|
-
@
|
|
533
|
-
@
|
|
534
|
-
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
535
|
-
@substate = args[:substate] if args.key?(:substate)
|
|
551
|
+
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
552
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
536
553
|
end
|
|
537
554
|
end
|
|
538
555
|
|
|
539
|
-
#
|
|
540
|
-
|
|
556
|
+
# A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
|
|
557
|
+
# on YARN.
|
|
558
|
+
class PigJob
|
|
541
559
|
include Google::Apis::Core::Hashable
|
|
542
560
|
|
|
543
|
-
#
|
|
544
|
-
#
|
|
545
|
-
#
|
|
546
|
-
|
|
561
|
+
# Optional Whether to continue executing queries if a query fails. The default
|
|
562
|
+
# value is false. Setting to true can be useful when executing independent
|
|
563
|
+
# parallel queries.
|
|
564
|
+
# Corresponds to the JSON property `continueOnFailure`
|
|
565
|
+
# @return [Boolean]
|
|
566
|
+
attr_accessor :continue_on_failure
|
|
567
|
+
alias_method :continue_on_failure?, :continue_on_failure
|
|
547
568
|
|
|
548
|
-
#
|
|
549
|
-
#
|
|
550
|
-
#
|
|
569
|
+
# A list of queries to run on a cluster.
|
|
570
|
+
# Corresponds to the JSON property `queryList`
|
|
571
|
+
# @return [Google::Apis::DataprocV1::QueryList]
|
|
572
|
+
attr_accessor :query_list
|
|
573
|
+
|
|
574
|
+
# The HCFS URI of the script that contains the Pig queries.
|
|
575
|
+
# Corresponds to the JSON property `queryFileUri`
|
|
551
576
|
# @return [String]
|
|
552
|
-
attr_accessor :
|
|
577
|
+
attr_accessor :query_file_uri
|
|
578
|
+
|
|
579
|
+
# Optional HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
|
|
580
|
+
# Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
|
|
581
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
582
|
+
# @return [Array<String>]
|
|
583
|
+
attr_accessor :jar_file_uris
|
|
584
|
+
|
|
585
|
+
# Optional Mapping of query variable names to values (equivalent to the Pig
|
|
586
|
+
# command: name=[value]).
|
|
587
|
+
# Corresponds to the JSON property `scriptVariables`
|
|
588
|
+
# @return [Hash<String,String>]
|
|
589
|
+
attr_accessor :script_variables
|
|
590
|
+
|
|
591
|
+
# The runtime logging config of the job.
|
|
592
|
+
# Corresponds to the JSON property `loggingConfig`
|
|
593
|
+
# @return [Google::Apis::DataprocV1::LoggingConfig]
|
|
594
|
+
attr_accessor :logging_config
|
|
595
|
+
|
|
596
|
+
# Optional A mapping of property names to values, used to configure Pig.
|
|
597
|
+
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
598
|
+
# overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
|
|
599
|
+
# pig/conf/pig.properties, and classes in user code.
|
|
600
|
+
# Corresponds to the JSON property `properties`
|
|
601
|
+
# @return [Hash<String,String>]
|
|
602
|
+
attr_accessor :properties
|
|
553
603
|
|
|
554
604
|
def initialize(**args)
|
|
555
605
|
update!(**args)
|
|
@@ -557,34 +607,40 @@ module Google
|
|
|
557
607
|
|
|
558
608
|
# Update properties of this object
|
|
559
609
|
def update!(**args)
|
|
560
|
-
@
|
|
561
|
-
@
|
|
610
|
+
@continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
|
|
611
|
+
@query_list = args[:query_list] if args.key?(:query_list)
|
|
612
|
+
@query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
|
|
613
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
614
|
+
@script_variables = args[:script_variables] if args.key?(:script_variables)
|
|
615
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
616
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
562
617
|
end
|
|
563
618
|
end
|
|
564
619
|
|
|
565
|
-
# The status of
|
|
566
|
-
class
|
|
620
|
+
# The status of a cluster and its instances.
|
|
621
|
+
class ClusterStatus
|
|
567
622
|
include Google::Apis::Core::Hashable
|
|
568
623
|
|
|
569
|
-
# Output-only
|
|
570
|
-
# Corresponds to the JSON property `innerState`
|
|
571
|
-
# @return [String]
|
|
572
|
-
attr_accessor :inner_state
|
|
573
|
-
|
|
574
|
-
# Output-only The time this state was entered.
|
|
624
|
+
# Output-only Time when this state was entered.
|
|
575
625
|
# Corresponds to the JSON property `stateStartTime`
|
|
576
626
|
# @return [String]
|
|
577
627
|
attr_accessor :state_start_time
|
|
578
628
|
|
|
579
|
-
# Output-only
|
|
580
|
-
#
|
|
629
|
+
# Output-only Additional state information that includes status reported by the
|
|
630
|
+
# agent.
|
|
631
|
+
# Corresponds to the JSON property `substate`
|
|
581
632
|
# @return [String]
|
|
582
|
-
attr_accessor :
|
|
633
|
+
attr_accessor :substate
|
|
583
634
|
|
|
584
|
-
# Output-
|
|
585
|
-
# Corresponds to the JSON property `
|
|
586
|
-
# @return [String]
|
|
587
|
-
attr_accessor :
|
|
635
|
+
# Output-only Optional details of cluster's state.
|
|
636
|
+
# Corresponds to the JSON property `detail`
|
|
637
|
+
# @return [String]
|
|
638
|
+
attr_accessor :detail
|
|
639
|
+
|
|
640
|
+
# Output-only The cluster's state.
|
|
641
|
+
# Corresponds to the JSON property `state`
|
|
642
|
+
# @return [String]
|
|
643
|
+
attr_accessor :state
|
|
588
644
|
|
|
589
645
|
def initialize(**args)
|
|
590
646
|
update!(**args)
|
|
@@ -592,42 +648,65 @@ module Google
|
|
|
592
648
|
|
|
593
649
|
# Update properties of this object
|
|
594
650
|
def update!(**args)
|
|
595
|
-
@inner_state = args[:inner_state] if args.key?(:inner_state)
|
|
596
651
|
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
652
|
+
@substate = args[:substate] if args.key?(:substate)
|
|
653
|
+
@detail = args[:detail] if args.key?(:detail)
|
|
597
654
|
@state = args[:state] if args.key?(:state)
|
|
598
|
-
@details = args[:details] if args.key?(:details)
|
|
599
655
|
end
|
|
600
656
|
end
|
|
601
657
|
|
|
602
|
-
#
|
|
603
|
-
|
|
604
|
-
# MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
|
|
605
|
-
# docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
|
|
606
|
-
class HadoopJob
|
|
658
|
+
# The list of all clusters in a project.
|
|
659
|
+
class ListClustersResponse
|
|
607
660
|
include Google::Apis::Core::Hashable
|
|
608
661
|
|
|
609
|
-
# The
|
|
610
|
-
#
|
|
662
|
+
# Output-only The clusters in the project.
|
|
663
|
+
# Corresponds to the JSON property `clusters`
|
|
664
|
+
# @return [Array<Google::Apis::DataprocV1::Cluster>]
|
|
665
|
+
attr_accessor :clusters
|
|
666
|
+
|
|
667
|
+
# Output-only This token is included in the response if there are more results
|
|
668
|
+
# to fetch. To fetch additional results, provide this value as the page_token in
|
|
669
|
+
# a subsequent <code>ListClustersRequest</code>.
|
|
670
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
671
|
+
# @return [String]
|
|
672
|
+
attr_accessor :next_page_token
|
|
673
|
+
|
|
674
|
+
def initialize(**args)
|
|
675
|
+
update!(**args)
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
# Update properties of this object
|
|
679
|
+
def update!(**args)
|
|
680
|
+
@clusters = args[:clusters] if args.key?(:clusters)
|
|
681
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
682
|
+
end
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
# A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
|
|
686
|
+
# applications on YARN.
|
|
687
|
+
class SparkJob
|
|
688
|
+
include Google::Apis::Core::Hashable
|
|
689
|
+
|
|
690
|
+
# The name of the driver's main class. The jar file that contains the class must
|
|
691
|
+
# be in the default CLASSPATH or specified in jar_file_uris.
|
|
611
692
|
# Corresponds to the JSON property `mainClass`
|
|
612
693
|
# @return [String]
|
|
613
694
|
attr_accessor :main_class
|
|
614
695
|
|
|
615
696
|
# Optional HCFS URIs of archives to be extracted in the working directory of
|
|
616
|
-
#
|
|
697
|
+
# Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
|
|
617
698
|
# zip.
|
|
618
699
|
# Corresponds to the JSON property `archiveUris`
|
|
619
700
|
# @return [Array<String>]
|
|
620
701
|
attr_accessor :archive_uris
|
|
621
702
|
|
|
622
|
-
# The HCFS URI of the jar file
|
|
623
|
-
# bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
|
|
624
|
-
# samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
|
|
625
|
-
# mapreduce-examples.jar'
|
|
703
|
+
# The HCFS URI of the jar file that contains the main class.
|
|
626
704
|
# Corresponds to the JSON property `mainJarFileUri`
|
|
627
705
|
# @return [String]
|
|
628
706
|
attr_accessor :main_jar_file_uri
|
|
629
707
|
|
|
630
|
-
# Optional
|
|
708
|
+
# Optional HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver
|
|
709
|
+
# and tasks.
|
|
631
710
|
# Corresponds to the JSON property `jarFileUris`
|
|
632
711
|
# @return [Array<String>]
|
|
633
712
|
attr_accessor :jar_file_uris
|
|
@@ -637,24 +716,23 @@ module Google
|
|
|
637
716
|
# @return [Google::Apis::DataprocV1::LoggingConfig]
|
|
638
717
|
attr_accessor :logging_config
|
|
639
718
|
|
|
640
|
-
# Optional A mapping of property names to values, used to configure
|
|
719
|
+
# Optional A mapping of property names to values, used to configure Spark.
|
|
641
720
|
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
642
|
-
# overwritten. Can include properties set in /etc/
|
|
643
|
-
# in user code.
|
|
721
|
+
# overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
|
|
722
|
+
# and classes in user code.
|
|
644
723
|
# Corresponds to the JSON property `properties`
|
|
645
724
|
# @return [Hash<String,String>]
|
|
646
725
|
attr_accessor :properties
|
|
647
726
|
|
|
648
727
|
# Optional The arguments to pass to the driver. Do not include arguments, such
|
|
649
|
-
# as
|
|
650
|
-
#
|
|
728
|
+
# as --conf, that can be set as job properties, since a collision may occur that
|
|
729
|
+
# causes an incorrect job submission.
|
|
651
730
|
# Corresponds to the JSON property `args`
|
|
652
731
|
# @return [Array<String>]
|
|
653
732
|
attr_accessor :args
|
|
654
733
|
|
|
655
|
-
# Optional HCFS
|
|
656
|
-
#
|
|
657
|
-
# parallel tasks.
|
|
734
|
+
# Optional HCFS URIs of files to be copied to the working directory of Spark
|
|
735
|
+
# drivers and distributed tasks. Useful for naively parallel tasks.
|
|
658
736
|
# Corresponds to the JSON property `fileUris`
|
|
659
737
|
# @return [Array<String>]
|
|
660
738
|
attr_accessor :file_uris
|
|
@@ -676,26 +754,102 @@ module Google
|
|
|
676
754
|
end
|
|
677
755
|
end
|
|
678
756
|
|
|
679
|
-
# A
|
|
680
|
-
class
|
|
757
|
+
# A Cloud Dataproc job resource.
|
|
758
|
+
class Job
|
|
681
759
|
include Google::Apis::Core::Hashable
|
|
682
760
|
|
|
683
|
-
#
|
|
684
|
-
#
|
|
685
|
-
#
|
|
686
|
-
#
|
|
687
|
-
#
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
#
|
|
691
|
-
#
|
|
692
|
-
#
|
|
693
|
-
# ]
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
#
|
|
697
|
-
#
|
|
698
|
-
|
|
761
|
+
# Output-only The collection of YARN applications spun up by this job.Beta
|
|
762
|
+
# Feature: This report is available for testing purposes only. It may be changed
|
|
763
|
+
# before final release.
|
|
764
|
+
# Corresponds to the JSON property `yarnApplications`
|
|
765
|
+
# @return [Array<Google::Apis::DataprocV1::YarnApplication>]
|
|
766
|
+
attr_accessor :yarn_applications
|
|
767
|
+
|
|
768
|
+
# A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
|
|
769
|
+
# 0.9.0/python-programming-guide.html) applications on YARN.
|
|
770
|
+
# Corresponds to the JSON property `pysparkJob`
|
|
771
|
+
# @return [Google::Apis::DataprocV1::PySparkJob]
|
|
772
|
+
attr_accessor :pyspark_job
|
|
773
|
+
|
|
774
|
+
# Encapsulates the full scoping used to reference a job.
|
|
775
|
+
# Corresponds to the JSON property `reference`
|
|
776
|
+
# @return [Google::Apis::DataprocV1::JobReference]
|
|
777
|
+
attr_accessor :reference
|
|
778
|
+
|
|
779
|
+
# A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
|
|
780
|
+
# apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
|
|
781
|
+
# MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
|
|
782
|
+
# docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
|
|
783
|
+
# Corresponds to the JSON property `hadoopJob`
|
|
784
|
+
# @return [Google::Apis::DataprocV1::HadoopJob]
|
|
785
|
+
attr_accessor :hadoop_job
|
|
786
|
+
|
|
787
|
+
# Cloud Dataproc job status.
|
|
788
|
+
# Corresponds to the JSON property `status`
|
|
789
|
+
# @return [Google::Apis::DataprocV1::JobStatus]
|
|
790
|
+
attr_accessor :status
|
|
791
|
+
|
|
792
|
+
# Cloud Dataproc job config.
|
|
793
|
+
# Corresponds to the JSON property `placement`
|
|
794
|
+
# @return [Google::Apis::DataprocV1::JobPlacement]
|
|
795
|
+
attr_accessor :placement
|
|
796
|
+
|
|
797
|
+
# Output-only If present, the location of miscellaneous control files which may
|
|
798
|
+
# be used as part of job setup and handling. If not present, control files may
|
|
799
|
+
# be placed in the same location as driver_output_uri.
|
|
800
|
+
# Corresponds to the JSON property `driverControlFilesUri`
|
|
801
|
+
# @return [String]
|
|
802
|
+
attr_accessor :driver_control_files_uri
|
|
803
|
+
|
|
804
|
+
# Job scheduling options.Beta Feature: These options are available for testing
|
|
805
|
+
# purposes only. They may be changed before final release.
|
|
806
|
+
# Corresponds to the JSON property `scheduling`
|
|
807
|
+
# @return [Google::Apis::DataprocV1::JobScheduling]
|
|
808
|
+
attr_accessor :scheduling
|
|
809
|
+
|
|
810
|
+
# A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
|
|
811
|
+
# on YARN.
|
|
812
|
+
# Corresponds to the JSON property `pigJob`
|
|
813
|
+
# @return [Google::Apis::DataprocV1::PigJob]
|
|
814
|
+
attr_accessor :pig_job
|
|
815
|
+
|
|
816
|
+
# A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
|
|
817
|
+
# queries on YARN.
|
|
818
|
+
# Corresponds to the JSON property `hiveJob`
|
|
819
|
+
# @return [Google::Apis::DataprocV1::HiveJob]
|
|
820
|
+
attr_accessor :hive_job
|
|
821
|
+
|
|
822
|
+
# Optional The labels to associate with this job. Label keys must contain 1 to
|
|
823
|
+
# 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.
|
|
824
|
+
# txt). Label values may be empty, but, if present, must contain 1 to 63
|
|
825
|
+
# characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
|
|
826
|
+
# . No more than 32 labels can be associated with a job.
|
|
827
|
+
# Corresponds to the JSON property `labels`
|
|
828
|
+
# @return [Hash<String,String>]
|
|
829
|
+
attr_accessor :labels
|
|
830
|
+
|
|
831
|
+
# Output-only A URI pointing to the location of the stdout of the job's driver
|
|
832
|
+
# program.
|
|
833
|
+
# Corresponds to the JSON property `driverOutputResourceUri`
|
|
834
|
+
# @return [String]
|
|
835
|
+
attr_accessor :driver_output_resource_uri
|
|
836
|
+
|
|
837
|
+
# Output-only The previous job status.
|
|
838
|
+
# Corresponds to the JSON property `statusHistory`
|
|
839
|
+
# @return [Array<Google::Apis::DataprocV1::JobStatus>]
|
|
840
|
+
attr_accessor :status_history
|
|
841
|
+
|
|
842
|
+
# A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
|
|
843
|
+
# applications on YARN.
|
|
844
|
+
# Corresponds to the JSON property `sparkJob`
|
|
845
|
+
# @return [Google::Apis::DataprocV1::SparkJob]
|
|
846
|
+
attr_accessor :spark_job
|
|
847
|
+
|
|
848
|
+
# A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
|
|
849
|
+
# ) queries.
|
|
850
|
+
# Corresponds to the JSON property `sparkSqlJob`
|
|
851
|
+
# @return [Google::Apis::DataprocV1::SparkSqlJob]
|
|
852
|
+
attr_accessor :spark_sql_job
|
|
699
853
|
|
|
700
854
|
def initialize(**args)
|
|
701
855
|
update!(**args)
|
|
@@ -703,39 +857,49 @@ module Google
|
|
|
703
857
|
|
|
704
858
|
# Update properties of this object
|
|
705
859
|
def update!(**args)
|
|
706
|
-
@
|
|
860
|
+
@yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
|
|
861
|
+
@pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
|
|
862
|
+
@reference = args[:reference] if args.key?(:reference)
|
|
863
|
+
@hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
|
|
864
|
+
@status = args[:status] if args.key?(:status)
|
|
865
|
+
@placement = args[:placement] if args.key?(:placement)
|
|
866
|
+
@driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
|
|
867
|
+
@scheduling = args[:scheduling] if args.key?(:scheduling)
|
|
868
|
+
@pig_job = args[:pig_job] if args.key?(:pig_job)
|
|
869
|
+
@hive_job = args[:hive_job] if args.key?(:hive_job)
|
|
870
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
871
|
+
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
|
|
872
|
+
@status_history = args[:status_history] if args.key?(:status_history)
|
|
873
|
+
@spark_job = args[:spark_job] if args.key?(:spark_job)
|
|
874
|
+
@spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
|
|
707
875
|
end
|
|
708
876
|
end
|
|
709
877
|
|
|
710
|
-
#
|
|
711
|
-
|
|
712
|
-
# Beta Feature: This report is available for testing purposes only. It may be
|
|
713
|
-
# changed before final release.
|
|
714
|
-
class YarnApplication
|
|
878
|
+
# Cloud Dataproc job status.
|
|
879
|
+
class JobStatus
|
|
715
880
|
include Google::Apis::Core::Hashable
|
|
716
881
|
|
|
717
|
-
#
|
|
718
|
-
#
|
|
719
|
-
# the internal hostname, and requires a proxy server for resolution and,
|
|
720
|
-
# possibly, access.
|
|
721
|
-
# Corresponds to the JSON property `trackingUrl`
|
|
882
|
+
# Output-only A state message specifying the overall job state.
|
|
883
|
+
# Corresponds to the JSON property `state`
|
|
722
884
|
# @return [String]
|
|
723
|
-
attr_accessor :
|
|
885
|
+
attr_accessor :state
|
|
724
886
|
|
|
725
|
-
#
|
|
726
|
-
#
|
|
727
|
-
#
|
|
728
|
-
|
|
887
|
+
# Output-only Optional job state details, such as an error description if the
|
|
888
|
+
# state is <code>ERROR</code>.
|
|
889
|
+
# Corresponds to the JSON property `details`
|
|
890
|
+
# @return [String]
|
|
891
|
+
attr_accessor :details
|
|
729
892
|
|
|
730
|
-
#
|
|
731
|
-
# Corresponds to the JSON property `
|
|
893
|
+
# Output-only The time when this state was entered.
|
|
894
|
+
# Corresponds to the JSON property `stateStartTime`
|
|
732
895
|
# @return [String]
|
|
733
|
-
attr_accessor :
|
|
896
|
+
attr_accessor :state_start_time
|
|
734
897
|
|
|
735
|
-
#
|
|
736
|
-
#
|
|
898
|
+
# Output-only Additional state information, which includes status reported by
|
|
899
|
+
# the agent.
|
|
900
|
+
# Corresponds to the JSON property `substate`
|
|
737
901
|
# @return [String]
|
|
738
|
-
attr_accessor :
|
|
902
|
+
attr_accessor :substate
|
|
739
903
|
|
|
740
904
|
def initialize(**args)
|
|
741
905
|
update!(**args)
|
|
@@ -743,43 +907,62 @@ module Google
|
|
|
743
907
|
|
|
744
908
|
# Update properties of this object
|
|
745
909
|
def update!(**args)
|
|
746
|
-
@tracking_url = args[:tracking_url] if args.key?(:tracking_url)
|
|
747
|
-
@progress = args[:progress] if args.key?(:progress)
|
|
748
910
|
@state = args[:state] if args.key?(:state)
|
|
749
|
-
@
|
|
911
|
+
@details = args[:details] if args.key?(:details)
|
|
912
|
+
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
913
|
+
@substate = args[:substate] if args.key?(:substate)
|
|
750
914
|
end
|
|
751
915
|
end
|
|
752
916
|
|
|
753
|
-
#
|
|
754
|
-
class
|
|
917
|
+
# Specifies the resources used to actively manage an instance group.
|
|
918
|
+
class ManagedGroupConfig
|
|
755
919
|
include Google::Apis::Core::Hashable
|
|
756
920
|
|
|
757
|
-
|
|
758
|
-
|
|
921
|
+
# Output-only The name of the Instance Group Manager for this group.
|
|
922
|
+
# Corresponds to the JSON property `instanceGroupManagerName`
|
|
923
|
+
# @return [String]
|
|
924
|
+
attr_accessor :instance_group_manager_name
|
|
925
|
+
|
|
926
|
+
# Output-only The name of the Instance Template used for the Managed Instance
|
|
927
|
+
# Group.
|
|
928
|
+
# Corresponds to the JSON property `instanceTemplateName`
|
|
929
|
+
# @return [String]
|
|
930
|
+
attr_accessor :instance_template_name
|
|
931
|
+
|
|
932
|
+
def initialize(**args)
|
|
933
|
+
update!(**args)
|
|
759
934
|
end
|
|
760
935
|
|
|
761
936
|
# Update properties of this object
|
|
762
937
|
def update!(**args)
|
|
938
|
+
@instance_group_manager_name = args[:instance_group_manager_name] if args.key?(:instance_group_manager_name)
|
|
939
|
+
@instance_template_name = args[:instance_template_name] if args.key?(:instance_template_name)
|
|
763
940
|
end
|
|
764
941
|
end
|
|
765
942
|
|
|
766
|
-
#
|
|
767
|
-
class
|
|
943
|
+
# The status of the operation.
|
|
944
|
+
class ClusterOperationStatus
|
|
768
945
|
include Google::Apis::Core::Hashable
|
|
769
946
|
|
|
770
|
-
#
|
|
771
|
-
# Corresponds to the JSON property `
|
|
772
|
-
# @return [
|
|
773
|
-
attr_accessor :
|
|
947
|
+
# Output-only A message containing the operation state.
|
|
948
|
+
# Corresponds to the JSON property `state`
|
|
949
|
+
# @return [String]
|
|
950
|
+
attr_accessor :state
|
|
774
951
|
|
|
775
|
-
#
|
|
776
|
-
#
|
|
777
|
-
#
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
#
|
|
781
|
-
#
|
|
782
|
-
|
|
952
|
+
# Output-onlyA message containing any operation metadata details.
|
|
953
|
+
# Corresponds to the JSON property `details`
|
|
954
|
+
# @return [String]
|
|
955
|
+
attr_accessor :details
|
|
956
|
+
|
|
957
|
+
# Output-only A message containing the detailed operation state.
|
|
958
|
+
# Corresponds to the JSON property `innerState`
|
|
959
|
+
# @return [String]
|
|
960
|
+
attr_accessor :inner_state
|
|
961
|
+
|
|
962
|
+
# Output-only The time this state was entered.
|
|
963
|
+
# Corresponds to the JSON property `stateStartTime`
|
|
964
|
+
# @return [String]
|
|
965
|
+
attr_accessor :state_start_time
|
|
783
966
|
|
|
784
967
|
def initialize(**args)
|
|
785
968
|
update!(**args)
|
|
@@ -787,54 +970,33 @@ module Google
|
|
|
787
970
|
|
|
788
971
|
# Update properties of this object
|
|
789
972
|
def update!(**args)
|
|
790
|
-
@
|
|
791
|
-
@
|
|
973
|
+
@state = args[:state] if args.key?(:state)
|
|
974
|
+
@details = args[:details] if args.key?(:details)
|
|
975
|
+
@inner_state = args[:inner_state] if args.key?(:inner_state)
|
|
976
|
+
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
792
977
|
end
|
|
793
978
|
end
|
|
794
979
|
|
|
795
|
-
#
|
|
796
|
-
class
|
|
980
|
+
# A list of queries to run on a cluster.
|
|
981
|
+
class QueryList
|
|
797
982
|
include Google::Apis::Core::Hashable
|
|
798
983
|
|
|
799
|
-
#
|
|
800
|
-
#
|
|
801
|
-
#
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
#
|
|
805
|
-
#
|
|
806
|
-
#
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
#
|
|
810
|
-
#
|
|
984
|
+
# Required The queries to execute. You do not need to terminate a query with a
|
|
985
|
+
# semicolon. Multiple queries can be specified in one string by separating each
|
|
986
|
+
# with a semicolon. Here is an example of an Cloud Dataproc API snippet that
|
|
987
|
+
# uses a QueryList to specify a HiveJob:
|
|
988
|
+
# "hiveJob": `
|
|
989
|
+
# "queryList": `
|
|
990
|
+
# "queries": [
|
|
991
|
+
# "query1",
|
|
992
|
+
# "query2",
|
|
993
|
+
# "query3;query4",
|
|
994
|
+
# ]
|
|
995
|
+
# `
|
|
996
|
+
# `
|
|
997
|
+
# Corresponds to the JSON property `queries`
|
|
811
998
|
# @return [Array<String>]
|
|
812
|
-
attr_accessor :
|
|
813
|
-
|
|
814
|
-
# Output-only Labels associated with the operation
|
|
815
|
-
# Corresponds to the JSON property `labels`
|
|
816
|
-
# @return [Hash<String,String>]
|
|
817
|
-
attr_accessor :labels
|
|
818
|
-
|
|
819
|
-
# The status of the operation.
|
|
820
|
-
# Corresponds to the JSON property `status`
|
|
821
|
-
# @return [Google::Apis::DataprocV1::ClusterOperationStatus]
|
|
822
|
-
attr_accessor :status
|
|
823
|
-
|
|
824
|
-
# Output-only The previous operation status.
|
|
825
|
-
# Corresponds to the JSON property `statusHistory`
|
|
826
|
-
# @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
|
|
827
|
-
attr_accessor :status_history
|
|
828
|
-
|
|
829
|
-
# Output-only Cluster UUID for the operation.
|
|
830
|
-
# Corresponds to the JSON property `clusterUuid`
|
|
831
|
-
# @return [String]
|
|
832
|
-
attr_accessor :cluster_uuid
|
|
833
|
-
|
|
834
|
-
# Output-only Name of the cluster for the operation.
|
|
835
|
-
# Corresponds to the JSON property `clusterName`
|
|
836
|
-
# @return [String]
|
|
837
|
-
attr_accessor :cluster_name
|
|
999
|
+
attr_accessor :queries
|
|
838
1000
|
|
|
839
1001
|
def initialize(**args)
|
|
840
1002
|
update!(**args)
|
|
@@ -842,78 +1004,112 @@ module Google
|
|
|
842
1004
|
|
|
843
1005
|
# Update properties of this object
|
|
844
1006
|
def update!(**args)
|
|
845
|
-
@
|
|
846
|
-
@description = args[:description] if args.key?(:description)
|
|
847
|
-
@warnings = args[:warnings] if args.key?(:warnings)
|
|
848
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
849
|
-
@status = args[:status] if args.key?(:status)
|
|
850
|
-
@status_history = args[:status_history] if args.key?(:status_history)
|
|
851
|
-
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
852
|
-
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
1007
|
+
@queries = args[:queries] if args.key?(:queries)
|
|
853
1008
|
end
|
|
854
1009
|
end
|
|
855
1010
|
|
|
856
|
-
# A
|
|
857
|
-
#
|
|
858
|
-
#
|
|
859
|
-
#
|
|
860
|
-
|
|
861
|
-
# `
|
|
862
|
-
# The JSON representation for Empty is empty JSON object ``.
|
|
863
|
-
class Empty
|
|
1011
|
+
# A YARN application created by a job. Application information is a subset of <
|
|
1012
|
+
# code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
|
|
1013
|
+
# Beta Feature: This report is available for testing purposes only. It may be
|
|
1014
|
+
# changed before final release.
|
|
1015
|
+
class YarnApplication
|
|
864
1016
|
include Google::Apis::Core::Hashable
|
|
865
1017
|
|
|
1018
|
+
# Required The application state.
|
|
1019
|
+
# Corresponds to the JSON property `state`
|
|
1020
|
+
# @return [String]
|
|
1021
|
+
attr_accessor :state
|
|
1022
|
+
|
|
1023
|
+
# Required The application name.
|
|
1024
|
+
# Corresponds to the JSON property `name`
|
|
1025
|
+
# @return [String]
|
|
1026
|
+
attr_accessor :name
|
|
1027
|
+
|
|
1028
|
+
# Optional The HTTP URL of the ApplicationMaster, HistoryServer, or
|
|
1029
|
+
# TimelineServer that provides application-specific information. The URL uses
|
|
1030
|
+
# the internal hostname, and requires a proxy server for resolution and,
|
|
1031
|
+
# possibly, access.
|
|
1032
|
+
# Corresponds to the JSON property `trackingUrl`
|
|
1033
|
+
# @return [String]
|
|
1034
|
+
attr_accessor :tracking_url
|
|
1035
|
+
|
|
1036
|
+
# Required The numerical progress of the application, from 1 to 100.
|
|
1037
|
+
# Corresponds to the JSON property `progress`
|
|
1038
|
+
# @return [Float]
|
|
1039
|
+
attr_accessor :progress
|
|
1040
|
+
|
|
866
1041
|
def initialize(**args)
|
|
867
1042
|
update!(**args)
|
|
868
1043
|
end
|
|
869
1044
|
|
|
870
1045
|
# Update properties of this object
|
|
871
1046
|
def update!(**args)
|
|
1047
|
+
@state = args[:state] if args.key?(:state)
|
|
1048
|
+
@name = args[:name] if args.key?(:name)
|
|
1049
|
+
@tracking_url = args[:tracking_url] if args.key?(:tracking_url)
|
|
1050
|
+
@progress = args[:progress] if args.key?(:progress)
|
|
872
1051
|
end
|
|
873
1052
|
end
|
|
874
1053
|
|
|
875
|
-
# A Cloud Dataproc job for running Apache
|
|
876
|
-
#
|
|
877
|
-
|
|
1054
|
+
# A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
|
|
1055
|
+
# apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
|
|
1056
|
+
# MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
|
|
1057
|
+
# docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
|
|
1058
|
+
class HadoopJob
|
|
878
1059
|
include Google::Apis::Core::Hashable
|
|
879
1060
|
|
|
880
|
-
# Optional
|
|
881
|
-
# Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
|
|
1061
|
+
# Optional Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
|
|
882
1062
|
# Corresponds to the JSON property `jarFileUris`
|
|
883
1063
|
# @return [Array<String>]
|
|
884
1064
|
attr_accessor :jar_file_uris
|
|
885
1065
|
|
|
886
|
-
#
|
|
887
|
-
#
|
|
888
|
-
#
|
|
889
|
-
|
|
890
|
-
attr_accessor :script_variables
|
|
1066
|
+
# The runtime logging config of the job.
|
|
1067
|
+
# Corresponds to the JSON property `loggingConfig`
|
|
1068
|
+
# @return [Google::Apis::DataprocV1::LoggingConfig]
|
|
1069
|
+
attr_accessor :logging_config
|
|
891
1070
|
|
|
892
|
-
# Optional A mapping of property names
|
|
1071
|
+
# Optional A mapping of property names to values, used to configure Hadoop.
|
|
893
1072
|
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
894
|
-
# overwritten. Can include properties set in /etc/hadoop/conf/*-site
|
|
895
|
-
#
|
|
1073
|
+
# overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
|
|
1074
|
+
# in user code.
|
|
896
1075
|
# Corresponds to the JSON property `properties`
|
|
897
1076
|
# @return [Hash<String,String>]
|
|
898
1077
|
attr_accessor :properties
|
|
899
1078
|
|
|
900
|
-
# Optional
|
|
901
|
-
#
|
|
902
|
-
#
|
|
903
|
-
# Corresponds to the JSON property `
|
|
904
|
-
# @return [
|
|
905
|
-
attr_accessor :
|
|
906
|
-
alias_method :continue_on_failure?, :continue_on_failure
|
|
1079
|
+
# Optional The arguments to pass to the driver. Do not include arguments, such
|
|
1080
|
+
# as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
|
|
1081
|
+
# may occur that causes an incorrect job submission.
|
|
1082
|
+
# Corresponds to the JSON property `args`
|
|
1083
|
+
# @return [Array<String>]
|
|
1084
|
+
attr_accessor :args
|
|
907
1085
|
|
|
908
|
-
#
|
|
909
|
-
#
|
|
1086
|
+
# Optional HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the
|
|
1087
|
+
# working directory of Hadoop drivers and distributed tasks. Useful for naively
|
|
1088
|
+
# parallel tasks.
|
|
1089
|
+
# Corresponds to the JSON property `fileUris`
|
|
1090
|
+
# @return [Array<String>]
|
|
1091
|
+
attr_accessor :file_uris
|
|
1092
|
+
|
|
1093
|
+
# The name of the driver's main class. The jar file containing the class must be
|
|
1094
|
+
# in the default CLASSPATH or specified in jar_file_uris.
|
|
1095
|
+
# Corresponds to the JSON property `mainClass`
|
|
910
1096
|
# @return [String]
|
|
911
|
-
attr_accessor :
|
|
1097
|
+
attr_accessor :main_class
|
|
912
1098
|
|
|
913
|
-
#
|
|
914
|
-
#
|
|
915
|
-
#
|
|
916
|
-
|
|
1099
|
+
# Optional HCFS URIs of archives to be extracted in the working directory of
|
|
1100
|
+
# Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
|
|
1101
|
+
# zip.
|
|
1102
|
+
# Corresponds to the JSON property `archiveUris`
|
|
1103
|
+
# @return [Array<String>]
|
|
1104
|
+
attr_accessor :archive_uris
|
|
1105
|
+
|
|
1106
|
+
# The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
|
|
1107
|
+
# bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
|
|
1108
|
+
# samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
|
|
1109
|
+
# mapreduce-examples.jar'
|
|
1110
|
+
# Corresponds to the JSON property `mainJarFileUri`
|
|
1111
|
+
# @return [String]
|
|
1112
|
+
attr_accessor :main_jar_file_uri
|
|
917
1113
|
|
|
918
1114
|
def initialize(**args)
|
|
919
1115
|
update!(**args)
|
|
@@ -922,49 +1118,219 @@ module Google
|
|
|
922
1118
|
# Update properties of this object
|
|
923
1119
|
def update!(**args)
|
|
924
1120
|
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
925
|
-
@
|
|
1121
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
926
1122
|
@properties = args[:properties] if args.key?(:properties)
|
|
927
|
-
@
|
|
928
|
-
@
|
|
929
|
-
@
|
|
1123
|
+
@args = args[:args] if args.key?(:args)
|
|
1124
|
+
@file_uris = args[:file_uris] if args.key?(:file_uris)
|
|
1125
|
+
@main_class = args[:main_class] if args.key?(:main_class)
|
|
1126
|
+
@archive_uris = args[:archive_uris] if args.key?(:archive_uris)
|
|
1127
|
+
@main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
|
|
930
1128
|
end
|
|
931
1129
|
end
|
|
932
1130
|
|
|
933
|
-
#
|
|
934
|
-
class
|
|
1131
|
+
# A request to collect cluster diagnostic information.
|
|
1132
|
+
class DiagnoseClusterRequest
|
|
935
1133
|
include Google::Apis::Core::Hashable
|
|
936
1134
|
|
|
937
|
-
# Output-only The Google Cloud Storage URI of the diagnostic output. The output
|
|
938
|
-
# report is a plain text file with a summary of collected diagnostics.
|
|
939
|
-
# Corresponds to the JSON property `outputUri`
|
|
940
|
-
# @return [String]
|
|
941
|
-
attr_accessor :output_uri
|
|
942
|
-
|
|
943
1135
|
def initialize(**args)
|
|
944
1136
|
update!(**args)
|
|
945
1137
|
end
|
|
946
1138
|
|
|
947
1139
|
# Update properties of this object
|
|
948
1140
|
def update!(**args)
|
|
949
|
-
@output_uri = args[:output_uri] if args.key?(:output_uri)
|
|
950
1141
|
end
|
|
951
1142
|
end
|
|
952
1143
|
|
|
953
|
-
#
|
|
954
|
-
class
|
|
955
|
-
include Google::Apis::Core::Hashable
|
|
1144
|
+
# Specifies the config of disk options for a group of VM instances.
|
|
1145
|
+
class DiskConfig
|
|
1146
|
+
include Google::Apis::Core::Hashable
|
|
956
1147
|
|
|
957
|
-
# Optional
|
|
958
|
-
#
|
|
959
|
-
#
|
|
960
|
-
#
|
|
961
|
-
|
|
1148
|
+
# Optional Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
|
|
1149
|
+
# attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
|
|
1150
|
+
# apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
|
|
1151
|
+
# attached, this runtime bulk data is spread across them, and the boot disk
|
|
1152
|
+
# contains only basic config and installed binaries.
|
|
1153
|
+
# Corresponds to the JSON property `numLocalSsds`
|
|
1154
|
+
# @return [Fixnum]
|
|
1155
|
+
attr_accessor :num_local_ssds
|
|
962
1156
|
|
|
963
|
-
# Optional
|
|
964
|
-
#
|
|
965
|
-
#
|
|
966
|
-
|
|
967
|
-
|
|
1157
|
+
# Optional Size in GB of the boot disk (default is 500GB).
|
|
1158
|
+
# Corresponds to the JSON property `bootDiskSizeGb`
|
|
1159
|
+
# @return [Fixnum]
|
|
1160
|
+
attr_accessor :boot_disk_size_gb
|
|
1161
|
+
|
|
1162
|
+
def initialize(**args)
|
|
1163
|
+
update!(**args)
|
|
1164
|
+
end
|
|
1165
|
+
|
|
1166
|
+
# Update properties of this object
|
|
1167
|
+
def update!(**args)
|
|
1168
|
+
@num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
|
|
1169
|
+
@boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
|
|
1170
|
+
end
|
|
1171
|
+
end
|
|
1172
|
+
|
|
1173
|
+
# Metadata describing the operation.
|
|
1174
|
+
class ClusterOperationMetadata
|
|
1175
|
+
include Google::Apis::Core::Hashable
|
|
1176
|
+
|
|
1177
|
+
# Output-only Labels associated with the operation
|
|
1178
|
+
# Corresponds to the JSON property `labels`
|
|
1179
|
+
# @return [Hash<String,String>]
|
|
1180
|
+
attr_accessor :labels
|
|
1181
|
+
|
|
1182
|
+
# The status of the operation.
|
|
1183
|
+
# Corresponds to the JSON property `status`
|
|
1184
|
+
# @return [Google::Apis::DataprocV1::ClusterOperationStatus]
|
|
1185
|
+
attr_accessor :status
|
|
1186
|
+
|
|
1187
|
+
# Output-only The previous operation status.
|
|
1188
|
+
# Corresponds to the JSON property `statusHistory`
|
|
1189
|
+
# @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
|
|
1190
|
+
attr_accessor :status_history
|
|
1191
|
+
|
|
1192
|
+
# Output-only Name of the cluster for the operation.
|
|
1193
|
+
# Corresponds to the JSON property `clusterName`
|
|
1194
|
+
# @return [String]
|
|
1195
|
+
attr_accessor :cluster_name
|
|
1196
|
+
|
|
1197
|
+
# Output-only Cluster UUID for the operation.
|
|
1198
|
+
# Corresponds to the JSON property `clusterUuid`
|
|
1199
|
+
# @return [String]
|
|
1200
|
+
attr_accessor :cluster_uuid
|
|
1201
|
+
|
|
1202
|
+
# Output-only The operation type.
|
|
1203
|
+
# Corresponds to the JSON property `operationType`
|
|
1204
|
+
# @return [String]
|
|
1205
|
+
attr_accessor :operation_type
|
|
1206
|
+
|
|
1207
|
+
# Output-only Short description of operation.
|
|
1208
|
+
# Corresponds to the JSON property `description`
|
|
1209
|
+
# @return [String]
|
|
1210
|
+
attr_accessor :description
|
|
1211
|
+
|
|
1212
|
+
# Output-only Errors encountered during operation execution.
|
|
1213
|
+
# Corresponds to the JSON property `warnings`
|
|
1214
|
+
# @return [Array<String>]
|
|
1215
|
+
attr_accessor :warnings
|
|
1216
|
+
|
|
1217
|
+
def initialize(**args)
|
|
1218
|
+
update!(**args)
|
|
1219
|
+
end
|
|
1220
|
+
|
|
1221
|
+
# Update properties of this object
|
|
1222
|
+
def update!(**args)
|
|
1223
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
1224
|
+
@status = args[:status] if args.key?(:status)
|
|
1225
|
+
@status_history = args[:status_history] if args.key?(:status_history)
|
|
1226
|
+
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
1227
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
1228
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
1229
|
+
@description = args[:description] if args.key?(:description)
|
|
1230
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
|
1231
|
+
end
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
1235
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
|
1236
|
+
# response type of an API method. For instance:
|
|
1237
|
+
# service Foo `
|
|
1238
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
1239
|
+
# `
|
|
1240
|
+
# The JSON representation for Empty is empty JSON object ``.
|
|
1241
|
+
class Empty
|
|
1242
|
+
include Google::Apis::Core::Hashable
|
|
1243
|
+
|
|
1244
|
+
def initialize(**args)
|
|
1245
|
+
update!(**args)
|
|
1246
|
+
end
|
|
1247
|
+
|
|
1248
|
+
# Update properties of this object
|
|
1249
|
+
def update!(**args)
|
|
1250
|
+
end
|
|
1251
|
+
end
|
|
1252
|
+
|
|
1253
|
+
# A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
|
|
1254
|
+
# queries on YARN.
|
|
1255
|
+
class HiveJob
|
|
1256
|
+
include Google::Apis::Core::Hashable
|
|
1257
|
+
|
|
1258
|
+
# Optional Whether to continue executing queries if a query fails. The default
|
|
1259
|
+
# value is false. Setting to true can be useful when executing independent
|
|
1260
|
+
# parallel queries.
|
|
1261
|
+
# Corresponds to the JSON property `continueOnFailure`
|
|
1262
|
+
# @return [Boolean]
|
|
1263
|
+
attr_accessor :continue_on_failure
|
|
1264
|
+
alias_method :continue_on_failure?, :continue_on_failure
|
|
1265
|
+
|
|
1266
|
+
# A list of queries to run on a cluster.
|
|
1267
|
+
# Corresponds to the JSON property `queryList`
|
|
1268
|
+
# @return [Google::Apis::DataprocV1::QueryList]
|
|
1269
|
+
attr_accessor :query_list
|
|
1270
|
+
|
|
1271
|
+
# The HCFS URI of the script that contains Hive queries.
|
|
1272
|
+
# Corresponds to the JSON property `queryFileUri`
|
|
1273
|
+
# @return [String]
|
|
1274
|
+
attr_accessor :query_file_uri
|
|
1275
|
+
|
|
1276
|
+
# Optional HCFS URIs of jar files to add to the CLASSPATH of the Hive server and
|
|
1277
|
+
# Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
|
|
1278
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
1279
|
+
# @return [Array<String>]
|
|
1280
|
+
attr_accessor :jar_file_uris
|
|
1281
|
+
|
|
1282
|
+
# Optional Mapping of query variable names to values (equivalent to the Hive
|
|
1283
|
+
# command: SET name="value";).
|
|
1284
|
+
# Corresponds to the JSON property `scriptVariables`
|
|
1285
|
+
# @return [Hash<String,String>]
|
|
1286
|
+
attr_accessor :script_variables
|
|
1287
|
+
|
|
1288
|
+
# Optional A mapping of property names and values, used to configure Hive.
|
|
1289
|
+
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
1290
|
+
# overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
|
|
1291
|
+
# hive/conf/hive-site.xml, and classes in user code.
|
|
1292
|
+
# Corresponds to the JSON property `properties`
|
|
1293
|
+
# @return [Hash<String,String>]
|
|
1294
|
+
attr_accessor :properties
|
|
1295
|
+
|
|
1296
|
+
def initialize(**args)
|
|
1297
|
+
update!(**args)
|
|
1298
|
+
end
|
|
1299
|
+
|
|
1300
|
+
# Update properties of this object
|
|
1301
|
+
def update!(**args)
|
|
1302
|
+
@continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
|
|
1303
|
+
@query_list = args[:query_list] if args.key?(:query_list)
|
|
1304
|
+
@query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
|
|
1305
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
1306
|
+
@script_variables = args[:script_variables] if args.key?(:script_variables)
|
|
1307
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
1308
|
+
end
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1311
|
+
# The location of diagnostic output.
|
|
1312
|
+
class DiagnoseClusterResults
|
|
1313
|
+
include Google::Apis::Core::Hashable
|
|
1314
|
+
|
|
1315
|
+
# Output-only The Google Cloud Storage URI of the diagnostic output. The output
|
|
1316
|
+
# report is a plain text file with a summary of collected diagnostics.
|
|
1317
|
+
# Corresponds to the JSON property `outputUri`
|
|
1318
|
+
# @return [String]
|
|
1319
|
+
attr_accessor :output_uri
|
|
1320
|
+
|
|
1321
|
+
def initialize(**args)
|
|
1322
|
+
update!(**args)
|
|
1323
|
+
end
|
|
1324
|
+
|
|
1325
|
+
# Update properties of this object
|
|
1326
|
+
def update!(**args)
|
|
1327
|
+
@output_uri = args[:output_uri] if args.key?(:output_uri)
|
|
1328
|
+
end
|
|
1329
|
+
end
|
|
1330
|
+
|
|
1331
|
+
# The cluster config.
|
|
1332
|
+
class ClusterConfig
|
|
1333
|
+
include Google::Apis::Core::Hashable
|
|
968
1334
|
|
|
969
1335
|
# Optional Commands to execute on each node after config is completed. By
|
|
970
1336
|
# default, executables are run on master and all worker nodes. You can test a
|
|
@@ -1008,19 +1374,31 @@ module Google
|
|
|
1008
1374
|
# @return [Google::Apis::DataprocV1::SoftwareConfig]
|
|
1009
1375
|
attr_accessor :software_config
|
|
1010
1376
|
|
|
1377
|
+
# Optional The config settings for Google Compute Engine resources in an
|
|
1378
|
+
# instance group, such as a master or worker group.
|
|
1379
|
+
# Corresponds to the JSON property `masterConfig`
|
|
1380
|
+
# @return [Google::Apis::DataprocV1::InstanceGroupConfig]
|
|
1381
|
+
attr_accessor :master_config
|
|
1382
|
+
|
|
1383
|
+
# Optional The config settings for Google Compute Engine resources in an
|
|
1384
|
+
# instance group, such as a master or worker group.
|
|
1385
|
+
# Corresponds to the JSON property `secondaryWorkerConfig`
|
|
1386
|
+
# @return [Google::Apis::DataprocV1::InstanceGroupConfig]
|
|
1387
|
+
attr_accessor :secondary_worker_config
|
|
1388
|
+
|
|
1011
1389
|
def initialize(**args)
|
|
1012
1390
|
update!(**args)
|
|
1013
1391
|
end
|
|
1014
1392
|
|
|
1015
1393
|
# Update properties of this object
|
|
1016
1394
|
def update!(**args)
|
|
1017
|
-
@master_config = args[:master_config] if args.key?(:master_config)
|
|
1018
|
-
@secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
|
|
1019
1395
|
@initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
|
|
1020
1396
|
@config_bucket = args[:config_bucket] if args.key?(:config_bucket)
|
|
1021
1397
|
@worker_config = args[:worker_config] if args.key?(:worker_config)
|
|
1022
1398
|
@gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
|
|
1023
1399
|
@software_config = args[:software_config] if args.key?(:software_config)
|
|
1400
|
+
@master_config = args[:master_config] if args.key?(:master_config)
|
|
1401
|
+
@secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
|
|
1024
1402
|
end
|
|
1025
1403
|
end
|
|
1026
1404
|
|
|
@@ -1190,6 +1568,33 @@ module Google
|
|
|
1190
1568
|
end
|
|
1191
1569
|
end
|
|
1192
1570
|
|
|
1571
|
+
# Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
|
|
1572
|
+
# This report is available for testing purposes only. It may be changed before
|
|
1573
|
+
# final release.
|
|
1574
|
+
class ClusterMetrics
|
|
1575
|
+
include Google::Apis::Core::Hashable
|
|
1576
|
+
|
|
1577
|
+
# The HDFS metrics.
|
|
1578
|
+
# Corresponds to the JSON property `hdfsMetrics`
|
|
1579
|
+
# @return [Hash<String,String>]
|
|
1580
|
+
attr_accessor :hdfs_metrics
|
|
1581
|
+
|
|
1582
|
+
# The YARN metrics.
|
|
1583
|
+
# Corresponds to the JSON property `yarnMetrics`
|
|
1584
|
+
# @return [Hash<String,String>]
|
|
1585
|
+
attr_accessor :yarn_metrics
|
|
1586
|
+
|
|
1587
|
+
def initialize(**args)
|
|
1588
|
+
update!(**args)
|
|
1589
|
+
end
|
|
1590
|
+
|
|
1591
|
+
# Update properties of this object
|
|
1592
|
+
def update!(**args)
|
|
1593
|
+
@hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
|
|
1594
|
+
@yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
|
|
1595
|
+
end
|
|
1596
|
+
end
|
|
1597
|
+
|
|
1193
1598
|
# Specifies the type and number of accelerator cards attached to the instances
|
|
1194
1599
|
# of an instance group (see GPUs on Compute Engine).
|
|
1195
1600
|
class AcceleratorConfig
|
|
@@ -1218,425 +1623,16 @@ module Google
|
|
|
1218
1623
|
end
|
|
1219
1624
|
end
|
|
1220
1625
|
|
|
1221
|
-
# Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
|
|
1222
|
-
# This report is available for testing purposes only. It may be changed before
|
|
1223
|
-
# final release.
|
|
1224
|
-
class ClusterMetrics
|
|
1225
|
-
include Google::Apis::Core::Hashable
|
|
1226
|
-
|
|
1227
|
-
# The YARN metrics.
|
|
1228
|
-
# Corresponds to the JSON property `yarnMetrics`
|
|
1229
|
-
# @return [Hash<String,String>]
|
|
1230
|
-
attr_accessor :yarn_metrics
|
|
1231
|
-
|
|
1232
|
-
# The HDFS metrics.
|
|
1233
|
-
# Corresponds to the JSON property `hdfsMetrics`
|
|
1234
|
-
# @return [Hash<String,String>]
|
|
1235
|
-
attr_accessor :hdfs_metrics
|
|
1236
|
-
|
|
1237
|
-
def initialize(**args)
|
|
1238
|
-
update!(**args)
|
|
1239
|
-
end
|
|
1240
|
-
|
|
1241
|
-
# Update properties of this object
|
|
1242
|
-
def update!(**args)
|
|
1243
|
-
@yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
|
|
1244
|
-
@hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
|
|
1245
|
-
end
|
|
1246
|
-
end
|
|
1247
|
-
|
|
1248
1626
|
# The runtime logging config of the job.
|
|
1249
1627
|
class LoggingConfig
|
|
1250
|
-
include Google::Apis::Core::Hashable
|
|
1251
|
-
|
|
1252
|
-
# The per-package log levels for the driver. This may include "root" package
|
|
1253
|
-
# name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', '
|
|
1254
|
-
# org.apache = DEBUG'
|
|
1255
|
-
# Corresponds to the JSON property `driverLogLevels`
|
|
1256
|
-
# @return [Hash<String,String>]
|
|
1257
|
-
attr_accessor :driver_log_levels
|
|
1258
|
-
|
|
1259
|
-
def initialize(**args)
|
|
1260
|
-
update!(**args)
|
|
1261
|
-
end
|
|
1262
|
-
|
|
1263
|
-
# Update properties of this object
|
|
1264
|
-
def update!(**args)
|
|
1265
|
-
@driver_log_levels = args[:driver_log_levels] if args.key?(:driver_log_levels)
|
|
1266
|
-
end
|
|
1267
|
-
end
|
|
1268
|
-
|
|
1269
|
-
# The location where output from diagnostic command can be found.
|
|
1270
|
-
class DiagnoseClusterOutputLocation
|
|
1271
|
-
include Google::Apis::Core::Hashable
|
|
1272
|
-
|
|
1273
|
-
# Output-only The Google Cloud Storage URI of the diagnostic output. This will
|
|
1274
|
-
# be a plain text file with summary of collected diagnostics.
|
|
1275
|
-
# Corresponds to the JSON property `outputUri`
|
|
1276
|
-
# @return [String]
|
|
1277
|
-
attr_accessor :output_uri
|
|
1278
|
-
|
|
1279
|
-
def initialize(**args)
|
|
1280
|
-
update!(**args)
|
|
1281
|
-
end
|
|
1282
|
-
|
|
1283
|
-
# Update properties of this object
|
|
1284
|
-
def update!(**args)
|
|
1285
|
-
@output_uri = args[:output_uri] if args.key?(:output_uri)
|
|
1286
|
-
end
|
|
1287
|
-
end
|
|
1288
|
-
|
|
1289
|
-
# This resource represents a long-running operation that is the result of a
|
|
1290
|
-
# network API call.
|
|
1291
|
-
class Operation
|
|
1292
|
-
include Google::Apis::Core::Hashable
|
|
1293
|
-
|
|
1294
|
-
# The Status type defines a logical error model that is suitable for different
|
|
1295
|
-
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
1296
|
-
# (https://github.com/grpc). The error model is designed to be:
|
|
1297
|
-
# Simple to use and understand for most users
|
|
1298
|
-
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
1299
|
-
# three pieces of data: error code, error message, and error details. The error
|
|
1300
|
-
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
1301
|
-
# error codes if needed. The error message should be a developer-facing English
|
|
1302
|
-
# message that helps developers understand and resolve the error. If a localized
|
|
1303
|
-
# user-facing error message is needed, put the localized message in the error
|
|
1304
|
-
# details or localize it in the client. The optional error details may contain
|
|
1305
|
-
# arbitrary information about the error. There is a predefined set of error
|
|
1306
|
-
# detail types in the package google.rpc which can be used for common error
|
|
1307
|
-
# conditions.Language mappingThe Status message is the logical representation of
|
|
1308
|
-
# the error model, but it is not necessarily the actual wire format. When the
|
|
1309
|
-
# Status message is exposed in different client libraries and different wire
|
|
1310
|
-
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
1311
|
-
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
1312
|
-
# Other usesThe error model and the Status message can be used in a variety of
|
|
1313
|
-
# environments, either with or without APIs, to provide a consistent developer
|
|
1314
|
-
# experience across different environments.Example uses of this error model
|
|
1315
|
-
# include:
|
|
1316
|
-
# Partial errors. If a service needs to return partial errors to the client, it
|
|
1317
|
-
# may embed the Status in the normal response to indicate the partial errors.
|
|
1318
|
-
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
1319
|
-
# Status message for error reporting purpose.
|
|
1320
|
-
# Batch operations. If a client uses batch request and batch response, the
|
|
1321
|
-
# Status message should be used directly inside batch response, one for each
|
|
1322
|
-
# error sub-response.
|
|
1323
|
-
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
1324
|
-
# in its response, the status of those operations should be represented directly
|
|
1325
|
-
# using the Status message.
|
|
1326
|
-
# Logging. If some API errors are stored in logs, the message Status could be
|
|
1327
|
-
# used directly after any stripping needed for security/privacy reasons.
|
|
1328
|
-
# Corresponds to the JSON property `error`
|
|
1329
|
-
# @return [Google::Apis::DataprocV1::Status]
|
|
1330
|
-
attr_accessor :error
|
|
1331
|
-
|
|
1332
|
-
# Service-specific metadata associated with the operation. It typically contains
|
|
1333
|
-
# progress information and common metadata such as create time. Some services
|
|
1334
|
-
# might not provide such metadata. Any method that returns a long-running
|
|
1335
|
-
# operation should document the metadata type, if any.
|
|
1336
|
-
# Corresponds to the JSON property `metadata`
|
|
1337
|
-
# @return [Hash<String,Object>]
|
|
1338
|
-
attr_accessor :metadata
|
|
1339
|
-
|
|
1340
|
-
# If the value is false, it means the operation is still in progress. If true,
|
|
1341
|
-
# the operation is completed, and either error or response is available.
|
|
1342
|
-
# Corresponds to the JSON property `done`
|
|
1343
|
-
# @return [Boolean]
|
|
1344
|
-
attr_accessor :done
|
|
1345
|
-
alias_method :done?, :done
|
|
1346
|
-
|
|
1347
|
-
# The normal response of the operation in case of success. If the original
|
|
1348
|
-
# method returns no data on success, such as Delete, the response is google.
|
|
1349
|
-
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
|
1350
|
-
# response should be the resource. For other methods, the response should have
|
|
1351
|
-
# the type XxxResponse, where Xxx is the original method name. For example, if
|
|
1352
|
-
# the original method name is TakeSnapshot(), the inferred response type is
|
|
1353
|
-
# TakeSnapshotResponse.
|
|
1354
|
-
# Corresponds to the JSON property `response`
|
|
1355
|
-
# @return [Hash<String,Object>]
|
|
1356
|
-
attr_accessor :response
|
|
1357
|
-
|
|
1358
|
-
# The server-assigned name, which is only unique within the same service that
|
|
1359
|
-
# originally returns it. If you use the default HTTP mapping, the name should
|
|
1360
|
-
# have the format of operations/some/unique/name.
|
|
1361
|
-
# Corresponds to the JSON property `name`
|
|
1362
|
-
# @return [String]
|
|
1363
|
-
attr_accessor :name
|
|
1364
|
-
|
|
1365
|
-
def initialize(**args)
|
|
1366
|
-
update!(**args)
|
|
1367
|
-
end
|
|
1368
|
-
|
|
1369
|
-
# Update properties of this object
|
|
1370
|
-
def update!(**args)
|
|
1371
|
-
@error = args[:error] if args.key?(:error)
|
|
1372
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1373
|
-
@done = args[:done] if args.key?(:done)
|
|
1374
|
-
@response = args[:response] if args.key?(:response)
|
|
1375
|
-
@name = args[:name] if args.key?(:name)
|
|
1376
|
-
end
|
|
1377
|
-
end
|
|
1378
|
-
|
|
1379
|
-
# The status of the operation.
|
|
1380
|
-
class OperationStatus
|
|
1381
|
-
include Google::Apis::Core::Hashable
|
|
1382
|
-
|
|
1383
|
-
# A message containing the detailed operation state.
|
|
1384
|
-
# Corresponds to the JSON property `innerState`
|
|
1385
|
-
# @return [String]
|
|
1386
|
-
attr_accessor :inner_state
|
|
1387
|
-
|
|
1388
|
-
# The time this state was entered.
|
|
1389
|
-
# Corresponds to the JSON property `stateStartTime`
|
|
1390
|
-
# @return [String]
|
|
1391
|
-
attr_accessor :state_start_time
|
|
1392
|
-
|
|
1393
|
-
# A message containing the operation state.
|
|
1394
|
-
# Corresponds to the JSON property `state`
|
|
1395
|
-
# @return [String]
|
|
1396
|
-
attr_accessor :state
|
|
1397
|
-
|
|
1398
|
-
# A message containing any operation metadata details.
|
|
1399
|
-
# Corresponds to the JSON property `details`
|
|
1400
|
-
# @return [String]
|
|
1401
|
-
attr_accessor :details
|
|
1402
|
-
|
|
1403
|
-
def initialize(**args)
|
|
1404
|
-
update!(**args)
|
|
1405
|
-
end
|
|
1406
|
-
|
|
1407
|
-
# Update properties of this object
|
|
1408
|
-
def update!(**args)
|
|
1409
|
-
@inner_state = args[:inner_state] if args.key?(:inner_state)
|
|
1410
|
-
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
1411
|
-
@state = args[:state] if args.key?(:state)
|
|
1412
|
-
@details = args[:details] if args.key?(:details)
|
|
1413
|
-
end
|
|
1414
|
-
end
|
|
1415
|
-
|
|
1416
|
-
# Encapsulates the full scoping used to reference a job.
|
|
1417
|
-
class JobReference
|
|
1418
|
-
include Google::Apis::Core::Hashable
|
|
1419
|
-
|
|
1420
|
-
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
1421
|
-
# Corresponds to the JSON property `projectId`
|
|
1422
|
-
# @return [String]
|
|
1423
|
-
attr_accessor :project_id
|
|
1424
|
-
|
|
1425
|
-
# Optional The job ID, which must be unique within the project. The job ID is
|
|
1426
|
-
# generated by the server upon job submission or provided by the user as a means
|
|
1427
|
-
# to perform retries without creating duplicate jobs. The ID must contain only
|
|
1428
|
-
# letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
|
|
1429
|
-
# maximum length is 100 characters.
|
|
1430
|
-
# Corresponds to the JSON property `jobId`
|
|
1431
|
-
# @return [String]
|
|
1432
|
-
attr_accessor :job_id
|
|
1433
|
-
|
|
1434
|
-
def initialize(**args)
|
|
1435
|
-
update!(**args)
|
|
1436
|
-
end
|
|
1437
|
-
|
|
1438
|
-
# Update properties of this object
|
|
1439
|
-
def update!(**args)
|
|
1440
|
-
@project_id = args[:project_id] if args.key?(:project_id)
|
|
1441
|
-
@job_id = args[:job_id] if args.key?(:job_id)
|
|
1442
|
-
end
|
|
1443
|
-
end
|
|
1444
|
-
|
|
1445
|
-
# A request to submit a job.
|
|
1446
|
-
class SubmitJobRequest
|
|
1447
|
-
include Google::Apis::Core::Hashable
|
|
1448
|
-
|
|
1449
|
-
# A Cloud Dataproc job resource.
|
|
1450
|
-
# Corresponds to the JSON property `job`
|
|
1451
|
-
# @return [Google::Apis::DataprocV1::Job]
|
|
1452
|
-
attr_accessor :job
|
|
1453
|
-
|
|
1454
|
-
def initialize(**args)
|
|
1455
|
-
update!(**args)
|
|
1456
|
-
end
|
|
1457
|
-
|
|
1458
|
-
# Update properties of this object
|
|
1459
|
-
def update!(**args)
|
|
1460
|
-
@job = args[:job] if args.key?(:job)
|
|
1461
|
-
end
|
|
1462
|
-
end
|
|
1463
|
-
|
|
1464
|
-
# The Status type defines a logical error model that is suitable for different
|
|
1465
|
-
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
1466
|
-
# (https://github.com/grpc). The error model is designed to be:
|
|
1467
|
-
# Simple to use and understand for most users
|
|
1468
|
-
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
1469
|
-
# three pieces of data: error code, error message, and error details. The error
|
|
1470
|
-
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
1471
|
-
# error codes if needed. The error message should be a developer-facing English
|
|
1472
|
-
# message that helps developers understand and resolve the error. If a localized
|
|
1473
|
-
# user-facing error message is needed, put the localized message in the error
|
|
1474
|
-
# details or localize it in the client. The optional error details may contain
|
|
1475
|
-
# arbitrary information about the error. There is a predefined set of error
|
|
1476
|
-
# detail types in the package google.rpc which can be used for common error
|
|
1477
|
-
# conditions.Language mappingThe Status message is the logical representation of
|
|
1478
|
-
# the error model, but it is not necessarily the actual wire format. When the
|
|
1479
|
-
# Status message is exposed in different client libraries and different wire
|
|
1480
|
-
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
1481
|
-
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
1482
|
-
# Other usesThe error model and the Status message can be used in a variety of
|
|
1483
|
-
# environments, either with or without APIs, to provide a consistent developer
|
|
1484
|
-
# experience across different environments.Example uses of this error model
|
|
1485
|
-
# include:
|
|
1486
|
-
# Partial errors. If a service needs to return partial errors to the client, it
|
|
1487
|
-
# may embed the Status in the normal response to indicate the partial errors.
|
|
1488
|
-
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
1489
|
-
# Status message for error reporting purpose.
|
|
1490
|
-
# Batch operations. If a client uses batch request and batch response, the
|
|
1491
|
-
# Status message should be used directly inside batch response, one for each
|
|
1492
|
-
# error sub-response.
|
|
1493
|
-
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
1494
|
-
# in its response, the status of those operations should be represented directly
|
|
1495
|
-
# using the Status message.
|
|
1496
|
-
# Logging. If some API errors are stored in logs, the message Status could be
|
|
1497
|
-
# used directly after any stripping needed for security/privacy reasons.
|
|
1498
|
-
class Status
|
|
1499
|
-
include Google::Apis::Core::Hashable
|
|
1500
|
-
|
|
1501
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
|
1502
|
-
# Corresponds to the JSON property `code`
|
|
1503
|
-
# @return [Fixnum]
|
|
1504
|
-
attr_accessor :code
|
|
1505
|
-
|
|
1506
|
-
# A developer-facing error message, which should be in English. Any user-facing
|
|
1507
|
-
# error message should be localized and sent in the google.rpc.Status.details
|
|
1508
|
-
# field, or localized by the client.
|
|
1509
|
-
# Corresponds to the JSON property `message`
|
|
1510
|
-
# @return [String]
|
|
1511
|
-
attr_accessor :message
|
|
1512
|
-
|
|
1513
|
-
# A list of messages that carry the error details. There will be a common set of
|
|
1514
|
-
# message types for APIs to use.
|
|
1515
|
-
# Corresponds to the JSON property `details`
|
|
1516
|
-
# @return [Array<Hash<String,Object>>]
|
|
1517
|
-
attr_accessor :details
|
|
1518
|
-
|
|
1519
|
-
def initialize(**args)
|
|
1520
|
-
update!(**args)
|
|
1521
|
-
end
|
|
1522
|
-
|
|
1523
|
-
# Update properties of this object
|
|
1524
|
-
def update!(**args)
|
|
1525
|
-
@code = args[:code] if args.key?(:code)
|
|
1526
|
-
@message = args[:message] if args.key?(:message)
|
|
1527
|
-
@details = args[:details] if args.key?(:details)
|
|
1528
|
-
end
|
|
1529
|
-
end
|
|
1530
|
-
|
|
1531
|
-
# Optional The config settings for Google Compute Engine resources in an
|
|
1532
|
-
# instance group, such as a master or worker group.
|
|
1533
|
-
class InstanceGroupConfig
|
|
1534
|
-
include Google::Apis::Core::Hashable
|
|
1535
|
-
|
|
1536
|
-
# Specifies the resources used to actively manage an instance group.
|
|
1537
|
-
# Corresponds to the JSON property `managedGroupConfig`
|
|
1538
|
-
# @return [Google::Apis::DataprocV1::ManagedGroupConfig]
|
|
1539
|
-
attr_accessor :managed_group_config
|
|
1540
|
-
|
|
1541
|
-
# Optional Specifies that this instance group contains preemptible instances.
|
|
1542
|
-
# Corresponds to the JSON property `isPreemptible`
|
|
1543
|
-
# @return [Boolean]
|
|
1544
|
-
attr_accessor :is_preemptible
|
|
1545
|
-
alias_method :is_preemptible?, :is_preemptible
|
|
1546
|
-
|
|
1547
|
-
# Output-only The Google Compute Engine image resource used for cluster
|
|
1548
|
-
# instances. Inferred from SoftwareConfig.image_version.
|
|
1549
|
-
# Corresponds to the JSON property `imageUri`
|
|
1550
|
-
# @return [String]
|
|
1551
|
-
attr_accessor :image_uri
|
|
1552
|
-
|
|
1553
|
-
# Required The Google Compute Engine machine type used for cluster instances.
|
|
1554
|
-
# Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-
|
|
1555
|
-
# east1-a/machineTypes/n1-standard-2.
|
|
1556
|
-
# Corresponds to the JSON property `machineTypeUri`
|
|
1557
|
-
# @return [String]
|
|
1558
|
-
attr_accessor :machine_type_uri
|
|
1559
|
-
|
|
1560
|
-
# Optional The list of instance names. Cloud Dataproc derives the names from
|
|
1561
|
-
# cluster_name, num_instances, and the instance group if not set by user (
|
|
1562
|
-
# recommended practice is to let Cloud Dataproc derive the name).
|
|
1563
|
-
# Corresponds to the JSON property `instanceNames`
|
|
1564
|
-
# @return [Array<String>]
|
|
1565
|
-
attr_accessor :instance_names
|
|
1566
|
-
|
|
1567
|
-
# Optional The Google Compute Engine accelerator configuration for these
|
|
1568
|
-
# instances.Beta Feature: This feature is still under development. It may be
|
|
1569
|
-
# changed before final release.
|
|
1570
|
-
# Corresponds to the JSON property `accelerators`
|
|
1571
|
-
# @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]
|
|
1572
|
-
attr_accessor :accelerators
|
|
1573
|
-
|
|
1574
|
-
# Required The number of VM instances in the instance group. For master instance
|
|
1575
|
-
# groups, must be set to 1.
|
|
1576
|
-
# Corresponds to the JSON property `numInstances`
|
|
1577
|
-
# @return [Fixnum]
|
|
1578
|
-
attr_accessor :num_instances
|
|
1579
|
-
|
|
1580
|
-
# Specifies the config of disk options for a group of VM instances.
|
|
1581
|
-
# Corresponds to the JSON property `diskConfig`
|
|
1582
|
-
# @return [Google::Apis::DataprocV1::DiskConfig]
|
|
1583
|
-
attr_accessor :disk_config
|
|
1584
|
-
|
|
1585
|
-
def initialize(**args)
|
|
1586
|
-
update!(**args)
|
|
1587
|
-
end
|
|
1588
|
-
|
|
1589
|
-
# Update properties of this object
|
|
1590
|
-
def update!(**args)
|
|
1591
|
-
@managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
|
|
1592
|
-
@is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
|
|
1593
|
-
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
|
1594
|
-
@machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
|
|
1595
|
-
@instance_names = args[:instance_names] if args.key?(:instance_names)
|
|
1596
|
-
@accelerators = args[:accelerators] if args.key?(:accelerators)
|
|
1597
|
-
@num_instances = args[:num_instances] if args.key?(:num_instances)
|
|
1598
|
-
@disk_config = args[:disk_config] if args.key?(:disk_config)
|
|
1599
|
-
end
|
|
1600
|
-
end
|
|
1601
|
-
|
|
1602
|
-
# Job scheduling options.Beta Feature: These options are available for testing
|
|
1603
|
-
# purposes only. They may be changed before final release.
|
|
1604
|
-
class JobScheduling
|
|
1605
|
-
include Google::Apis::Core::Hashable
|
|
1606
|
-
|
|
1607
|
-
# Optional Maximum number of times per hour a driver may be restarted as a
|
|
1608
|
-
# result of driver terminating with non-zero code before job is reported failed.
|
|
1609
|
-
# A job may be reported as thrashing if driver exits with non-zero code 4 times
|
|
1610
|
-
# within 10 minute window.Maximum value is 10.
|
|
1611
|
-
# Corresponds to the JSON property `maxFailuresPerHour`
|
|
1612
|
-
# @return [Fixnum]
|
|
1613
|
-
attr_accessor :max_failures_per_hour
|
|
1614
|
-
|
|
1615
|
-
def initialize(**args)
|
|
1616
|
-
update!(**args)
|
|
1617
|
-
end
|
|
1618
|
-
|
|
1619
|
-
# Update properties of this object
|
|
1620
|
-
def update!(**args)
|
|
1621
|
-
@max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
|
|
1622
|
-
end
|
|
1623
|
-
end
|
|
1624
|
-
|
|
1625
|
-
# A list of jobs in a project.
|
|
1626
|
-
class ListJobsResponse
|
|
1627
|
-
include Google::Apis::Core::Hashable
|
|
1628
|
-
|
|
1629
|
-
# Output-only Jobs list.
|
|
1630
|
-
# Corresponds to the JSON property `jobs`
|
|
1631
|
-
# @return [Array<Google::Apis::DataprocV1::Job>]
|
|
1632
|
-
attr_accessor :jobs
|
|
1633
|
-
|
|
1634
|
-
# Optional This token is included in the response if there are more results to
|
|
1635
|
-
# fetch. To fetch additional results, provide this value as the page_token in a
|
|
1636
|
-
# subsequent <code>ListJobsRequest</code>.
|
|
1637
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1638
|
-
# @return [String]
|
|
1639
|
-
attr_accessor :next_page_token
|
|
1628
|
+
include Google::Apis::Core::Hashable
|
|
1629
|
+
|
|
1630
|
+
# The per-package log levels for the driver. This may include "root" package
|
|
1631
|
+
# name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', '
|
|
1632
|
+
# org.apache = DEBUG'
|
|
1633
|
+
# Corresponds to the JSON property `driverLogLevels`
|
|
1634
|
+
# @return [Hash<String,String>]
|
|
1635
|
+
attr_accessor :driver_log_levels
|
|
1640
1636
|
|
|
1641
1637
|
def initialize(**args)
|
|
1642
1638
|
update!(**args)
|
|
@@ -1644,28 +1640,19 @@ module Google
|
|
|
1644
1640
|
|
|
1645
1641
|
# Update properties of this object
|
|
1646
1642
|
def update!(**args)
|
|
1647
|
-
@
|
|
1648
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1643
|
+
@driver_log_levels = args[:driver_log_levels] if args.key?(:driver_log_levels)
|
|
1649
1644
|
end
|
|
1650
1645
|
end
|
|
1651
1646
|
|
|
1652
|
-
#
|
|
1653
|
-
|
|
1654
|
-
class NodeInitializationAction
|
|
1647
|
+
# The location where output from diagnostic command can be found.
|
|
1648
|
+
class DiagnoseClusterOutputLocation
|
|
1655
1649
|
include Google::Apis::Core::Hashable
|
|
1656
1650
|
|
|
1657
|
-
#
|
|
1658
|
-
#
|
|
1659
|
-
#
|
|
1660
|
-
attr_accessor :executable_file
|
|
1661
|
-
|
|
1662
|
-
# Optional Amount of time executable has to complete. Default is 10 minutes.
|
|
1663
|
-
# Cluster creation fails with an explanatory error message (the name of the
|
|
1664
|
-
# executable that caused the error and the exceeded timeout period) if the
|
|
1665
|
-
# executable is not completed at end of the timeout period.
|
|
1666
|
-
# Corresponds to the JSON property `executionTimeout`
|
|
1651
|
+
# Output-only The Google Cloud Storage URI of the diagnostic output. This will
|
|
1652
|
+
# be a plain text file with summary of collected diagnostics.
|
|
1653
|
+
# Corresponds to the JSON property `outputUri`
|
|
1667
1654
|
# @return [String]
|
|
1668
|
-
attr_accessor :
|
|
1655
|
+
attr_accessor :output_uri
|
|
1669
1656
|
|
|
1670
1657
|
def initialize(**args)
|
|
1671
1658
|
update!(**args)
|
|
@@ -1673,61 +1660,123 @@ module Google
|
|
|
1673
1660
|
|
|
1674
1661
|
# Update properties of this object
|
|
1675
1662
|
def update!(**args)
|
|
1676
|
-
@
|
|
1677
|
-
@execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout)
|
|
1663
|
+
@output_uri = args[:output_uri] if args.key?(:output_uri)
|
|
1678
1664
|
end
|
|
1679
1665
|
end
|
|
1680
1666
|
|
|
1681
|
-
#
|
|
1682
|
-
|
|
1667
|
+
# This resource represents a long-running operation that is the result of a
|
|
1668
|
+
# network API call.
|
|
1669
|
+
class Operation
|
|
1683
1670
|
include Google::Apis::Core::Hashable
|
|
1684
1671
|
|
|
1672
|
+
# The Status type defines a logical error model that is suitable for different
|
|
1673
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
1674
|
+
# (https://github.com/grpc). The error model is designed to be:
|
|
1675
|
+
# Simple to use and understand for most users
|
|
1676
|
+
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
1677
|
+
# three pieces of data: error code, error message, and error details. The error
|
|
1678
|
+
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
1679
|
+
# error codes if needed. The error message should be a developer-facing English
|
|
1680
|
+
# message that helps developers understand and resolve the error. If a localized
|
|
1681
|
+
# user-facing error message is needed, put the localized message in the error
|
|
1682
|
+
# details or localize it in the client. The optional error details may contain
|
|
1683
|
+
# arbitrary information about the error. There is a predefined set of error
|
|
1684
|
+
# detail types in the package google.rpc which can be used for common error
|
|
1685
|
+
# conditions.Language mappingThe Status message is the logical representation of
|
|
1686
|
+
# the error model, but it is not necessarily the actual wire format. When the
|
|
1687
|
+
# Status message is exposed in different client libraries and different wire
|
|
1688
|
+
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
1689
|
+
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
1690
|
+
# Other usesThe error model and the Status message can be used in a variety of
|
|
1691
|
+
# environments, either with or without APIs, to provide a consistent developer
|
|
1692
|
+
# experience across different environments.Example uses of this error model
|
|
1693
|
+
# include:
|
|
1694
|
+
# Partial errors. If a service needs to return partial errors to the client, it
|
|
1695
|
+
# may embed the Status in the normal response to indicate the partial errors.
|
|
1696
|
+
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
1697
|
+
# Status message for error reporting purpose.
|
|
1698
|
+
# Batch operations. If a client uses batch request and batch response, the
|
|
1699
|
+
# Status message should be used directly inside batch response, one for each
|
|
1700
|
+
# error sub-response.
|
|
1701
|
+
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
1702
|
+
# in its response, the status of those operations should be represented directly
|
|
1703
|
+
# using the Status message.
|
|
1704
|
+
# Logging. If some API errors are stored in logs, the message Status could be
|
|
1705
|
+
# used directly after any stripping needed for security/privacy reasons.
|
|
1706
|
+
# Corresponds to the JSON property `error`
|
|
1707
|
+
# @return [Google::Apis::DataprocV1::Status]
|
|
1708
|
+
attr_accessor :error
|
|
1709
|
+
|
|
1710
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
1711
|
+
# progress information and common metadata such as create time. Some services
|
|
1712
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
1713
|
+
# operation should document the metadata type, if any.
|
|
1714
|
+
# Corresponds to the JSON property `metadata`
|
|
1715
|
+
# @return [Hash<String,Object>]
|
|
1716
|
+
attr_accessor :metadata
|
|
1717
|
+
|
|
1718
|
+
# If the value is false, it means the operation is still in progress. If true,
|
|
1719
|
+
# the operation is completed, and either error or response is available.
|
|
1720
|
+
# Corresponds to the JSON property `done`
|
|
1721
|
+
# @return [Boolean]
|
|
1722
|
+
attr_accessor :done
|
|
1723
|
+
alias_method :done?, :done
|
|
1724
|
+
|
|
1725
|
+
# The normal response of the operation in case of success. If the original
|
|
1726
|
+
# method returns no data on success, such as Delete, the response is google.
|
|
1727
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
|
1728
|
+
# response should be the resource. For other methods, the response should have
|
|
1729
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
|
1730
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
|
1731
|
+
# TakeSnapshotResponse.
|
|
1732
|
+
# Corresponds to the JSON property `response`
|
|
1733
|
+
# @return [Hash<String,Object>]
|
|
1734
|
+
attr_accessor :response
|
|
1735
|
+
|
|
1736
|
+
# The server-assigned name, which is only unique within the same service that
|
|
1737
|
+
# originally returns it. If you use the default HTTP mapping, the name should
|
|
1738
|
+
# have the format of operations/some/unique/name.
|
|
1739
|
+
# Corresponds to the JSON property `name`
|
|
1740
|
+
# @return [String]
|
|
1741
|
+
attr_accessor :name
|
|
1742
|
+
|
|
1685
1743
|
def initialize(**args)
|
|
1686
1744
|
update!(**args)
|
|
1687
1745
|
end
|
|
1688
1746
|
|
|
1689
1747
|
# Update properties of this object
|
|
1690
1748
|
def update!(**args)
|
|
1749
|
+
@error = args[:error] if args.key?(:error)
|
|
1750
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1751
|
+
@done = args[:done] if args.key?(:done)
|
|
1752
|
+
@response = args[:response] if args.key?(:response)
|
|
1753
|
+
@name = args[:name] if args.key?(:name)
|
|
1691
1754
|
end
|
|
1692
1755
|
end
|
|
1693
1756
|
|
|
1694
|
-
#
|
|
1695
|
-
|
|
1696
|
-
class SparkSqlJob
|
|
1757
|
+
# The status of the operation.
|
|
1758
|
+
class OperationStatus
|
|
1697
1759
|
include Google::Apis::Core::Hashable
|
|
1698
1760
|
|
|
1699
|
-
#
|
|
1700
|
-
#
|
|
1701
|
-
#
|
|
1702
|
-
|
|
1703
|
-
attr_accessor :script_variables
|
|
1704
|
-
|
|
1705
|
-
# Optional HCFS URIs of jar files to be added to the Spark CLASSPATH.
|
|
1706
|
-
# Corresponds to the JSON property `jarFileUris`
|
|
1707
|
-
# @return [Array<String>]
|
|
1708
|
-
attr_accessor :jar_file_uris
|
|
1709
|
-
|
|
1710
|
-
# The runtime logging config of the job.
|
|
1711
|
-
# Corresponds to the JSON property `loggingConfig`
|
|
1712
|
-
# @return [Google::Apis::DataprocV1::LoggingConfig]
|
|
1713
|
-
attr_accessor :logging_config
|
|
1761
|
+
# A message containing the detailed operation state.
|
|
1762
|
+
# Corresponds to the JSON property `innerState`
|
|
1763
|
+
# @return [String]
|
|
1764
|
+
attr_accessor :inner_state
|
|
1714
1765
|
|
|
1715
|
-
#
|
|
1716
|
-
#
|
|
1717
|
-
#
|
|
1718
|
-
|
|
1719
|
-
# @return [Hash<String,String>]
|
|
1720
|
-
attr_accessor :properties
|
|
1766
|
+
# The time this state was entered.
|
|
1767
|
+
# Corresponds to the JSON property `stateStartTime`
|
|
1768
|
+
# @return [String]
|
|
1769
|
+
attr_accessor :state_start_time
|
|
1721
1770
|
|
|
1722
|
-
#
|
|
1723
|
-
# Corresponds to the JSON property `
|
|
1771
|
+
# A message containing the operation state.
|
|
1772
|
+
# Corresponds to the JSON property `state`
|
|
1724
1773
|
# @return [String]
|
|
1725
|
-
attr_accessor :
|
|
1774
|
+
attr_accessor :state
|
|
1726
1775
|
|
|
1727
|
-
# A
|
|
1728
|
-
# Corresponds to the JSON property `
|
|
1729
|
-
# @return [
|
|
1730
|
-
attr_accessor :
|
|
1776
|
+
# A message containing any operation metadata details.
|
|
1777
|
+
# Corresponds to the JSON property `details`
|
|
1778
|
+
# @return [String]
|
|
1779
|
+
attr_accessor :details
|
|
1731
1780
|
|
|
1732
1781
|
def initialize(**args)
|
|
1733
1782
|
update!(**args)
|
|
@@ -1735,67 +1784,30 @@ module Google
|
|
|
1735
1784
|
|
|
1736
1785
|
# Update properties of this object
|
|
1737
1786
|
def update!(**args)
|
|
1738
|
-
@
|
|
1739
|
-
@
|
|
1740
|
-
@
|
|
1741
|
-
@
|
|
1742
|
-
@query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
|
|
1743
|
-
@query_list = args[:query_list] if args.key?(:query_list)
|
|
1787
|
+
@inner_state = args[:inner_state] if args.key?(:inner_state)
|
|
1788
|
+
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
1789
|
+
@state = args[:state] if args.key?(:state)
|
|
1790
|
+
@details = args[:details] if args.key?(:details)
|
|
1744
1791
|
end
|
|
1745
1792
|
end
|
|
1746
1793
|
|
|
1747
|
-
#
|
|
1748
|
-
|
|
1749
|
-
class Cluster
|
|
1794
|
+
# Encapsulates the full scoping used to reference a job.
|
|
1795
|
+
class JobReference
|
|
1750
1796
|
include Google::Apis::Core::Hashable
|
|
1751
1797
|
|
|
1752
|
-
# Required The Google Cloud Platform project
|
|
1798
|
+
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
1753
1799
|
# Corresponds to the JSON property `projectId`
|
|
1754
1800
|
# @return [String]
|
|
1755
1801
|
attr_accessor :project_id
|
|
1756
1802
|
|
|
1757
|
-
# Optional The
|
|
1758
|
-
#
|
|
1759
|
-
#
|
|
1760
|
-
#
|
|
1761
|
-
#
|
|
1762
|
-
# Corresponds to the JSON property `
|
|
1763
|
-
# @return [Hash<String,String>]
|
|
1764
|
-
attr_accessor :labels
|
|
1765
|
-
|
|
1766
|
-
# The status of a cluster and its instances.
|
|
1767
|
-
# Corresponds to the JSON property `status`
|
|
1768
|
-
# @return [Google::Apis::DataprocV1::ClusterStatus]
|
|
1769
|
-
attr_accessor :status
|
|
1770
|
-
|
|
1771
|
-
# Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
|
|
1772
|
-
# This report is available for testing purposes only. It may be changed before
|
|
1773
|
-
# final release.
|
|
1774
|
-
# Corresponds to the JSON property `metrics`
|
|
1775
|
-
# @return [Google::Apis::DataprocV1::ClusterMetrics]
|
|
1776
|
-
attr_accessor :metrics
|
|
1777
|
-
|
|
1778
|
-
# Output-only The previous cluster status.
|
|
1779
|
-
# Corresponds to the JSON property `statusHistory`
|
|
1780
|
-
# @return [Array<Google::Apis::DataprocV1::ClusterStatus>]
|
|
1781
|
-
attr_accessor :status_history
|
|
1782
|
-
|
|
1783
|
-
# The cluster config.
|
|
1784
|
-
# Corresponds to the JSON property `config`
|
|
1785
|
-
# @return [Google::Apis::DataprocV1::ClusterConfig]
|
|
1786
|
-
attr_accessor :config
|
|
1787
|
-
|
|
1788
|
-
# Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc
|
|
1789
|
-
# generates this value when it creates the cluster.
|
|
1790
|
-
# Corresponds to the JSON property `clusterUuid`
|
|
1791
|
-
# @return [String]
|
|
1792
|
-
attr_accessor :cluster_uuid
|
|
1793
|
-
|
|
1794
|
-
# Required The cluster name. Cluster names within a project must be unique.
|
|
1795
|
-
# Names of deleted clusters can be reused.
|
|
1796
|
-
# Corresponds to the JSON property `clusterName`
|
|
1803
|
+
# Optional The job ID, which must be unique within the project. The job ID is
|
|
1804
|
+
# generated by the server upon job submission or provided by the user as a means
|
|
1805
|
+
# to perform retries without creating duplicate jobs. The ID must contain only
|
|
1806
|
+
# letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
|
|
1807
|
+
# maximum length is 100 characters.
|
|
1808
|
+
# Corresponds to the JSON property `jobId`
|
|
1797
1809
|
# @return [String]
|
|
1798
|
-
attr_accessor :
|
|
1810
|
+
attr_accessor :job_id
|
|
1799
1811
|
|
|
1800
1812
|
def initialize(**args)
|
|
1801
1813
|
update!(**args)
|
|
@@ -1804,29 +1816,18 @@ module Google
|
|
|
1804
1816
|
# Update properties of this object
|
|
1805
1817
|
def update!(**args)
|
|
1806
1818
|
@project_id = args[:project_id] if args.key?(:project_id)
|
|
1807
|
-
@
|
|
1808
|
-
@status = args[:status] if args.key?(:status)
|
|
1809
|
-
@metrics = args[:metrics] if args.key?(:metrics)
|
|
1810
|
-
@status_history = args[:status_history] if args.key?(:status_history)
|
|
1811
|
-
@config = args[:config] if args.key?(:config)
|
|
1812
|
-
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
1813
|
-
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
1819
|
+
@job_id = args[:job_id] if args.key?(:job_id)
|
|
1814
1820
|
end
|
|
1815
1821
|
end
|
|
1816
1822
|
|
|
1817
|
-
#
|
|
1818
|
-
class
|
|
1823
|
+
# A request to submit a job.
|
|
1824
|
+
class SubmitJobRequest
|
|
1819
1825
|
include Google::Apis::Core::Hashable
|
|
1820
1826
|
|
|
1821
|
-
#
|
|
1822
|
-
# Corresponds to the JSON property `
|
|
1823
|
-
# @return [
|
|
1824
|
-
attr_accessor :
|
|
1825
|
-
|
|
1826
|
-
# A list of operations that matches the specified filter in the request.
|
|
1827
|
-
# Corresponds to the JSON property `operations`
|
|
1828
|
-
# @return [Array<Google::Apis::DataprocV1::Operation>]
|
|
1829
|
-
attr_accessor :operations
|
|
1827
|
+
# A Cloud Dataproc job resource.
|
|
1828
|
+
# Corresponds to the JSON property `job`
|
|
1829
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
1830
|
+
attr_accessor :job
|
|
1830
1831
|
|
|
1831
1832
|
def initialize(**args)
|
|
1832
1833
|
update!(**args)
|
|
@@ -1834,8 +1835,7 @@ module Google
|
|
|
1834
1835
|
|
|
1835
1836
|
# Update properties of this object
|
|
1836
1837
|
def update!(**args)
|
|
1837
|
-
@
|
|
1838
|
-
@operations = args[:operations] if args.key?(:operations)
|
|
1838
|
+
@job = args[:job] if args.key?(:job)
|
|
1839
1839
|
end
|
|
1840
1840
|
end
|
|
1841
1841
|
end
|