google-cloud-compute-v1 2.4.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +421 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +182 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +420 -3
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +292 -3
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +289 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +114 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +49 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +177 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +327 -6
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +845 -4
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +206 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +236 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +83 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +257 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +178 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +229 -4
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +210 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +282 -4
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +304 -3
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +122 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +445 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +184 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +308 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +66 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +378 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +185 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +497 -5
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +246 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +98 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +164 -3
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +261 -4
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +203 -6
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +480 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +167 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +129 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +117 -4
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +197 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +180 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +188 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +284 -3
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +145 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +11 -5
@@ -40,6 +40,44 @@ module Google
|
|
40
40
|
raise_faraday_errors: false
|
41
41
|
end
|
42
42
|
|
43
|
+
##
|
44
|
+
# Baseline implementation for the add_rule REST call
|
45
|
+
#
|
46
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddRuleRegionSecurityPolicyRequest]
|
47
|
+
# A request object representing the call parameters. Required.
|
48
|
+
# @param options [::Gapic::CallOptions]
|
49
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
|
+
#
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
|
+
#
|
55
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
56
|
+
# A result object deserialized from the server's reply
|
57
|
+
def add_rule request_pb, options = nil
|
58
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
59
|
+
|
60
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_add_rule_request request_pb
|
61
|
+
query_string_params = if query_string_params.any?
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
|
+
else
|
64
|
+
{}
|
65
|
+
end
|
66
|
+
|
67
|
+
response = @client_stub.make_http_request(
|
68
|
+
verb,
|
69
|
+
uri: uri,
|
70
|
+
body: body || "",
|
71
|
+
params: query_string_params,
|
72
|
+
options: options
|
73
|
+
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
75
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
76
|
+
|
77
|
+
yield result, operation if block_given?
|
78
|
+
result
|
79
|
+
end
|
80
|
+
|
43
81
|
##
|
44
82
|
# Baseline implementation for the delete REST call
|
45
83
|
#
|
@@ -116,6 +154,44 @@ module Google
|
|
116
154
|
result
|
117
155
|
end
|
118
156
|
|
157
|
+
##
|
158
|
+
# Baseline implementation for the get_rule REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRuleRegionSecurityPolicyRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::SecurityPolicyRule]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Cloud::Compute::V1::SecurityPolicyRule]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def get_rule request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_rule_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Cloud::Compute::V1::SecurityPolicyRule.decode_json response.body, ignore_unknown_fields: true
|
190
|
+
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
194
|
+
|
119
195
|
##
|
120
196
|
# Baseline implementation for the insert REST call
|
121
197
|
#
|
@@ -230,6 +306,106 @@ module Google
|
|
230
306
|
result
|
231
307
|
end
|
232
308
|
|
309
|
+
##
|
310
|
+
# Baseline implementation for the patch_rule REST call
|
311
|
+
#
|
312
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchRuleRegionSecurityPolicyRequest]
|
313
|
+
# A request object representing the call parameters. Required.
|
314
|
+
# @param options [::Gapic::CallOptions]
|
315
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
316
|
+
#
|
317
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
318
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
319
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
320
|
+
#
|
321
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
322
|
+
# A result object deserialized from the server's reply
|
323
|
+
def patch_rule request_pb, options = nil
|
324
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
325
|
+
|
326
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_patch_rule_request request_pb
|
327
|
+
query_string_params = if query_string_params.any?
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
|
+
else
|
330
|
+
{}
|
331
|
+
end
|
332
|
+
|
333
|
+
response = @client_stub.make_http_request(
|
334
|
+
verb,
|
335
|
+
uri: uri,
|
336
|
+
body: body || "",
|
337
|
+
params: query_string_params,
|
338
|
+
options: options
|
339
|
+
)
|
340
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
341
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
342
|
+
|
343
|
+
yield result, operation if block_given?
|
344
|
+
result
|
345
|
+
end
|
346
|
+
|
347
|
+
##
|
348
|
+
# Baseline implementation for the remove_rule REST call
|
349
|
+
#
|
350
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveRuleRegionSecurityPolicyRequest]
|
351
|
+
# A request object representing the call parameters. Required.
|
352
|
+
# @param options [::Gapic::CallOptions]
|
353
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
354
|
+
#
|
355
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
356
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
357
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
358
|
+
#
|
359
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
360
|
+
# A result object deserialized from the server's reply
|
361
|
+
def remove_rule request_pb, options = nil
|
362
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
363
|
+
|
364
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_remove_rule_request request_pb
|
365
|
+
query_string_params = if query_string_params.any?
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
|
+
else
|
368
|
+
{}
|
369
|
+
end
|
370
|
+
|
371
|
+
response = @client_stub.make_http_request(
|
372
|
+
verb,
|
373
|
+
uri: uri,
|
374
|
+
body: body || "",
|
375
|
+
params: query_string_params,
|
376
|
+
options: options
|
377
|
+
)
|
378
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
379
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
380
|
+
|
381
|
+
yield result, operation if block_given?
|
382
|
+
result
|
383
|
+
end
|
384
|
+
|
385
|
+
##
|
386
|
+
# @private
|
387
|
+
#
|
388
|
+
# GRPC transcoding helper method for the add_rule REST call
|
389
|
+
#
|
390
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AddRuleRegionSecurityPolicyRequest]
|
391
|
+
# A request object representing the call parameters. Required.
|
392
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
393
|
+
# Uri, Body, Query string parameters
|
394
|
+
def self.transcode_add_rule_request request_pb
|
395
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
396
|
+
.with_bindings(
|
397
|
+
uri_method: :post,
|
398
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{security_policy}/addRule",
|
399
|
+
body: "security_policy_rule_resource",
|
400
|
+
matches: [
|
401
|
+
["project", %r{^[^/]+/?$}, false],
|
402
|
+
["region", %r{^[^/]+/?$}, false],
|
403
|
+
["security_policy", %r{^[^/]+/?$}, false]
|
404
|
+
]
|
405
|
+
)
|
406
|
+
transcoder.transcode request_pb
|
407
|
+
end
|
408
|
+
|
233
409
|
##
|
234
410
|
# @private
|
235
411
|
#
|
@@ -276,6 +452,29 @@ module Google
|
|
276
452
|
transcoder.transcode request_pb
|
277
453
|
end
|
278
454
|
|
455
|
+
##
|
456
|
+
# @private
|
457
|
+
#
|
458
|
+
# GRPC transcoding helper method for the get_rule REST call
|
459
|
+
#
|
460
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetRuleRegionSecurityPolicyRequest]
|
461
|
+
# A request object representing the call parameters. Required.
|
462
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
463
|
+
# Uri, Body, Query string parameters
|
464
|
+
def self.transcode_get_rule_request request_pb
|
465
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
466
|
+
.with_bindings(
|
467
|
+
uri_method: :get,
|
468
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{security_policy}/getRule",
|
469
|
+
matches: [
|
470
|
+
["project", %r{^[^/]+/?$}, false],
|
471
|
+
["region", %r{^[^/]+/?$}, false],
|
472
|
+
["security_policy", %r{^[^/]+/?$}, false]
|
473
|
+
]
|
474
|
+
)
|
475
|
+
transcoder.transcode request_pb
|
476
|
+
end
|
477
|
+
|
279
478
|
##
|
280
479
|
# @private
|
281
480
|
#
|
@@ -344,6 +543,53 @@ module Google
|
|
344
543
|
)
|
345
544
|
transcoder.transcode request_pb
|
346
545
|
end
|
546
|
+
|
547
|
+
##
|
548
|
+
# @private
|
549
|
+
#
|
550
|
+
# GRPC transcoding helper method for the patch_rule REST call
|
551
|
+
#
|
552
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PatchRuleRegionSecurityPolicyRequest]
|
553
|
+
# A request object representing the call parameters. Required.
|
554
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
555
|
+
# Uri, Body, Query string parameters
|
556
|
+
def self.transcode_patch_rule_request request_pb
|
557
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
558
|
+
.with_bindings(
|
559
|
+
uri_method: :post,
|
560
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{security_policy}/patchRule",
|
561
|
+
body: "security_policy_rule_resource",
|
562
|
+
matches: [
|
563
|
+
["project", %r{^[^/]+/?$}, false],
|
564
|
+
["region", %r{^[^/]+/?$}, false],
|
565
|
+
["security_policy", %r{^[^/]+/?$}, false]
|
566
|
+
]
|
567
|
+
)
|
568
|
+
transcoder.transcode request_pb
|
569
|
+
end
|
570
|
+
|
571
|
+
##
|
572
|
+
# @private
|
573
|
+
#
|
574
|
+
# GRPC transcoding helper method for the remove_rule REST call
|
575
|
+
#
|
576
|
+
# @param request_pb [::Google::Cloud::Compute::V1::RemoveRuleRegionSecurityPolicyRequest]
|
577
|
+
# A request object representing the call parameters. Required.
|
578
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
579
|
+
# Uri, Body, Query string parameters
|
580
|
+
def self.transcode_remove_rule_request request_pb
|
581
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
582
|
+
.with_bindings(
|
583
|
+
uri_method: :post,
|
584
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{security_policy}/removeRule",
|
585
|
+
matches: [
|
586
|
+
["project", %r{^[^/]+/?$}, false],
|
587
|
+
["region", %r{^[^/]+/?$}, false],
|
588
|
+
["security_policy", %r{^[^/]+/?$}, false]
|
589
|
+
]
|
590
|
+
)
|
591
|
+
transcoder.transcode request_pb
|
592
|
+
end
|
347
593
|
end
|
348
594
|
end
|
349
595
|
end
|
@@ -194,6 +194,22 @@ module Google
|
|
194
194
|
# @return [::Gapic::GenericLRO::Operation]
|
195
195
|
#
|
196
196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
197
|
+
#
|
198
|
+
# @example Basic example
|
199
|
+
# require "google/cloud/compute/v1"
|
200
|
+
#
|
201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
202
|
+
# client = Google::Cloud::Compute::V1::RegionSslCertificates::Rest::Client.new
|
203
|
+
#
|
204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
205
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionSslCertificateRequest.new
|
206
|
+
#
|
207
|
+
# # Call the delete method.
|
208
|
+
# result = client.delete request
|
209
|
+
#
|
210
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
211
|
+
# p result
|
212
|
+
#
|
197
213
|
def delete request, options = nil
|
198
214
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
199
215
|
|
@@ -269,6 +285,22 @@ module Google
|
|
269
285
|
# @return [::Google::Cloud::Compute::V1::SslCertificate]
|
270
286
|
#
|
271
287
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
288
|
+
#
|
289
|
+
# @example Basic example
|
290
|
+
# require "google/cloud/compute/v1"
|
291
|
+
#
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
293
|
+
# client = Google::Cloud::Compute::V1::RegionSslCertificates::Rest::Client.new
|
294
|
+
#
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
296
|
+
# request = Google::Cloud::Compute::V1::GetRegionSslCertificateRequest.new
|
297
|
+
#
|
298
|
+
# # Call the get method.
|
299
|
+
# result = client.get request
|
300
|
+
#
|
301
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslCertificate.
|
302
|
+
# p result
|
303
|
+
#
|
272
304
|
def get request, options = nil
|
273
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
274
306
|
|
@@ -337,6 +369,22 @@ module Google
|
|
337
369
|
# @return [::Gapic::GenericLRO::Operation]
|
338
370
|
#
|
339
371
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
372
|
+
#
|
373
|
+
# @example Basic example
|
374
|
+
# require "google/cloud/compute/v1"
|
375
|
+
#
|
376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
377
|
+
# client = Google::Cloud::Compute::V1::RegionSslCertificates::Rest::Client.new
|
378
|
+
#
|
379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
380
|
+
# request = Google::Cloud::Compute::V1::InsertRegionSslCertificateRequest.new
|
381
|
+
#
|
382
|
+
# # Call the insert method.
|
383
|
+
# result = client.insert request
|
384
|
+
#
|
385
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
386
|
+
# p result
|
387
|
+
#
|
340
388
|
def insert request, options = nil
|
341
389
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
342
390
|
|
@@ -400,7 +448,7 @@ module Google
|
|
400
448
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
401
449
|
#
|
402
450
|
# @param filter [::String]
|
403
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
451
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
404
452
|
# @param max_results [::Integer]
|
405
453
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
406
454
|
# @param order_by [::String]
|
@@ -420,6 +468,22 @@ module Google
|
|
420
468
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslCertificate>]
|
421
469
|
#
|
422
470
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
471
|
+
#
|
472
|
+
# @example Basic example
|
473
|
+
# require "google/cloud/compute/v1"
|
474
|
+
#
|
475
|
+
# # Create a client object. The client can be reused for multiple calls.
|
476
|
+
# client = Google::Cloud::Compute::V1::RegionSslCertificates::Rest::Client.new
|
477
|
+
#
|
478
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
479
|
+
# request = Google::Cloud::Compute::V1::ListRegionSslCertificatesRequest.new
|
480
|
+
#
|
481
|
+
# # Call the list method.
|
482
|
+
# result = client.list request
|
483
|
+
#
|
484
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslCertificateList.
|
485
|
+
# p result
|
486
|
+
#
|
423
487
|
def list request, options = nil
|
424
488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
425
489
|
|
@@ -201,6 +201,22 @@ module Google
|
|
201
201
|
# @return [::Gapic::GenericLRO::Operation]
|
202
202
|
#
|
203
203
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
204
|
+
#
|
205
|
+
# @example Basic example
|
206
|
+
# require "google/cloud/compute/v1"
|
207
|
+
#
|
208
|
+
# # Create a client object. The client can be reused for multiple calls.
|
209
|
+
# client = Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client.new
|
210
|
+
#
|
211
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
212
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionSslPolicyRequest.new
|
213
|
+
#
|
214
|
+
# # Call the delete method.
|
215
|
+
# result = client.delete request
|
216
|
+
#
|
217
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
218
|
+
# p result
|
219
|
+
#
|
204
220
|
def delete request, options = nil
|
205
221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
222
|
|
@@ -276,6 +292,22 @@ module Google
|
|
276
292
|
# @return [::Google::Cloud::Compute::V1::SslPolicy]
|
277
293
|
#
|
278
294
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
295
|
+
#
|
296
|
+
# @example Basic example
|
297
|
+
# require "google/cloud/compute/v1"
|
298
|
+
#
|
299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
300
|
+
# client = Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client.new
|
301
|
+
#
|
302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
303
|
+
# request = Google::Cloud::Compute::V1::GetRegionSslPolicyRequest.new
|
304
|
+
#
|
305
|
+
# # Call the get method.
|
306
|
+
# result = client.get request
|
307
|
+
#
|
308
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslPolicy.
|
309
|
+
# p result
|
310
|
+
#
|
279
311
|
def get request, options = nil
|
280
312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
281
313
|
|
@@ -344,6 +376,22 @@ module Google
|
|
344
376
|
# @return [::Gapic::GenericLRO::Operation]
|
345
377
|
#
|
346
378
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
379
|
+
#
|
380
|
+
# @example Basic example
|
381
|
+
# require "google/cloud/compute/v1"
|
382
|
+
#
|
383
|
+
# # Create a client object. The client can be reused for multiple calls.
|
384
|
+
# client = Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client.new
|
385
|
+
#
|
386
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
387
|
+
# request = Google::Cloud::Compute::V1::InsertRegionSslPolicyRequest.new
|
388
|
+
#
|
389
|
+
# # Call the insert method.
|
390
|
+
# result = client.insert request
|
391
|
+
#
|
392
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
393
|
+
# p result
|
394
|
+
#
|
347
395
|
def insert request, options = nil
|
348
396
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
397
|
|
@@ -407,7 +455,7 @@ module Google
|
|
407
455
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
408
456
|
#
|
409
457
|
# @param filter [::String]
|
410
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
458
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
411
459
|
# @param max_results [::Integer]
|
412
460
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
413
461
|
# @param order_by [::String]
|
@@ -427,6 +475,22 @@ module Google
|
|
427
475
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslPolicy>]
|
428
476
|
#
|
429
477
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
478
|
+
#
|
479
|
+
# @example Basic example
|
480
|
+
# require "google/cloud/compute/v1"
|
481
|
+
#
|
482
|
+
# # Create a client object. The client can be reused for multiple calls.
|
483
|
+
# client = Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client.new
|
484
|
+
#
|
485
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
486
|
+
# request = Google::Cloud::Compute::V1::ListRegionSslPoliciesRequest.new
|
487
|
+
#
|
488
|
+
# # Call the list method.
|
489
|
+
# result = client.list request
|
490
|
+
#
|
491
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesList.
|
492
|
+
# p result
|
493
|
+
#
|
430
494
|
def list request, options = nil
|
431
495
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
432
496
|
|
@@ -482,7 +546,7 @@ module Google
|
|
482
546
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
483
547
|
#
|
484
548
|
# @param filter [::String]
|
485
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
549
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
486
550
|
# @param max_results [::Integer]
|
487
551
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
488
552
|
# @param order_by [::String]
|
@@ -502,6 +566,22 @@ module Google
|
|
502
566
|
# @return [::Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse]
|
503
567
|
#
|
504
568
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
569
|
+
#
|
570
|
+
# @example Basic example
|
571
|
+
# require "google/cloud/compute/v1"
|
572
|
+
#
|
573
|
+
# # Create a client object. The client can be reused for multiple calls.
|
574
|
+
# client = Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client.new
|
575
|
+
#
|
576
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
577
|
+
# request = Google::Cloud::Compute::V1::ListAvailableFeaturesRegionSslPoliciesRequest.new
|
578
|
+
#
|
579
|
+
# # Call the list_available_features method.
|
580
|
+
# result = client.list_available_features request
|
581
|
+
#
|
582
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse.
|
583
|
+
# p result
|
584
|
+
#
|
505
585
|
def list_available_features request, options = nil
|
506
586
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
507
587
|
|
@@ -572,6 +652,22 @@ module Google
|
|
572
652
|
# @return [::Gapic::GenericLRO::Operation]
|
573
653
|
#
|
574
654
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
655
|
+
#
|
656
|
+
# @example Basic example
|
657
|
+
# require "google/cloud/compute/v1"
|
658
|
+
#
|
659
|
+
# # Create a client object. The client can be reused for multiple calls.
|
660
|
+
# client = Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client.new
|
661
|
+
#
|
662
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
663
|
+
# request = Google::Cloud::Compute::V1::PatchRegionSslPolicyRequest.new
|
664
|
+
#
|
665
|
+
# # Call the patch method.
|
666
|
+
# result = client.patch request
|
667
|
+
#
|
668
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
669
|
+
# p result
|
670
|
+
#
|
575
671
|
def patch request, options = nil
|
576
672
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
577
673
|
|