google-cloud-dataproc-v1beta2 0.2.0 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +4 -2
- 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 +4 -2
- data/lib/google/cloud/dataproc/v1beta2/jobs_services_pb.rb +7 -7
- data/lib/google/cloud/dataproc/v1beta2/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +9 -9
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +4 -2
- data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +7 -7
- data/proto_docs/google/cloud/dataproc/v1beta2/jobs.rb +3 -2
- metadata +5 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5688724dc25d9fd7a326bdafaebaaac464ce21b6f9f18f158637d43ef706bc
|
4
|
+
data.tar.gz: beccc828be42beb1f5677bf3661b9bc3a8bd986780b479d71429292a43ca5756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc2a51ad709052c663bad755ebc6218bd989fb6108e133c33fdec81425e7a391e6d4b52dcaa9f00ba5de28c2ab44231556747e307193b3de13ae3eb088f1b2f1
|
7
|
+
data.tar.gz: 1adc36674f4fe3b1476dfddccc6152b56fa6e56651d35fbf72606859ea44d20b7690d2a6f747673b7424dbcced6e5d8a9aba76ec20da4cb8e205ab873c9c6d90
|
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
|
@@ -85,6 +85,8 @@ module Google
|
|
85
85
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
|
+
@quota_project_id = @config.quota_project
|
89
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
88
90
|
|
89
91
|
@operations_stub = ::Gapic::ServiceStub.new(
|
90
92
|
::Google::Longrunning::Operations::Stub,
|
@@ -473,7 +475,7 @@ module Google
|
|
473
475
|
|
474
476
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
475
477
|
config_attr :credentials, nil do |value|
|
476
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
477
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
478
480
|
allowed.any? { |klass| klass === value }
|
479
481
|
end
|
@@ -501,7 +503,7 @@ module Google
|
|
501
503
|
def rpcs
|
502
504
|
@rpcs ||= begin
|
503
505
|
parent_rpcs = nil
|
504
|
-
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)
|
505
507
|
Rpcs.new parent_rpcs
|
506
508
|
end
|
507
509
|
end
|
@@ -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
|
@@ -85,6 +85,8 @@ module Google
|
|
85
85
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
|
+
@quota_project_id = @config.quota_project
|
89
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
88
90
|
|
89
91
|
@operations_stub = ::Gapic::ServiceStub.new(
|
90
92
|
::Google::Longrunning::Operations::Stub,
|
@@ -473,7 +475,7 @@ module Google
|
|
473
475
|
|
474
476
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
475
477
|
config_attr :credentials, nil do |value|
|
476
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
477
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
478
480
|
allowed.any? { |klass| klass === value }
|
479
481
|
end
|
@@ -501,7 +503,7 @@ module Google
|
|
501
503
|
def rpcs
|
502
504
|
@rpcs ||= begin
|
503
505
|
parent_rpcs = nil
|
504
|
-
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)
|
505
507
|
Rpcs.new parent_rpcs
|
506
508
|
end
|
507
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
|
@@ -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
|
@@ -917,7 +917,7 @@ module Google
|
|
917
917
|
|
918
918
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
919
919
|
config_attr :credentials, nil do |value|
|
920
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
920
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
921
921
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
922
922
|
allowed.any? { |klass| klass === value }
|
923
923
|
end
|
@@ -945,7 +945,7 @@ module Google
|
|
945
945
|
def rpcs
|
946
946
|
@rpcs ||= begin
|
947
947
|
parent_rpcs = nil
|
948
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
948
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
949
949
|
Rpcs.new parent_rpcs
|
950
950
|
end
|
951
951
|
end
|
@@ -85,6 +85,8 @@ module Google
|
|
85
85
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
|
+
@quota_project_id = @config.quota_project
|
89
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
88
90
|
|
89
91
|
@operations_stub = ::Gapic::ServiceStub.new(
|
90
92
|
::Google::Longrunning::Operations::Stub,
|
@@ -473,7 +475,7 @@ module Google
|
|
473
475
|
|
474
476
|
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
475
477
|
config_attr :credentials, nil do |value|
|
476
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
477
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
478
480
|
allowed.any? { |klass| klass === value }
|
479
481
|
end
|
@@ -501,7 +503,7 @@ module Google
|
|
501
503
|
def rpcs
|
502
504
|
@rpcs ||= begin
|
503
505
|
parent_rpcs = nil
|
504
|
-
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)
|
505
507
|
Rpcs.new parent_rpcs
|
506
508
|
end
|
507
509
|
end
|
@@ -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,7 +61,7 @@ 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
|
@@ -86,14 +86,14 @@ module Google
|
|
86
86
|
# On successful completion,
|
87
87
|
# [Operation.response][google.longrunning.Operation.response] will be
|
88
88
|
# [Empty][google.protobuf.Empty].
|
89
|
-
rpc :InstantiateInlineWorkflowTemplate, InstantiateInlineWorkflowTemplateRequest, Google::Longrunning::Operation
|
89
|
+
rpc :InstantiateInlineWorkflowTemplate, Google::Cloud::Dataproc::V1beta2::InstantiateInlineWorkflowTemplateRequest, Google::Longrunning::Operation
|
90
90
|
# Updates (replaces) workflow template. The updated template
|
91
91
|
# must contain version that matches the current server version.
|
92
|
-
rpc :UpdateWorkflowTemplate, UpdateWorkflowTemplateRequest, WorkflowTemplate
|
92
|
+
rpc :UpdateWorkflowTemplate, Google::Cloud::Dataproc::V1beta2::UpdateWorkflowTemplateRequest, Google::Cloud::Dataproc::V1beta2::WorkflowTemplate
|
93
93
|
# Lists workflows that match the specified filter in the request.
|
94
|
-
rpc :ListWorkflowTemplates, ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse
|
94
|
+
rpc :ListWorkflowTemplates, Google::Cloud::Dataproc::V1beta2::ListWorkflowTemplatesRequest, Google::Cloud::Dataproc::V1beta2::ListWorkflowTemplatesResponse
|
95
95
|
# Deletes a workflow template. It does not cancel in-progress workflows.
|
96
|
-
rpc :DeleteWorkflowTemplate, DeleteWorkflowTemplateRequest, Google::Protobuf::Empty
|
96
|
+
rpc :DeleteWorkflowTemplate, Google::Cloud::Dataproc::V1beta2::DeleteWorkflowTemplateRequest, Google::Protobuf::Empty
|
97
97
|
end
|
98
98
|
|
99
99
|
Stub = Service.rpc_stub_class
|
@@ -458,8 +458,9 @@ module Google
|
|
458
458
|
|
459
459
|
# A Dataproc job for running [Presto](https://prestosql.io/) queries.
|
460
460
|
# **IMPORTANT**: The [Dataproc Presto Optional
|
461
|
-
# Component](/dataproc/docs/concepts/components/presto)
|
462
|
-
# the cluster is created to submit a Presto job to the
|
461
|
+
# Component](https://cloud.google.com/dataproc/docs/concepts/components/presto)
|
462
|
+
# must be enabled when the cluster is created to submit a Presto job to the
|
463
|
+
# cluster.
|
463
464
|
# @!attribute [rw] query_file_uri
|
464
465
|
# @return [::String]
|
465
466
|
# The HCFS URI of the script that contains SQL queries.
|
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.2.
|
4
|
+
version: 0.2.5
|
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-08-10 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
|
@@ -161,7 +161,6 @@ files:
|
|
161
161
|
- LICENSE.md
|
162
162
|
- README.md
|
163
163
|
- lib/google-cloud-dataproc-v1beta2.rb
|
164
|
-
- lib/google/cloud/common_resources_pb.rb
|
165
164
|
- lib/google/cloud/dataproc/v1beta2.rb
|
166
165
|
- lib/google/cloud/dataproc/v1beta2/autoscaling_policies_pb.rb
|
167
166
|
- lib/google/cloud/dataproc/v1beta2/autoscaling_policies_services_pb.rb
|
@@ -226,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
225
|
- !ruby/object:Gem::Version
|
227
226
|
version: '0'
|
228
227
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
228
|
+
rubygems_version: 3.1.3
|
230
229
|
signing_key:
|
231
230
|
specification_version: 4
|
232
231
|
summary: API Client library for the Cloud Dataproc V1beta2 API
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|