google-cloud-compute-v1 2.2.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +88 -0
  3. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +62 -0
  4. data/lib/google/cloud/compute/v1/compute_pb.rb +47 -1
  5. data/lib/google/cloud/compute/v1/disks/rest/client.rb +346 -0
  6. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +245 -0
  7. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +85 -0
  8. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +61 -0
  9. data/lib/google/cloud/compute/v1/instances/rest/client.rb +3 -1
  10. data/lib/google/cloud/compute/v1/interconnect_remote_locations/credentials.rb +53 -0
  11. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +436 -0
  12. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +167 -0
  13. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest.rb +51 -0
  14. data/lib/google/cloud/compute/v1/interconnect_remote_locations.rb +47 -0
  15. data/lib/google/cloud/compute/v1/projects/rest/client.rb +1 -1
  16. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +346 -0
  17. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +245 -0
  18. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
  19. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +90 -0
  20. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +62 -0
  21. data/lib/google/cloud/compute/v1/rest.rb +1 -0
  22. data/lib/google/cloud/compute/v1/routers/rest/client.rb +3 -1
  23. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +2 -2
  24. data/lib/google/cloud/compute/v1/version.rb +1 -1
  25. data/lib/google/cloud/compute/v1.rb +1 -0
  26. data/proto_docs/google/cloud/compute/v1/compute.rb +1098 -123
  27. metadata +7 -2
@@ -78,6 +78,44 @@ module Google
78
78
  result
79
79
  end
80
80
 
81
+ ##
82
+ # Baseline implementation for the bulk_insert REST call
83
+ #
84
+ # @param request_pb [::Google::Cloud::Compute::V1::BulkInsertRegionDiskRequest]
85
+ # A request object representing the call parameters. Required.
86
+ # @param options [::Gapic::CallOptions]
87
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
88
+ #
89
+ # @yield [result, operation] Access the result along with the TransportOperation object
90
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
91
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
92
+ #
93
+ # @return [::Google::Cloud::Compute::V1::Operation]
94
+ # A result object deserialized from the server's reply
95
+ def bulk_insert request_pb, options = nil
96
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
97
+
98
+ verb, uri, query_string_params, body = ServiceStub.transcode_bulk_insert_request request_pb
99
+ query_string_params = if query_string_params.any?
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
+ else
102
+ {}
103
+ end
104
+
105
+ response = @client_stub.make_http_request(
106
+ verb,
107
+ uri: uri,
108
+ body: body || "",
109
+ params: query_string_params,
110
+ options: options
111
+ )
112
+ operation = ::Gapic::Rest::TransportOperation.new response
113
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
114
+
115
+ yield result, operation if block_given?
116
+ result
117
+ end
118
+
81
119
  ##
82
120
  # Baseline implementation for the create_snapshot REST call
83
121
  #
@@ -458,6 +496,120 @@ module Google
458
496
  result
459
497
  end
460
498
 
