google-cloud-dataproc 0.10.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +3 -2
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +310 -0
- data/README.md +33 -44
- data/lib/{google/cloud/dataproc/v1/doc/google/protobuf/empty.rb → google-cloud-dataproc.rb} +4 -14
- data/lib/google/cloud/dataproc.rb +167 -305
- data/lib/google/cloud/dataproc/version.rb +6 -2
- metadata +97 -100
- data/LICENSE +0 -201
- data/lib/google/cloud/dataproc/v1.rb +0 -371
- data/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +0 -80
- data/lib/google/cloud/dataproc/v1/autoscaling_policies_services_pb.rb +0 -59
- data/lib/google/cloud/dataproc/v1/autoscaling_policy_service_client.rb +0 -494
- data/lib/google/cloud/dataproc/v1/autoscaling_policy_service_client_config.json +0 -51
- data/lib/google/cloud/dataproc/v1/cluster_controller_client.rb +0 -824
- data/lib/google/cloud/dataproc/v1/cluster_controller_client_config.json +0 -59
- data/lib/google/cloud/dataproc/v1/clusters_pb.rb +0 -234
- data/lib/google/cloud/dataproc/v1/clusters_services_pb.rb +0 -69
- data/lib/google/cloud/dataproc/v1/credentials.rb +0 -41
- data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/autoscaling_policies.rb +0 -238
- data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/clusters.rb +0 -819
- data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/jobs.rb +0 -759
- data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/workflow_templates.rb +0 -566
- data/lib/google/cloud/dataproc/v1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/dataproc/v1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/dataproc/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/dataproc/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/dataproc/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/dataproc/v1/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/dataproc/v1/job_controller_client.rb +0 -592
- data/lib/google/cloud/dataproc/v1/job_controller_client_config.json +0 -59
- data/lib/google/cloud/dataproc/v1/jobs_pb.rb +0 -273
- data/lib/google/cloud/dataproc/v1/jobs_services_pb.rb +0 -61
- data/lib/google/cloud/dataproc/v1/operations_pb.rb +0 -45
- data/lib/google/cloud/dataproc/v1/shared_pb.rb +0 -26
- data/lib/google/cloud/dataproc/v1/workflow_template_service_client.rb +0 -770
- data/lib/google/cloud/dataproc/v1/workflow_template_service_client_config.json +0 -64
- data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +0 -184
- data/lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb +0 -105
- data/lib/google/cloud/dataproc/v1beta2.rb +0 -371
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_pb.rb +0 -80
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_services_pb.rb +0 -59
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service_client.rb +0 -494
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service_client_config.json +0 -51
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller_client.rb +0 -833
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller_client_config.json +0 -59
- data/lib/google/cloud/dataproc/v1beta2/clusters_pb.rb +0 -241
- data/lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb +0 -69
- data/lib/google/cloud/dataproc/v1beta2/credentials.rb +0 -41
- data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +0 -238
- data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/clusters.rb +0 -841
- data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/jobs.rb +0 -728
- data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/workflow_templates.rb +0 -579
- data/lib/google/cloud/dataproc/v1beta2/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/dataproc/v1beta2/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/dataproc/v1beta2/job_controller_client.rb +0 -592
- data/lib/google/cloud/dataproc/v1beta2/job_controller_client_config.json +0 -59
- data/lib/google/cloud/dataproc/v1beta2/jobs_pb.rb +0 -261
- data/lib/google/cloud/dataproc/v1beta2/jobs_services_pb.rb +0 -61
- data/lib/google/cloud/dataproc/v1beta2/operations_pb.rb +0 -44
- data/lib/google/cloud/dataproc/v1beta2/shared_pb.rb +0 -30
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service_client.rb +0 -778
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service_client_config.json +0 -64
- data/lib/google/cloud/dataproc/v1beta2/workflow_templates_pb.rb +0 -186
- data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +0 -105
@@ -1,64 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.cloud.dataproc.v1.WorkflowTemplateService": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"INTERNAL",
|
8
|
-
"UNAVAILABLE"
|
9
|
-
],
|
10
|
-
"non_idempotent": [
|
11
|
-
"UNAVAILABLE"
|
12
|
-
]
|
13
|
-
},
|
14
|
-
"retry_params": {
|
15
|
-
"default": {
|
16
|
-
"initial_retry_delay_millis": 100,
|
17
|
-
"retry_delay_multiplier": 1.3,
|
18
|
-
"max_retry_delay_millis": 60000,
|
19
|
-
"initial_rpc_timeout_millis": 20000,
|
20
|
-
"rpc_timeout_multiplier": 1.0,
|
21
|
-
"max_rpc_timeout_millis": 20000,
|
22
|
-
"total_timeout_millis": 600000
|
23
|
-
}
|
24
|
-
},
|
25
|
-
"methods": {
|
26
|
-
"CreateWorkflowTemplate": {
|
27
|
-
"timeout_millis": 30000,
|
28
|
-
"retry_codes_name": "non_idempotent",
|
29
|
-
"retry_params_name": "default"
|
30
|
-
},
|
31
|
-
"GetWorkflowTemplate": {
|
32
|
-
"timeout_millis": 60000,
|
33
|
-
"retry_codes_name": "idempotent",
|
34
|
-
"retry_params_name": "default"
|
35
|
-
},
|
36
|
-
"InstantiateWorkflowTemplate": {
|
37
|
-
"timeout_millis": 60000,
|
38
|
-
"retry_codes_name": "non_idempotent",
|
39
|
-
"retry_params_name": "default"
|
40
|
-
},
|
41
|
-
"InstantiateInlineWorkflowTemplate": {
|
42
|
-
"timeout_millis": 60000,
|
43
|
-
"retry_codes_name": "non_idempotent",
|
44
|
-
"retry_params_name": "default"
|
45
|
-
},
|
46
|
-
"UpdateWorkflowTemplate": {
|
47
|
-
"timeout_millis": 60000,
|
48
|
-
"retry_codes_name": "non_idempotent",
|
49
|
-
"retry_params_name": "default"
|
50
|
-
},
|
51
|
-
"ListWorkflowTemplates": {
|
52
|
-
"timeout_millis": 60000,
|
53
|
-
"retry_codes_name": "idempotent",
|
54
|
-
"retry_params_name": "default"
|
55
|
-
},
|
56
|
-
"DeleteWorkflowTemplate": {
|
57
|
-
"timeout_millis": 60000,
|
58
|
-
"retry_codes_name": "non_idempotent",
|
59
|
-
"retry_params_name": "default"
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
@@ -1,184 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/dataproc/v1/workflow_templates.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
|
-
require 'google/cloud/dataproc/v1/clusters_pb'
|
12
|
-
require 'google/cloud/dataproc/v1/jobs_pb'
|
13
|
-
require 'google/longrunning/operations_pb'
|
14
|
-
require 'google/protobuf/empty_pb'
|
15
|
-
require 'google/protobuf/timestamp_pb'
|
16
|
-
Google::Protobuf::DescriptorPool.generated_pool.build 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_sql_job, :message, 7, "google.cloud.dataproc.v1.SparkSqlJob"
|
55
|
-
end
|
56
|
-
end
|
57
|
-
add_message "google.cloud.dataproc.v1.TemplateParameter" do
|
58
|
-
optional :name, :string, 1
|
59
|
-
repeated :fields, :string, 2
|
60
|
-
optional :description, :string, 3
|
61
|
-
optional :validation, :message, 4, "google.cloud.dataproc.v1.ParameterValidation"
|
62
|
-
end
|
63
|
-
add_message "google.cloud.dataproc.v1.ParameterValidation" do
|
64
|
-
oneof :validation_type do
|
65
|
-
optional :regex, :message, 1, "google.cloud.dataproc.v1.RegexValidation"
|
66
|
-
optional :values, :message, 2, "google.cloud.dataproc.v1.ValueValidation"
|
67
|
-
end
|
68
|
-
end
|
69
|
-
add_message "google.cloud.dataproc.v1.RegexValidation" do
|
70
|
-
repeated :regexes, :string, 1
|
71
|
-
end
|
72
|
-
add_message "google.cloud.dataproc.v1.ValueValidation" do
|
73
|
-
repeated :values, :string, 1
|
74
|
-
end
|
75
|
-
add_message "google.cloud.dataproc.v1.WorkflowMetadata" do
|
76
|
-
optional :template, :string, 1
|
77
|
-
optional :version, :int32, 2
|
78
|
-
optional :create_cluster, :message, 3, "google.cloud.dataproc.v1.ClusterOperation"
|
79
|
-
optional :graph, :message, 4, "google.cloud.dataproc.v1.WorkflowGraph"
|
80
|
-
optional :delete_cluster, :message, 5, "google.cloud.dataproc.v1.ClusterOperation"
|
81
|
-
optional :state, :enum, 6, "google.cloud.dataproc.v1.WorkflowMetadata.State"
|
82
|
-
optional :cluster_name, :string, 7
|
83
|
-
map :parameters, :string, :string, 8
|
84
|
-
optional :start_time, :message, 9, "google.protobuf.Timestamp"
|
85
|
-
optional :end_time, :message, 10, "google.protobuf.Timestamp"
|
86
|
-
optional :cluster_uuid, :string, 11
|
87
|
-
end
|
88
|
-
add_enum "google.cloud.dataproc.v1.WorkflowMetadata.State" do
|
89
|
-
value :UNKNOWN, 0
|
90
|
-
value :PENDING, 1
|
91
|
-
value :RUNNING, 2
|
92
|
-
value :DONE, 3
|
93
|
-
end
|
94
|
-
add_message "google.cloud.dataproc.v1.ClusterOperation" do
|
95
|
-
optional :operation_id, :string, 1
|
96
|
-
optional :error, :string, 2
|
97
|
-
optional :done, :bool, 3
|
98
|
-
end
|
99
|
-
add_message "google.cloud.dataproc.v1.WorkflowGraph" do
|
100
|
-
repeated :nodes, :message, 1, "google.cloud.dataproc.v1.WorkflowNode"
|
101
|
-
end
|
102
|
-
add_message "google.cloud.dataproc.v1.WorkflowNode" do
|
103
|
-
optional :step_id, :string, 1
|
104
|
-
repeated :prerequisite_step_ids, :string, 2
|
105
|
-
optional :job_id, :string, 3
|
106
|
-
optional :state, :enum, 5, "google.cloud.dataproc.v1.WorkflowNode.NodeState"
|
107
|
-
optional :error, :string, 6
|
108
|
-
end
|
109
|
-
add_enum "google.cloud.dataproc.v1.WorkflowNode.NodeState" do
|
110
|
-
value :NODE_STATE_UNSPECIFIED, 0
|
111
|
-
value :BLOCKED, 1
|
112
|
-
value :RUNNABLE, 2
|
113
|
-
value :RUNNING, 3
|
114
|
-
value :COMPLETED, 4
|
115
|
-
value :FAILED, 5
|
116
|
-
end
|
117
|
-
add_message "google.cloud.dataproc.v1.CreateWorkflowTemplateRequest" do
|
118
|
-
optional :parent, :string, 1
|
119
|
-
optional :template, :message, 2, "google.cloud.dataproc.v1.WorkflowTemplate"
|
120
|
-
end
|
121
|
-
add_message "google.cloud.dataproc.v1.GetWorkflowTemplateRequest" do
|
122
|
-
optional :name, :string, 1
|
123
|
-
optional :version, :int32, 2
|
124
|
-
end
|
125
|
-
add_message "google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest" do
|
126
|
-
optional :name, :string, 1
|
127
|
-
optional :version, :int32, 2
|
128
|
-
optional :request_id, :string, 5
|
129
|
-
map :parameters, :string, :string, 6
|
130
|
-
end
|
131
|
-
add_message "google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest" do
|
132
|
-
optional :parent, :string, 1
|
133
|
-
optional :template, :message, 2, "google.cloud.dataproc.v1.WorkflowTemplate"
|
134
|
-
optional :request_id, :string, 3
|
135
|
-
end
|
136
|
-
add_message "google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest" do
|
137
|
-
optional :template, :message, 1, "google.cloud.dataproc.v1.WorkflowTemplate"
|
138
|
-
end
|
139
|
-
add_message "google.cloud.dataproc.v1.ListWorkflowTemplatesRequest" do
|
140
|
-
optional :parent, :string, 1
|
141
|
-
optional :page_size, :int32, 2
|
142
|
-
optional :page_token, :string, 3
|
143
|
-
end
|
144
|
-
add_message "google.cloud.dataproc.v1.ListWorkflowTemplatesResponse" do
|
145
|
-
repeated :templates, :message, 1, "google.cloud.dataproc.v1.WorkflowTemplate"
|
146
|
-
optional :next_page_token, :string, 2
|
147
|
-
end
|
148
|
-
add_message "google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest" do
|
149
|
-
optional :name, :string, 1
|
150
|
-
optional :version, :int32, 2
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
module Google
|
155
|
-
module Cloud
|
156
|
-
module Dataproc
|
157
|
-
module V1
|
158
|
-
WorkflowTemplate = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowTemplate").msgclass
|
159
|
-
WorkflowTemplatePlacement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowTemplatePlacement").msgclass
|
160
|
-
ManagedCluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ManagedCluster").msgclass
|
161
|
-
ClusterSelector = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterSelector").msgclass
|
162
|
-
OrderedJob = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.OrderedJob").msgclass
|
163
|
-
TemplateParameter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.TemplateParameter").msgclass
|
164
|
-
ParameterValidation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ParameterValidation").msgclass
|
165
|
-
RegexValidation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.RegexValidation").msgclass
|
166
|
-
ValueValidation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ValueValidation").msgclass
|
167
|
-
WorkflowMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowMetadata").msgclass
|
168
|
-
WorkflowMetadata::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowMetadata.State").enummodule
|
169
|
-
ClusterOperation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterOperation").msgclass
|
170
|
-
WorkflowGraph = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowGraph").msgclass
|
171
|
-
WorkflowNode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowNode").msgclass
|
172
|
-
WorkflowNode::NodeState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.WorkflowNode.NodeState").enummodule
|
173
|
-
CreateWorkflowTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.CreateWorkflowTemplateRequest").msgclass
|
174
|
-
GetWorkflowTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GetWorkflowTemplateRequest").msgclass
|
175
|
-
InstantiateWorkflowTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.InstantiateWorkflowTemplateRequest").msgclass
|
176
|
-
InstantiateInlineWorkflowTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.InstantiateInlineWorkflowTemplateRequest").msgclass
|
177
|
-
UpdateWorkflowTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.UpdateWorkflowTemplateRequest").msgclass
|
178
|
-
ListWorkflowTemplatesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListWorkflowTemplatesRequest").msgclass
|
179
|
-
ListWorkflowTemplatesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListWorkflowTemplatesResponse").msgclass
|
180
|
-
DeleteWorkflowTemplateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DeleteWorkflowTemplateRequest").msgclass
|
181
|
-
end
|
182
|
-
end
|
183
|
-
end
|
184
|
-
end
|
@@ -1,105 +0,0 @@
|
|
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
|
-
|
20
|
-
require 'grpc'
|
21
|
-
require 'google/cloud/dataproc/v1/workflow_templates_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Cloud
|
25
|
-
module Dataproc
|
26
|
-
module V1
|
27
|
-
module WorkflowTemplateService
|
28
|
-
# The API interface for managing Workflow Templates in the
|
29
|
-
# Dataproc API.
|
30
|
-
class Service
|
31
|
-
|
32
|
-
include GRPC::GenericService
|
33
|
-
|
34
|
-
self.marshal_class_method = :encode
|
35
|
-
self.unmarshal_class_method = :decode
|
36
|
-
self.service_name = 'google.cloud.dataproc.v1.WorkflowTemplateService'
|
37
|
-
|
38
|
-
# Creates new workflow template.
|
39
|
-
rpc :CreateWorkflowTemplate, CreateWorkflowTemplateRequest, WorkflowTemplate
|
40
|
-
# Retrieves the latest workflow template.
|
41
|
-
#
|
42
|
-
# Can retrieve previously instantiated template by specifying optional
|
43
|
-
# version parameter.
|
44
|
-
rpc :GetWorkflowTemplate, GetWorkflowTemplateRequest, WorkflowTemplate
|
45
|
-
# Instantiates a template and begins execution.
|
46
|
-
#
|
47
|
-
# The returned Operation can be used to track execution of
|
48
|
-
# workflow by polling
|
49
|
-
# [operations.get][google.longrunning.Operations.GetOperation].
|
50
|
-
# The Operation will complete when entire workflow is finished.
|
51
|
-
#
|
52
|
-
# The running workflow can be aborted via
|
53
|
-
# [operations.cancel][google.longrunning.Operations.CancelOperation].
|
54
|
-
# This will cause any inflight jobs to be cancelled and workflow-owned
|
55
|
-
# clusters to be deleted.
|
56
|
-
#
|
57
|
-
# The [Operation.metadata][google.longrunning.Operation.metadata] will be
|
58
|
-
# [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
|
59
|
-
# Also see [Using
|
60
|
-
# WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
|
61
|
-
#
|
62
|
-
# On successful completion,
|
63
|
-
# [Operation.response][google.longrunning.Operation.response] will be
|
64
|
-
# [Empty][google.protobuf.Empty].
|
65
|
-
rpc :InstantiateWorkflowTemplate, InstantiateWorkflowTemplateRequest, Google::Longrunning::Operation
|
66
|
-
# Instantiates a template and begins execution.
|
67
|
-
#
|
68
|
-
# This method is equivalent to executing the sequence
|
69
|
-
# [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate],
|
70
|
-
# [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate].
|
71
|
-
#
|
72
|
-
# The returned Operation can be used to track execution of
|
73
|
-
# workflow by polling
|
74
|
-
# [operations.get][google.longrunning.Operations.GetOperation].
|
75
|
-
# The Operation will complete when entire workflow is finished.
|
76
|
-
#
|
77
|
-
# The running workflow can be aborted via
|
78
|
-
# [operations.cancel][google.longrunning.Operations.CancelOperation].
|
79
|
-
# This will cause any inflight jobs to be cancelled and workflow-owned
|
80
|
-
# clusters to be deleted.
|
81
|
-
#
|
82
|
-
# The [Operation.metadata][google.longrunning.Operation.metadata] will be
|
83
|
-
# [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
|
84
|
-
# Also see [Using
|
85
|
-
# WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
|
86
|
-
#
|
87
|
-
# On successful completion,
|
88
|
-
# [Operation.response][google.longrunning.Operation.response] will be
|
89
|
-
# [Empty][google.protobuf.Empty].
|
90
|
-
rpc :InstantiateInlineWorkflowTemplate, InstantiateInlineWorkflowTemplateRequest, Google::Longrunning::Operation
|
91
|
-
# Updates (replaces) workflow template. The updated template
|
92
|
-
# must contain version that matches the current server version.
|
93
|
-
rpc :UpdateWorkflowTemplate, UpdateWorkflowTemplateRequest, WorkflowTemplate
|
94
|
-
# Lists workflows that match the specified filter in the request.
|
95
|
-
rpc :ListWorkflowTemplates, ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse
|
96
|
-
# Deletes a workflow template. It does not cancel in-progress workflows.
|
97
|
-
rpc :DeleteWorkflowTemplate, DeleteWorkflowTemplateRequest, Google::Protobuf::Empty
|
98
|
-
end
|
99
|
-
|
100
|
-
Stub = Service.rpc_stub_class
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
@@ -1,371 +0,0 @@
|
|
1
|
-
# Copyright 2020 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
require "google/cloud/dataproc/v1beta2/autoscaling_policy_service_client"
|
17
|
-
require "google/cloud/dataproc/v1beta2/cluster_controller_client"
|
18
|
-
require "google/cloud/dataproc/v1beta2/job_controller_client"
|
19
|
-
require "google/cloud/dataproc/v1beta2/workflow_template_service_client"
|
20
|
-
require "google/cloud/dataproc/v1beta2/clusters_pb"
|
21
|
-
require "google/cloud/dataproc/v1beta2/operations_pb"
|
22
|
-
require "google/cloud/dataproc/v1beta2/workflow_templates_pb"
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Cloud
|
26
|
-
module Dataproc
|
27
|
-
# rubocop:disable LineLength
|
28
|
-
|
29
|
-
##
|
30
|
-
# # Ruby Client for Google Cloud Dataproc API
|
31
|
-
#
|
32
|
-
# [Google Cloud Dataproc API][Product Documentation]:
|
33
|
-
# Manages Hadoop-based clusters and jobs on Google Cloud Platform.
|
34
|
-
# - [Product Documentation][]
|
35
|
-
#
|
36
|
-
# ## Quick Start
|
37
|
-
# In order to use this library, you first need to go through the following
|
38
|
-
# steps:
|
39
|
-
#
|
40
|
-
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
41
|
-
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
42
|
-
# 3. [Enable the Google Cloud Dataproc API.](https://console.cloud.google.com/apis/library/dataproc.googleapis.com)
|
43
|
-
# 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-dataproc/latest/file.AUTHENTICATION.html)
|
44
|
-
#
|
45
|
-
# ### Installation
|
46
|
-
# ```
|
47
|
-
# $ gem install google-cloud-dataproc
|
48
|
-
# ```
|
49
|
-
#
|
50
|
-
# ### Preview
|
51
|
-
# #### ClusterControllerClient
|
52
|
-
# ```rb
|
53
|
-
# require "google/cloud/dataproc"
|
54
|
-
#
|
55
|
-
# cluster_controller_client = Google::Cloud::Dataproc::ClusterController.new(version: :v1beta2)
|
56
|
-
# project_id_2 = project_id
|
57
|
-
# region = "global"
|
58
|
-
#
|
59
|
-
# # Iterate over all results.
|
60
|
-
# cluster_controller_client.list_clusters(project_id_2, region).each do |element|
|
61
|
-
# # Process element.
|
62
|
-
# end
|
63
|
-
#
|
64
|
-
# # Or iterate over results one page at a time.
|
65
|
-
# cluster_controller_client.list_clusters(project_id_2, region).each_page do |page|
|
66
|
-
# # Process each page at a time.
|
67
|
-
# page.each do |element|
|
68
|
-
# # Process element.
|
69
|
-
# end
|
70
|
-
# end
|
71
|
-
# ```
|
72
|
-
#
|
73
|
-
# ### Next Steps
|
74
|
-
# - Read the [Google Cloud Dataproc API Product documentation][Product Documentation]
|
75
|
-
# to learn more about the product and see How-to Guides.
|
76
|
-
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
77
|
-
# to see the full list of Cloud APIs that we cover.
|
78
|
-
#
|
79
|
-
# [Product Documentation]: https://cloud.google.com/dataproc
|
80
|
-
#
|
81
|
-
# ## Enabling Logging
|
82
|
-
#
|
83
|
-
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
84
|
-
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
85
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
86
|
-
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
87
|
-
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
88
|
-
#
|
89
|
-
# Configuring a Ruby stdlib logger:
|
90
|
-
#
|
91
|
-
# ```ruby
|
92
|
-
# require "logger"
|
93
|
-
#
|
94
|
-
# module MyLogger
|
95
|
-
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
96
|
-
# def logger
|
97
|
-
# LOGGER
|
98
|
-
# end
|
99
|
-
# end
|
100
|
-
#
|
101
|
-
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
102
|
-
# module GRPC
|
103
|
-
# extend MyLogger
|
104
|
-
# end
|
105
|
-
# ```
|
106
|
-
#
|
107
|
-
module V1beta2
|
108
|
-
# rubocop:enable LineLength
|
109
|
-
|
110
|
-
module AutoscalingPolicyService
|
111
|
-
##
|
112
|
-
# The API interface for managing autoscaling policies in the
|
113
|
-
# Cloud Dataproc API.
|
114
|
-
#
|
115
|
-
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
116
|
-
# Provides the means for authenticating requests made by the client. This parameter can
|
117
|
-
# be many types.
|
118
|
-
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
|
119
|
-
# authenticating requests made by this client.
|
120
|
-
# A `String` will be treated as the path to the keyfile to be used for the construction of
|
121
|
-
# credentials for this client.
|
122
|
-
# A `Hash` will be treated as the contents of a keyfile to be used for the construction of
|
123
|
-
# credentials for this client.
|
124
|
-
# A `GRPC::Core::Channel` will be used to make calls through.
|
125
|
-
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
126
|
-
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
127
|
-
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
128
|
-
# metadata for requests, generally, to give OAuth credentials.
|
129
|
-
# @param scopes [Array<String>]
|
130
|
-
# The OAuth scopes for this service. This parameter is ignored if
|
131
|
-
# an updater_proc is supplied.
|
132
|
-
# @param client_config [Hash]
|
133
|
-
# A Hash for call options for each method. See
|
134
|
-
# Google::Gax#construct_settings for the structure of
|
135
|
-
# this data. Falls back to the default config if not specified
|
136
|
-
# or the specified config is missing data points.
|
137
|
-
# @param timeout [Numeric]
|
138
|
-
# The default timeout, in seconds, for calls made through this client.
|
139
|
-
# @param metadata [Hash]
|
140
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
141
|
-
# @param service_address [String]
|
142
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
143
|
-
# @param service_port [Integer]
|
144
|
-
# Override for the service port, or `nil` to leave as the default.
|
145
|
-
# @param exception_transformer [Proc]
|
146
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
147
|
-
# custom error handling.
|
148
|
-
def self.new \
|
149
|
-
credentials: nil,
|
150
|
-
scopes: nil,
|
151
|
-
client_config: nil,
|
152
|
-
timeout: nil,
|
153
|
-
metadata: nil,
|
154
|
-
service_address: nil,
|
155
|
-
service_port: nil,
|
156
|
-
exception_transformer: nil,
|
157
|
-
lib_name: nil,
|
158
|
-
lib_version: nil
|
159
|
-
kwargs = {
|
160
|
-
credentials: credentials,
|
161
|
-
scopes: scopes,
|
162
|
-
client_config: client_config,
|
163
|
-
timeout: timeout,
|
164
|
-
metadata: metadata,
|
165
|
-
exception_transformer: exception_transformer,
|
166
|
-
lib_name: lib_name,
|
167
|
-
service_address: service_address,
|
168
|
-
service_port: service_port,
|
169
|
-
lib_version: lib_version
|
170
|
-
}.select { |_, v| v != nil }
|
171
|
-
Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyServiceClient.new(**kwargs)
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
module ClusterController
|
176
|
-
##
|
177
|
-
# The ClusterControllerService provides methods to manage clusters
|
178
|
-
# of Compute Engine instances.
|
179
|
-
#
|
180
|
-
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
181
|
-
# Provides the means for authenticating requests made by the client. This parameter can
|
182
|
-
# be many types.
|
183
|
-
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
|
184
|
-
# authenticating requests made by this client.
|
185
|
-
# A `String` will be treated as the path to the keyfile to be used for the construction of
|
186
|
-
# credentials for this client.
|
187
|
-
# A `Hash` will be treated as the contents of a keyfile to be used for the construction of
|
188
|
-
# credentials for this client.
|
189
|
-
# A `GRPC::Core::Channel` will be used to make calls through.
|
190
|
-
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
191
|
-
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
192
|
-
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
193
|
-
# metadata for requests, generally, to give OAuth credentials.
|
194
|
-
# @param scopes [Array<String>]
|
195
|
-
# The OAuth scopes for this service. This parameter is ignored if
|
196
|
-
# an updater_proc is supplied.
|
197
|
-
# @param client_config [Hash]
|
198
|
-
# A Hash for call options for each method. See
|
199
|
-
# Google::Gax#construct_settings for the structure of
|
200
|
-
# this data. Falls back to the default config if not specified
|
201
|
-
# or the specified config is missing data points.
|
202
|
-
# @param timeout [Numeric]
|
203
|
-
# The default timeout, in seconds, for calls made through this client.
|
204
|
-
# @param metadata [Hash]
|
205
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
206
|
-
# @param service_address [String]
|
207
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
208
|
-
# @param service_port [Integer]
|
209
|
-
# Override for the service port, or `nil` to leave as the default.
|
210
|
-
# @param exception_transformer [Proc]
|
211
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
212
|
-
# custom error handling.
|
213
|
-
def self.new \
|
214
|
-
credentials: nil,
|
215
|
-
scopes: nil,
|
216
|
-
client_config: nil,
|
217
|
-
timeout: nil,
|
218
|
-
metadata: nil,
|
219
|
-
service_address: nil,
|
220
|
-
service_port: nil,
|
221
|
-
exception_transformer: nil,
|
222
|
-
lib_name: nil,
|
223
|
-
lib_version: nil
|
224
|
-
kwargs = {
|
225
|
-
credentials: credentials,
|
226
|
-
scopes: scopes,
|
227
|
-
client_config: client_config,
|
228
|
-
timeout: timeout,
|
229
|
-
metadata: metadata,
|
230
|
-
exception_transformer: exception_transformer,
|
231
|
-
lib_name: lib_name,
|
232
|
-
service_address: service_address,
|
233
|
-
service_port: service_port,
|
234
|
-
lib_version: lib_version
|
235
|
-
}.select { |_, v| v != nil }
|
236
|
-
Google::Cloud::Dataproc::V1beta2::ClusterControllerClient.new(**kwargs)
|
237
|
-
end
|
238
|
-
end
|
239
|
-
|
240
|
-
module JobController
|
241
|
-
##
|
242
|
-
# The JobController provides methods to manage jobs.
|
243
|
-
#
|
244
|
-
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
245
|
-
# Provides the means for authenticating requests made by the client. This parameter can
|
246
|
-
# be many types.
|
247
|
-
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
|
248
|
-
# authenticating requests made by this client.
|
249
|
-
# A `String` will be treated as the path to the keyfile to be used for the construction of
|
250
|
-
# credentials for this client.
|
251
|
-
# A `Hash` will be treated as the contents of a keyfile to be used for the construction of
|
252
|
-
# credentials for this client.
|
253
|
-
# A `GRPC::Core::Channel` will be used to make calls through.
|
254
|
-
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
255
|
-
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
256
|
-
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
257
|
-
# metadata for requests, generally, to give OAuth credentials.
|
258
|
-
# @param scopes [Array<String>]
|
259
|
-
# The OAuth scopes for this service. This parameter is ignored if
|
260
|
-
# an updater_proc is supplied.
|
261
|
-
# @param client_config [Hash]
|
262
|
-
# A Hash for call options for each method. See
|
263
|
-
# Google::Gax#construct_settings for the structure of
|
264
|
-
# this data. Falls back to the default config if not specified
|
265
|
-
# or the specified config is missing data points.
|
266
|
-
# @param timeout [Numeric]
|
267
|
-
# The default timeout, in seconds, for calls made through this client.
|
268
|
-
# @param metadata [Hash]
|
269
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
270
|
-
# @param service_address [String]
|
271
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
272
|
-
# @param service_port [Integer]
|
273
|
-
# Override for the service port, or `nil` to leave as the default.
|
274
|
-
# @param exception_transformer [Proc]
|
275
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
276
|
-
# custom error handling.
|
277
|
-
def self.new \
|
278
|
-
credentials: nil,
|
279
|
-
scopes: nil,
|
280
|
-
client_config: nil,
|
281
|
-
timeout: nil,
|
282
|
-
metadata: nil,
|
283
|
-
service_address: nil,
|
284
|
-
service_port: nil,
|
285
|
-
exception_transformer: nil,
|
286
|
-
lib_name: nil,
|
287
|
-
lib_version: nil
|
288
|
-
kwargs = {
|
289
|
-
credentials: credentials,
|
290
|
-
scopes: scopes,
|
291
|
-
client_config: client_config,
|
292
|
-
timeout: timeout,
|
293
|
-
metadata: metadata,
|
294
|
-
exception_transformer: exception_transformer,
|
295
|
-
lib_name: lib_name,
|
296
|
-
service_address: service_address,
|
297
|
-
service_port: service_port,
|
298
|
-
lib_version: lib_version
|
299
|
-
}.select { |_, v| v != nil }
|
300
|
-
Google::Cloud::Dataproc::V1beta2::JobControllerClient.new(**kwargs)
|
301
|
-
end
|
302
|
-
end
|
303
|
-
|
304
|
-
module WorkflowTemplateService
|
305
|
-
##
|
306
|
-
# The API interface for managing Workflow Templates in the
|
307
|
-
# Dataproc API.
|
308
|
-
#
|
309
|
-
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
310
|
-
# Provides the means for authenticating requests made by the client. This parameter can
|
311
|
-
# be many types.
|
312
|
-
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
|
313
|
-
# authenticating requests made by this client.
|
314
|
-
# A `String` will be treated as the path to the keyfile to be used for the construction of
|
315
|
-
# credentials for this client.
|
316
|
-
# A `Hash` will be treated as the contents of a keyfile to be used for the construction of
|
317
|
-
# credentials for this client.
|
318
|
-
# A `GRPC::Core::Channel` will be used to make calls through.
|
319
|
-
# A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
|
320
|
-
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
321
|
-
# A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
|
322
|
-
# metadata for requests, generally, to give OAuth credentials.
|
323
|
-
# @param scopes [Array<String>]
|
324
|
-
# The OAuth scopes for this service. This parameter is ignored if
|
325
|
-
# an updater_proc is supplied.
|
326
|
-
# @param client_config [Hash]
|
327
|
-
# A Hash for call options for each method. See
|
328
|
-
# Google::Gax#construct_settings for the structure of
|
329
|
-
# this data. Falls back to the default config if not specified
|
330
|
-
# or the specified config is missing data points.
|
331
|
-
# @param timeout [Numeric]
|
332
|
-
# The default timeout, in seconds, for calls made through this client.
|
333
|
-
# @param metadata [Hash]
|
334
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
335
|
-
# @param service_address [String]
|
336
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
337
|
-
# @param service_port [Integer]
|
338
|
-
# Override for the service port, or `nil` to leave as the default.
|
339
|
-
# @param exception_transformer [Proc]
|
340
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
341
|
-
# custom error handling.
|
342
|
-
def self.new \
|
343
|
-
credentials: nil,
|
344
|
-
scopes: nil,
|
345
|
-
client_config: nil,
|
346
|
-
timeout: nil,
|
347
|
-
metadata: nil,
|
348
|
-
service_address: nil,
|
349
|
-
service_port: nil,
|
350
|
-
exception_transformer: nil,
|
351
|
-
lib_name: nil,
|
352
|
-
lib_version: nil
|
353
|
-
kwargs = {
|
354
|
-
credentials: credentials,
|
355
|
-
scopes: scopes,
|
356
|
-
client_config: client_config,
|
357
|
-
timeout: timeout,
|
358
|
-
metadata: metadata,
|
359
|
-
exception_transformer: exception_transformer,
|
360
|
-
lib_name: lib_name,
|
361
|
-
service_address: service_address,
|
362
|
-
service_port: service_port,
|
363
|
-
lib_version: lib_version
|
364
|
-
}.select { |_, v| v != nil }
|
365
|
-
Google::Cloud::Dataproc::V1beta2::WorkflowTemplateServiceClient.new(**kwargs)
|
366
|
-
end
|
367
|
-
end
|
368
|
-
end
|
369
|
-
end
|
370
|
-
end
|
371
|
-
end
|