google-cloud-container-v1 1.7.0 → 1.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.
@@ -1433,6 +1433,86 @@ module Google
1433
1433
  end
1434
1434
  end
1435
1435
 
1436
+ ##
1437
+ # Baseline implementation for the fetch_cluster_upgrade_info REST call
1438
+ #
1439
+ # @param request_pb [::Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest]
1440
+ # A request object representing the call parameters. Required.
1441
+ # @param options [::Gapic::CallOptions]
1442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1443
+ #
1444
+ # @yield [result, operation] Access the result along with the TransportOperation object
1445
+ # @yieldparam result [::Google::Cloud::Container::V1::ClusterUpgradeInfo]
1446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1447
+ #
1448
+ # @return [::Google::Cloud::Container::V1::ClusterUpgradeInfo]
1449
+ # A result object deserialized from the server's reply
1450
+ def fetch_cluster_upgrade_info request_pb, options = nil
1451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1452
+
1453
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_cluster_upgrade_info_request request_pb
1454
+ query_string_params = if query_string_params.any?
1455
+ query_string_params.to_h { |p| p.split "=", 2 }
1456
+ else
1457
+ {}
1458
+ end
1459
+
1460
+ response = @client_stub.make_http_request(
1461
+ verb,
1462
+ uri: uri,
1463
+ body: body || "",
1464
+ params: query_string_params,
1465
+ method_name: "fetch_cluster_upgrade_info",
1466
+ options: options
1467
+ )
1468
+ operation = ::Gapic::Rest::TransportOperation.new response
1469
+ result = ::Google::Cloud::Container::V1::ClusterUpgradeInfo.decode_json response.body, ignore_unknown_fields: true
1470
+ catch :response do
1471
+ yield result, operation if block_given?
1472
+ result
1473
+ end
1474
+ end
1475
+
1476
+ ##
1477
+ # Baseline implementation for the fetch_node_pool_upgrade_info REST call
1478
+ #
1479
+ # @param request_pb [::Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest]
1480
+ # A request object representing the call parameters. Required.
1481
+ # @param options [::Gapic::CallOptions]
1482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1483
+ #
1484
+ # @yield [result, operation] Access the result along with the TransportOperation object
1485
+ # @yieldparam result [::Google::Cloud::Container::V1::NodePoolUpgradeInfo]
1486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1487
+ #
1488
+ # @return [::Google::Cloud::Container::V1::NodePoolUpgradeInfo]
1489
+ # A result object deserialized from the server's reply
1490
+ def fetch_node_pool_upgrade_info request_pb, options = nil
1491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1492
+
1493
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_node_pool_upgrade_info_request request_pb
1494
+ query_string_params = if query_string_params.any?
1495
+ query_string_params.to_h { |p| p.split "=", 2 }
1496
+ else
1497
+ {}
1498
+ end
1499
+
1500
+ response = @client_stub.make_http_request(
1501
+ verb,
1502
+ uri: uri,
1503
+ body: body || "",
1504
+ params: query_string_params,
1505
+ method_name: "fetch_node_pool_upgrade_info",
1506
+ options: options
1507
+ )
1508
+ operation = ::Gapic::Rest::TransportOperation.new response
1509
+ result = ::Google::Cloud::Container::V1::NodePoolUpgradeInfo.decode_json response.body, ignore_unknown_fields: true
1510
+ catch :response do
1511
+ yield result, operation if block_given?
1512
+ result
1513
+ end
1514
+ end
1515
+
1436
1516
  ##
1437
1517
  # @private
1438
1518
  #
@@ -2462,6 +2542,62 @@ module Google
2462
2542
  )
2463
2543
  transcoder.transcode request_pb
2464
2544
  end
2545
+
2546
+ ##
2547
+ # @private
2548
+ #
2549
+ # GRPC transcoding helper method for the fetch_cluster_upgrade_info REST call
2550
+ #
2551
+ # @param request_pb [::Google::Cloud::Container::V1::FetchClusterUpgradeInfoRequest]
2552
+ # A request object representing the call parameters. Required.
2553
+ # @return [Array(String, [String, nil], Hash{String => String})]
2554
+ # Uri, Body, Query string parameters
2555
+ def self.transcode_fetch_cluster_upgrade_info_request request_pb
2556
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2557
+ .with_bindings(
2558
+ uri_method: :get,
2559
+ uri_template: "/v1/{name}:fetchClusterUpgradeInfo",
2560
+ matches: [
2561
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/?$}, false]
2562
+ ]
2563
+ )
2564
+ .with_bindings(
2565
+ uri_method: :get,
2566
+ uri_template: "/v1/{name}:fetchClusterUpgradeInfo",
2567
+ matches: [
2568
+ ["name", %r{^projects/[^/]+/zones/[^/]+/clusters/[^/]+/?$}, false]
2569
+ ]
2570
+ )
2571
+ transcoder.transcode request_pb
2572
+ end
2573
+
2574
+ ##
2575
+ # @private
2576
+ #
2577
+ # GRPC transcoding helper method for the fetch_node_pool_upgrade_info REST call
2578
+ #
2579
+ # @param request_pb [::Google::Cloud::Container::V1::FetchNodePoolUpgradeInfoRequest]
2580
+ # A request object representing the call parameters. Required.
2581
+ # @return [Array(String, [String, nil], Hash{String => String})]
2582
+ # Uri, Body, Query string parameters
2583
+ def self.transcode_fetch_node_pool_upgrade_info_request request_pb
2584
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2585
+ .with_bindings(
2586
+ uri_method: :get,
2587
+ uri_template: "/v1/{name}:fetchNodePoolUpgradeInfo",
2588
+ matches: [
2589
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+/?$}, false]
2590
+ ]
2591
+ )
2592
+ .with_bindings(
2593
+ uri_method: :get,
2594
+ uri_template: "/v1/{name}:fetchNodePoolUpgradeInfo",
2595
+ matches: [
2596
+ ["name", %r{^projects/[^/]+/zones/[^/]+/clusters/[^/]+/nodePools/[^/]+/?$}, false]
2597
+ ]
2598
+ )
2599
+ transcoder.transcode request_pb
2600
+ end
2465
2601
  end
2466
2602
  end
2467
2603
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1
24
- VERSION = "1.7.0"
24
+ VERSION = "1.9.0"
25
25
  end
26
26
  end
27
27
  end