google-cloud-dataproc-v1beta2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google-cloud-dataproc-v1beta2.rb +21 -0
  7. data/lib/google/cloud/common_resources_pb.rb +15 -0
  8. data/lib/google/cloud/dataproc/v1beta2.rb +38 -0
  9. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_pb.rb +81 -0
  10. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_services_pb.rb +58 -0
  11. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service.rb +50 -0
  12. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/client.rb +734 -0
  13. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/credentials.rb +51 -0
  14. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/paths.rb +110 -0
  15. data/lib/google/cloud/dataproc/v1beta2/cluster_controller.rb +50 -0
  16. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +979 -0
  17. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/credentials.rb +51 -0
  18. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb +564 -0
  19. data/lib/google/cloud/dataproc/v1beta2/clusters_pb.rb +255 -0
  20. data/lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb +68 -0
  21. data/lib/google/cloud/dataproc/v1beta2/job_controller.rb +49 -0
  22. data/lib/google/cloud/dataproc/v1beta2/job_controller/client.rb +980 -0
  23. data/lib/google/cloud/dataproc/v1beta2/job_controller/credentials.rb +51 -0
  24. data/lib/google/cloud/dataproc/v1beta2/job_controller/operations.rb +564 -0
  25. data/lib/google/cloud/dataproc/v1beta2/jobs_pb.rb +283 -0
  26. data/lib/google/cloud/dataproc/v1beta2/jobs_services_pb.rb +62 -0
  27. data/lib/google/cloud/dataproc/v1beta2/operations_pb.rb +45 -0
  28. data/lib/google/cloud/dataproc/v1beta2/shared_pb.rb +35 -0
  29. data/lib/google/cloud/dataproc/v1beta2/version.rb +28 -0
  30. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service.rb +51 -0
  31. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +1028 -0
  32. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/credentials.rb +51 -0
  33. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +564 -0
  34. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/paths.rb +110 -0
  35. data/lib/google/cloud/dataproc/v1beta2/workflow_templates_pb.rb +189 -0
  36. data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +104 -0
  37. data/proto_docs/README.md +4 -0
  38. data/proto_docs/google/api/field_behavior.rb +59 -0
  39. data/proto_docs/google/api/resource.rb +247 -0
  40. data/proto_docs/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +272 -0
  41. data/proto_docs/google/cloud/dataproc/v1beta2/clusters.rb +1032 -0
  42. data/proto_docs/google/cloud/dataproc/v1beta2/jobs.rb +984 -0
  43. data/proto_docs/google/cloud/dataproc/v1beta2/operations.rb +98 -0
  44. data/proto_docs/google/cloud/dataproc/v1beta2/shared.rb +68 -0
  45. data/proto_docs/google/cloud/dataproc/v1beta2/workflow_templates.rb +706 -0
  46. data/proto_docs/google/longrunning/operations.rb +150 -0
  47. data/proto_docs/google/protobuf/any.rb +138 -0
  48. data/proto_docs/google/protobuf/duration.rb +98 -0
  49. data/proto_docs/google/protobuf/empty.rb +36 -0
  50. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  51. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  52. data/proto_docs/google/rpc/status.rb +46 -0
  53. metadata +205 -0
