google-cloud-compute-v1 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -153,6 +153,46 @@ module Google
153
153
  end
154
154
  end
155
155
 
156
+ ##
157
+ # Baseline implementation for the delete_named_set REST call
158
+ #
159
+ # @param request_pb [::Google::Cloud::Compute::V1::DeleteNamedSetRouterRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Cloud::Compute::V1::Operation]
169
+ # A result object deserialized from the server's reply
170
+ def delete_named_set request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_named_set_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "delete_named_set",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
156
196
  ##
157
197
  # Baseline implementation for the delete_route_policy REST call
158
198
  #
@@ -233,6 +273,46 @@ module Google
233
273
  end
234
274
  end
235
275
 
276
+ ##
277
+ # Baseline implementation for the get_named_set REST call
278
+ #
279
+ # @param request_pb [::Google::Cloud::Compute::V1::GetNamedSetRouterRequest]
280
+ # A request object representing the call parameters. Required.
281
+ # @param options [::Gapic::CallOptions]
282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
283
+ #
284
+ # @yield [result, operation] Access the result along with the TransportOperation object
285
+ # @yieldparam result [::Google::Cloud::Compute::V1::RoutersGetNamedSetResponse]
286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
287
+ #
288
+ # @return [::Google::Cloud::Compute::V1::RoutersGetNamedSetResponse]
289
+ # A result object deserialized from the server's reply
290
+ def get_named_set request_pb, options = nil
291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
292
+
293
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_named_set_request request_pb
294
+ query_string_params = if query_string_params.any?
295
+ query_string_params.to_h { |p| p.split "=", 2 }
296
+ else
297
+ {}
298
+ end
299
+
300
+ response = @client_stub.make_http_request(
301
+ verb,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "get_named_set",
306
+ options: options
307
+ )
308
+ operation = ::Gapic::Rest::TransportOperation.new response
309
+ result = ::Google::Cloud::Compute::V1::RoutersGetNamedSetResponse.decode_json response.body, ignore_unknown_fields: true
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
314
+ end
315
+
236
316
  ##
237
317
  # Baseline implementation for the get_nat_ip_info REST call
238
318
  #
@@ -513,6 +593,46 @@ module Google
513
593
  end
514
594
  end
515
595
 
596
+ ##
597
+ # Baseline implementation for the list_named_sets REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::Compute::V1::ListNamedSetsRoutersRequest]
600
+ # A request object representing the call parameters. Required.
601
+ # @param options [::Gapic::CallOptions]
602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
603
+ #
604
+ # @yield [result, operation] Access the result along with the TransportOperation object
605
+ # @yieldparam result [::Google::Cloud::Compute::V1::RoutersListNamedSets]
606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
+ #
608
+ # @return [::Google::Cloud::Compute::V1::RoutersListNamedSets]
609
+ # A result object deserialized from the server's reply
610
+ def list_named_sets request_pb, options = nil
611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
+
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_named_sets_request request_pb
614
+ query_string_params = if query_string_params.any?
615
+ query_string_params.to_h { |p| p.split "=", 2 }
616
+ else
617
+ {}
618
+ end
619
+
620
+ response = @client_stub.make_http_request(
621
+ verb,
622
+ uri: uri,
623
+ body: body || "",
624
+ params: query_string_params,
625
+ method_name: "list_named_sets",
626
+ options: options
627
+ )
628
+ operation = ::Gapic::Rest::TransportOperation.new response
629
+ result = ::Google::Cloud::Compute::V1::RoutersListNamedSets.decode_json response.body, ignore_unknown_fields: true
630
+ catch :response do
631
+ yield result, operation if block_given?
632
+ result
633
+ end
634
+ end
635
+
516
636
  ##
517
637
  # Baseline implementation for the list_route_policies REST call
518
638
  #
@@ -593,6 +713,46 @@ module Google
593
713
  end
594
714
  end
595
715
 
