google-cloud-dataproc-v1beta2 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_services_pb.rb +5 -5
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/client.rb +5 -5
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +8 -8
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb +2 -2
- data/lib/google/cloud/dataproc/v1beta2/clusters_pb.rb +8 -0
- data/lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb +6 -6
- data/lib/google/cloud/dataproc/v1beta2/job_controller/client.rb +9 -9
- data/lib/google/cloud/dataproc/v1beta2/job_controller/operations.rb +2 -2
- data/lib/google/cloud/dataproc/v1beta2/jobs_services_pb.rb +7 -7
- data/lib/google/cloud/dataproc/v1beta2/shared_pb.rb +1 -2
- data/lib/google/cloud/dataproc/v1beta2/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +11 -10
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +2 -2
- data/lib/google/cloud/dataproc/v1beta2/workflow_templates_pb.rb +5 -0
- data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +9 -8
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +13 -7
- data/proto_docs/google/cloud/dataproc/v1beta2/clusters.rb +43 -2
- data/proto_docs/google/cloud/dataproc/v1beta2/jobs.rb +17 -15
- data/proto_docs/google/cloud/dataproc/v1beta2/shared.rb +3 -6
- data/proto_docs/google/cloud/dataproc/v1beta2/workflow_templates.rb +42 -8
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc5697ee3b56bf9c64b10b5e597ed2332edc1b1031fd564cfcaf0bc2cdb4a84a
|
4
|
+
data.tar.gz: a0aa4e182bb47dc1c13e63d74c976fe8e50bf2d8e6541470ee263f985ddc8c60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49149dfed31af6440e594baff734e7ca80c95d705b406809510405e04ddbd01d84db1abacb1eb9bd8edaa482a2d8d36c1025f335c0579705d52689e311128b56
|
7
|
+
data.tar.gz: feb833b7ef891722581cc0118e491702e3eacb2ce449b6e2fcf4c98da2ae0ad9b0f438d14c8a65fe4a7b64d05ab79c43a220c5c0f497146313eee3347af04718
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/dataproc.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.create_autoscaling_policy request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dataproc-v1beta2/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/dataproc)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -35,19 +35,19 @@ module Google
|
|
35
35
|
self.service_name = 'google.cloud.dataproc.v1beta2.AutoscalingPolicyService'
|
36
36
|
|
37
37
|
# Creates new autoscaling policy.
|
38
|
-
rpc :CreateAutoscalingPolicy, CreateAutoscalingPolicyRequest, AutoscalingPolicy
|
38
|
+
rpc :CreateAutoscalingPolicy, ::Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest, ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy
|
39
39
|
# Updates (replaces) autoscaling policy.
|
40
40
|
#
|
41
41
|
# Disabled check for update_mask, because all updates will be full
|
42
42
|
# replacements.
|
43
|
-
rpc :UpdateAutoscalingPolicy, UpdateAutoscalingPolicyRequest, AutoscalingPolicy
|
43
|
+
rpc :UpdateAutoscalingPolicy, ::Google::Cloud::Dataproc::V1beta2::UpdateAutoscalingPolicyRequest, ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy
|
44
44
|
# Retrieves autoscaling policy.
|
45
|
-
rpc :GetAutoscalingPolicy, GetAutoscalingPolicyRequest, AutoscalingPolicy
|
45
|
+
rpc :GetAutoscalingPolicy, ::Google::Cloud::Dataproc::V1beta2::GetAutoscalingPolicyRequest, ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy
|
46
46
|
# Lists autoscaling policies in the project.
|
47
|
-
rpc :ListAutoscalingPolicies, ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse
|
47
|
+
rpc :ListAutoscalingPolicies, ::Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesRequest, ::Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesResponse
|
48
48
|
# Deletes an autoscaling policy. It is an error to delete an autoscaling
|
49
49
|
# policy that is in use by one or more clusters.
|
50
|
-
rpc :DeleteAutoscalingPolicy, DeleteAutoscalingPolicyRequest, Google::Protobuf::Empty
|
50
|
+
rpc :DeleteAutoscalingPolicy, ::Google::Cloud::Dataproc::V1beta2::DeleteAutoscalingPolicyRequest, ::Google::Protobuf::Empty
|
51
51
|
end
|
52
52
|
|
53
53
|
Stub = Service.rpc_stub_class
|
@@ -73,7 +73,7 @@ module Google
|
|
73
73
|
initial_delay: 0.1,
|
74
74
|
max_delay: 60.0,
|
75
75
|
multiplier: 1.3,
|
76
|
-
retry_codes: [
|
76
|
+
retry_codes: [4, 14]
|
77
77
|
}
|
78
78
|
|
79
79
|
default_config.rpcs.get_autoscaling_policy.timeout = 600.0
|
@@ -81,7 +81,7 @@ module Google
|
|
81
81
|
initial_delay: 0.1,
|
82
82
|
max_delay: 60.0,
|
83
83
|
multiplier: 1.3,
|
84
|
-
retry_codes: [
|
84
|
+
retry_codes: [4, 14]
|
85
85
|
}
|
86
86
|
|
87
87
|
default_config.rpcs.list_autoscaling_policies.timeout = 600.0
|
@@ -89,7 +89,7 @@ module Google
|
|
89
89
|
initial_delay: 0.1,
|
90
90
|
max_delay: 60.0,
|
91
91
|
multiplier: 1.3,
|
92
|
-
retry_codes: [
|
92
|
+
retry_codes: [4, 14]
|
93
93
|
}
|
94
94
|
|
95
95
|
default_config.rpcs.delete_autoscaling_policy.timeout = 600.0
|
@@ -637,7 +637,7 @@ module Google
|
|
637
637
|
|
638
638
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
639
639
|
config_attr :credentials, nil do |value|
|
640
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
640
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
641
641
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
642
642
|
allowed.any? { |klass| klass === value }
|
643
643
|
end
|
@@ -665,7 +665,7 @@ module Google
|
|
665
665
|
def rpcs
|
666
666
|
@rpcs ||= begin
|
667
667
|
parent_rpcs = nil
|
668
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
668
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
669
669
|
Rpcs.new parent_rpcs
|
670
670
|
end
|
671
671
|
end
|
@@ -69,7 +69,7 @@ module Google
|
|
69
69
|
initial_delay: 0.1,
|
70
70
|
max_delay: 60.0,
|
71
71
|
multiplier: 1.3,
|
72
|
-
retry_codes: [
|
72
|
+
retry_codes: [14]
|
73
73
|
}
|
74
74
|
|
75
75
|
default_config.rpcs.update_cluster.timeout = 300.0
|
@@ -77,7 +77,7 @@ module Google
|
|
77
77
|
initial_delay: 0.1,
|
78
78
|
max_delay: 60.0,
|
79
79
|
multiplier: 1.3,
|
80
|
-
retry_codes: [
|
80
|
+
retry_codes: [14]
|
81
81
|
}
|
82
82
|
|
83
83
|
default_config.rpcs.delete_cluster.timeout = 300.0
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
initial_delay: 0.1,
|
86
86
|
max_delay: 60.0,
|
87
87
|
multiplier: 1.3,
|
88
|
-
retry_codes: [
|
88
|
+
retry_codes: [14]
|
89
89
|
}
|
90
90
|
|
91
91
|
default_config.rpcs.get_cluster.timeout = 300.0
|
@@ -93,7 +93,7 @@ module Google
|
|
93
93
|
initial_delay: 0.1,
|
94
94
|
max_delay: 60.0,
|
95
95
|
multiplier: 1.3,
|
96
|
-
retry_codes: [
|
96
|
+
retry_codes: [13, 4, 14]
|
97
97
|
}
|
98
98
|
|
99
99
|
default_config.rpcs.list_clusters.timeout = 300.0
|
@@ -101,7 +101,7 @@ module Google
|
|
101
101
|
initial_delay: 0.1,
|
102
102
|
max_delay: 60.0,
|
103
103
|
multiplier: 1.3,
|
104
|
-
retry_codes: [
|
104
|
+
retry_codes: [13, 4, 14]
|
105
105
|
}
|
106
106
|
|
107
107
|
default_config.rpcs.diagnose_cluster.timeout = 300.0
|
@@ -109,7 +109,7 @@ module Google
|
|
109
109
|
initial_delay: 0.1,
|
110
110
|
max_delay: 60.0,
|
111
111
|
multiplier: 1.3,
|
112
|
-
retry_codes: [
|
112
|
+
retry_codes: [14]
|
113
113
|
}
|
114
114
|
|
115
115
|
default_config
|
@@ -875,7 +875,7 @@ module Google
|
|
875
875
|
|
876
876
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
877
877
|
config_attr :credentials, nil do |value|
|
878
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
878
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
879
879
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
880
880
|
allowed.any? { |klass| klass === value }
|
881
881
|
end
|
@@ -903,7 +903,7 @@ module Google
|
|
903
903
|
def rpcs
|
904
904
|
@rpcs ||= begin
|
905
905
|
parent_rpcs = nil
|
906
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
906
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
907
907
|
Rpcs.new parent_rpcs
|
908
908
|
end
|
909
909
|
end
|
@@ -475,7 +475,7 @@ module Google
|
|
475
475
|
|
476
476
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
477
477
|
config_attr :credentials, nil do |value|
|
478
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
479
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
480
480
|
allowed.any? { |klass| klass === value }
|
481
481
|
end
|
@@ -503,7 +503,7 @@ module Google
|
|
503
503
|
def rpcs
|
504
504
|
@rpcs ||= begin
|
505
505
|
parent_rpcs = nil
|
506
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
506
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
507
507
|
Rpcs.new parent_rpcs
|
508
508
|
end
|
509
509
|
end
|
@@ -26,6 +26,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
26
|
end
|
27
27
|
add_message "google.cloud.dataproc.v1beta2.ClusterConfig" do
|
28
28
|
optional :config_bucket, :string, 1
|
29
|
+
optional :temp_bucket, :string, 2
|
29
30
|
optional :gce_cluster_config, :message, 8, "google.cloud.dataproc.v1beta2.GceClusterConfig"
|
30
31
|
optional :master_config, :message, 9, "google.cloud.dataproc.v1beta2.InstanceGroupConfig"
|
31
32
|
optional :worker_config, :message, 10, "google.cloud.dataproc.v1beta2.InstanceGroupConfig"
|
@@ -74,10 +75,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
74
75
|
optional :machine_type_uri, :string, 4
|
75
76
|
optional :disk_config, :message, 5, "google.cloud.dataproc.v1beta2.DiskConfig"
|
76
77
|
optional :is_preemptible, :bool, 6
|
78
|
+
optional :preemptibility, :enum, 10, "google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility"
|
77
79
|
optional :managed_group_config, :message, 7, "google.cloud.dataproc.v1beta2.ManagedGroupConfig"
|
78
80
|
repeated :accelerators, :message, 8, "google.cloud.dataproc.v1beta2.AcceleratorConfig"
|
79
81
|
optional :min_cpu_platform, :string, 9
|
80
82
|
end
|
83
|
+
add_enum "google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility" do
|
84
|
+
value :PREEMPTIBILITY_UNSPECIFIED, 0
|
85
|
+
value :NON_PREEMPTIBLE, 1
|
86
|
+
value :PREEMPTIBLE, 2
|
87
|
+
end
|
81
88
|
add_message "google.cloud.dataproc.v1beta2.ManagedGroupConfig" do
|
82
89
|
optional :instance_template_name, :string, 1
|
83
90
|
optional :instance_group_manager_name, :string, 2
|
@@ -227,6 +234,7 @@ module Google
|
|
227
234
|
EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.EncryptionConfig").msgclass
|
228
235
|
GceClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.GceClusterConfig").msgclass
|
229
236
|
InstanceGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.InstanceGroupConfig").msgclass
|
237
|
+
InstanceGroupConfig::Preemptibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.InstanceGroupConfig.Preemptibility").enummodule
|
230
238
|
ManagedGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.ManagedGroupConfig").msgclass
|
231
239
|
AcceleratorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.AcceleratorConfig").msgclass
|
232
240
|
DiskConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1beta2.DiskConfig").msgclass
|
@@ -37,19 +37,19 @@ module Google
|
|
37
37
|
# Creates a cluster in a project. The returned
|
38
38
|
# [Operation.metadata][google.longrunning.Operation.metadata] will be
|
39
39
|
# [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
|
40
|
-
rpc :CreateCluster, CreateClusterRequest, Google::Longrunning::Operation
|
40
|
+
rpc :CreateCluster, ::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest, ::Google::Longrunning::Operation
|
41
41
|
# Updates a cluster in a project. The returned
|
42
42
|
# [Operation.metadata][google.longrunning.Operation.metadata] will be
|
43
43
|
# [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
|
44
|
-
rpc :UpdateCluster, UpdateClusterRequest, Google::Longrunning::Operation
|
44
|
+
rpc :UpdateCluster, ::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest, ::Google::Longrunning::Operation
|
45
45
|
# Deletes a cluster in a project. The returned
|
46
46
|
# [Operation.metadata][google.longrunning.Operation.metadata] will be
|
47
47
|
# [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
|
48
|
-
rpc :DeleteCluster, DeleteClusterRequest, Google::Longrunning::Operation
|
48
|
+
rpc :DeleteCluster, ::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest, ::Google::Longrunning::Operation
|
49
49
|
# Gets the resource representation for a cluster in a project.
|
50
|
-
rpc :GetCluster, GetClusterRequest, Cluster
|
50
|
+
rpc :GetCluster, ::Google::Cloud::Dataproc::V1beta2::GetClusterRequest, ::Google::Cloud::Dataproc::V1beta2::Cluster
|
51
51
|
# Lists all regions/{region}/clusters in a project alphabetically.
|
52
|
-
rpc :ListClusters, ListClustersRequest, ListClustersResponse
|
52
|
+
rpc :ListClusters, ::Google::Cloud::Dataproc::V1beta2::ListClustersRequest, ::Google::Cloud::Dataproc::V1beta2::ListClustersResponse
|
53
53
|
# Gets cluster diagnostic information. The returned
|
54
54
|
# [Operation.metadata][google.longrunning.Operation.metadata] will be
|
55
55
|
# [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
|
@@ -57,7 +57,7 @@ module Google
|
|
57
57
|
# [Operation.response][google.longrunning.Operation.response]
|
58
58
|
# contains
|
59
59
|
# [Empty][google.protobuf.Empty].
|
60
|
-
rpc :DiagnoseCluster, DiagnoseClusterRequest, Google::Longrunning::Operation
|
60
|
+
rpc :DiagnoseCluster, ::Google::Cloud::Dataproc::V1beta2::DiagnoseClusterRequest, ::Google::Longrunning::Operation
|
61
61
|
end
|
62
62
|
|
63
63
|
Stub = Service.rpc_stub_class
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
initial_delay: 0.1,
|
69
69
|
max_delay: 60.0,
|
70
70
|
multiplier: 1.3,
|
71
|
-
retry_codes: [
|
71
|
+
retry_codes: [14]
|
72
72
|
}
|
73
73
|
|
74
74
|
default_config.rpcs.submit_job_as_operation.timeout = 900.0
|
@@ -76,7 +76,7 @@ module Google
|
|
76
76
|
initial_delay: 0.1,
|
77
77
|
max_delay: 60.0,
|
78
78
|
multiplier: 1.3,
|
79
|
-
retry_codes: [
|
79
|
+
retry_codes: [14]
|
80
80
|
}
|
81
81
|
|
82
82
|
default_config.rpcs.get_job.timeout = 900.0
|
@@ -84,7 +84,7 @@ module Google
|
|
84
84
|
initial_delay: 0.1,
|
85
85
|
max_delay: 60.0,
|
86
86
|
multiplier: 1.3,
|
87
|
-
retry_codes: [
|
87
|
+
retry_codes: [4, 13, 14]
|
88
88
|
}
|
89
89
|
|
90
90
|
default_config.rpcs.list_jobs.timeout = 900.0
|
@@ -92,7 +92,7 @@ module Google
|
|
92
92
|
initial_delay: 0.1,
|
93
93
|
max_delay: 60.0,
|
94
94
|
multiplier: 1.3,
|
95
|
-
retry_codes: [
|
95
|
+
retry_codes: [4, 13, 14]
|
96
96
|
}
|
97
97
|
|
98
98
|
default_config.rpcs.update_job.timeout = 900.0
|
@@ -100,7 +100,7 @@ module Google
|
|
100
100
|
initial_delay: 0.1,
|
101
101
|
max_delay: 60.0,
|
102
102
|
multiplier: 1.3,
|
103
|
-
retry_codes: [
|
103
|
+
retry_codes: [14]
|
104
104
|
}
|
105
105
|
|
106
106
|
default_config.rpcs.cancel_job.timeout = 900.0
|
@@ -108,7 +108,7 @@ module Google
|
|
108
108
|
initial_delay: 0.1,
|
109
109
|
max_delay: 60.0,
|
110
110
|
multiplier: 1.3,
|
111
|
-
retry_codes: [
|
111
|
+
retry_codes: [4, 13, 14]
|
112
112
|
}
|
113
113
|
|
114
114
|
default_config.rpcs.delete_job.timeout = 900.0
|
@@ -116,7 +116,7 @@ module Google
|
|
116
116
|
initial_delay: 0.1,
|
117
117
|
max_delay: 60.0,
|
118
118
|
multiplier: 1.3,
|
119
|
-
retry_codes: [
|
119
|
+
retry_codes: [14]
|
120
120
|
}
|
121
121
|
|
122
122
|
default_config
|
@@ -869,7 +869,7 @@ module Google
|
|
869
869
|
|
870
870
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
871
871
|
config_attr :credentials, nil do |value|
|
872
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
872
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
873
873
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
874
874
|
allowed.any? { |klass| klass === value }
|
875
875
|
end
|
@@ -897,7 +897,7 @@ module Google
|
|
897
897
|
def rpcs
|
898
898
|
@rpcs ||= begin
|
899
899
|
parent_rpcs = nil
|
900
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
900
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
901
901
|
Rpcs.new parent_rpcs
|
902
902
|
end
|
903
903
|
end
|
@@ -475,7 +475,7 @@ module Google
|
|
475
475
|
|
476
476
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
477
477
|
config_attr :credentials, nil do |value|
|
478
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
479
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
480
480
|
allowed.any? { |klass| klass === value }
|
481
481
|
end
|
@@ -503,7 +503,7 @@ module Google
|
|
503
503
|
def rpcs
|
504
504
|
@rpcs ||= begin
|
505
505
|
parent_rpcs = nil
|
506
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
506
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
507
507
|
Rpcs.new parent_rpcs
|
508
508
|
end
|
509
509
|
end
|
@@ -34,24 +34,24 @@ module Google
|
|
34
34
|
self.service_name = 'google.cloud.dataproc.v1beta2.JobController'
|
35
35
|
|
36
36
|
# Submits a job to a cluster.
|
37
|
-
rpc :SubmitJob, SubmitJobRequest, Job
|
37
|
+
rpc :SubmitJob, ::Google::Cloud::Dataproc::V1beta2::SubmitJobRequest, ::Google::Cloud::Dataproc::V1beta2::Job
|
38
38
|
# Submits job to a cluster.
|
39
|
-
rpc :SubmitJobAsOperation, SubmitJobRequest, Google::Longrunning::Operation
|
39
|
+
rpc :SubmitJobAsOperation, ::Google::Cloud::Dataproc::V1beta2::SubmitJobRequest, ::Google::Longrunning::Operation
|
40
40
|
# Gets the resource representation for a job in a project.
|
41
|
-
rpc :GetJob, GetJobRequest, Job
|
41
|
+
rpc :GetJob, ::Google::Cloud::Dataproc::V1beta2::GetJobRequest, ::Google::Cloud::Dataproc::V1beta2::Job
|
42
42
|
# Lists regions/{region}/jobs in a project.
|
43
|
-
rpc :ListJobs, ListJobsRequest, ListJobsResponse
|
43
|
+
rpc :ListJobs, ::Google::Cloud::Dataproc::V1beta2::ListJobsRequest, ::Google::Cloud::Dataproc::V1beta2::ListJobsResponse
|
44
44
|
# Updates a job in a project.
|
45
|
-
rpc :UpdateJob, UpdateJobRequest, Job
|
45
|
+
rpc :UpdateJob, ::Google::Cloud::Dataproc::V1beta2::UpdateJobRequest, ::Google::Cloud::Dataproc::V1beta2::Job
|
46
46
|
# Starts a job cancellation request. To access the job resource
|
47
47
|
# after cancellation, call
|
48
48
|
# [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/list)
|
49
49
|
# or
|
50
50
|
# [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1beta2/projects.regions.jobs/get).
|
51
|
-
rpc :CancelJob, CancelJobRequest, Job
|
51
|
+
rpc :CancelJob, ::Google::Cloud::Dataproc::V1beta2::CancelJobRequest, ::Google::Cloud::Dataproc::V1beta2::Job
|
52
52
|
# Deletes the job from the project. If the job is active, the delete fails,
|
53
53
|
# and the response returns `FAILED_PRECONDITION`.
|
54
|
-
rpc :DeleteJob, DeleteJobRequest, Google::Protobuf::Empty
|
54
|
+
rpc :DeleteJob, ::Google::Cloud::Dataproc::V1beta2::DeleteJobRequest, ::Google::Protobuf::Empty
|
55
55
|
end
|
56
56
|
|
57
57
|
Stub = Service.rpc_stub_class
|
@@ -9,9 +9,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
9
9
|
add_enum "google.cloud.dataproc.v1beta2.Component" do
|
10
10
|
value :COMPONENT_UNSPECIFIED, 0
|
11
11
|
value :ANACONDA, 5
|
12
|
-
value :DOCKER, 13
|
13
12
|
value :DRUID, 9
|
14
|
-
value :
|
13
|
+
value :HBASE, 11
|
15
14
|
value :HIVE_WEBHCAT, 3
|
16
15
|
value :JUPYTER, 1
|
17
16
|
value :KERBEROS, 7
|
@@ -71,7 +71,7 @@ module Google
|
|
71
71
|
initial_delay: 0.1,
|
72
72
|
max_delay: 60.0,
|
73
73
|
multiplier: 1.3,
|
74
|
-
retry_codes: [
|
74
|
+
retry_codes: [14]
|
75
75
|
}
|
76
76
|
|
77
77
|
default_config.rpcs.get_workflow_template.timeout = 600.0
|
@@ -79,7 +79,7 @@ module Google
|
|
79
79
|
initial_delay: 0.1,
|
80
80
|
max_delay: 60.0,
|
81
81
|
multiplier: 1.3,
|
82
|
-
retry_codes: [
|
82
|
+
retry_codes: [4, 13, 14]
|
83
83
|
}
|
84
84
|
|
85
85
|
default_config.rpcs.instantiate_workflow_template.timeout = 600.0
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
initial_delay: 0.1,
|
88
88
|
max_delay: 60.0,
|
89
89
|
multiplier: 1.3,
|
90
|
-
retry_codes: [
|
90
|
+
retry_codes: [14]
|
91
91
|
}
|
92
92
|
|
93
93
|
default_config.rpcs.instantiate_inline_workflow_template.timeout = 600.0
|
@@ -95,7 +95,7 @@ module Google
|
|
95
95
|
initial_delay: 0.1,
|
96
96
|
max_delay: 60.0,
|
97
97
|
multiplier: 1.3,
|
98
|
-
retry_codes: [
|
98
|
+
retry_codes: [14]
|
99
99
|
}
|
100
100
|
|
101
101
|
default_config.rpcs.update_workflow_template.timeout = 600.0
|
@@ -103,7 +103,7 @@ module Google
|
|
103
103
|
initial_delay: 0.1,
|
104
104
|
max_delay: 60.0,
|
105
105
|
multiplier: 1.3,
|
106
|
-
retry_codes: [
|
106
|
+
retry_codes: [14]
|
107
107
|
}
|
108
108
|
|
109
109
|
default_config.rpcs.list_workflow_templates.timeout = 600.0
|
@@ -111,7 +111,7 @@ module Google
|
|
111
111
|
initial_delay: 0.1,
|
112
112
|
max_delay: 60.0,
|
113
113
|
multiplier: 1.3,
|
114
|
-
retry_codes: [
|
114
|
+
retry_codes: [4, 13, 14]
|
115
115
|
}
|
116
116
|
|
117
117
|
default_config.rpcs.delete_workflow_template.timeout = 600.0
|
@@ -119,7 +119,7 @@ module Google
|
|
119
119
|
initial_delay: 0.1,
|
120
120
|
max_delay: 60.0,
|
121
121
|
multiplier: 1.3,
|
122
|
-
retry_codes: [
|
122
|
+
retry_codes: [14]
|
123
123
|
}
|
124
124
|
|
125
125
|
default_config
|
@@ -494,7 +494,8 @@ module Google
|
|
494
494
|
# Instantiates a template and begins execution.
|
495
495
|
#
|
496
496
|
# This method is equivalent to executing the sequence
|
497
|
-
# {::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client#create_workflow_template CreateWorkflowTemplate},
|
497
|
+
# {::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client#create_workflow_template CreateWorkflowTemplate},
|
498
|
+
# {::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client#instantiate_workflow_template InstantiateWorkflowTemplate},
|
498
499
|
# {::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client#delete_workflow_template DeleteWorkflowTemplate}.
|
499
500
|
#
|
500
501
|
# The returned Operation can be used to track execution of
|
@@ -917,7 +918,7 @@ module Google
|
|
917
918
|
|
918
919
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
919
920
|
config_attr :credentials, nil do |value|
|
920
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
921
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
921
922
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
922
923
|
allowed.any? { |klass| klass === value }
|
923
924
|
end
|
@@ -945,7 +946,7 @@ module Google
|
|
945
946
|
def rpcs
|
946
947
|
@rpcs ||= begin
|
947
948
|
parent_rpcs = nil
|
948
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
949
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
949
950
|
Rpcs.new parent_rpcs
|
950
951
|
end
|
951
952
|
end
|
@@ -475,7 +475,7 @@ module Google
|
|
475
475
|
|
476
476
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
477
477
|
config_attr :credentials, nil do |value|
|
478
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
479
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
480
480
|
allowed.any? { |klass| klass === value }
|
481
481
|
end
|
@@ -503,7 +503,7 @@ module Google
|
|
503
503
|
def rpcs
|
504
504
|
@rpcs ||= begin
|
505
505
|
parent_rpcs = nil
|
506
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
506
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
507
507
|
Rpcs.new parent_rpcs
|
508
508
|
end
|
509
509
|
end
|
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
|
|
10
10
|
require 'google/cloud/dataproc/v1beta2/clusters_pb'
|
11
11
|
require 'google/cloud/dataproc/v1beta2/jobs_pb'
|
12
12
|
require 'google/longrunning/operations_pb'
|
13
|
+
require 'google/protobuf/duration_pb'
|
13
14
|
require 'google/protobuf/empty_pb'
|
14
15
|
require 'google/protobuf/timestamp_pb'
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -24,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
25
|
optional :placement, :message, 7, "google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement"
|
25
26
|
repeated :jobs, :message, 8, "google.cloud.dataproc.v1beta2.OrderedJob"
|
26
27
|
repeated :parameters, :message, 9, "google.cloud.dataproc.v1beta2.TemplateParameter"
|
28
|
+
optional :dag_timeout, :message, 10, "google.protobuf.Duration"
|
27
29
|
end
|
28
30
|
add_message "google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement" do
|
29
31
|
oneof :placement do
|
@@ -86,6 +88,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
86
88
|
optional :start_time, :message, 9, "google.protobuf.Timestamp"
|
87
89
|
optional :end_time, :message, 10, "google.protobuf.Timestamp"
|
88
90
|
optional :cluster_uuid, :string, 11
|
91
|
+
optional :dag_timeout, :message, 12, "google.protobuf.Duration"
|
92
|
+
optional :dag_start_time, :message, 13, "google.protobuf.Timestamp"
|
93
|
+
optional :dag_end_time, :message, 14, "google.protobuf.Timestamp"
|
89
94
|
end
|
90
95
|
add_enum "google.cloud.dataproc.v1beta2.WorkflowMetadata.State" do
|
91
96
|
value :UNKNOWN, 0
|
@@ -35,12 +35,12 @@ module Google
|
|
35
35
|
self.service_name = 'google.cloud.dataproc.v1beta2.WorkflowTemplateService'
|
36
36
|
|
37
37
|
# Creates new workflow template.
|
38
|
-
rpc :CreateWorkflowTemplate, CreateWorkflowTemplateRequest, WorkflowTemplate
|
38
|
+
rpc :CreateWorkflowTemplate, ::Google::Cloud::Dataproc::V1beta2::CreateWorkflowTemplateRequest, ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplate
|
39
39
|
# Retrieves the latest workflow template.
|
40
40
|
#
|
41
41
|
# Can retrieve previously instantiated template by specifying optional
|
42
42
|
# version parameter.
|
43
|
-
rpc :GetWorkflowTemplate, GetWorkflowTemplateRequest, WorkflowTemplate
|
43
|
+
rpc :GetWorkflowTemplate, ::Google::Cloud::Dataproc::V1beta2::GetWorkflowTemplateRequest, ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplate
|
44
44
|
# Instantiates a template and begins execution.
|
45
45
|
#
|
46
46
|
# The returned Operation can be used to track execution of
|
@@ -61,11 +61,12 @@ module Google
|
|
61
61
|
# On successful completion,
|
62
62
|
# [Operation.response][google.longrunning.Operation.response] will be
|
63
63
|
# [Empty][google.protobuf.Empty].
|
64
|
-
rpc :InstantiateWorkflowTemplate, InstantiateWorkflowTemplateRequest, Google::Longrunning::Operation
|
64
|
+
rpc :InstantiateWorkflowTemplate, ::Google::Cloud::Dataproc::V1beta2::InstantiateWorkflowTemplateRequest, ::Google::Longrunning::Operation
|
65
65
|
# Instantiates a template and begins execution.
|
66
66
|
#
|
67
67
|
# This method is equivalent to executing the sequence
|
68
|
-
# [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
|
68
|
+
# [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate],
|
69
|
+
# [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate],
|
69
70
|
# [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate].
|
70
71
|
#
|
71
72
|
# The returned Operation can be used to track execution of
|
@@ -86,14 +87,14 @@ module Google
|
|
86
87
|
# On successful completion,
|
87
88
|
# [Operation.response][google.longrunning.Operation.response] will be
|
88
89
|
# [Empty][google.protobuf.Empty].
|
89
|
-
rpc :InstantiateInlineWorkflowTemplate, InstantiateInlineWorkflowTemplateRequest, Google::Longrunning::Operation
|
90
|
+
rpc :InstantiateInlineWorkflowTemplate, ::Google::Cloud::Dataproc::V1beta2::InstantiateInlineWorkflowTemplateRequest, ::Google::Longrunning::Operation
|
90
91
|
# Updates (replaces) workflow template. The updated template
|
91
92
|
# must contain version that matches the current server version.
|
92
|
-
rpc :UpdateWorkflowTemplate, UpdateWorkflowTemplateRequest, WorkflowTemplate
|
93
|
+
rpc :UpdateWorkflowTemplate, ::Google::Cloud::Dataproc::V1beta2::UpdateWorkflowTemplateRequest, ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplate
|
93
94
|
# Lists workflows that match the specified filter in the request.
|
94
|
-
rpc :ListWorkflowTemplates, ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse
|
95
|
+
rpc :ListWorkflowTemplates, ::Google::Cloud::Dataproc::V1beta2::ListWorkflowTemplatesRequest, ::Google::Cloud::Dataproc::V1beta2::ListWorkflowTemplatesResponse
|
95
96
|
# Deletes a workflow template. It does not cancel in-progress workflows.
|
96
|
-
rpc :DeleteWorkflowTemplate, DeleteWorkflowTemplateRequest, Google::Protobuf::Empty
|
97
|
+
rpc :DeleteWorkflowTemplate, ::Google::Cloud::Dataproc::V1beta2::DeleteWorkflowTemplateRequest, ::Google::Protobuf::Empty
|
97
98
|
end
|
98
99
|
|
99
100
|
Stub = Service.rpc_stub_class
|
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -80,20 +80,26 @@ module Google
|
|
80
80
|
# Bounds: [0s, 1d].
|
81
81
|
# @!attribute [rw] scale_up_factor
|
82
82
|
# @return [::Float]
|
83
|
-
# Required. Fraction of average pending memory in the last cooldown
|
84
|
-
# for which to add workers. A scale-up factor of 1.0 will result in
|
85
|
-
# up so that there is no pending memory remaining after the update
|
86
|
-
# aggressive scaling). A scale-up factor closer to 0 will result in a
|
87
|
-
# magnitude of scaling up (less aggressive scaling).
|
83
|
+
# Required. Fraction of average YARN pending memory in the last cooldown
|
84
|
+
# period for which to add workers. A scale-up factor of 1.0 will result in
|
85
|
+
# scaling up so that there is no pending memory remaining after the update
|
86
|
+
# (more aggressive scaling). A scale-up factor closer to 0 will result in a
|
87
|
+
# smaller magnitude of scaling up (less aggressive scaling). See [How
|
88
|
+
# autoscaling
|
89
|
+
# works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
|
90
|
+
# for more information.
|
88
91
|
#
|
89
92
|
# Bounds: [0.0, 1.0].
|
90
93
|
# @!attribute [rw] scale_down_factor
|
91
94
|
# @return [::Float]
|
92
|
-
# Required. Fraction of average pending memory in the last cooldown
|
93
|
-
# for which to remove workers. A scale-down factor of 1 will result in
|
95
|
+
# Required. Fraction of average YARN pending memory in the last cooldown
|
96
|
+
# period for which to remove workers. A scale-down factor of 1 will result in
|
94
97
|
# scaling down so that there is no available memory remaining after the
|
95
98
|
# update (more aggressive scaling). A scale-down factor of 0 disables
|
96
99
|
# removing workers, which can be beneficial for autoscaling a single job.
|
100
|
+
# See [How autoscaling
|
101
|
+
# works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works)
|
102
|
+
# for more information.
|
97
103
|
#
|
98
104
|
# Bounds: [0.0, 1.0].
|
99
105
|
# @!attribute [rw] scale_up_min_worker_fraction
|
@@ -85,6 +85,17 @@ module Google
|
|
85
85
|
# and manage this project-level, per-location bucket (see
|
86
86
|
# [Dataproc staging
|
87
87
|
# bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
|
88
|
+
# @!attribute [rw] temp_bucket
|
89
|
+
# @return [::String]
|
90
|
+
# Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
|
91
|
+
# such as Spark and MapReduce history files.
|
92
|
+
# If you do not specify a temp bucket,
|
93
|
+
# Dataproc will determine a Cloud Storage location (US,
|
94
|
+
# ASIA, or EU) for your cluster's temp bucket according to the
|
95
|
+
# Compute Engine zone where your cluster is deployed, and then create
|
96
|
+
# and manage this project-level, per-location bucket. The default bucket has
|
97
|
+
# a TTL of 90 days, but you can use any TTL (or none) if you specify a
|
98
|
+
# bucket.
|
88
99
|
# @!attribute [rw] gce_cluster_config
|
89
100
|
# @return [::Google::Cloud::Dataproc::V1beta2::GceClusterConfig]
|
90
101
|
# Optional. The shared Compute Engine config settings for
|
@@ -268,7 +279,7 @@ module Google
|
|
268
279
|
# @!attribute [rw] service_account
|
269
280
|
# @return [::String]
|
270
281
|
# Optional. The [Dataproc service
|
271
|
-
# account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#
|
282
|
+
# account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)
|
272
283
|
# (also see [VM Data Plane
|
273
284
|
# identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))
|
274
285
|
# used by Dataproc cluster VM instances to access Google Cloud Platform
|
@@ -372,6 +383,15 @@ module Google
|
|
372
383
|
# @return [::Boolean]
|
373
384
|
# Output only. Specifies that this instance group contains preemptible
|
374
385
|
# instances.
|
386
|
+
# @!attribute [rw] preemptibility
|
387
|
+
# @return [::Google::Cloud::Dataproc::V1beta2::InstanceGroupConfig::Preemptibility]
|
388
|
+
# Optional. Specifies the preemptibility of the instance group.
|
389
|
+
#
|
390
|
+
# The default value for master and worker groups is
|
391
|
+
# `NON_PREEMPTIBLE`. This default cannot be changed.
|
392
|
+
#
|
393
|
+
# The default value for secondary instances is
|
394
|
+
# `PREEMPTIBLE`.
|
375
395
|
# @!attribute [r] managed_group_config
|
376
396
|
# @return [::Google::Cloud::Dataproc::V1beta2::ManagedGroupConfig]
|
377
397
|
# Output only. The config for Compute Engine Instance Group
|
@@ -389,6 +409,27 @@ module Google
|
|
389
409
|
class InstanceGroupConfig
|
390
410
|
include ::Google::Protobuf::MessageExts
|
391
411
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
412
|
+
|
413
|
+
# Controls the use of
|
414
|
+
# [preemptible instances]
|
415
|
+
# (https://cloud.google.com/compute/docs/instances/preemptible)
|
416
|
+
# within the group.
|
417
|
+
module Preemptibility
|
418
|
+
# Preemptibility is unspecified, the system will choose the
|
419
|
+
# appropriate setting for each instance group.
|
420
|
+
PREEMPTIBILITY_UNSPECIFIED = 0
|
421
|
+
|
422
|
+
# Instances are non-preemptible.
|
423
|
+
#
|
424
|
+
# This option is allowed for all instance groups and is the only valid
|
425
|
+
# value for Master and Worker instance groups.
|
426
|
+
NON_PREEMPTIBLE = 1
|
427
|
+
|
428
|
+
# Instances are preemptible.
|
429
|
+
#
|
430
|
+
# This option is allowed only for secondary worker groups.
|
431
|
+
PREEMPTIBLE = 2
|
432
|
+
end
|
392
433
|
end
|
393
434
|
|
394
435
|
# Specifies the resources used to actively manage an instance group.
|
@@ -658,7 +699,7 @@ module Google
|
|
658
699
|
# @return [::String]
|
659
700
|
# Optional. The version of software inside the cluster. It must be one of the
|
660
701
|
# supported [Dataproc
|
661
|
-
# Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#
|
702
|
+
# Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
|
662
703
|
# such as "1.2" (including a subminor version, such as "1.2.29"), or the
|
663
704
|
# ["preview"
|
664
705
|
# version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
|
@@ -158,12 +158,12 @@ module Google
|
|
158
158
|
# Spark driver and tasks.
|
159
159
|
# @!attribute [rw] file_uris
|
160
160
|
# @return [::Array<::String>]
|
161
|
-
# Optional. HCFS URIs of files to be
|
162
|
-
#
|
161
|
+
# Optional. HCFS URIs of files to be placed in the working directory of
|
162
|
+
# each executor. Useful for naively parallel tasks.
|
163
163
|
# @!attribute [rw] archive_uris
|
164
164
|
# @return [::Array<::String>]
|
165
|
-
# Optional. HCFS URIs of archives to be extracted
|
166
|
-
# of
|
165
|
+
# Optional. HCFS URIs of archives to be extracted into the working directory
|
166
|
+
# of each executor. Supported file types:
|
167
167
|
# .jar, .tar, .tar.gz, .tgz, and .zip.
|
168
168
|
# @!attribute [rw] properties
|
169
169
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
@@ -211,11 +211,12 @@ module Google
|
|
211
211
|
# Python driver and tasks.
|
212
212
|
# @!attribute [rw] file_uris
|
213
213
|
# @return [::Array<::String>]
|
214
|
-
# Optional. HCFS URIs of files to be
|
215
|
-
#
|
214
|
+
# Optional. HCFS URIs of files to be placed in the working directory of
|
215
|
+
# each executor. Useful for naively parallel tasks.
|
216
216
|
# @!attribute [rw] archive_uris
|
217
217
|
# @return [::Array<::String>]
|
218
|
-
# Optional. HCFS URIs of archives to be extracted
|
218
|
+
# Optional. HCFS URIs of archives to be extracted into the working directory
|
219
|
+
# of each executor. Supported file types:
|
219
220
|
# .jar, .tar, .tar.gz, .tgz, and .zip.
|
220
221
|
# @!attribute [rw] properties
|
221
222
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
@@ -426,12 +427,12 @@ module Google
|
|
426
427
|
# occur that causes an incorrect job submission.
|
427
428
|
# @!attribute [rw] file_uris
|
428
429
|
# @return [::Array<::String>]
|
429
|
-
# Optional. HCFS URIs of files to be
|
430
|
-
#
|
430
|
+
# Optional. HCFS URIs of files to be placed in the working directory of
|
431
|
+
# each executor. Useful for naively parallel tasks.
|
431
432
|
# @!attribute [rw] archive_uris
|
432
433
|
# @return [::Array<::String>]
|
433
|
-
# Optional. HCFS URIs of archives to be extracted
|
434
|
-
#
|
434
|
+
# Optional. HCFS URIs of archives to be extracted into the working directory
|
435
|
+
# of each executor. Supported file types:
|
435
436
|
# .jar, .tar, .tar.gz, .tgz, and .zip.
|
436
437
|
# @!attribute [rw] properties
|
437
438
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
@@ -458,8 +459,9 @@ module Google
|
|
458
459
|
|
459
460
|
# A Dataproc job for running [Presto](https://prestosql.io/) queries.
|
460
461
|
# **IMPORTANT**: The [Dataproc Presto Optional
|
461
|
-
# Component](/dataproc/docs/concepts/components/presto)
|
462
|
-
# the cluster is created to submit a Presto job to the
|
462
|
+
# Component](https://cloud.google.com/dataproc/docs/concepts/components/presto)
|
463
|
+
# must be enabled when the cluster is created to submit a Presto job to the
|
464
|
+
# cluster.
|
463
465
|
# @!attribute [rw] query_file_uri
|
464
466
|
# @return [::String]
|
465
467
|
# The HCFS URI of the script that contains SQL queries.
|
@@ -599,8 +601,8 @@ module Google
|
|
599
601
|
# Encapsulates the full scoping used to reference a job.
|
600
602
|
# @!attribute [rw] project_id
|
601
603
|
# @return [::String]
|
602
|
-
#
|
603
|
-
#
|
604
|
+
# Optional. The ID of the Google Cloud Platform project that the job belongs to. If
|
605
|
+
# specified, must match the request project ID.
|
604
606
|
# @!attribute [rw] job_id
|
605
607
|
# @return [::String]
|
606
608
|
# Optional. The job ID, which must be unique within the project.
|
@@ -23,20 +23,17 @@ module Google
|
|
23
23
|
module V1beta2
|
24
24
|
# Cluster components that can be activated.
|
25
25
|
module Component
|
26
|
-
# Unspecified component.
|
26
|
+
# Unspecified component. Specifying this will cause Cluster creation to fail.
|
27
27
|
COMPONENT_UNSPECIFIED = 0
|
28
28
|
|
29
29
|
# The Anaconda python distribution.
|
30
30
|
ANACONDA = 5
|
31
31
|
|
32
|
-
# Docker
|
33
|
-
DOCKER = 13
|
34
|
-
|
35
32
|
# The Druid query engine.
|
36
33
|
DRUID = 9
|
37
34
|
|
38
|
-
#
|
39
|
-
|
35
|
+
# HBase.
|
36
|
+
HBASE = 11
|
40
37
|
|
41
38
|
# The Hive Web HCatalog (the REST service for accessing HCatalog).
|
42
39
|
HIVE_WEBHCAT = 3
|
@@ -85,6 +85,17 @@ module Google
|
|
85
85
|
# Optional. Template parameters whose values are substituted into the
|
86
86
|
# template. Values for parameters must be provided when the template is
|
87
87
|
# instantiated.
|
88
|
+
# @!attribute [rw] dag_timeout
|
89
|
+
# @return [::Google::Protobuf::Duration]
|
90
|
+
# Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h",
|
91
|
+
# and "d" suffixes for second, minute, hour, and day duration values,
|
92
|
+
# respectively. The timeout duration must be from 10 minutes ("10m") to 24
|
93
|
+
# hours ("24h" or "1d"). The timer begins when the first job is submitted. If
|
94
|
+
# the workflow is running at the end of the timeout period, any remaining
|
95
|
+
# jobs are cancelled, the workflow is terminated, and if the workflow was
|
96
|
+
# running on a [managed
|
97
|
+
# cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster),
|
98
|
+
# the cluster is deleted.
|
88
99
|
class WorkflowTemplate
|
89
100
|
include ::Google::Protobuf::MessageExts
|
90
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -188,30 +199,36 @@ module Google
|
|
188
199
|
#
|
189
200
|
# The step id is used as prefix for job id, as job
|
190
201
|
# `goog-dataproc-workflow-step-id` label, and in
|
191
|
-
# {::Google::Cloud::Dataproc::V1beta2::OrderedJob#prerequisite_step_ids prerequisiteStepIds}
|
192
|
-
# steps.
|
202
|
+
# {::Google::Cloud::Dataproc::V1beta2::OrderedJob#prerequisite_step_ids prerequisiteStepIds}
|
203
|
+
# field from other steps.
|
193
204
|
#
|
194
205
|
# The id must contain only letters (a-z, A-Z), numbers (0-9),
|
195
206
|
# underscores (_), and hyphens (-). Cannot begin or end with underscore
|
196
207
|
# or hyphen. Must consist of between 3 and 50 characters.
|
197
208
|
# @!attribute [rw] hadoop_job
|
198
209
|
# @return [::Google::Cloud::Dataproc::V1beta2::HadoopJob]
|
210
|
+
# Optional. Job is a Hadoop job.
|
199
211
|
# @!attribute [rw] spark_job
|
200
212
|
# @return [::Google::Cloud::Dataproc::V1beta2::SparkJob]
|
213
|
+
# Optional. Job is a Spark job.
|
201
214
|
# @!attribute [rw] pyspark_job
|
202
215
|
# @return [::Google::Cloud::Dataproc::V1beta2::PySparkJob]
|
216
|
+
# Optional. Job is a PySpark job.
|
203
217
|
# @!attribute [rw] hive_job
|
204
218
|
# @return [::Google::Cloud::Dataproc::V1beta2::HiveJob]
|
219
|
+
# Optional. Job is a Hive job.
|
205
220
|
# @!attribute [rw] pig_job
|
206
221
|
# @return [::Google::Cloud::Dataproc::V1beta2::PigJob]
|
222
|
+
# Optional. Job is a Pig job.
|
207
223
|
# @!attribute [rw] spark_r_job
|
208
224
|
# @return [::Google::Cloud::Dataproc::V1beta2::SparkRJob]
|
209
|
-
#
|
225
|
+
# Optional. Job is a SparkR job.
|
210
226
|
# @!attribute [rw] spark_sql_job
|
211
227
|
# @return [::Google::Cloud::Dataproc::V1beta2::SparkSqlJob]
|
228
|
+
# Optional. Job is a SparkSql job.
|
212
229
|
# @!attribute [rw] presto_job
|
213
230
|
# @return [::Google::Cloud::Dataproc::V1beta2::PrestoJob]
|
214
|
-
# Presto job
|
231
|
+
# Optional. Job is a Presto job.
|
215
232
|
# @!attribute [rw] labels
|
216
233
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
217
234
|
# Optional. The labels to associate with this job.
|
@@ -269,10 +286,10 @@ module Google
|
|
269
286
|
# A field is allowed to appear in at most one parameter's list of field
|
270
287
|
# paths.
|
271
288
|
#
|
272
|
-
# A field path is similar in syntax to a
|
273
|
-
# For example, a
|
274
|
-
#
|
275
|
-
# `placement.clusterSelector.zone`.
|
289
|
+
# A field path is similar in syntax to a
|
290
|
+
# {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. For example, a
|
291
|
+
# field path that references the zone field of a workflow template's cluster
|
292
|
+
# selector would be specified as `placement.clusterSelector.zone`.
|
276
293
|
#
|
277
294
|
# Also, field paths can reference fields using the following syntax:
|
278
295
|
#
|
@@ -397,6 +414,23 @@ module Google
|
|
397
414
|
# @!attribute [r] cluster_uuid
|
398
415
|
# @return [::String]
|
399
416
|
# Output only. The UUID of target cluster.
|
417
|
+
# @!attribute [r] dag_timeout
|
418
|
+
# @return [::Google::Protobuf::Duration]
|
419
|
+
# Output only. The timeout duration for the DAG of jobs.
|
420
|
+
# Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed
|
421
|
+
# as a
|
422
|
+
# [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping].
|
423
|
+
# For example, "1800" = 1800 seconds/30 minutes duration.
|
424
|
+
# @!attribute [r] dag_start_time
|
425
|
+
# @return [::Google::Protobuf::Timestamp]
|
426
|
+
# Output only. DAG start time, which is only set for workflows with
|
427
|
+
# {::Google::Cloud::Dataproc::V1beta2::WorkflowMetadata#dag_timeout dag_timeout}
|
428
|
+
# when the DAG begins.
|
429
|
+
# @!attribute [r] dag_end_time
|
430
|
+
# @return [::Google::Protobuf::Timestamp]
|
431
|
+
# Output only. DAG end time, which is only set for workflows with
|
432
|
+
# {::Google::Cloud::Dataproc::V1beta2::WorkflowMetadata#dag_timeout dag_timeout}
|
433
|
+
# when the DAG ends.
|
400
434
|
class WorkflowMetadata
|
401
435
|
include ::Google::Protobuf::MessageExts
|
402
436
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataproc-v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
|
-
rubygems_version: 3.
|
228
|
+
rubygems_version: 3.1.4
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: API Client library for the Cloud Dataproc V1beta2 API
|