google-cloud-dataproc-v1beta2 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cea2562d8326de152bbac7dacc4c23fca583ce210bcbe86b2482a8947c73aa8e
4
- data.tar.gz: 0cef5228bcb8267d80562549378719198995ca22cb4856f2921b6a9ee1bfb630
3
+ metadata.gz: fc958f3b0d1e827794bfbae039a2ac4e26b0d0673d73e74773a3765181f11826
4
+ data.tar.gz: 7ce322d458d72b891ece59e5719d403d2a37bee2a3f962ae6351fcddda93cbd6
5
5
  SHA512:
6
- metadata.gz: 3efae8738ca45f4d865afee9efc8eecc0c2a6e8d1f7616ff5e8cf12fb723486871bc7d05b2593eae1855b6981a7647d95967bf59044d3c35f86836e93aac8d7c
7
- data.tar.gz: 4019f6f98b8b8c33518eb55cb8a6d92f29f3d1e5e45faa0964b52c5ca8b040ac7621b09c31998102f527720ee3caa29f2e002d7bc88ab68bafb5e7c63d2d67f0
6
+ metadata.gz: d1695a2a0b3810994637be752ac2a9493656f5f6e47a97bf7ebb8d3fda8f8143d806ea11e4b5ffe7d58d2ced1465e841dcfcf0f1662c4688d8dbaf2fb8f5e5bc
7
+ data.tar.gz: 77d70f01398b9f290d7060eaca54909a383777ef7a75e3c2c844ae28a568a053dc3f78ef8ef26bb9bf4c9f4f1cc911247eaca6f2178f9ae6d91557746d808ce3
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-dataproc-v1beta2
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Credentials}):
68
68
 
69
- 1. `DATAPROC_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `DATAPROC_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `DATAPROC_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `DATAPROC_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/dataproc/v1beta2"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.ne
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/dataproc/v1beta2"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.ne
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/dataproc/v1beta2"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/dataproc/v1beta2"
34
34
 
35
35
  client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_autoscaling_policy request