499
+ ##
500
+ # Baseline implementation for the start_async_replication REST call
501
+ #
502
+ # @param request_pb [::Google::Cloud::Compute::V1::StartAsyncReplicationRegionDiskRequest]
503
+ # A request object representing the call parameters. Required.
504
+ # @param options [::Gapic::CallOptions]
505
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
506
+ #
507
+ # @yield [result, operation] Access the result along with the TransportOperation object
508
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
509
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
510
+ #
511
+ # @return [::Google::Cloud::Compute::V1::Operation]
512
+ # A result object deserialized from the server's reply
513
+ def start_async_replication request_pb, options = nil
514
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
515
+
516
+ verb, uri, query_string_params, body = ServiceStub.transcode_start_async_replication_request request_pb
517
+ query_string_params = if query_string_params.any?
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
+ else
520
+ {}
521
+ end
522
+
523
+ response = @client_stub.make_http_request(
524
+ verb,
525
+ uri: uri,
526
+ body: body || "",
527
+ params: query_string_params,
528
+ options: options
529
+ )
530
+ operation = ::Gapic::Rest::TransportOperation.new response
531
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
532
+
533
+ yield result, operation if block_given?
534
+ result
535
+ end
536
+
537
+ ##
538
+ # Baseline implementation for the stop_async_replication REST call
539
+ #
540
+ # @param request_pb [::Google::Cloud::Compute::V1::StopAsyncReplicationRegionDiskRequest]
541
+ # A request object representing the call parameters. Required.
542
+ # @param options [::Gapic::CallOptions]
543
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
544
+ #
545
+ # @yield [result, operation] Access the result along with the TransportOperation object
546
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
547
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
548
+ #
549
+ # @return [::Google::Cloud::Compute::V1::Operation]
550
+ # A result object deserialized from the server's reply
551
+ def stop_async_replication request_pb, options = nil
552
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
553
+
554
+ verb, uri, query_string_params, body = ServiceStub.transcode_stop_async_replication_request request_pb
555
+ query_string_params = if query_string_params.any?
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
+ else
558
+ {}
559
+ end
560
+
561
+ response = @client_stub.make_http_request(
562
+ verb,
563
+ uri: uri,
564
+ body: body || "",
565
+ params: query_string_params,
566
+ options: options
567
+ )
568
+ operation = ::Gapic::Rest::TransportOperation.new response
569
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
570
+
571
+ yield result, operation if block_given?
572
+ result
573
+ end
574
+
575
+ ##
576
+ # Baseline implementation for the stop_group_async_replication REST call
577
+ #
578
+ # @param request_pb [::Google::Cloud::Compute::V1::StopGroupAsyncReplicationRegionDiskRequest]
579
+ # A request object representing the call parameters. Required.
580
+ # @param options [::Gapic::CallOptions]
581
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
582
+ #
583
+ # @yield [result, operation] Access the result along with the TransportOperation object
584
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
585
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
586
+ #
587
+ # @return [::Google::Cloud::Compute::V1::Operation]
588
+ # A result object deserialized from the server's reply
589
+ def stop_group_async_replication request_pb, options = nil
590
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
591
+
592
+ verb, uri, query_string_params, body = ServiceStub.transcode_stop_group_async_replication_request request_pb
593
+ query_string_params = if query_string_params.any?
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
+ else
596
+ {}
597
+ end
598
+
599
+ response = @client_stub.make_http_request(
600
+ verb,
601
+ uri: uri,
602
+ body: body || "",
603
+ params: query_string_params,
604
+ options: options
605
+ )
606
+ operation = ::Gapic::Rest::TransportOperation.new response
607
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
608
+
609
+ yield result, operation if block_given?
610
+ result
611
+ end
612
+
461
613
  ##
462
614
  # Baseline implementation for the test_iam_permissions REST call
463
615
  #
@@ -558,6 +710,29 @@ module Google
558
710
  transcoder.transcode request_pb
559
711
  end
560
712
 
713
+ ##
714
+ # @private
715
+ #
716
+ # GRPC transcoding helper method for the bulk_insert REST call
717
+ #
718
+ # @param request_pb [::Google::Cloud::Compute::V1::BulkInsertRegionDiskRequest]
719
+ # A request object representing the call parameters. Required.
720
+ # @return [Array(String, [String, nil], Hash{String => String})]
721
+ # Uri, Body, Query string parameters
722
+ def self.transcode_bulk_insert_request request_pb
723
+ transcoder = Gapic::Rest::GrpcTranscoder.new
724
+ .with_bindings(
725
+ uri_method: :post,
726
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/bulkInsert",
727
+ body: "bulk_insert_disk_resource_resource",
728
+ matches: [
729
+ ["project", %r{^[^/]+/?$}, false],
730
+ ["region", %r{^[^/]+/?$}, false]
731
+ ]
732
+ )
733
+ transcoder.transcode request_pb
734
+ end
735
+
561
736
  ##
562
737
  # @private
563
738
  #
@@ -792,6 +967,76 @@ module Google
792
967
  transcoder.transcode request_pb
793
968
  end
794
969
 
