google-cloud-dataproc-v1beta2 0.1.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +5 -1
- data/lib/google/cloud/dataproc/v1beta2.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/client.rb +129 -124
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/credentials.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/paths.rb +10 -10
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +180 -175
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/credentials.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb +109 -103
- data/lib/google/cloud/dataproc/v1beta2/job_controller.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/job_controller/client.rb +186 -181
- data/lib/google/cloud/dataproc/v1beta2/job_controller/credentials.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/job_controller/operations.rb +109 -103
- data/lib/google/cloud/dataproc/v1beta2/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +181 -176
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/credentials.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +109 -103
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/paths.rb +10 -10
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +45 -45
- data/proto_docs/google/cloud/dataproc/v1beta2/clusters.rb +203 -203
- data/proto_docs/google/cloud/dataproc/v1beta2/jobs.rb +227 -226
- data/proto_docs/google/cloud/dataproc/v1beta2/operations.rb +20 -20
- data/proto_docs/google/cloud/dataproc/v1beta2/workflow_templates.rb +145 -145
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +33 -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: a8fc29d8235f7a6fe9e03389c6e050b6989883c9ea8aa97aeb7c2e1b14a4f1a5
|
4
|
+
data.tar.gz: ac1f3c5a18eb176f0c19d76f7e6e06cbe79f722b70038f897c99af29fc57a3f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '069f7827cfc59b768f83e86a524e5494f94ed69b1f15ddc972d8fa5d7c10967f238930c5789ec92d5ccb492dab84b63e962fe9fc6ed74d807f07a1f6cdd50f56'
|
7
|
+
data.tar.gz: 64a71f901a22db0189377b016bd46a7d8e91505b077ebe0bafcba77f7177e6cd0006855e53249ed222d24f62929868685429d6e492c6b89f643dda211ccba7e5
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export DATAPROC_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/dataproc/v1beta2"
|
29
29
|
|
30
|
-
client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
30
|
+
client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-dataproc-v1beta2
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Credentials}):
|
67
|
+
{::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Credentials}):
|
68
68
|
|
69
69
|
1. `DATAPROC_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `DATAPROC_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/dataproc/v1beta2"
|
|
77
77
|
|
78
78
|
ENV["DATAPROC_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
80
|
+
client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/dataproc/v1beta2"
|
90
90
|
|
91
|
-
client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/dataproc/v1beta2"
|
100
100
|
|
101
|
-
Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.configure do |config|
|
101
|
+
::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
105
|
+
client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
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
|
@@ -25,7 +26,7 @@ In order to use this library, you first need to go through the following steps:
|
|
25
26
|
```ruby
|
26
27
|
require "google/cloud/dataproc/v1beta2"
|
27
28
|
|
28
|
-
client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
29
|
+
client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
29
30
|
request = my_create_request
|
30
31
|
response = client.create_autoscaling_policy request
|
31
32
|
```
|
@@ -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.
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# To load this package, including all its services, and instantiate a client:
|
30
30
|
#
|
31
31
|
# require "google/cloud/dataproc/v1beta2"
|
32
|
-
# client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
32
|
+
# client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
33
33
|
#
|
34
34
|
module V1beta2
|
35
35
|
end
|
@@ -37,7 +37,7 @@ module Google
|
|
37
37
|
# To load this service and instantiate a client:
|
38
38
|
#
|
39
39
|
# require "google/cloud/dataproc/v1beta2/autoscaling_policy_service"
|
40
|
-
# client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
40
|
+
# client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
41
41
|
#
|
42
42
|
module AutoscalingPolicyService
|
43
43
|
end
|
@@ -39,15 +39,15 @@ module Google
|
|
39
39
|
##
|
40
40
|
# Configure the AutoscalingPolicyService Client class.
|
41
41
|
#
|
42
|
-
# See {Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client::Configuration}
|
42
|
+
# See {::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
45
|
# ## Example
|
46
46
|
#
|
47
47
|
# To modify the configuration for all AutoscalingPolicyService clients:
|
48
48
|
#
|
49
|
-
# Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.configure do |config|
|
50
|
-
# config.timeout =
|
49
|
+
# ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
51
|
# end
|
52
52
|
#
|
53
53
|
# @yield [config] Configure the Client client.
|
@@ -107,7 +107,7 @@ module Google
|
|
107
107
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
108
108
|
# should be made on {Client.configure}.
|
109
109
|
#
|
110
|
-
# See {Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client::Configuration}
|
110
|
+
# See {::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client::Configuration}
|
111
111
|
# for a description of the configuration fields.
|
112
112
|
#
|
113
113
|
# @yield [config] Configure the Client client.
|
@@ -128,13 +128,13 @@ module Google
|
|
128
128
|
# To create a new AutoscalingPolicyService client with the default
|
129
129
|
# configuration:
|
130
130
|
#
|
131
|
-
# client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
131
|
+
# client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new
|
132
132
|
#
|
133
133
|
# To create a new AutoscalingPolicyService client with a custom
|
134
134
|
# configuration:
|
135
135
|
#
|
136
|
-
# client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new do |config|
|
137
|
-
# config.timeout =
|
136
|
+
# client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new do |config|
|
137
|
+
# config.timeout = 10.0
|
138
138
|
# end
|
139
139
|
#
|
140
140
|
# @yield [config] Configure the AutoscalingPolicyService client.
|
@@ -159,10 +159,11 @@ module Google
|
|
159
159
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
160
160
|
credentials = Credentials.new credentials, scope: @config.scope
|
161
161
|
end
|
162
|
-
@quota_project_id =
|
162
|
+
@quota_project_id = @config.quota_project
|
163
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
163
164
|
|
164
|
-
@autoscaling_policy_service_stub = Gapic::ServiceStub.new(
|
165
|
-
Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Stub,
|
165
|
+
@autoscaling_policy_service_stub = ::Gapic::ServiceStub.new(
|
166
|
+
::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Stub,
|
166
167
|
credentials: credentials,
|
167
168
|
endpoint: @config.endpoint,
|
168
169
|
channel_args: @config.channel_args,
|
@@ -177,12 +178,12 @@ module Google
|
|
177
178
|
#
|
178
179
|
# @overload create_autoscaling_policy(request, options = nil)
|
179
180
|
# Pass arguments to `create_autoscaling_policy` via a request object, either of type
|
180
|
-
# {Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest} or an equivalent Hash.
|
181
|
+
# {::Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest} or an equivalent Hash.
|
181
182
|
#
|
182
|
-
# @param request [Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest, Hash]
|
183
|
+
# @param request [::Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest, ::Hash]
|
183
184
|
# A request object representing the call parameters. Required. To specify no
|
184
185
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
185
|
-
# @param options [Gapic::CallOptions, Hash]
|
186
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
186
187
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
187
188
|
#
|
188
189
|
# @overload create_autoscaling_policy(parent: nil, policy: nil)
|
@@ -190,7 +191,7 @@ module Google
|
|
190
191
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
191
192
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
192
193
|
#
|
193
|
-
# @param parent [String]
|
194
|
+
# @param parent [::String]
|
194
195
|
# Required. The "resource name" of the region or location, as described
|
195
196
|
# in https://cloud.google.com/apis/design/resource_names.
|
196
197
|
#
|
@@ -201,30 +202,30 @@ module Google
|
|
201
202
|
# * For `projects.locations.autoscalingPolicies.create`, the resource name
|
202
203
|
# has the following format:
|
203
204
|
# `projects/{project_id}/locations/{location}`
|
204
|
-
# @param policy [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy, Hash]
|
205
|
+
# @param policy [::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy, ::Hash]
|
205
206
|
# Required. The autoscaling policy to create.
|
206
207
|
#
|
207
208
|
# @yield [response, operation] Access the result along with the RPC operation
|
208
|
-
# @yieldparam response [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
209
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
209
|
+
# @yieldparam response [::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
210
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
210
211
|
#
|
211
|
-
# @return [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
212
|
+
# @return [::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
212
213
|
#
|
213
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
214
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
214
215
|
#
|
215
216
|
def create_autoscaling_policy request, options = nil
|
216
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
217
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
217
218
|
|
218
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest
|
219
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::CreateAutoscalingPolicyRequest
|
219
220
|
|
220
221
|
# Converts hash and nil to an options object
|
221
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
222
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
222
223
|
|
223
224
|
# Customize the options with defaults
|
224
225
|
metadata = @config.rpcs.create_autoscaling_policy.metadata.to_h
|
225
226
|
|
226
227
|
# Set x-goog-api-client and x-goog-user-project headers
|
227
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
228
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
228
229
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
229
230
|
gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
|
230
231
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -245,8 +246,8 @@ module Google
|
|
245
246
|
yield response, operation if block_given?
|
246
247
|
return response
|
247
248
|
end
|
248
|
-
rescue GRPC::BadStatus => e
|
249
|
-
raise Google::Cloud::Error.from_error(e)
|
249
|
+
rescue ::GRPC::BadStatus => e
|
250
|
+
raise ::Google::Cloud::Error.from_error(e)
|
250
251
|
end
|
251
252
|
|
252
253
|
##
|
@@ -257,12 +258,12 @@ module Google
|
|
257
258
|
#
|
258
259
|
# @overload update_autoscaling_policy(request, options = nil)
|
259
260
|
# Pass arguments to `update_autoscaling_policy` via a request object, either of type
|
260
|
-
# {Google::Cloud::Dataproc::V1beta2::UpdateAutoscalingPolicyRequest} or an equivalent Hash.
|
261
|
+
# {::Google::Cloud::Dataproc::V1beta2::UpdateAutoscalingPolicyRequest} or an equivalent Hash.
|
261
262
|
#
|
262
|
-
# @param request [Google::Cloud::Dataproc::V1beta2::UpdateAutoscalingPolicyRequest, Hash]
|
263
|
+
# @param request [::Google::Cloud::Dataproc::V1beta2::UpdateAutoscalingPolicyRequest, ::Hash]
|
263
264
|
# A request object representing the call parameters. Required. To specify no
|
264
265
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
265
|
-
# @param options [Gapic::CallOptions, Hash]
|
266
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
266
267
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
267
268
|
#
|
268
269
|
# @overload update_autoscaling_policy(policy: nil)
|
@@ -270,30 +271,30 @@ module Google
|
|
270
271
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
271
272
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
272
273
|
#
|
273
|
-
# @param policy [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy, Hash]
|
274
|
+
# @param policy [::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy, ::Hash]
|
274
275
|
# Required. The updated autoscaling policy.
|
275
276
|
#
|
276
277
|
# @yield [response, operation] Access the result along with the RPC operation
|
277
|
-
# @yieldparam response [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
278
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
278
|
+
# @yieldparam response [::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
279
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
279
280
|
#
|
280
|
-
# @return [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
281
|
+
# @return [::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
281
282
|
#
|
282
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
283
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
283
284
|
#
|
284
285
|
def update_autoscaling_policy request, options = nil
|
285
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
286
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
286
287
|
|
287
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::UpdateAutoscalingPolicyRequest
|
288
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::UpdateAutoscalingPolicyRequest
|
288
289
|
|
289
290
|
# Converts hash and nil to an options object
|
290
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
291
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
291
292
|
|
292
293
|
# Customize the options with defaults
|
293
294
|
metadata = @config.rpcs.update_autoscaling_policy.metadata.to_h
|
294
295
|
|
295
296
|
# Set x-goog-api-client and x-goog-user-project headers
|
296
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
297
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
297
298
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
298
299
|
gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
|
299
300
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -314,8 +315,8 @@ module Google
|
|
314
315
|
yield response, operation if block_given?
|
315
316
|
return response
|
316
317
|
end
|
317
|
-
rescue GRPC::BadStatus => e
|
318
|
-
raise Google::Cloud::Error.from_error(e)
|
318
|
+
rescue ::GRPC::BadStatus => e
|
319
|
+
raise ::Google::Cloud::Error.from_error(e)
|
319
320
|
end
|
320
321
|
|
321
322
|
##
|
@@ -323,12 +324,12 @@ module Google
|
|
323
324
|
#
|
324
325
|
# @overload get_autoscaling_policy(request, options = nil)
|
325
326
|
# Pass arguments to `get_autoscaling_policy` via a request object, either of type
|
326
|
-
# {Google::Cloud::Dataproc::V1beta2::GetAutoscalingPolicyRequest} or an equivalent Hash.
|
327
|
+
# {::Google::Cloud::Dataproc::V1beta2::GetAutoscalingPolicyRequest} or an equivalent Hash.
|
327
328
|
#
|
328
|
-
# @param request [Google::Cloud::Dataproc::V1beta2::GetAutoscalingPolicyRequest, Hash]
|
329
|
+
# @param request [::Google::Cloud::Dataproc::V1beta2::GetAutoscalingPolicyRequest, ::Hash]
|
329
330
|
# A request object representing the call parameters. Required. To specify no
|
330
331
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
331
|
-
# @param options [Gapic::CallOptions, Hash]
|
332
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
332
333
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
333
334
|
#
|
334
335
|
# @overload get_autoscaling_policy(name: nil)
|
@@ -336,7 +337,7 @@ module Google
|
|
336
337
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
337
338
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
338
339
|
#
|
339
|
-
# @param name [String]
|
340
|
+
# @param name [::String]
|
340
341
|
# Required. The "resource name" of the autoscaling policy, as described
|
341
342
|
# in https://cloud.google.com/apis/design/resource_names.
|
342
343
|
#
|
@@ -349,26 +350,26 @@ module Google
|
|
349
350
|
# `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
|
350
351
|
#
|
351
352
|
# @yield [response, operation] Access the result along with the RPC operation
|
352
|
-
# @yieldparam response [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
353
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
353
|
+
# @yieldparam response [::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
354
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
354
355
|
#
|
355
|
-
# @return [Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
356
|
+
# @return [::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy]
|
356
357
|
#
|
357
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
358
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
358
359
|
#
|
359
360
|
def get_autoscaling_policy request, options = nil
|
360
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
361
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
361
362
|
|
362
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::GetAutoscalingPolicyRequest
|
363
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::GetAutoscalingPolicyRequest
|
363
364
|
|
364
365
|
# Converts hash and nil to an options object
|
365
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
366
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
366
367
|
|
367
368
|
# Customize the options with defaults
|
368
369
|
metadata = @config.rpcs.get_autoscaling_policy.metadata.to_h
|
369
370
|
|
370
371
|
# Set x-goog-api-client and x-goog-user-project headers
|
371
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
372
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
372
373
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
373
374
|
gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
|
374
375
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -389,8 +390,8 @@ module Google
|
|
389
390
|
yield response, operation if block_given?
|
390
391
|
return response
|
391
392
|
end
|
392
|
-
rescue GRPC::BadStatus => e
|
393
|
-
raise Google::Cloud::Error.from_error(e)
|
393
|
+
rescue ::GRPC::BadStatus => e
|
394
|
+
raise ::Google::Cloud::Error.from_error(e)
|
394
395
|
end
|
395
396
|
|
396
397
|
##
|
@@ -398,12 +399,12 @@ module Google
|
|
398
399
|
#
|
399
400
|
# @overload list_autoscaling_policies(request, options = nil)
|
400
401
|
# Pass arguments to `list_autoscaling_policies` via a request object, either of type
|
401
|
-
# {Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesRequest} or an equivalent Hash.
|
402
|
+
# {::Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesRequest} or an equivalent Hash.
|
402
403
|
#
|
403
|
-
# @param request [Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesRequest, Hash]
|
404
|
+
# @param request [::Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesRequest, ::Hash]
|
404
405
|
# A request object representing the call parameters. Required. To specify no
|
405
406
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
406
|
-
# @param options [Gapic::CallOptions, Hash]
|
407
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
407
408
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
408
409
|
#
|
409
410
|
# @overload list_autoscaling_policies(parent: nil, page_size: nil, page_token: nil)
|
@@ -411,7 +412,7 @@ module Google
|
|
411
412
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
412
413
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
413
414
|
#
|
414
|
-
# @param parent [String]
|
415
|
+
# @param parent [::String]
|
415
416
|
# Required. The "resource name" of the region or location, as described
|
416
417
|
# in https://cloud.google.com/apis/design/resource_names.
|
417
418
|
#
|
@@ -422,34 +423,34 @@ module Google
|
|
422
423
|
# * For `projects.locations.autoscalingPolicies.list`, the resource name
|
423
424
|
# of the location has the following format:
|
424
425
|
# `projects/{project_id}/locations/{location}`
|
425
|
-
# @param page_size [Integer]
|
426
|
+
# @param page_size [::Integer]
|
426
427
|
# Optional. The maximum number of results to return in each response.
|
427
428
|
# Must be less than or equal to 1000. Defaults to 100.
|
428
|
-
# @param page_token [String]
|
429
|
+
# @param page_token [::String]
|
429
430
|
# Optional. The page token, returned by a previous call, to request the
|
430
431
|
# next page of results.
|
431
432
|
#
|
432
433
|
# @yield [response, operation] Access the result along with the RPC operation
|
433
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
434
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
434
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy>]
|
435
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
435
436
|
#
|
436
|
-
# @return [Gapic::PagedEnumerable
|
437
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicy>]
|
437
438
|
#
|
438
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
439
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
439
440
|
#
|
440
441
|
def list_autoscaling_policies request, options = nil
|
441
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
442
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
442
443
|
|
443
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesRequest
|
444
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::ListAutoscalingPoliciesRequest
|
444
445
|
|
445
446
|
# Converts hash and nil to an options object
|
446
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
447
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
447
448
|
|
448
449
|
# Customize the options with defaults
|
449
450
|
metadata = @config.rpcs.list_autoscaling_policies.metadata.to_h
|
450
451
|
|
451
452
|
# Set x-goog-api-client and x-goog-user-project headers
|
452
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
453
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
453
454
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
454
455
|
gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
|
455
456
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -467,12 +468,12 @@ module Google
|
|
467
468
|
retry_policy: @config.retry_policy
|
468
469
|
|
469
470
|
@autoscaling_policy_service_stub.call_rpc :list_autoscaling_policies, request, options: options do |response, operation|
|
470
|
-
response = Gapic::PagedEnumerable.new @autoscaling_policy_service_stub, :list_autoscaling_policies, request, response, operation, options
|
471
|
+
response = ::Gapic::PagedEnumerable.new @autoscaling_policy_service_stub, :list_autoscaling_policies, request, response, operation, options
|
471
472
|
yield response, operation if block_given?
|
472
473
|
return response
|
473
474
|
end
|
474
|
-
rescue GRPC::BadStatus => e
|
475
|
-
raise Google::Cloud::Error.from_error(e)
|
475
|
+
rescue ::GRPC::BadStatus => e
|
476
|
+
raise ::Google::Cloud::Error.from_error(e)
|
476
477
|
end
|
477
478
|
|
478
479
|
##
|
@@ -481,12 +482,12 @@ module Google
|
|
481
482
|
#
|
482
483
|
# @overload delete_autoscaling_policy(request, options = nil)
|
483
484
|
# Pass arguments to `delete_autoscaling_policy` via a request object, either of type
|
484
|
-
# {Google::Cloud::Dataproc::V1beta2::DeleteAutoscalingPolicyRequest} or an equivalent Hash.
|
485
|
+
# {::Google::Cloud::Dataproc::V1beta2::DeleteAutoscalingPolicyRequest} or an equivalent Hash.
|
485
486
|
#
|
486
|
-
# @param request [Google::Cloud::Dataproc::V1beta2::DeleteAutoscalingPolicyRequest, Hash]
|
487
|
+
# @param request [::Google::Cloud::Dataproc::V1beta2::DeleteAutoscalingPolicyRequest, ::Hash]
|
487
488
|
# A request object representing the call parameters. Required. To specify no
|
488
489
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
489
|
-
# @param options [Gapic::CallOptions, Hash]
|
490
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
490
491
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
491
492
|
#
|
492
493
|
# @overload delete_autoscaling_policy(name: nil)
|
@@ -494,7 +495,7 @@ module Google
|
|
494
495
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
495
496
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
496
497
|
#
|
497
|
-
# @param name [String]
|
498
|
+
# @param name [::String]
|
498
499
|
# Required. The "resource name" of the autoscaling policy, as described
|
499
500
|
# in https://cloud.google.com/apis/design/resource_names.
|
500
501
|
#
|
@@ -507,26 +508,26 @@ module Google
|
|
507
508
|
# `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`
|
508
509
|
#
|
509
510
|
# @yield [response, operation] Access the result along with the RPC operation
|
510
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
511
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
511
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
512
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
512
513
|
#
|
513
|
-
# @return [Google::Protobuf::Empty]
|
514
|
+
# @return [::Google::Protobuf::Empty]
|
514
515
|
#
|
515
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
516
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
516
517
|
#
|
517
518
|
def delete_autoscaling_policy request, options = nil
|
518
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
519
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
519
520
|
|
520
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::DeleteAutoscalingPolicyRequest
|
521
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::DeleteAutoscalingPolicyRequest
|
521
522
|
|
522
523
|
# Converts hash and nil to an options object
|
523
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
524
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
524
525
|
|
525
526
|
# Customize the options with defaults
|
526
527
|
metadata = @config.rpcs.delete_autoscaling_policy.metadata.to_h
|
527
528
|
|
528
529
|
# Set x-goog-api-client and x-goog-user-project headers
|
529
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
530
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
530
531
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
531
532
|
gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
|
532
533
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -547,8 +548,8 @@ module Google
|
|
547
548
|
yield response, operation if block_given?
|
548
549
|
return response
|
549
550
|
end
|
550
|
-
rescue GRPC::BadStatus => e
|
551
|
-
raise Google::Cloud::Error.from_error(e)
|
551
|
+
rescue ::GRPC::BadStatus => e
|
552
|
+
raise ::Google::Cloud::Error.from_error(e)
|
552
553
|
end
|
553
554
|
|
554
555
|
##
|
@@ -558,7 +559,7 @@ module Google
|
|
558
559
|
# providing control over timeouts, retry behavior, logging, transport
|
559
560
|
# parameters, and other low-level controls. Certain parameters can also be
|
560
561
|
# applied individually to specific RPCs. See
|
561
|
-
# {Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client::Configuration::Rpcs}
|
562
|
+
# {::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client::Configuration::Rpcs}
|
562
563
|
# for a list of RPCs that can be configured independently.
|
563
564
|
#
|
564
565
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -569,22 +570,22 @@ module Google
|
|
569
570
|
# To modify the global config, setting the timeout for create_autoscaling_policy
|
570
571
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
571
572
|
#
|
572
|
-
# Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.configure do |config|
|
573
|
-
# config.timeout =
|
574
|
-
# config.rpcs.create_autoscaling_policy.timeout =
|
573
|
+
# ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.configure do |config|
|
574
|
+
# config.timeout = 10.0
|
575
|
+
# config.rpcs.create_autoscaling_policy.timeout = 20.0
|
575
576
|
# end
|
576
577
|
#
|
577
578
|
# To apply the above configuration only to a new client:
|
578
579
|
#
|
579
|
-
# client = Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new do |config|
|
580
|
-
# config.timeout =
|
581
|
-
# config.rpcs.create_autoscaling_policy.timeout =
|
580
|
+
# client = ::Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyService::Client.new do |config|
|
581
|
+
# config.timeout = 10.0
|
582
|
+
# config.rpcs.create_autoscaling_policy.timeout = 20.0
|
582
583
|
# end
|
583
584
|
#
|
584
585
|
# @!attribute [rw] endpoint
|
585
586
|
# The hostname or hostname:port of the service endpoint.
|
586
587
|
# Defaults to `"dataproc.googleapis.com"`.
|
587
|
-
# @return [String]
|
588
|
+
# @return [::String]
|
588
589
|
# @!attribute [rw] credentials
|
589
590
|
# Credentials to send with calls. You may provide any of the following types:
|
590
591
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -596,29 +597,29 @@ module Google
|
|
596
597
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
597
598
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
598
599
|
# * (`nil`) indicating no credentials
|
599
|
-
# @return [Object]
|
600
|
+
# @return [::Object]
|
600
601
|
# @!attribute [rw] scope
|
601
602
|
# The OAuth scopes
|
602
|
-
# @return [Array
|
603
|
+
# @return [::Array<::String>]
|
603
604
|
# @!attribute [rw] lib_name
|
604
605
|
# The library name as recorded in instrumentation and logging
|
605
|
-
# @return [String]
|
606
|
+
# @return [::String]
|
606
607
|
# @!attribute [rw] lib_version
|
607
608
|
# The library version as recorded in instrumentation and logging
|
608
|
-
# @return [String]
|
609
|
+
# @return [::String]
|
609
610
|
# @!attribute [rw] channel_args
|
610
611
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
611
612
|
# `GRPC::Core::Channel` object is provided as the credential.
|
612
|
-
# @return [Hash]
|
613
|
+
# @return [::Hash]
|
613
614
|
# @!attribute [rw] interceptors
|
614
615
|
# An array of interceptors that are run before calls are executed.
|
615
|
-
# @return [Array
|
616
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
616
617
|
# @!attribute [rw] timeout
|
617
|
-
# The call timeout in
|
618
|
-
# @return [Numeric]
|
618
|
+
# The call timeout in seconds.
|
619
|
+
# @return [::Numeric]
|
619
620
|
# @!attribute [rw] metadata
|
620
621
|
# Additional gRPC headers to be sent with the call.
|
621
|
-
# @return [Hash{Symbol
|
622
|
+
# @return [::Hash{::Symbol=>::String}]
|
622
623
|
# @!attribute [rw] retry_policy
|
623
624
|
# The retry policy. The value is a hash with the following keys:
|
624
625
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -626,25 +627,29 @@ module Google
|
|
626
627
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
627
628
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
628
629
|
# trigger a retry.
|
629
|
-
# @return [Hash]
|
630
|
+
# @return [::Hash]
|
631
|
+
# @!attribute [rw] quota_project
|
632
|
+
# A separate project against which to charge quota.
|
633
|
+
# @return [::String]
|
630
634
|
#
|
631
635
|
class Configuration
|
632
|
-
extend Gapic::Config
|
636
|
+
extend ::Gapic::Config
|
633
637
|
|
634
|
-
config_attr :endpoint,
|
635
|
-
config_attr :credentials,
|
638
|
+
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
639
|
+
config_attr :credentials, nil do |value|
|
636
640
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
637
641
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
638
642
|
allowed.any? { |klass| klass === value }
|
639
643
|
end
|
640
|
-
config_attr :scope,
|
641
|
-
config_attr :lib_name,
|
642
|
-
config_attr :lib_version,
|
643
|
-
config_attr(:channel_args,
|
644
|
-
config_attr :interceptors,
|
645
|
-
config_attr :timeout,
|
646
|
-
config_attr :metadata,
|
647
|
-
config_attr :retry_policy,
|
644
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
645
|
+
config_attr :lib_name, nil, ::String, nil
|
646
|
+
config_attr :lib_version, nil, ::String, nil
|
647
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
648
|
+
config_attr :interceptors, nil, ::Array, nil
|
649
|
+
config_attr :timeout, nil, ::Numeric, nil
|
650
|
+
config_attr :metadata, nil, ::Hash, nil
|
651
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
652
|
+
config_attr :quota_project, nil, ::String, nil
|
648
653
|
|
649
654
|
# @private
|
650
655
|
def initialize parent_config = nil
|
@@ -660,7 +665,7 @@ module Google
|
|
660
665
|
def rpcs
|
661
666
|
@rpcs ||= begin
|
662
667
|
parent_rpcs = nil
|
663
|
-
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)
|
664
669
|
Rpcs.new parent_rpcs
|
665
670
|
end
|
666
671
|
end
|
@@ -685,42 +690,42 @@ module Google
|
|
685
690
|
class Rpcs
|
686
691
|
##
|
687
692
|
# RPC-specific configuration for `create_autoscaling_policy`
|
688
|
-
# @return [Gapic::Config::Method]
|
693
|
+
# @return [::Gapic::Config::Method]
|
689
694
|
#
|
690
695
|
attr_reader :create_autoscaling_policy
|
691
696
|
##
|
692
697
|
# RPC-specific configuration for `update_autoscaling_policy`
|
693
|
-
# @return [Gapic::Config::Method]
|
698
|
+
# @return [::Gapic::Config::Method]
|
694
699
|
#
|
695
700
|
attr_reader :update_autoscaling_policy
|
696
701
|
##
|
697
702
|
# RPC-specific configuration for `get_autoscaling_policy`
|
698
|
-
# @return [Gapic::Config::Method]
|
703
|
+
# @return [::Gapic::Config::Method]
|
699
704
|
#
|
700
705
|
attr_reader :get_autoscaling_policy
|
701
706
|
##
|
702
707
|
# RPC-specific configuration for `list_autoscaling_policies`
|
703
|
-
# @return [Gapic::Config::Method]
|
708
|
+
# @return [::Gapic::Config::Method]
|
704
709
|
#
|
705
710
|
attr_reader :list_autoscaling_policies
|
706
711
|
##
|
707
712
|
# RPC-specific configuration for `delete_autoscaling_policy`
|
708
|
-
# @return [Gapic::Config::Method]
|
713
|
+
# @return [::Gapic::Config::Method]
|
709
714
|
#
|
710
715
|
attr_reader :delete_autoscaling_policy
|
711
716
|
|
712
717
|
# @private
|
713
718
|
def initialize parent_rpcs = nil
|
714
719
|
create_autoscaling_policy_config = parent_rpcs&.create_autoscaling_policy if parent_rpcs&.respond_to? :create_autoscaling_policy
|
715
|
-
@create_autoscaling_policy = Gapic::Config::Method.new create_autoscaling_policy_config
|
720
|
+
@create_autoscaling_policy = ::Gapic::Config::Method.new create_autoscaling_policy_config
|
716
721
|
update_autoscaling_policy_config = parent_rpcs&.update_autoscaling_policy if parent_rpcs&.respond_to? :update_autoscaling_policy
|
717
|
-
@update_autoscaling_policy = Gapic::Config::Method.new update_autoscaling_policy_config
|
722
|
+
@update_autoscaling_policy = ::Gapic::Config::Method.new update_autoscaling_policy_config
|
718
723
|
get_autoscaling_policy_config = parent_rpcs&.get_autoscaling_policy if parent_rpcs&.respond_to? :get_autoscaling_policy
|
719
|
-
@get_autoscaling_policy = Gapic::Config::Method.new get_autoscaling_policy_config
|
724
|
+
@get_autoscaling_policy = ::Gapic::Config::Method.new get_autoscaling_policy_config
|
720
725
|
list_autoscaling_policies_config = parent_rpcs&.list_autoscaling_policies if parent_rpcs&.respond_to? :list_autoscaling_policies
|
721
|
-
@list_autoscaling_policies = Gapic::Config::Method.new list_autoscaling_policies_config
|
726
|
+
@list_autoscaling_policies = ::Gapic::Config::Method.new list_autoscaling_policies_config
|
722
727
|
delete_autoscaling_policy_config = parent_rpcs&.delete_autoscaling_policy if parent_rpcs&.respond_to? :delete_autoscaling_policy
|
723
|
-
@delete_autoscaling_policy = Gapic::Config::Method.new delete_autoscaling_policy_config
|
728
|
+
@delete_autoscaling_policy = ::Gapic::Config::Method.new delete_autoscaling_policy_config
|
724
729
|
|
725
730
|
yield self if block_given?
|
726
731
|
end
|