716
+ ##
717
+ # Baseline implementation for the patch_named_set REST call
718
+ #
719
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchNamedSetRouterRequest]
720
+ # A request object representing the call parameters. Required.
721
+ # @param options [::Gapic::CallOptions]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ #
724
+ # @yield [result, operation] Access the result along with the TransportOperation object
725
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
+ #
728
+ # @return [::Google::Cloud::Compute::V1::Operation]
729
+ # A result object deserialized from the server's reply
730
+ def patch_named_set request_pb, options = nil
731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
+
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_patch_named_set_request request_pb
734
+ query_string_params = if query_string_params.any?
735
+ query_string_params.to_h { |p| p.split "=", 2 }
736
+ else
737
+ {}
738
+ end
739
+
740
+ response = @client_stub.make_http_request(
741
+ verb,
742
+ uri: uri,
743
+ body: body || "",
744
+ params: query_string_params,
745
+ method_name: "patch_named_set",
746
+ options: options
747
+ )
748
+ operation = ::Gapic::Rest::TransportOperation.new response
749
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
750
+ catch :response do
751
+ yield result, operation if block_given?
752
+ result
753
+ end
754
+ end
755
+
596
756
  ##
597
757
  # Baseline implementation for the patch_route_policy REST call
598
758
  #
@@ -713,6 +873,46 @@ module Google
713
873
  end
714
874
  end
715
875
 
876
+ ##
877
+ # Baseline implementation for the update_named_set REST call
878
+ #
879
+ # @param request_pb [::Google::Cloud::Compute::V1::UpdateNamedSetRouterRequest]
880
+ # A request object representing the call parameters. Required.
881
+ # @param options [::Gapic::CallOptions]
882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
+ #
884
+ # @yield [result, operation] Access the result along with the TransportOperation object
885
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
+ #
888
+ # @return [::Google::Cloud::Compute::V1::Operation]
889
+ # A result object deserialized from the server's reply
890
+ def update_named_set request_pb, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
+
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_named_set_request request_pb
894
+ query_string_params = if query_string_params.any?
895
+ query_string_params.to_h { |p| p.split "=", 2 }
896
+ else
897
+ {}
898
+ end
899
+
900
+ response = @client_stub.make_http_request(
901
+ verb,
902
+ uri: uri,
903
+ body: body || "",
904
+ params: query_string_params,
905
+ method_name: "update_named_set",
906
+ options: options
907
+ )
908
+ operation = ::Gapic::Rest::TransportOperation.new response
909
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
910
+ catch :response do
911
+ yield result, operation if block_given?
912
+ result
913
+ end
914
+ end
915
+
716
916
  ##
717
917
  # Baseline implementation for the update_route_policy REST call
718
918
  #
@@ -797,6 +997,29 @@ module Google
797
997
  transcoder.transcode request_pb
798
998
  end
799
999
 
1000
+ ##
1001
+ # @private
1002
+ #
1003
+ # GRPC transcoding helper method for the delete_named_set REST call
1004
+ #
1005
+ # @param request_pb [::Google::Cloud::Compute::V1::DeleteNamedSetRouterRequest]
1006
+ # A request object representing the call parameters. Required.
1007
+ # @return [Array(String, [String, nil], Hash{String => String})]
1008
+ # Uri, Body, Query string parameters
1009
+ def self.transcode_delete_named_set_request request_pb
1010
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1011
+ .with_bindings(
1012
+ uri_method: :post,
1013
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/routers/{router}/deleteNamedSet",
1014
+ matches: [
1015
+ ["project", %r{^[^/]+/?$}, false],
1016
+ ["region", %r{^[^/]+/?$}, false],
1017
+ ["router", %r{^[^/]+/?$}, false]
1018
+ ]
1019
+ )
1020
+ transcoder.transcode request_pb
1021
+ end
1022
+
800
1023
  ##
801
1024
  # @private
802
1025
  #
@@ -843,6 +1066,29 @@ module Google
843
1066
  transcoder.transcode request_pb
844
1067
  end
845
1068
 
1069
+ ##
1070
+ # @private
1071
+ #
1072
+ # GRPC transcoding helper method for the get_named_set REST call
1073
+ #
1074
+ # @param request_pb [::Google::Cloud::Compute::V1::GetNamedSetRouterRequest]
1075
+ # A request object representing the call parameters. Required.
1076
+ # @return [Array(String, [String, nil], Hash{String => String})]
1077
+ # Uri, Body, Query string parameters
1078
+ def self.transcode_get_named_set_request request_pb
1079
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1080
+ .with_bindings(
1081
+ uri_method: :get,
1082
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/routers/{router}/getNamedSet",
1083
+ matches: [
1084
+ ["project", %r{^[^/]+/?$}, false],
1085
+ ["region", %r{^[^/]+/?$}, false],
1086
+ ["router", %r{^[^/]+/?$}, false]
1087
+ ]
1088
+ )
1089
+ transcoder.transcode request_pb
1090
+ end
1091
+
846
1092
  ##