970
+ ##
971
+ # @private
972
+ #
973
+ # GRPC transcoding helper method for the start_async_replication REST call
974
+ #
975
+ # @param request_pb [::Google::Cloud::Compute::V1::StartAsyncReplicationRegionDiskRequest]
976
+ # A request object representing the call parameters. Required.
977
+ # @return [Array(String, [String, nil], Hash{String => String})]
978
+ # Uri, Body, Query string parameters
979
+ def self.transcode_start_async_replication_request request_pb
980
+ transcoder = Gapic::Rest::GrpcTranscoder.new
981
+ .with_bindings(
982
+ uri_method: :post,
983
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/startAsyncReplication",
984
+ body: "region_disks_start_async_replication_request_resource",
985
+ matches: [
986
+ ["project", %r{^[^/]+/?$}, false],
987
+ ["region", %r{^[^/]+/?$}, false],
988
+ ["disk", %r{^[^/]+/?$}, false]
989
+ ]
990
+ )
991
+ transcoder.transcode request_pb
992
+ end
993
+
994
+ ##
995
+ # @private
996
+ #
997
+ # GRPC transcoding helper method for the stop_async_replication REST call
998
+ #
999
+ # @param request_pb [::Google::Cloud::Compute::V1::StopAsyncReplicationRegionDiskRequest]
1000
+ # A request object representing the call parameters. Required.
1001
+ # @return [Array(String, [String, nil], Hash{String => String})]
1002
+ # Uri, Body, Query string parameters
1003
+ def self.transcode_stop_async_replication_request request_pb
1004
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1005
+ .with_bindings(
1006
+ uri_method: :post,
1007
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/{disk}/stopAsyncReplication",
1008
+ matches: [
1009
+ ["project", %r{^[^/]+/?$}, false],
1010
+ ["region", %r{^[^/]+/?$}, false],
1011
+ ["disk", %r{^[^/]+/?$}, false]
1012
+ ]
1013
+ )
1014
+ transcoder.transcode request_pb
1015
+ end
1016
+
1017
+ ##
1018
+ # @private
1019
+ #
1020
+ # GRPC transcoding helper method for the stop_group_async_replication REST call
1021
+ #
1022
+ # @param request_pb [::Google::Cloud::Compute::V1::StopGroupAsyncReplicationRegionDiskRequest]
1023
+ # A request object representing the call parameters. Required.
1024
+ # @return [Array(String, [String, nil], Hash{String => String})]
1025
+ # Uri, Body, Query string parameters
1026
+ def self.transcode_stop_group_async_replication_request request_pb
1027
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1028
+ .with_bindings(
1029
+ uri_method: :post,
1030
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/disks/stopGroupAsyncReplication",
1031
+ body: "disks_stop_group_async_replication_resource_resource",
1032
+ matches: [
1033
+ ["project", %r{^[^/]+/?$}, false],
1034
+ ["region", %r{^[^/]+/?$}, false]
1035
+ ]
1036
+ )
1037
+ transcoder.transcode request_pb
1038
+ end
1039
+
795
1040
  ##
796
1041
  # @private
797
1042
  #
@@ -461,7 +461,7 @@ module Google
461
461
  end
462
462
 
463
463
  ##
464
- # Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
464
+ # Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
465
465
  #
466
466
  # @overload patch(request, options = nil)
467
467
  # Pass arguments to `patch` via a request object, either of type
@@ -89,6 +89,8 @@ module Google
89
89
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
90
90
  }
91
91
 
92
+ default_config.rpcs.patch.timeout = 600.0
93
+
92
94
  default_config.rpcs.set_iam_policy.timeout = 600.0
93
95
 
94
96
  default_config.rpcs.test_iam_permissions.timeout = 600.0
@@ -613,6 +615,87 @@ module Google
613
615
  raise ::Google::Cloud::Error.from_error(e)
614
616
  end
615
617
 
