google-cloud-dataproc-v1 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +18 -6
  4. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +711 -0
  5. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/service_stub.rb +382 -0
  6. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest.rb +54 -0
  7. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service.rb +6 -0
  8. data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +51 -15
  9. data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +12 -14
  10. data/lib/google/cloud/dataproc/v1/batch_controller/paths.rb +19 -0
  11. data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +640 -0
  12. data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +820 -0
  13. data/lib/google/cloud/dataproc/v1/batch_controller/rest/service_stub.rb +285 -0
  14. data/lib/google/cloud/dataproc/v1/batch_controller/rest.rb +54 -0
  15. data/lib/google/cloud/dataproc/v1/batch_controller.rb +6 -0
  16. data/lib/google/cloud/dataproc/v1/batches_pb.rb +2 -0
  17. data/lib/google/cloud/dataproc/v1/bindings_override.rb +257 -0
  18. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +43 -31
  19. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +12 -14
  20. data/lib/google/cloud/dataproc/v1/cluster_controller/paths.rb +19 -0
  21. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +1117 -0
  22. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +820 -0
  23. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/service_stub.rb +539 -0
  24. data/lib/google/cloud/dataproc/v1/cluster_controller/rest.rb +55 -0
  25. data/lib/google/cloud/dataproc/v1/cluster_controller.rb +6 -0
  26. data/lib/google/cloud/dataproc/v1/clusters_pb.rb +10 -9
  27. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +22 -10
  28. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +12 -14
  29. data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +929 -0
  30. data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +820 -0
  31. data/lib/google/cloud/dataproc/v1/job_controller/rest/service_stub.rb +476 -0
  32. data/lib/google/cloud/dataproc/v1/job_controller/rest.rb +53 -0
  33. data/lib/google/cloud/dataproc/v1/job_controller.rb +6 -0
  34. data/lib/google/cloud/dataproc/v1/jobs_pb.rb +13 -0
  35. data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +23 -9
  36. data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +12 -14
  37. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +581 -0
  38. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +820 -0
  39. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/service_stub.rb +227 -0
  40. data/lib/google/cloud/dataproc/v1/node_group_controller/rest.rb +55 -0
  41. data/lib/google/cloud/dataproc/v1/node_group_controller.rb +6 -0
  42. data/lib/google/cloud/dataproc/v1/operations_pb.rb +1 -0
  43. data/lib/google/cloud/dataproc/v1/rest.rb +43 -0
  44. data/lib/google/cloud/dataproc/v1/shared_pb.rb +24 -1
  45. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  46. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +28 -15
  47. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +12 -14
  48. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +983 -0
  49. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +820 -0
  50. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/service_stub.rb +518 -0
  51. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest.rb +55 -0
  52. data/lib/google/cloud/dataproc/v1/workflow_template_service.rb +6 -0
  53. data/lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb +2 -1
  54. data/lib/google/cloud/dataproc/v1.rb +6 -1
  55. data/proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb +8 -8
  56. data/proto_docs/google/cloud/dataproc/v1/batches.rb +42 -14
  57. data/proto_docs/google/cloud/dataproc/v1/clusters.rb +60 -54
  58. data/proto_docs/google/cloud/dataproc/v1/jobs.rb +48 -0
  59. data/proto_docs/google/cloud/dataproc/v1/node_groups.rb +1 -1
  60. data/proto_docs/google/cloud/dataproc/v1/operations.rb +3 -0
  61. data/proto_docs/google/cloud/dataproc/v1/shared.rb +174 -56
  62. data/proto_docs/google/cloud/dataproc/v1/workflow_templates.rb +14 -11
  63. metadata +52 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 845bd25567ac1183e380bc1a633116e1e211b0b8683673ae3a26bc4ea68dcfbd
4
- data.tar.gz: 58c166d6d8e3727386eebacffac347b102a661179e12d37b3a3ac73f5903a350
3
+ metadata.gz: ad24acddefac8a50c7e969259de9b8785cfa16dc4bb7aa14ed23396c964e2d5d
4
+ data.tar.gz: 31036736f40510dc53268fd753281776fcf87335004a77b540c026df3305c703
5
5
  SHA512:
6
- metadata.gz: c33304f5a779b7d54b74c08efe4c5388bc249c1b0be5ce535c925a2c2b0e5e293317d8d9bc077d1402ff392a455673cae0f559eb037fc831f9b46d0bfb1681ce
7
- data.tar.gz: 3ae99ffbcd72427fcd1121502208525821f42003c040de76264e8923753fcb5bf0c22c1db7d897e662e45ca8d7722eeb01efdde2cd747c7133f3dd002083c405
6
+ metadata.gz: 7b2fcd0ac61b185452e85a080641fbabe9d3bf8c8be7daad3640bd1399359c53debe9918f0a9c939c58efa5d616921147e3240d6e5525aafd9432b972bfb74ca
7
+ data.tar.gz: db91cc7302c7f9e45bfb46861e6ef36d1902b423e8e65ce71595552b35dea788cf1014441a7d26b174f74c63478c3f29a00969ca48c8a282c829ba0304d2245a
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Dataproc V1 API
2
2
 
3
- API Client library for the Cloud Dataproc V1 API
3
+ Manages Hadoop-based clusters and jobs on Google Cloud Platform.
4
4
 
5
5
  Manages Hadoop-based clusters and jobs on Google Cloud Platform.
6
6
 
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dataproc/v1/autoscaling_policies_pb"
21
+ require "google/iam/v1"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -153,6 +154,12 @@ module Google
153
154
  @quota_project_id = @config.quota_project
154
155
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
155
156
 
157
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
158
+ config.credentials = credentials
159
+ config.quota_project = @quota_project_id
160
+ config.endpoint = @config.endpoint
161
+ end
162
+
156
163
  @autoscaling_policy_service_stub = ::Gapic::ServiceStub.new(
157
164
  ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Stub,
158
165
  credentials: credentials,
@@ -162,6 +169,13 @@ module Google
162
169
  )
163
170
  end
164
171
 
172
+ ##
173
+ # Get the associated client for mix-in of the IAMPolicy.
174
+ #
175
+ # @return [Google::Iam::V1::IAMPolicy::Client]
176
+ #
177
+ attr_reader :iam_policy_client
178
+
165
179
  # Service calls
166
180
 
167
181
  ##
@@ -498,13 +512,11 @@ module Google
498
512
  # # Call the list_autoscaling_policies method.
499
513
  # result = client.list_autoscaling_policies request
500
514
  #
501
- # # The returned object is of type Gapic::PagedEnumerable. You can
502
- # # iterate over all elements by calling #each, and the enumerable
503
- # # will lazily make API calls to fetch subsequent pages. Other
504
- # # methods are also available for managing paging directly.
505
- # result.each do |response|
515
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
516
+ # # over elements, and API calls will be issued to fetch pages as needed.
517
+ # result.each do |item|
506
518
  # # Each element is of type ::Google::Cloud::Dataproc::V1::AutoscalingPolicy.
507
- # p response
519
+ # p item
508
520
  # end
509
521
  #
510
522
  def list_autoscaling_policies request, options = nil