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,110 @@
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
+ module WorkflowTemplateService
25
+ # Path helper methods for the WorkflowTemplateService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Location resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ #
37
+ # @return [String]
38
+ def location_path project:, location:
39
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
40
+
41
+ "projects/#{project}/locations/#{location}"
42
+ end
43
+
44
+ ##
45
+ # Create a fully-qualified Region resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `projects/{project}/regions/{region}`
50
+ #
51
+ # @param project [String]
52
+ # @param region [String]
53
+ #
54
+ # @return [String]
55
+ def region_path project:, region:
56
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
57
+
58
+ "projects/#{project}/regions/#{region}"
59
+ end
60
+
61
+ ##
62
+ # Create a fully-qualified WorkflowTemplate resource string.
63
+ #
64
+ # @overload workflow_template_path(project:, region:, workflow_template:)
65
+ # The resource will be in the following format:
66
+ #
67
+ # `projects/{project}/regions/{region}/workflowTemplates/{workflow_template}`
68
+ #
69
+ # @param project [String]
70
+ # @param region [String]
71
+ # @param workflow_template [String]
72
+ #
73
+ # @overload workflow_template_path(project:, location:, workflow_template:)
74
+ # The resource will be in the following format:
75
+ #
76
+ # `projects/{project}/locations/{location}/workflowTemplates/{workflow_template}`
77
+ #
78
+ # @param project [String]
79
+ # @param location [String]
80
+ # @param workflow_template [String]
81
+ #
82
+ # @return [String]
83
+ def workflow_template_path **args
84
+ resources = {
85
+ "project:region:workflow_template" => (proc do |project:, region:, workflow_template:|
86
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
87
+ raise ArgumentError, "region cannot contain /" if region.to_s.include? "/"
88
+
89
+ "projects/#{project}/regions/#{region}/workflowTemplates/#{workflow_template}"
90
+ end),
91
+ "location:project:workflow_template" => (proc do |project:, location:, workflow_template:|
92
+ raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
93
+ raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
94
+
95
+ "projects/#{project}/locations/#{location}/workflowTemplates/#{workflow_template}"
96
+ end)
97
+ }
98
+
99
+ resource = resources[args.keys.sort.join(":")]
100
+ raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
101
+ resource.call(**args)
102
+ end
103
+
104
+ extend self
105
+ end
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,189 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dataproc/v1beta2/workflow_templates.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/api/resource_pb'
10
+ require 'google/cloud/dataproc/v1beta2/clusters_pb'
11
+ require 'google/cloud/dataproc/v1beta2/jobs_pb'
12
+ require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
14
+ require 'google/protobuf/timestamp_pb'
15
+ Google::Protobuf::DescriptorPool.generated_pool.build do
16
+ add_file("google/cloud/dataproc/v1beta2/workflow_templates.proto", :syntax => :proto3) do
17
+ add_message "google.cloud.dataproc.v1beta2.WorkflowTemplate" do
18
+ optional :id, :string, 2
19
+ optional :name, :string, 1
20
+ optional :version, :int32, 3
21
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
22
+ optional :update_time, :message, 5, "google.protobuf.Timestamp"
23
+ map :labels, :string, :string, 6
24
+ optional :placement, :message, 7, "google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement"
25
+ repeated :jobs, :message, 8, "google.cloud.dataproc.v1beta2.OrderedJob"
26
+ repeated :parameters, :message, 9, "google.cloud.dataproc.v1beta2.TemplateParameter"
27
+ end
28
+ add_message "google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement" do
29
+ oneof :placement do
30
+ optional :managed_cluster, :message, 1, "google.cloud.dataproc.v1beta2.ManagedCluster"
31
+ optional :cluster_selector, :message, 2, "google.cloud.dataproc.v1beta2.ClusterSelector"
32
+ end
33
+ end
34
+ add_message "google.cloud.dataproc.v1beta2.ManagedCluster" do
35
+ optional :cluster_name, :string, 2
36
+ optional :config, :message, 3, "google.cloud.dataproc.v1beta2.ClusterConfig"
37
+ map :labels, :string, :string, 4
38
+ end
39
+ add_message "google.cloud.dataproc.v1beta2.ClusterSelector" do
40
+ optional :zone, :string, 1
41
+ map :cluster_labels, :string, :string, 2
42
+ end
43
+ add_message "google.cloud.dataproc.v1beta2.OrderedJob" do
44
+ optional :step_id, :string, 1
45
+ map :labels, :string, :string, 8
46
+ optional :scheduling, :message, 9, "google.cloud.dataproc.v1beta2.JobScheduling"
47
+ repeated :prerequisite_step_ids, :string, 10
48
+ oneof :job_type do
49
+ optional :hadoop_job, :message, 2, "google.cloud.dataproc.v1beta2.HadoopJob"
50
+ optional :spark_job, :message, 3, "google.cloud.dataproc.v1beta2.SparkJob"
51
+ optional :pyspark_job, :message, 4, "google.cloud.dataproc.v1beta2.PySparkJob"
52
+ optional :hive_job, :message, 5, "google.cloud.dataproc.v1beta2.HiveJob"
53
+ optional :pig_job, :message, 6, "google.cloud.dataproc.v1beta2.PigJob"
54
+ optional :spark_r_job, :message, 11, "google.cloud.dataproc.v1beta2.SparkRJob"
55
+ optional :spark_sql_job, :message, 7, "google.cloud.dataproc.v1beta2.SparkSqlJob"
56
+ optional :presto_job, :message, 12, "google.cloud.dataproc.v1beta2.PrestoJob"
57
+ end
58
+ end
59
+ add_message "google.cloud.dataproc.v1beta2.TemplateParameter" do
60
+ optional :name, :string, 1
61
+ repeated :fields, :string, 2
62
+ optional :description, :string, 3
63
+ optional :validation, :message, 4, "google.cloud.dataproc.v1beta2.ParameterValidation"
64
+ end
65
+ add_message "google.cloud.dataproc.v1beta2.ParameterValidation" do
66
+ oneof :validation_type do
67
+ optional :regex, :message, 1, "google.cloud.dataproc.v1beta2.RegexValidation"
68
+ optional :values, :message, 2, "google.cloud.dataproc.v1beta2.ValueValidation"
69
+ end
70
+ end
71
+ add_message "google.cloud.dataproc.v1beta2.RegexValidation" do
72
+ repeated :regexes, :string, 1
73
+ end
74
+ add_message "google.cloud.dataproc.v1beta2.ValueValidation" do
75
+ repeated :values, :string, 1
76
+ end
77
+ add_message "google.cloud.dataproc.v1beta2.WorkflowMetadata" do
78
+ optional :template, :string, 1
79
+ optional :version, :int32, 2
80
+ optional :create_cluster, :message, 3, "google.cloud.dataproc.v1beta2.ClusterOperation"
81
+ optional :graph, :message, 4, "google.cloud.dataproc.v1beta2.WorkflowGraph"
82
+ optional :delete_cluster, :message, 5, "google.cloud.dataproc.v1beta2.ClusterOperation"
83
+ optional :state, :enum, 6, "google.cloud.dataproc.v1beta2.WorkflowMetadata.State"
84
+ optional :cluster_name, :string, 7
85
+ map :parameters, :string, :string, 8
86
+ optional :start_time, :message, 9, "google.protobuf.Timestamp"
87
+ optional :end_time, :message, 10, "google.protobuf.Timestamp"
88
+ optional :cluster_uuid, :string, 11
89
+ end
90
+ add_enum "google.cloud.dataproc.v1beta2.WorkflowMetadata.State" do
91
+ value :UNKNOWN, 0
92
+ value :PENDING, 1
93
+ value :RUNNING, 2
94
+ value :DONE, 3
95
+ end
96
+ add_message "google.cloud.dataproc.v1beta2.ClusterOperation" do
97
+ optional :operation_id, :string, 1
98
+ optional :error, :string, 2
99
+ optional :done, :bool, 3
100
+ end
101
+ add_message "google.cloud.dataproc.v1beta2.WorkflowGraph" do
102
+ repeated :nodes, :message, 1, "google.cloud.dataproc.v1beta2.WorkflowNode"
103
+ end
104
+ add_message "google.cloud.dataproc.v1beta2.WorkflowNode" do
105
+ optional :step_id, :string, 1
106
+ repeated :prerequisite_step_ids, :string, 2
107
+ optional :job_id, :string, 3
108
+ optional :state, :enum, 5, "google.cloud.dataproc.v1beta2.WorkflowNode.NodeState"
109
+ optional :error, :string, 6
110
+ end
111
+ add_enum "google.cloud.dataproc.v1beta2.WorkflowNode.NodeState" do
112
+ value :NODE_STATUS_UNSPECIFIED, 0
113
+ value :BLOCKED, 1
114
+ value :RUNNABLE, 2
115
+ value :RUNNING, 3
116
+ value :COMPLETED, 4
117
+ value :FAILED, 5
118
+ end
119
+ add_message "google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest" do
120
+ optional :parent, :string, 1
121
+ optional :template, :message, 2, "google.cloud.dataproc.v1beta2.WorkflowTemplate"
122
+ end
123
+ add_message "google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest" do
124
+ optional :name, :string, 1
125
+ optional :version, :int32, 2
126
+ end
127
+ add_message "google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest" do
128
+ optional :name, :string, 1
129
+ optional :version, :int32, 2
130
+ optional :instance_id, :string, 3
131
+ optional :request_id, :string, 5
132
+ map :parameters, :string, :string, 4
133
+ end
134
+ add_message "google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest" do
135
+ optional :parent, :string, 1
136
+ optional :template, :message, 2, "google.cloud.dataproc.v1beta2.WorkflowTemplate"
137
+ optional :instance_id, :string, 3
138
+ optional :request_id, :string, 4
139
+ end
140
+ add_message "google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest" do
141
+ optional :template, :message, 1, "google.cloud.dataproc.v1beta2.WorkflowTemplate"
142
+ end
143
+ add_message "google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest" do
144
+ optional :parent, :string, 1
145
+ optional :page_size, :int32, 2
146
+ optional :page_token, :string, 3
147
+ end
148
+ add_message "google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse" do
149
+ repeated :templates, :message, 1, "google.cloud.dataproc.v1beta2.WorkflowTemplate"
150
+ optional :next_page_token, :string, 2
151
+ end
152
+ add_message "google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest" do
153
+ optional :name, :string, 1
154
+ optional :version, :int32, 2
155
+ end
156
+ end
157
+ end
158
+
159
+ module Google
160
+ module Cloud
161
+ module Dataproc
162
+ module V1beta2
163
+ WorkflowTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.WorkflowTemplate").msgclass
164
+ WorkflowTemplatePlacement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement").msgclass
165
+ ManagedCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ManagedCluster").msgclass
166
+ ClusterSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ClusterSelector").msgclass
167
+ OrderedJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.OrderedJob").msgclass
168
+ TemplateParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.TemplateParameter").msgclass
169
+ ParameterValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ParameterValidation").msgclass
170
+ RegexValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.RegexValidation").msgclass
171
+ ValueValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ValueValidation").msgclass
172
+ WorkflowMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.WorkflowMetadata").msgclass
173
+ WorkflowMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.WorkflowMetadata.State").enummodule
174
+ ClusterOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ClusterOperation").msgclass
175
+ WorkflowGraph = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.WorkflowGraph").msgclass
176
+ WorkflowNode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.WorkflowNode").msgclass
177
+ WorkflowNode::NodeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.WorkflowNode.NodeState").enummodule
178
+ CreateWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.CreateWorkflowTemplateRequest").msgclass
179
+ GetWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.GetWorkflowTemplateRequest").msgclass
180
+ InstantiateWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.InstantiateWorkflowTemplateRequest").msgclass
181
+ InstantiateInlineWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.InstantiateInlineWorkflowTemplateRequest").msgclass
182
+ UpdateWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.UpdateWorkflowTemplateRequest").msgclass
183
+ ListWorkflowTemplatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest").msgclass
184
+ ListWorkflowTemplatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse").msgclass
185
+ DeleteWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest").msgclass
186
+ end
187
+ end
188
+ end
189
+ end
@@ -0,0 +1,104 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dataproc/v1beta2/workflow_templates.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/workflow_templates_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dataproc
25
+ module V1beta2
26
+ module WorkflowTemplateService
27
+ # The API interface for managing Workflow Templates in the
28
+ # Dataproc API.
29
+ class Service
30
+
31
+ include GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.cloud.dataproc.v1beta2.WorkflowTemplateService'
36
+
37
+ # Creates new workflow template.
38
+ rpc :CreateWorkflowTemplate, CreateWorkflowTemplateRequest, WorkflowTemplate
39
+ # Retrieves the latest workflow template.
40
+ #
41
+ # Can retrieve previously instantiated template by specifying optional
42
+ # version parameter.
43
+ rpc :GetWorkflowTemplate, GetWorkflowTemplateRequest, WorkflowTemplate
44
+ # Instantiates a template and begins execution.
45
+ #
46
+ # The returned Operation can be used to track execution of
47
+ # workflow by polling
48
+ # [operations.get][google.longrunning.Operations.GetOperation].
49
+ # The Operation will complete when entire workflow is finished.
50
+ #
51
+ # The running workflow can be aborted via
52
+ # [operations.cancel][google.longrunning.Operations.CancelOperation].
53
+ # This will cause any inflight jobs to be cancelled and workflow-owned
54
+ # clusters to be deleted.
55
+ #
56
+ # The [Operation.metadata][google.longrunning.Operation.metadata] will be
57
+ # [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#workflowmetadata).
58
+ # Also see [Using
59
+ # WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
60
+ #
61
+ # On successful completion,
62
+ # [Operation.response][google.longrunning.Operation.response] will be
63
+ # [Empty][google.protobuf.Empty].
64
+ rpc :InstantiateWorkflowTemplate, InstantiateWorkflowTemplateRequest, Google::Longrunning::Operation
65
+ # Instantiates a template and begins execution.
66
+ #
67
+ # This method is equivalent to executing the sequence
68
+ # [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
69
+ # [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
70
+ #
71
+ # The returned Operation can be used to track execution of
72
+ # workflow by polling
73
+ # [operations.get][google.longrunning.Operations.GetOperation].
74
+ # The Operation will complete when entire workflow is finished.
75
+ #
76
+ # The running workflow can be aborted via
77
+ # [operations.cancel][google.longrunning.Operations.CancelOperation].
78
+ # This will cause any inflight jobs to be cancelled and workflow-owned
79
+ # clusters to be deleted.
80
+ #
81
+ # The [Operation.metadata][google.longrunning.Operation.metadata] will be
82
+ # [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
83
+ # Also see [Using
84
+ # WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
85
+ #
86
+ # On successful completion,
87
+ # [Operation.response][google.longrunning.Operation.response] will be
88
+ # [Empty][google.protobuf.Empty].
89
+ rpc :InstantiateInlineWorkflowTemplate, InstantiateInlineWorkflowTemplateRequest, Google::Longrunning::Operation
90
+ # Updates (replaces) workflow template. The updated template
91
+ # must contain version that matches the current server version.
92
+ rpc :UpdateWorkflowTemplate, UpdateWorkflowTemplateRequest, WorkflowTemplate
93
+ # Lists workflows that match the specified filter in the request.
94
+ rpc :ListWorkflowTemplates, ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse
95
+ # Deletes a workflow template. It does not cancel in-progress workflows.
96
+ rpc :DeleteWorkflowTemplate, DeleteWorkflowTemplateRequest, Google::Protobuf::Empty
97
+ end
98
+
99
+ Stub = Service.rpc_stub_class
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,4 @@
1
+ # Cloud Dataproc V1beta2 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.
@@ -0,0 +1,59 @@
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 Api
22
+ # An indicator of the behavior of a given field (for example, that a field
23
+ # is required in requests, or given as output but ignored as input).
24
+ # This **does not** change the behavior in protocol buffers itself; it only
25
+ # denotes the behavior and may affect how API tooling handles the field.
26
+ #
27
+ # Note: This enum **may** receive new values in the future.
28
+ module FieldBehavior
29
+ # Conventional default for enums. Do not use this.
30
+ FIELD_BEHAVIOR_UNSPECIFIED = 0
31
+
32
+ # Specifically denotes a field as optional.
33
+ # While all fields in protocol buffers are optional, this may be specified
34
+ # for emphasis if appropriate.
35
+ OPTIONAL = 1
36
+
37
+ # Denotes a field as required.
38
+ # This indicates that the field **must** be provided as part of the request,
39
+ # and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
40
+ REQUIRED = 2
41
+
42
+ # Denotes a field as output only.
43
+ # This indicates that the field is provided in responses, but including the
44
+ # field in a request does nothing (the server *must* ignore it and
45
+ # *must not* throw an error as a result of the field's presence).
46
+ OUTPUT_ONLY = 3
47
+
48
+ # Denotes a field as input only.
49
+ # This indicates that the field is provided in requests, and the
50
+ # corresponding field is not included in output.
51
+ INPUT_ONLY = 4
52
+
53
+ # Denotes a field as immutable.
54
+ # This indicates that the field may be set once in a request to create a
55
+ # resource, but may not be changed thereafter.
56
+ IMMUTABLE = 5
57
+ end
58
+ end
59
+ end