618
+ ##
619
+ # Modify the specified resource policy.
620
+ #
621
+ # @overload patch(request, options = nil)
622
+ # Pass arguments to `patch` via a request object, either of type
623
+ # {::Google::Cloud::Compute::V1::PatchResourcePolicyRequest} or an equivalent Hash.
624
+ #
625
+ # @param request [::Google::Cloud::Compute::V1::PatchResourcePolicyRequest, ::Hash]
626
+ # A request object representing the call parameters. Required. To specify no
627
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
628
+ # @param options [::Gapic::CallOptions, ::Hash]
629
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
630
+ #
631
+ # @overload patch(project: nil, region: nil, request_id: nil, resource_policy: nil, resource_policy_resource: nil, update_mask: nil)
632
+ # Pass arguments to `patch` via keyword arguments. Note that at
633
+ # least one keyword argument is required. To specify no parameters, or to keep all
634
+ # the default parameter values, pass an empty Hash as a request object (see above).
635
+ #
636
+ # @param project [::String]
637
+ # Project ID for this request.
638
+ # @param region [::String]
639
+ # Name of the region for this request.
640
+ # @param request_id [::String]
641
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
642
+ # @param resource_policy [::String]
643
+ # Id of the resource policy to patch.
644
+ # @param resource_policy_resource [::Google::Cloud::Compute::V1::ResourcePolicy, ::Hash]
645
+ # The body resource for this request
646
+ # @param update_mask [::String]
647
+ # update_mask indicates fields to be updated as part of this request.
648
+ # @yield [result, operation] Access the result along with the TransportOperation object
649
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
650
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
651
+ #
652
+ # @return [::Gapic::GenericLRO::Operation]
653
+ #
654
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
655
+ def patch request, options = nil
656
+ raise ::ArgumentError, "request must be provided" if request.nil?
657
+
658
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PatchResourcePolicyRequest
659
+
660
+ # Converts hash and nil to an options object
661
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
662
+
663
+ # Customize the options with defaults
664
+ call_metadata = @config.rpcs.patch.metadata.to_h
665
+
666
+ # Set x-goog-api-client and x-goog-user-project headers
667
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
668
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
669
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
670
+ transports_version_send: [:rest]
671
+
672
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
673
+
674
+ options.apply_defaults timeout: @config.rpcs.patch.timeout,
675
+ metadata: call_metadata,
676
+ retry_policy: @config.rpcs.patch.retry_policy
677
+
678
+ options.apply_defaults timeout: @config.timeout,
679
+ metadata: @config.metadata,
680
+ retry_policy: @config.retry_policy
681
+
682
+ @resource_policies_stub.patch request, options do |result, response|
683
+ result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
684
+ operation: result,
685
+ client: region_operations,
686
+ request_values: {
687
+ "project" => request.project,
688
+ "region" => request.region
689
+ },
690
+ options: options
691
+ )
692
+ yield result, response if block_given?
693
+ return result
694
+ end
695
+ rescue ::Gapic::Rest::Error => e
696
+ raise ::Google::Cloud::Error.from_error(e)
697
+ end
698
+
616
699
  ##
617
700
  # Sets the access control policy on the specified resource. Replaces any existing policy.
618
701
  #
@@ -905,6 +988,11 @@ module Google
905
988
  #
906
989
  attr_reader :list
907
990
  ##
991
+ # RPC-specific configuration for `patch`
992
+ # @return [::Gapic::Config::Method]
993
+ #
994
+ attr_reader :patch
995
+ ##
908
996
  # RPC-specific configuration for `set_iam_policy`
909
997
  # @return [::Gapic::Config::Method]
910
998
  #
@@ -929,6 +1017,8 @@ module Google
929
1017
  @insert = ::Gapic::Config::Method.new insert_config
930
1018
  list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
931
1019
  @list = ::Gapic::Config::Method.new list_config
1020
+ patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
1021
+ @patch = ::Gapic::Config::Method.new patch_config
932
1022
  set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
933
1023
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
934
1024
  test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
@@ -268,6 +268,44 @@ module Google
268
268
  result
269
269
  end
270
270
 
271
+ ##
272
+ # Baseline implementation for the patch REST call
273
+ #
274
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchResourcePolicyRequest]
275
+ # A request object representing the call parameters. Required.
276
+ # @param options [::Gapic::CallOptions]
277
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
278
+ #
279
+ # @yield [result, operation] Access the result along with the TransportOperation object
280
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
281
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
282
+ #
283
+ # @return [::Google::Cloud::Compute::V1::Operation]
284
+ # A result object deserialized from the server's reply
285
+ def patch request_pb, options = nil
286
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
287
+
288
+ verb, uri, query_string_params, body = ServiceStub.transcode_patch_request request_pb
289
+ query_string_params = if query_string_params.any?
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
+ else
292
+ {}
293
+ end
294
+
295
+ response = @client_stub.make_http_request(
296
+ verb,
297
+ uri: uri,
298
+ body: body || "",
299
+ params: query_string_params,
300
+ options: options
301
+ )
302
+ operation = ::Gapic::Rest::TransportOperation.new response
303
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
304
+
305
+ yield result, operation if block_given?
306
+ result
307
+ end
308
+
271
309
  ##
