google-cloud-dataproc-v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/common_resources_pb.rb +15 -0
  7. data/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +81 -0
  8. data/lib/google/cloud/dataproc/v1/autoscaling_policies_services_pb.rb +58 -0
  9. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +734 -0
  10. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/credentials.rb +51 -0
  11. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/paths.rb +110 -0
  12. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service.rb +50 -0
  13. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +970 -0
  14. data/lib/google/cloud/dataproc/v1/cluster_controller/credentials.rb +51 -0
  15. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +564 -0
  16. data/lib/google/cloud/dataproc/v1/cluster_controller.rb +50 -0
  17. data/lib/google/cloud/dataproc/v1/clusters_pb.rb +235 -0
  18. data/lib/google/cloud/dataproc/v1/clusters_services_pb.rb +68 -0
  19. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +980 -0
  20. data/lib/google/cloud/dataproc/v1/job_controller/credentials.rb +51 -0
  21. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +564 -0
  22. data/lib/google/cloud/dataproc/v1/job_controller.rb +49 -0
  23. data/lib/google/cloud/dataproc/v1/jobs_pb.rb +282 -0
  24. data/lib/google/cloud/dataproc/v1/jobs_services_pb.rb +62 -0
  25. data/lib/google/cloud/dataproc/v1/operations_pb.rb +46 -0
  26. data/lib/google/cloud/dataproc/v1/shared_pb.rb +29 -0
  27. data/lib/google/cloud/dataproc/v1/version.rb +28 -0
  28. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +1024 -0
  29. data/lib/google/cloud/dataproc/v1/workflow_template_service/credentials.rb +51 -0
  30. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +564 -0
  31. data/lib/google/cloud/dataproc/v1/workflow_template_service/paths.rb +110 -0
  32. data/lib/google/cloud/dataproc/v1/workflow_template_service.rb +51 -0
  33. data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +187 -0
  34. data/lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb +104 -0
  35. data/lib/google/cloud/dataproc/v1.rb +38 -0
  36. data/lib/google-cloud-dataproc-v1.rb +21 -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/v1/autoscaling_policies.rb +272 -0
  41. data/proto_docs/google/cloud/dataproc/v1/clusters.rb +961 -0
  42. data/proto_docs/google/cloud/dataproc/v1/jobs.rb +976 -0
  43. data/proto_docs/google/cloud/dataproc/v1/operations.rb +98 -0
  44. data/proto_docs/google/cloud/dataproc/v1/shared.rb +50 -0
  45. data/proto_docs/google/cloud/dataproc/v1/workflow_templates.rb +693 -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 V1
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,51 @@
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
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dataproc/v1/version"
24
+
25
+ require "google/cloud/dataproc/v1/workflow_template_service/credentials"
26
+ require "google/cloud/dataproc/v1/workflow_template_service/paths"
27
+ require "google/cloud/dataproc/v1/workflow_template_service/operations"
28
+ require "google/cloud/dataproc/v1/workflow_template_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Dataproc
33
+ module V1
34
+ ##
35
+ # The API interface for managing Workflow Templates in the
36
+ # Dataproc API.
37
+ #
38
+ # To load this service and instantiate a client:
39
+ #
40
+ # require "google/cloud/dataproc/v1/workflow_template_service"
41
+ # client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
42
+ #
43
+ module WorkflowTemplateService
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "workflow_template_service", "helpers.rb"
51
+ require "google/cloud/dataproc/v1/workflow_template_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,187 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dataproc/v1/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/v1/clusters_pb'
11
+ require 'google/cloud/dataproc/v1/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/v1/workflow_templates.proto", :syntax => :proto3) do
17
+ add_message "google.cloud.dataproc.v1.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.v1.WorkflowTemplatePlacement"
25
+ repeated :jobs, :message, 8, "google.cloud.dataproc.v1.OrderedJob"
26
+ repeated :parameters, :message, 9, "google.cloud.dataproc.v1.TemplateParameter"
27
+ end
28
+ add_message "google.cloud.dataproc.v1.WorkflowTemplatePlacement" do
29
+ oneof :placement do
30
+ optional :managed_cluster, :message, 1, "google.cloud.dataproc.v1.ManagedCluster"
31
+ optional :cluster_selector, :message, 2, "google.cloud.dataproc.v1.ClusterSelector"
32
+ end
33
+ end
34
+ add_message "google.cloud.dataproc.v1.ManagedCluster" do
35
+ optional :cluster_name, :string, 2
36
+ optional :config, :message, 3, "google.cloud.dataproc.v1.ClusterConfig"
37
+ map :labels, :string, :string, 4
38
+ end
39
+ add_message "google.cloud.dataproc.v1.ClusterSelector" do
40
+ optional :zone, :string, 1
41
+ map :cluster_labels, :string, :string, 2
42
+ end
43
+ add_message "google.cloud.dataproc.v1.OrderedJob" do
44
+ optional :step_id, :string, 1
45
+ map :labels, :string, :string, 8
46
+ optional :scheduling, :message, 9, "google.cloud.dataproc.v1.JobScheduling"
47
+ repeated :prerequisite_step_ids, :string, 10
48
+ oneof :job_type do
49
+ optional :hadoop_job, :message, 2, "google.cloud.dataproc.v1.HadoopJob"
50
+ optional :spark_job, :message, 3, "google.cloud.dataproc.v1.SparkJob"
51
+ optional :pyspark_job, :message, 4, "google.cloud.dataproc.v1.PySparkJob"
52
+ optional :hive_job, :message, 5, "google.cloud.dataproc.v1.HiveJob"
53
+ optional :pig_job, :message, 6, "google.cloud.dataproc.v1.PigJob"
54
+ optional :spark_r_job, :message, 11, "google.cloud.dataproc.v1.SparkRJob"
55
+ optional :spark_sql_job, :message, 7, "google.cloud.dataproc.v1.SparkSqlJob"
56
+ optional :presto_job, :message, 12, "google.cloud.dataproc.v1.PrestoJob"
57
+ end
58
+ end
59
+ add_message "google.cloud.dataproc.v1.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.v1.ParameterValidation"
64
+ end
65
+ add_message "google.cloud.dataproc.v1.ParameterValidation" do
66
+ oneof :validation_type do
67
+ optional :regex, :message, 1, "google.cloud.dataproc.v1.RegexValidation"
68
+ optional :values, :message, 2, "google.cloud.dataproc.v1.ValueValidation"
69
+ end
70
+ end
71
+ add_message "google.cloud.dataproc.v1.RegexValidation" do
72
+ repeated :regexes, :string, 1
73
+ end
74
+ add_message "google.cloud.dataproc.v1.ValueValidation" do
75
+ repeated :values, :string, 1
76
+ end
77
+ add_message "google.cloud.dataproc.v1.WorkflowMetadata" do
78
+ optional :template, :string, 1
79
+ optional :version, :int32, 2
80
+ optional :create_cluster, :message, 3, "google.cloud.dataproc.v1.ClusterOperation"
81
+ optional :graph, :message, 4, "google.cloud.dataproc.v1.WorkflowGraph"
82
+ optional :delete_cluster, :message, 5, "google.cloud.dataproc.v1.ClusterOperation"
83
+ optional :state, :enum, 6, "google.cloud.dataproc.v1.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.v1.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.v1.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.v1.WorkflowGraph" do
102
+ repeated :nodes, :message, 1, "google.cloud.dataproc.v1.WorkflowNode"
103
+ end
104
+ add_message "google.cloud.dataproc.v1.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.v1.WorkflowNode.NodeState"
109
+ optional :error, :string, 6
110
+ end
111
+ add_enum "google.cloud.dataproc.v1.WorkflowNode.NodeState" do
112
+ value :NODE_STATE_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.v1.CreateWorkflowTemplateRequest" do
120
+ optional :parent, :string, 1
121
+ optional :template, :message, 2, "google.cloud.dataproc.v1.WorkflowTemplate"
122
+ end
123
+ add_message "google.cloud.dataproc.v1.GetWorkflowTemplateRequest" do
124
+ optional :name, :string, 1
125
+ optional :version, :int32, 2
126
+ end
127
+ add_message "google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest" do
128
+ optional :name, :string, 1
129
+ optional :version, :int32, 2
130
+ optional :request_id, :string, 5
131
+ map :parameters, :string, :string, 6
132
+ end
133
+ add_message "google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest" do
134
+ optional :parent, :string, 1
135
+ optional :template, :message, 2, "google.cloud.dataproc.v1.WorkflowTemplate"
136
+ optional :request_id, :string, 3
137
+ end
138
+ add_message "google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest" do
139
+ optional :template, :message, 1, "google.cloud.dataproc.v1.WorkflowTemplate"
140
+ end
141
+ add_message "google.cloud.dataproc.v1.ListWorkflowTemplatesRequest" do
142
+ optional :parent, :string, 1
143
+ optional :page_size, :int32, 2
144
+ optional :page_token, :string, 3
145
+ end
146
+ add_message "google.cloud.dataproc.v1.ListWorkflowTemplatesResponse" do
147
+ repeated :templates, :message, 1, "google.cloud.dataproc.v1.WorkflowTemplate"
148
+ optional :next_page_token, :string, 2
149
+ end
150
+ add_message "google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest" do
151
+ optional :name, :string, 1
152
+ optional :version, :int32, 2
153
+ end
154
+ end
155
+ end
156
+
157
+ module Google
158
+ module Cloud
159
+ module Dataproc
160
+ module V1
161
+ WorkflowTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowTemplate").msgclass
162
+ WorkflowTemplatePlacement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowTemplatePlacement").msgclass
163
+ ManagedCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ManagedCluster").msgclass
164
+ ClusterSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterSelector").msgclass
165
+ OrderedJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.OrderedJob").msgclass
166
+ TemplateParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.TemplateParameter").msgclass
167
+ ParameterValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ParameterValidation").msgclass
168
+ RegexValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.RegexValidation").msgclass
169
+ ValueValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ValueValidation").msgclass
170
+ WorkflowMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowMetadata").msgclass
171
+ WorkflowMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowMetadata.State").enummodule
172
+ ClusterOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterOperation").msgclass
173
+ WorkflowGraph = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowGraph").msgclass
174
+ WorkflowNode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowNode").msgclass
175
+ WorkflowNode::NodeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowNode.NodeState").enummodule
176
+ CreateWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.CreateWorkflowTemplateRequest").msgclass
177
+ GetWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GetWorkflowTemplateRequest").msgclass
178
+ InstantiateWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest").msgclass
179
+ InstantiateInlineWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest").msgclass
180
+ UpdateWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest").msgclass
181
+ ListWorkflowTemplatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListWorkflowTemplatesRequest").msgclass
182
+ ListWorkflowTemplatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListWorkflowTemplatesResponse").msgclass
183
+ DeleteWorkflowTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest").msgclass
184
+ end
185
+ end
186
+ end
187
+ end
@@ -0,0 +1,104 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dataproc/v1/workflow_templates.proto for package 'google.cloud.dataproc.v1'
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/v1/workflow_templates_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dataproc
25
+ module V1
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.v1.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.v1#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.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
69
+ # [DeleteWorkflowTemplate][google.cloud.dataproc.v1.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,38 @@
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
+ require "google/cloud/dataproc/v1/autoscaling_policy_service"
20
+ require "google/cloud/dataproc/v1/cluster_controller"
21
+ require "google/cloud/dataproc/v1/job_controller"
22
+ require "google/cloud/dataproc/v1/workflow_template_service"
23
+ require "google/cloud/dataproc/v1/version"
24
+
25
+ module Google
26
+ module Cloud
27
+ module Dataproc
28
+ ##
29
+ # To load this package, including all its services, and instantiate a client:
30
+ #
31
+ # require "google/cloud/dataproc/v1"
32
+ # client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,21 @@
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
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/dataproc/v1"
@@ -0,0 +1,4 @@
1
+ # Cloud Dataproc V1 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