@@ -0,0 +1,283 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dataproc/v1beta2/jobs.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/longrunning/operations_pb'
10
+ require 'google/protobuf/empty_pb'
11
+ require 'google/protobuf/field_mask_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/dataproc/v1beta2/jobs.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.dataproc.v1beta2.LoggingConfig" do
16
+ map :driver_log_levels, :string, :enum, 2, "google.cloud.dataproc.v1beta2.LoggingConfig.Level"
17
+ end
18
+ add_enum "google.cloud.dataproc.v1beta2.LoggingConfig.Level" do
19
+ value :LEVEL_UNSPECIFIED, 0
20
+ value :ALL, 1
21
+ value :TRACE, 2
22
+ value :DEBUG, 3
23
+ value :INFO, 4
24
+ value :WARN, 5
25
+ value :ERROR, 6
26
+ value :FATAL, 7
27
+ value :OFF, 8
28
+ end
29
+ add_message "google.cloud.dataproc.v1beta2.HadoopJob" do
30
+ repeated :args, :string, 3
31
+ repeated :jar_file_uris, :string, 4
32
+ repeated :file_uris, :string, 5
33
+ repeated :archive_uris, :string, 6
34
+ map :properties, :string, :string, 7
35
+ optional :logging_config, :message, 8, "google.cloud.dataproc.v1beta2.LoggingConfig"
36
+ oneof :driver do
37
+ optional :main_jar_file_uri, :string, 1
38
+ optional :main_class, :string, 2
39
+ end
40
+ end
41
+ add_message "google.cloud.dataproc.v1beta2.SparkJob" do
42
+ repeated :args, :string, 3
43
+ repeated :jar_file_uris, :string, 4
44
+ repeated :file_uris, :string, 5
45
+ repeated :archive_uris, :string, 6
46
+ map :properties, :string, :string, 7
47
+ optional :logging_config, :message, 8, "google.cloud.dataproc.v1beta2.LoggingConfig"
48
+ oneof :driver do
49
+ optional :main_jar_file_uri, :string, 1
50
+ optional :main_class, :string, 2
51
+ end
52
+ end
53
+ add_message "google.cloud.dataproc.v1beta2.PySparkJob" do
54
+ optional :main_python_file_uri, :string, 1
55
+ repeated :args, :string, 2
56
+ repeated :python_file_uris, :string, 3
57
+ repeated :jar_file_uris, :string, 4
58
+ repeated :file_uris, :string, 5
59
+ repeated :archive_uris, :string, 6
60
+ map :properties, :string, :string, 7
61
+ optional :logging_config, :message, 8, "google.cloud.dataproc.v1beta2.LoggingConfig"
62
+ end
63
+ add_message "google.cloud.dataproc.v1beta2.QueryList" do
64
+ repeated :queries, :string, 1
65
+ end
66
+ add_message "google.cloud.dataproc.v1beta2.HiveJob" do
67
+ optional :continue_on_failure, :bool, 3
68
+ map :script_variables, :string, :string, 4
69
+ map :properties, :string, :string, 5
70
+ repeated :jar_file_uris, :string, 6
71
+ oneof :queries do
72
+ optional :query_file_uri, :string, 1
73
+ optional :query_list, :message, 2, "google.cloud.dataproc.v1beta2.QueryList"
74
+ end
75
+ end
76
+ add_message "google.cloud.dataproc.v1beta2.SparkSqlJob" do
77
+ map :script_variables, :string, :string, 3
78
+ map :properties, :string, :string, 4
79
+ repeated :jar_file_uris, :string, 56
80
+ optional :logging_config, :message, 6, "google.cloud.dataproc.v1beta2.LoggingConfig"
81
+ oneof :queries do
82
+ optional :query_file_uri, :string, 1
83
+ optional :query_list, :message, 2, "google.cloud.dataproc.v1beta2.QueryList"
84
+ end
85
+ end
86
+ add_message "google.cloud.dataproc.v1beta2.PigJob" do
87
+ optional :continue_on_failure, :bool, 3
88
+ map :script_variables, :string, :string, 4
89
+ map :properties, :string, :string, 5
90
+ repeated :jar_file_uris, :string, 6
91
+ optional :logging_config, :message, 7, "google.cloud.dataproc.v1beta2.LoggingConfig"
92
+ oneof :queries do
93
+ optional :query_file_uri, :string, 1
94
+ optional :query_list, :message, 2, "google.cloud.dataproc.v1beta2.QueryList"
95
+ end
96
+ end
97
+ add_message "google.cloud.dataproc.v1beta2.SparkRJob" do
98
+ optional :main_r_file_uri, :string, 1
99
+ repeated :args, :string, 2
100
+ repeated :file_uris, :string, 3
101
+ repeated :archive_uris, :string, 4
102
+ map :properties, :string, :string, 5
103
+ optional :logging_config, :message, 6, "google.cloud.dataproc.v1beta2.LoggingConfig"
104
+ end
105
+ add_message "google.cloud.dataproc.v1beta2.PrestoJob" do
106
+ optional :continue_on_failure, :bool, 3
107
+ optional :output_format, :string, 4
108
+ repeated :client_tags, :string, 5
109
+ map :properties, :string, :string, 6
110
+ optional :logging_config, :message, 7, "google.cloud.dataproc.v1beta2.LoggingConfig"
111
+ oneof :queries do
112
+ optional :query_file_uri, :string, 1
113
+ optional :query_list, :message, 2, "google.cloud.dataproc.v1beta2.QueryList"
114
+ end
115
+ end
116
+ add_message "google.cloud.dataproc.v1beta2.JobPlacement" do
117
+ optional :cluster_name, :string, 1
118
+ optional :cluster_uuid, :string, 2
119
+ end
120
+ add_message "google.cloud.dataproc.v1beta2.JobStatus" do
121
+ optional :state, :enum, 1, "google.cloud.dataproc.v1beta2.JobStatus.State"
122
+ optional :details, :string, 2
123
+ optional :state_start_time, :message, 6, "google.protobuf.Timestamp"
124
+ optional :substate, :enum, 7, "google.cloud.dataproc.v1beta2.JobStatus.Substate"
125
+ end
126
+ add_enum "google.cloud.dataproc.v1beta2.JobStatus.State" do
127
+ value :STATE_UNSPECIFIED, 0
128
+ value :PENDING, 1
129
+ value :SETUP_DONE, 8
130
+ value :RUNNING, 2
131
+ value :CANCEL_PENDING, 3
132
+ value :CANCEL_STARTED, 7
133
+ value :CANCELLED, 4
134
+ value :DONE, 5
135
+ value :ERROR, 6
136
+ value :ATTEMPT_FAILURE, 9
137
+ end
138
+ add_enum "google.cloud.dataproc.v1beta2.JobStatus.Substate" do
139
+ value :UNSPECIFIED, 0
140
+ value :SUBMITTED, 1
141
+ value :QUEUED, 2
142
+ value :STALE_STATUS, 3
143
+ end
144
+ add_message "google.cloud.dataproc.v1beta2.JobReference" do
145
+ optional :project_id, :string, 1
146
+ optional :job_id, :string, 2
147
+ end
148
+ add_message "google.cloud.dataproc.v1beta2.YarnApplication" do
149
+ optional :name, :string, 1
150
+ optional :state, :enum, 2, "google.cloud.dataproc.v1beta2.YarnApplication.State"
151
+ optional :progress, :float, 3
152
+ optional :tracking_url, :string, 4
153
+ end
154
+ add_enum "google.cloud.dataproc.v1beta2.YarnApplication.State" do
155
+ value :STATE_UNSPECIFIED, 0
156
+ value :NEW, 1
157
+ value :NEW_SAVING, 2
158
+ value :SUBMITTED, 3
159
+ value :ACCEPTED, 4
160
+ value :RUNNING, 5
161
+ value :FINISHED, 6
162
+ value :FAILED, 7
163
+ value :KILLED, 8
164
+ end
165
+ add_message "google.cloud.dataproc.v1beta2.Job" do
166
+ optional :reference, :message, 1, "google.cloud.dataproc.v1beta2.JobReference"
167
+ optional :placement, :message, 2, "google.cloud.dataproc.v1beta2.JobPlacement"
168
+ optional :status, :message, 8, "google.cloud.dataproc.v1beta2.JobStatus"
169
+ repeated :status_history, :message, 13, "google.cloud.dataproc.v1beta2.JobStatus"
170
+ repeated :yarn_applications, :message, 9, "google.cloud.dataproc.v1beta2.YarnApplication"
171
+ optional :submitted_by, :string, 10
172
+ optional :driver_output_resource_uri, :string, 17
173
+ optional :driver_control_files_uri, :string, 15
174
+ map :labels, :string, :string, 18
175
+ optional :scheduling, :message, 20, "google.cloud.dataproc.v1beta2.JobScheduling"
176
+ optional :job_uuid, :string, 22
177
+ optional :done, :bool, 24
178
+ oneof :type_job do
179
+ optional :hadoop_job, :message, 3, "google.cloud.dataproc.v1beta2.HadoopJob"
180
+ optional :spark_job, :message, 4, "google.cloud.dataproc.v1beta2.SparkJob"
181
+ optional :pyspark_job, :message, 5, "google.cloud.dataproc.v1beta2.PySparkJob"
182
+ optional :hive_job, :message, 6, "google.cloud.dataproc.v1beta2.HiveJob"
183
+ optional :pig_job, :message, 7, "google.cloud.dataproc.v1beta2.PigJob"
184
+ optional :spark_r_job, :message, 21, "google.cloud.dataproc.v1beta2.SparkRJob"
185
+ optional :spark_sql_job, :message, 12, "google.cloud.dataproc.v1beta2.SparkSqlJob"
186
+ optional :presto_job, :message, 23, "google.cloud.dataproc.v1beta2.PrestoJob"
187
+ end
188
+ end
189
+ add_message "google.cloud.dataproc.v1beta2.JobScheduling" do
190
+ optional :max_failures_per_hour, :int32, 1
191
+ end
192
+ add_message "google.cloud.dataproc.v1beta2.JobMetadata" do
193
+ optional :job_id, :string, 1
194
+ optional :status, :message, 2, "google.cloud.dataproc.v1beta2.JobStatus"
195
+ optional :operation_type, :string, 3
196
+ optional :start_time, :message, 4, "google.protobuf.Timestamp"
197
+ end
198
+ add_message "google.cloud.dataproc.v1beta2.SubmitJobRequest" do
199
+ optional :project_id, :string, 1
200
+ optional :region, :string, 3
201
+ optional :job, :message, 2, "google.cloud.dataproc.v1beta2.Job"
202
+ optional :request_id, :string, 4
203
+ end
204
+ add_message "google.cloud.dataproc.v1beta2.GetJobRequest" do
205
+ optional :project_id, :string, 1
206
+ optional :region, :string, 3
207
+ optional :job_id, :string, 2
208
+ end
209
+ add_message "google.cloud.dataproc.v1beta2.ListJobsRequest" do
210
+ optional :project_id, :string, 1
211
+ optional :region, :string, 6
212
+ optional :page_size, :int32, 2
213
+ optional :page_token, :string, 3
214
+ optional :cluster_name, :string, 4
215
+ optional :job_state_matcher, :enum, 5, "google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher"
216
+ optional :filter, :string, 7
217
+ end
218
+ add_enum "google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher" do
219
+ value :ALL, 0
220
+ value :ACTIVE, 1
221
+ value :NON_ACTIVE, 2
222
+ end
223
+ add_message "google.cloud.dataproc.v1beta2.UpdateJobRequest" do
224
+ optional :project_id, :string, 1
225
+ optional :region, :string, 2
226
+ optional :job_id, :string, 3
227
+ optional :job, :message, 4, "google.cloud.dataproc.v1beta2.Job"
228
+ optional :update_mask, :message, 5, "google.protobuf.FieldMask"
229
+ end
230
+ add_message "google.cloud.dataproc.v1beta2.ListJobsResponse" do
231
+ repeated :jobs, :message, 1, "google.cloud.dataproc.v1beta2.Job"
232
+ optional :next_page_token, :string, 2
233
+ end
234
+ add_message "google.cloud.dataproc.v1beta2.CancelJobRequest" do
235
+ optional :project_id, :string, 1
236
+ optional :region, :string, 3
237
+ optional :job_id, :string, 2
238
+ end
239
+ add_message "google.cloud.dataproc.v1beta2.DeleteJobRequest" do
240
+ optional :project_id, :string, 1
241
+ optional :region, :string, 3
242
+ optional :job_id, :string, 2
243
+ end
244
+ end
245
+ end
246
+
247
+ module Google
248
+ module Cloud
249
+ module Dataproc
250
+ module V1beta2
251
+ LoggingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.LoggingConfig").msgclass
252
+ LoggingConfig::Level = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.LoggingConfig.Level").enummodule
253
+ HadoopJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.HadoopJob").msgclass
254
+ SparkJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.SparkJob").msgclass
255
+ PySparkJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.PySparkJob").msgclass
256
+ QueryList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.QueryList").msgclass
257
+ HiveJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.HiveJob").msgclass
258
+ SparkSqlJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.SparkSqlJob").msgclass
259
+ PigJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.PigJob").msgclass
260
+ SparkRJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.SparkRJob").msgclass
261
+ PrestoJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.PrestoJob").msgclass
262
+ JobPlacement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.JobPlacement").msgclass
263
+ JobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.JobStatus").msgclass
264
+ JobStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.JobStatus.State").enummodule
265
+ JobStatus::Substate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.JobStatus.Substate").enummodule
266
+ JobReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.JobReference").msgclass
267
+ YarnApplication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.YarnApplication").msgclass
268
+ YarnApplication::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.YarnApplication.State").enummodule
269
+ Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.Job").msgclass
270
+ JobScheduling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.JobScheduling").msgclass
271
+ JobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.JobMetadata").msgclass
272
+ SubmitJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.SubmitJobRequest").msgclass
273
+ GetJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.GetJobRequest").msgclass
274
+ ListJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ListJobsRequest").msgclass
275
+ ListJobsRequest::JobStateMatcher = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ListJobsRequest.JobStateMatcher").enummodule
276
+ UpdateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.UpdateJobRequest").msgclass
277
+ ListJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ListJobsResponse").msgclass
278
+ CancelJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.CancelJobRequest").msgclass
279
+ DeleteJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.DeleteJobRequest").msgclass
280
+ end
281
+ end
282
+ end
283
+ end
@@ -0,0 +1,62 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dataproc/v1beta2/jobs.proto for package 'google.cloud.dataproc.v1beta2'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/dataproc/v1beta2/jobs_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dataproc
25
+ module V1beta2
26
+ module JobController
27
+ # The JobController provides methods to manage jobs.
28
+ class Service
29
+
30
+ include GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.dataproc.v1beta2.JobController'
35
+
36
+ # Submits a job to a cluster.
37
+ rpc :SubmitJob, SubmitJobRequest, Job
38
+ # Submits job to a cluster.
39
+ rpc :SubmitJobAsOperation, SubmitJobRequest, Google::Longrunning::Operation
40
+ # Gets the resource representation for a job in a project.
41
+ rpc :GetJob, GetJobRequest, Job
42
+ # Lists regions/{region}/jobs in a project.
43
+ rpc :ListJobs, ListJobsRequest, ListJobsResponse
44
+ # Updates a job in a project.
45
+ rpc :UpdateJob, UpdateJobRequest, Job
46
+ # Starts a job cancellation request. To access the job resource
47
+ # after cancellation, call
48
+ # [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list)
49
+ # or
50
+ # [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get).
51
+ rpc :CancelJob, CancelJobRequest, Job
52
+ # Deletes the job from the project. If the job is active, the delete fails,
53
+ # and the response returns `FAILED_PRECONDITION`.
54
+ rpc :DeleteJob, DeleteJobRequest, Google::Protobuf::Empty
55
+ end
56
+
57
+ Stub = Service.rpc_stub_class
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,45 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dataproc/v1beta2/operations.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/cloud/dataproc/v1beta2/operations.proto", :syntax => :proto3) do
10
+ add_message "google.cloud.dataproc.v1beta2.ClusterOperationStatus" do
11
+ optional :state, :enum, 1, "google.cloud.dataproc.v1beta2.ClusterOperationStatus.State"
12
+ optional :inner_state, :string, 2
13
+ optional :details, :string, 3
14
+ optional :state_start_time, :message, 4, "google.protobuf.Timestamp"
15
+ end
16
+ add_enum "google.cloud.dataproc.v1beta2.ClusterOperationStatus.State" do
17
+ value :UNKNOWN, 0
18
+ value :PENDING, 1
19
+ value :RUNNING, 2
20
+ value :DONE, 3
21
+ end
22
+ add_message "google.cloud.dataproc.v1beta2.ClusterOperationMetadata" do
23
+ optional :cluster_name, :string, 7
24
+ optional :cluster_uuid, :string, 8
25
+ optional :status, :message, 9, "google.cloud.dataproc.v1beta2.ClusterOperationStatus"
26
+ repeated :status_history, :message, 10, "google.cloud.dataproc.v1beta2.ClusterOperationStatus"
27
+ optional :operation_type, :string, 11
28
+ optional :description, :string, 12
29
+ map :labels, :string, :string, 13
30
+ repeated :warnings, :string, 14
31
+ end
32
+ end
33
+ end
34
+
35
+ module Google
36
+ module Cloud
37
+ module Dataproc
38
+ module V1beta2
39
+ ClusterOperationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ClusterOperationStatus").msgclass
40
+ ClusterOperationStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ClusterOperationStatus.State").enummodule
41
+ ClusterOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ClusterOperationMetadata").msgclass
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,35 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dataproc/v1beta2/shared.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/dataproc/v1beta2/shared.proto", :syntax => :proto3) do
9
+ add_enum "google.cloud.dataproc.v1beta2.Component" do
10
+ value :COMPONENT_UNSPECIFIED, 0
11
+ value :ANACONDA, 5
12
+ value :DOCKER, 13
13
+ value :DRUID, 9
14
+ value :FLINK, 14
15
+ value :HIVE_WEBHCAT, 3
16
+ value :JUPYTER, 1
17
+ value :KERBEROS, 7
18
+ value :PRESTO, 6
19
+ value :RANGER, 12
20
+ value :SOLR, 10
21
+ value :ZEPPELIN, 4
22
+ value :ZOOKEEPER, 8
23
+ end
24
+ end
25
+ end
26
+
27
+ module Google
28
+ module Cloud
29
+ module Dataproc
30
+ module V1beta2
31
+ Component = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.Component").enummodule
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dataproc
23
+ module V1beta2
24
+ VERSION = "0.1.0"
25
+ end
26
+ end
27
+ end
28
+ end