272
310
  # Baseline implementation for the set_iam_policy REST call
273
311
  #
@@ -479,6 +517,30 @@ module Google
479
517
  transcoder.transcode request_pb
480
518
  end
481
519
 
520
+ ##
521
+ # @private
522
+ #
523
+ # GRPC transcoding helper method for the patch REST call
524
+ #
525
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchResourcePolicyRequest]
526
+ # A request object representing the call parameters. Required.
527
+ # @return [Array(String, [String, nil], Hash{String => String})]
528
+ # Uri, Body, Query string parameters
529
+ def self.transcode_patch_request request_pb
530
+ transcoder = Gapic::Rest::GrpcTranscoder.new
531
+ .with_bindings(
532
+ uri_method: :patch,
533
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource_policy}",
534
+ body: "resource_policy_resource",
535
+ matches: [
536
+ ["project", %r{^[^/]+/?$}, false],
537
+ ["region", %r{^[^/]+/?$}, false],
538
+ ["resource_policy", %r{^[^/]+/?$}, false]
539
+ ]
540
+ )
541
+ transcoder.transcode request_pb
542
+ end
543
+
482
544
  ##
483
545
  # @private
484
546
  #
@@ -42,6 +42,7 @@ require "google/cloud/compute/v1/instance_templates/rest"
42
42
  require "google/cloud/compute/v1/instances/rest"
43
43
  require "google/cloud/compute/v1/interconnect_attachments/rest"
44
44
  require "google/cloud/compute/v1/interconnect_locations/rest"
45
+ require "google/cloud/compute/v1/interconnect_remote_locations/rest"
45
46
  require "google/cloud/compute/v1/interconnects/rest"
46
47
  require "google/cloud/compute/v1/license_codes/rest"
47
48
  require "google/cloud/compute/v1/licenses/rest"
@@ -413,7 +413,7 @@ module Google
413
413
  # @param options [::Gapic::CallOptions, ::Hash]
414
414
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
415
415
  #
416
- # @overload get_nat_mapping_info(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, region: nil, return_partial_success: nil, router: nil)
416
+ # @overload get_nat_mapping_info(filter: nil, max_results: nil, nat_name: nil, order_by: nil, page_token: nil, project: nil, region: nil, return_partial_success: nil, router: nil)
417
417
  # Pass arguments to `get_nat_mapping_info` via keyword arguments. Note that at
418
418
  # least one keyword argument is required. To specify no parameters, or to keep all
419
419
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -422,6 +422,8 @@ module Google
422
422
  # 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
423
423
  # @param max_results [::Integer]
424
424
  # 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`)
425
+ # @param nat_name [::String]
426
+ # Name of the nat service to filter the Nat Mapping information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.
425
427
  # @param order_by [::String]
426
428
  # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
427
429
  # @param page_token [::String]
@@ -763,7 +763,7 @@ module Google
763
763
  end
764
764
 
765
765
  ##
766
- # Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
766
+ # Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
767
767
  #
768
768
  # @overload patch(request, options = nil)
769
769
  # Pass arguments to `patch` via a request object, either of type
@@ -839,7 +839,7 @@ module Google
839
839
  end
840
840
 
841
841
  ##
842
- # Patches a rule at the specified priority.
842
+ # Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
843
843
  #
844
844
  # @overload patch_rule(request, options = nil)
845
845
  # Pass arguments to `patch_rule` via a request object, either of type
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Compute
23
23
  module V1
24
- VERSION = "2.2.0"
24
+ VERSION = "2.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -42,6 +42,7 @@ require "google/cloud/compute/v1/instance_templates"
42
42
  require "google/cloud/compute/v1/instances"
43
43
  require "google/cloud/compute/v1/interconnect_attachments"
44
44
  require "google/cloud/compute/v1/interconnect_locations"
45
+ require "google/cloud/compute/v1/interconnect_remote_locations"
45
46
  require "google/cloud/compute/v1/interconnects"
46
47
  require "google/cloud/compute/v1/license_codes"
47
48
  require "google/cloud/compute/v1/licenses"