847
1093
  # @private
848
1094
  #
@@ -1003,6 +1249,29 @@ module Google
1003
1249
  transcoder.transcode request_pb
1004
1250
  end
1005
1251
 
1252
+ ##
1253
+ # @private
1254
+ #
1255
+ # GRPC transcoding helper method for the list_named_sets REST call
1256
+ #
1257
+ # @param request_pb [::Google::Cloud::Compute::V1::ListNamedSetsRoutersRequest]
1258
+ # A request object representing the call parameters. Required.
1259
+ # @return [Array(String, [String, nil], Hash{String => String})]
1260
+ # Uri, Body, Query string parameters
1261
+ def self.transcode_list_named_sets_request request_pb
1262
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1263
+ .with_bindings(
1264
+ uri_method: :get,
1265
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/routers/{router}/listNamedSets",
1266
+ matches: [
1267
+ ["project", %r{^[^/]+/?$}, false],
1268
+ ["region", %r{^[^/]+/?$}, false],
1269
+ ["router", %r{^[^/]+/?$}, false]
1270
+ ]
1271
+ )
1272
+ transcoder.transcode request_pb
1273
+ end
1274
+
1006
1275
  ##
1007
1276
  # @private
1008
1277
  #
@@ -1050,6 +1319,30 @@ module Google
1050
1319
  transcoder.transcode request_pb
1051
1320
  end
1052
1321
 
1322
+ ##
1323
+ # @private
1324
+ #
1325
+ # GRPC transcoding helper method for the patch_named_set REST call
1326
+ #
1327
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchNamedSetRouterRequest]
1328
+ # A request object representing the call parameters. Required.
1329
+ # @return [Array(String, [String, nil], Hash{String => String})]
1330
+ # Uri, Body, Query string parameters
1331
+ def self.transcode_patch_named_set_request request_pb
1332
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1333
+ .with_bindings(
1334
+ uri_method: :post,
1335
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/routers/{router}/patchNamedSet",
1336
+ body: "named_set_resource",
1337
+ matches: [
1338
+ ["project", %r{^[^/]+/?$}, false],
1339
+ ["region", %r{^[^/]+/?$}, false],
1340
+ ["router", %r{^[^/]+/?$}, false]
1341
+ ]
1342
+ )
1343
+ transcoder.transcode request_pb
1344
+ end
1345
+
1053
1346
  ##
1054
1347
  # @private
1055
1348
  #
@@ -1122,6 +1415,30 @@ module Google
1122
1415
  transcoder.transcode request_pb
1123
1416
  end
1124
1417
 
1418
+ ##
1419
+ # @private
1420
+ #
1421
+ # GRPC transcoding helper method for the update_named_set REST call
1422
+ #
1423
+ # @param request_pb [::Google::Cloud::Compute::V1::UpdateNamedSetRouterRequest]
1424
+ # A request object representing the call parameters. Required.
1425
+ # @return [Array(String, [String, nil], Hash{String => String})]
1426
+ # Uri, Body, Query string parameters
1427
+ def self.transcode_update_named_set_request request_pb
1428
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1429
+ .with_bindings(
1430
+ uri_method: :post,
1431
+ uri_template: "/compute/v1/projects/{project}/regions/{region}/routers/{router}/updateNamedSet",
1432
+ body: "named_set_resource",
1433
+ matches: [
1434
+ ["project", %r{^[^/]+/?$}, false],
1435
+ ["region", %r{^[^/]+/?$}, false],
1436
+ ["router", %r{^[^/]+/?$}, false]
1437
+ ]
1438
+ )
1439
+ transcoder.transcode request_pb
1440
+ end
1441
+
1125
1442
  ##
1126
1443
  # @private
1127
1444
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Compute
23
23
  module V1
24
- VERSION = "3.8.0"
24
+ VERSION = "3.9.0"
25
25
  end
26
26
  end
27
27
  end