38
38
  ```
39
39
 
@@ -28,7 +28,7 @@ module Google
28
28
  # Cloud Dataproc API.
29
29
  class Service
30
30
 
31
- include ::GRPC::GenericService
31
+ include GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -70,26 +70,17 @@ module Google
70
70
 
71
71
  default_config.rpcs.update_autoscaling_policy.timeout = 600.0
72
72
  default_config.rpcs.update_autoscaling_policy.retry_policy = {
73
- initial_delay: 0.1,
74
- max_delay: 60.0,
75
- multiplier: 1.3,
76
- retry_codes: [4, 14]
73
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
77
74
  }
78
75
 
79
76
  default_config.rpcs.get_autoscaling_policy.timeout = 600.0
80
77
  default_config.rpcs.get_autoscaling_policy.retry_policy = {
81
- initial_delay: 0.1,
82
- max_delay: 60.0,
83
- multiplier: 1.3,
84
- retry_codes: [4, 14]
78
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
85
79
  }
86
80
 
87
81
  default_config.rpcs.list_autoscaling_policies.timeout = 600.0
88
82
  default_config.rpcs.list_autoscaling_policies.retry_policy = {
89
- initial_delay: 0.1,
90
- max_delay: 60.0,
91
- multiplier: 1.3,
92
- retry_codes: [4, 14]
83
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
93
84
  }
94
85
 
95
86
  default_config.rpcs.delete_autoscaling_policy.timeout = 600.0
@@ -162,7 +153,7 @@ module Google
162
153
  !@config.endpoint.split(".").first.include?("-")
163
154
  credentials ||= Credentials.default scope: @config.scope,
164
155
  enable_self_signed_jwt: enable_self_signed_jwt
165
- if credentials.is_a?(String) || credentials.is_a?(Hash)
156
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
166
157
  credentials = Credentials.new credentials, scope: @config.scope
167
158
  end
168
159
  @quota_project_id = @config.quota_project
@@ -68,50 +68,32 @@ module Google
68
68
 
69
69
  default_config.rpcs.create_cluster.timeout = 300.0
70
70
  default_config.rpcs.create_cluster.retry_policy = {
71
- initial_delay: 0.1,
72
- max_delay: 60.0,
73
- multiplier: 1.3,
74
- retry_codes: [14]
71
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
75
72
  }
76
73
 
77
74
  default_config.rpcs.update_cluster.timeout = 300.0
78
75
  default_config.rpcs.update_cluster.retry_policy = {
79
- initial_delay: 0.1,
80
- max_delay: 60.0,
81
- multiplier: 1.3,
82
- retry_codes: [14]
76
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
83
77
  }
84
78
 
85
79
  default_config.rpcs.delete_cluster.timeout = 300.0
86
80
  default_config.rpcs.delete_cluster.retry_policy = {
87
- initial_delay: 0.1,
88
- max_delay: 60.0,
89
- multiplier: 1.3,
90
- retry_codes: [14]
81
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
91
82
  }
92
83
 
93
84
  default_config.rpcs.get_cluster.timeout = 300.0
94
85
  default_config.rpcs.get_cluster.retry_policy = {
95
- initial_delay: 0.1,
96
- max_delay: 60.0,
97
- multiplier: 1.3,
98
- retry_codes: [13, 4, 14]
86
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [13, 4, 14]
99
87
  }
100
88
 
101
89
  default_config.rpcs.list_clusters.timeout = 300.0
102
90
  default_config.rpcs.list_clusters.retry_policy = {
103
- initial_delay: 0.1,
104
- max_delay: 60.0,
105
- multiplier: 1.3,
106
- retry_codes: [13, 4, 14]
91
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [13, 4, 14]
107
92
  }
108
93
 
109
94
  default_config.rpcs.diagnose_cluster.timeout = 300.0
110
95
  default_config.rpcs.diagnose_cluster.retry_policy = {
111
- initial_delay: 0.1,
112
- max_delay: 60.0,
113
- multiplier: 1.3,
114
- retry_codes: [14]
96
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
115
97
  }
116
98
 
117
99
  default_config
@@ -182,7 +164,7 @@ module Google
182
164
  !@config.endpoint.split(".").first.include?("-")
183
165
  credentials ||= Credentials.default scope: @config.scope,
184
166
  enable_self_signed_jwt: enable_self_signed_jwt
185
- if credentials.is_a?(String) || credentials.is_a?(Hash)
167
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
186
168
  credentials = Credentials.new credentials, scope: @config.scope
187
169
  end
188
170
  @quota_project_id = @config.quota_project
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -396,9 +396,9 @@ module Google
396
396
  end
397
397
 
398
398
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
399
+ # Waits until the specified long-running operation is done or reaches at most
400
+ # a specified timeout, returning the latest state. If the operation is
401
+ # already done, the latest state is immediately returned. If the timeout
402
402
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
403
  # timeout is used. If the server does not support this method, it returns
404
404
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -28,7 +28,7 @@ module Google
28
28
  # of Compute Engine instances.
29
29
  class Service
30
30
 
31
- include ::GRPC::GenericService
31
+ include GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -65,58 +65,37 @@ module Google
65
65
 
66
66
  default_config.rpcs.submit_job.timeout = 900.0
67
67
  default_config.rpcs.submit_job.retry_policy = {
68
- initial_delay: 0.1,
69
- max_delay: 60.0,
70
- multiplier: 1.3,
71
- retry_codes: [14]
68
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
72
69
  }
73
70
 
74
71
  default_config.rpcs.submit_job_as_operation.timeout = 900.0
75
72
  default_config.rpcs.submit_job_as_operation.retry_policy = {
76
- initial_delay: 0.1,
77
- max_delay: 60.0,
78
- multiplier: 1.3,
79
- retry_codes: [14]
73
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
80
74
  }
81
75
 
82
76
  default_config.rpcs.get_job.timeout = 900.0
83
77
  default_config.rpcs.get_job.retry_policy = {
84
- initial_delay: 0.1,
85
- max_delay: 60.0,
86
- multiplier: 1.3,
87
- retry_codes: [4, 13, 14]
78
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
88
79
  }
89
80
 
90
81
  default_config.rpcs.list_jobs.timeout = 900.0
91
82
  default_config.rpcs.list_jobs.retry_policy = {
92
- initial_delay: 0.1,
93
- max_delay: 60.0,
94
- multiplier: 1.3,
95
- retry_codes: [4, 13, 14]
83
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
96
84
  }
97
85
 
98
86
  default_config.rpcs.update_job.timeout = 900.0
99
87
  default_config.rpcs.update_job.retry_policy = {
100
- initial_delay: 0.1,
101
- max_delay: 60.0,
102
- multiplier: 1.3,
103
- retry_codes: [14]
88
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
104
89
  }
105
90
 
106
91
  default_config.rpcs.cancel_job.timeout = 900.0
107
92
  default_config.rpcs.cancel_job.retry_policy = {
108
- initial_delay: 0.1,
109
- max_delay: 60.0,
110
- multiplier: 1.3,
111
- retry_codes: [4, 13, 14]
93
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
112
94
  }
113
95
 
114
96
  default_config.rpcs.delete_job.timeout = 900.0
115
97
  default_config.rpcs.delete_job.retry_policy = {
116
- initial_delay: 0.1,
117
- max_delay: 60.0,
118
- multiplier: 1.3,
119
- retry_codes: [14]
98
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
120
99
  }
121
100
 
122
101
  default_config
@@ -187,7 +166,7 @@ module Google
187
166
  !@config.endpoint.split(".").first.include?("-")
188
167
  credentials ||= Credentials.default scope: @config.scope,
189
168
  enable_self_signed_jwt: enable_self_signed_jwt
190
- if credentials.is_a?(String) || credentials.is_a?(Hash)
169
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
191
170
  credentials = Credentials.new credentials, scope: @config.scope
192
171
  end
193
172
  @quota_project_id = @config.quota_project
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -396,9 +396,9 @@ module Google
396
396
  end
397
397
 
398
398
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
399
+ # Waits until the specified long-running operation is done or reaches at most
400
+ # a specified timeout, returning the latest state. If the operation is
401
+ # already done, the latest state is immediately returned. If the timeout
402
402
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
403
  # timeout is used. If the server does not support this method, it returns
404
404
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -27,7 +27,7 @@ module Google
27
27
  # The JobController provides methods to manage jobs.
28
28
  class Service
29
29
 
30
- include ::GRPC::GenericService
30
+ include GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataproc
23
23
  module V1beta2
24
- VERSION = "0.6.1"
24
+ VERSION = "0.6.2"
25
25
  end
26
26
  end
27
27
  end
@@ -68,58 +68,37 @@ module Google
68
68
 
69
69
  default_config.rpcs.create_workflow_template.timeout = 600.0
70
70
  default_config.rpcs.create_workflow_template.retry_policy = {
71
- initial_delay: 0.1,
72
- max_delay: 60.0,
73
- multiplier: 1.3,
74
- retry_codes: [14]
71
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
75
72
  }
76
73
 
77
74
  default_config.rpcs.get_workflow_template.timeout = 600.0
78
75
  default_config.rpcs.get_workflow_template.retry_policy = {
79
- initial_delay: 0.1,
80
- max_delay: 60.0,
81
- multiplier: 1.3,
82
- retry_codes: [4, 13, 14]
76
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
83
77
  }
84
78
 
85
79
  default_config.rpcs.instantiate_workflow_template.timeout = 600.0
86
80
  default_config.rpcs.instantiate_workflow_template.retry_policy = {
87
- initial_delay: 0.1,
88
- max_delay: 60.0,
89
- multiplier: 1.3,
90
- retry_codes: [14]
81
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
91
82
  }
92
83
 
93
84
  default_config.rpcs.instantiate_inline_workflow_template.timeout = 600.0
94
85
  default_config.rpcs.instantiate_inline_workflow_template.retry_policy = {
95
- initial_delay: 0.1,
96
- max_delay: 60.0,
97
- multiplier: 1.3,
98
- retry_codes: [14]
86
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
99
87
  }
100
88
 
101
89
  default_config.rpcs.update_workflow_template.timeout = 600.0
102
90
  default_config.rpcs.update_workflow_template.retry_policy = {
103
- initial_delay: 0.1,
104
- max_delay: 60.0,
105
- multiplier: 1.3,
106
- retry_codes: [14]
91
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
107
92
  }
108
93
 
109
94
  default_config.rpcs.list_workflow_templates.timeout = 600.0
110
95
  default_config.rpcs.list_workflow_templates.retry_policy = {
111
- initial_delay: 0.1,
112
- max_delay: 60.0,
113
- multiplier: 1.3,
114
- retry_codes: [4, 13, 14]
96
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
115
97
  }
116
98
 
117
99
  default_config.rpcs.delete_workflow_template.timeout = 600.0
118
100
  default_config.rpcs.delete_workflow_template.retry_policy = {
119
- initial_delay: 0.1,
120
- max_delay: 60.0,
121
- multiplier: 1.3,
122
- retry_codes: [14]
101
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
123
102
  }
124
103
 
125
104
  default_config
@@ -190,7 +169,7 @@ module Google
190
169
  !@config.endpoint.split(".").first.include?("-")
191
170
  credentials ||= Credentials.default scope: @config.scope,
192
171
  enable_self_signed_jwt: enable_self_signed_jwt
193
- if credentials.is_a?(String) || credentials.is_a?(Hash)
172
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
194
173
  credentials = Credentials.new credentials, scope: @config.scope
195
174
  end
196
175
  @quota_project_id = @config.quota_project
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -396,9 +396,9 @@ module Google
396
396
  end
397
397
 
398
398
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
399
+ # Waits until the specified long-running operation is done or reaches at most
400
+ # a specified timeout, returning the latest state. If the operation is
401
+ # already done, the latest state is immediately returned. If the timeout
402
402
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
403
  # timeout is used. If the server does not support this method, it returns
404
404
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -28,7 +28,7 @@ module Google
28
28
  # Dataproc API.
29
29
  class Service
30
30
 
31
- include ::GRPC::GenericService
31
+ include GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common