google-cloud-container-v1beta1 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ae02e5cfa53c38b3914d2d0fbdbc9d141f8545c9671938dcec437ab754e9db1
4
- data.tar.gz: b948f566d3102abdeab6018cd34182bb2b4c7e86223dac3a9acbc1c6e61cfebe
3
+ metadata.gz: 7dc369fc1421b0580295c164a86c3b7d937d5fdfea911de213135a800125507d
4
+ data.tar.gz: 762f461ada58a06bdb5910536c94ff6d11e03f5dbc29ba1bce40a8590235e6e9
5
5
  SHA512:
6
- metadata.gz: cb56d0cd360c737c768147e2c7cf0acba39364fe30c9b3ba159ea109e51b07f2fd4b740faffb11881a7178734ea42b6ce48a11acb986e6712e60c86fbd4cf139
7
- data.tar.gz: c9d25c5ab95d21f9c61d27381ee2e02e3fa4d1b0a110c2911a61396fa31fe6b0027fd9f242a0e8a4694d9d766607f1a4b42fe65bfa4db07734ab690830859bb3
6
+ metadata.gz: da6a7251930e8cb4b17afbbee767d4310b5427f81cc230a1b3dcceb19e0033b3ca4ff2d4feca8753a0e3768021199aebf38a04bce3d15bcd915dcdf1ca1361b5
7
+ data.tar.gz: 3fbb74c956a143497858e8e57272e84df0a1f5a74efff17f5477e8364eeb993ef2362961edbfd61f60188ecda2580f3584327893f01b38bae468dc1db67f22ab
@@ -282,6 +282,21 @@ module Google
282
282
  #
283
283
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
284
284
  #
285
+ # @example Basic example
286
+ # require "google/cloud/container/v1beta1"
287
+ #
288
+ # # Create a client object. The client can be reused for multiple calls.
289
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
290
+ #
291
+ # # Create a request. To set request fields, pass in keyword arguments.
292
+ # request = Google::Cloud::Container::V1beta1::ListClustersRequest.new
293
+ #
294
+ # # Call the list_clusters method.
295
+ # result = client.list_clusters request
296
+ #
297
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ListClustersResponse.
298
+ # p result
299
+ #
285
300
  def list_clusters request, options = nil
286
301
  raise ::ArgumentError, "request must be provided" if request.nil?
287
302
 
@@ -299,9 +314,11 @@ module Google
299
314
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
300
315
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
301
316
 
302
- header_params = {
303
- "parent" => request.parent
304
- }
317
+ header_params = {}
318
+ if request.parent
319
+ header_params["parent"] = request.parent
320
+ end
321
+
305
322
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
306
323
  metadata[:"x-goog-request-params"] ||= request_params_header
307
324
 
@@ -363,6 +380,21 @@ module Google
363
380
  #
364
381
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
365
382
  #
383
+ # @example Basic example
384
+ # require "google/cloud/container/v1beta1"
385
+ #
386
+ # # Create a client object. The client can be reused for multiple calls.
387
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
388
+ #
389
+ # # Create a request. To set request fields, pass in keyword arguments.
390
+ # request = Google::Cloud::Container::V1beta1::GetClusterRequest.new
391
+ #
392
+ # # Call the get_cluster method.
393
+ # result = client.get_cluster request
394
+ #
395
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Cluster.
396
+ # p result
397
+ #
366
398
  def get_cluster request, options = nil
367
399
  raise ::ArgumentError, "request must be provided" if request.nil?
368
400
 
@@ -380,9 +412,11 @@ module Google
380
412
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
381
413
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
382
414
 
383
- header_params = {
384
- "name" => request.name
385
- }
415
+ header_params = {}
416
+ if request.name
417
+ header_params["name"] = request.name
418
+ end
419
+
386
420
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
387
421
  metadata[:"x-goog-request-params"] ||= request_params_header
388
422
 
@@ -457,6 +491,21 @@ module Google
457
491
  #
458
492
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
459
493
  #
494
+ # @example Basic example
495
+ # require "google/cloud/container/v1beta1"
496
+ #
497
+ # # Create a client object. The client can be reused for multiple calls.
498
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
499
+ #
500
+ # # Create a request. To set request fields, pass in keyword arguments.
501
+ # request = Google::Cloud::Container::V1beta1::CreateClusterRequest.new
502
+ #
503
+ # # Call the create_cluster method.
504
+ # result = client.create_cluster request
505
+ #
506
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
507
+ # p result
508
+ #
460
509
  def create_cluster request, options = nil
461
510
  raise ::ArgumentError, "request must be provided" if request.nil?
462
511
 
@@ -474,9 +523,11 @@ module Google
474
523
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
475
524
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
476
525
 
477
- header_params = {
478
- "parent" => request.parent
479
- }
526
+ header_params = {}
527
+ if request.parent
528
+ header_params["parent"] = request.parent
529
+ end
530
+
480
531
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
481
532
  metadata[:"x-goog-request-params"] ||= request_params_header
482
533
 
@@ -540,6 +591,21 @@ module Google
540
591
  #
541
592
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
542
593
  #
594
+ # @example Basic example
595
+ # require "google/cloud/container/v1beta1"
596
+ #
597
+ # # Create a client object. The client can be reused for multiple calls.
598
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
599
+ #
600
+ # # Create a request. To set request fields, pass in keyword arguments.
601
+ # request = Google::Cloud::Container::V1beta1::UpdateClusterRequest.new
602
+ #
603
+ # # Call the update_cluster method.
604
+ # result = client.update_cluster request
605
+ #
606
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
607
+ # p result
608
+ #
543
609
  def update_cluster request, options = nil
544
610
  raise ::ArgumentError, "request must be provided" if request.nil?
545
611
 
@@ -557,9 +623,11 @@ module Google
557
623
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
558
624
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
559
625
 
560
- header_params = {
561
- "name" => request.name
562
- }
626
+ header_params = {}
627
+ if request.name
628
+ header_params["name"] = request.name
629
+ end
630
+
563
631
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
564
632
  metadata[:"x-goog-request-params"] ||= request_params_header
565
633
 
@@ -667,6 +735,21 @@ module Google
667
735
  #
668
736
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
669
737
  #
738
+ # @example Basic example
739
+ # require "google/cloud/container/v1beta1"
740
+ #
741
+ # # Create a client object. The client can be reused for multiple calls.
742
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
743
+ #
744
+ # # Create a request. To set request fields, pass in keyword arguments.
745
+ # request = Google::Cloud::Container::V1beta1::UpdateNodePoolRequest.new
746
+ #
747
+ # # Call the update_node_pool method.
748
+ # result = client.update_node_pool request
749
+ #
750
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
751
+ # p result
752
+ #
670
753
  def update_node_pool request, options = nil
671
754
  raise ::ArgumentError, "request must be provided" if request.nil?
672
755
 
@@ -684,9 +767,11 @@ module Google
684
767
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
685
768
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
686
769
 
687
- header_params = {
688
- "name" => request.name
689
- }
770
+ header_params = {}
771
+ if request.name
772
+ header_params["name"] = request.name
773
+ end
774
+
690
775
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
691
776
  metadata[:"x-goog-request-params"] ||= request_params_header
692
777
 
@@ -754,6 +839,21 @@ module Google
754
839
  #
755
840
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
756
841
  #
842
+ # @example Basic example
843
+ # require "google/cloud/container/v1beta1"
844
+ #
845
+ # # Create a client object. The client can be reused for multiple calls.
846
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
847
+ #
848
+ # # Create a request. To set request fields, pass in keyword arguments.
849
+ # request = Google::Cloud::Container::V1beta1::SetNodePoolAutoscalingRequest.new
850
+ #
851
+ # # Call the set_node_pool_autoscaling method.
852
+ # result = client.set_node_pool_autoscaling request
853
+ #
854
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
855
+ # p result
856
+ #
757
857
  def set_node_pool_autoscaling request, options = nil
758
858
  raise ::ArgumentError, "request must be provided" if request.nil?
759
859
 
@@ -771,9 +871,11 @@ module Google
771
871
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
772
872
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
773
873
 
774
- header_params = {
775
- "name" => request.name
776
- }
874
+ header_params = {}
875
+ if request.name
876
+ header_params["name"] = request.name
877
+ end
878
+
777
879
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
778
880
  metadata[:"x-goog-request-params"] ||= request_params_header
779
881
 
@@ -847,6 +949,21 @@ module Google
847
949
  #
848
950
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
849
951
  #
952
+ # @example Basic example
953
+ # require "google/cloud/container/v1beta1"
954
+ #
955
+ # # Create a client object. The client can be reused for multiple calls.
956
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
957
+ #
958
+ # # Create a request. To set request fields, pass in keyword arguments.
959
+ # request = Google::Cloud::Container::V1beta1::SetLoggingServiceRequest.new
960
+ #
961
+ # # Call the set_logging_service method.
962
+ # result = client.set_logging_service request
963
+ #
964
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
965
+ # p result
966
+ #
850
967
  def set_logging_service request, options = nil
851
968
  raise ::ArgumentError, "request must be provided" if request.nil?
852
969
 
@@ -864,9 +981,11 @@ module Google
864
981
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
865
982
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
866
983
 
867
- header_params = {
868
- "name" => request.name
869
- }
984
+ header_params = {}
985
+ if request.name
986
+ header_params["name"] = request.name
987
+ end
988
+
870
989
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
871
990
  metadata[:"x-goog-request-params"] ||= request_params_header
872
991
 
@@ -940,6 +1059,21 @@ module Google
940
1059
  #
941
1060
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
942
1061
  #
1062
+ # @example Basic example
1063
+ # require "google/cloud/container/v1beta1"
1064
+ #
1065
+ # # Create a client object. The client can be reused for multiple calls.
1066
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1067
+ #
1068
+ # # Create a request. To set request fields, pass in keyword arguments.
1069
+ # request = Google::Cloud::Container::V1beta1::SetMonitoringServiceRequest.new
1070
+ #
1071
+ # # Call the set_monitoring_service method.
1072
+ # result = client.set_monitoring_service request
1073
+ #
1074
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1075
+ # p result
1076
+ #
943
1077
  def set_monitoring_service request, options = nil
944
1078
  raise ::ArgumentError, "request must be provided" if request.nil?
945
1079
 
@@ -957,9 +1091,11 @@ module Google
957
1091
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
958
1092
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
959
1093
 
960
- header_params = {
961
- "name" => request.name
962
- }
1094
+ header_params = {}
1095
+ if request.name
1096
+ header_params["name"] = request.name
1097
+ end
1098
+
963
1099
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
964
1100
  metadata[:"x-goog-request-params"] ||= request_params_header
965
1101
 
@@ -1024,6 +1160,21 @@ module Google
1024
1160
  #
1025
1161
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1026
1162
  #
1163
+ # @example Basic example
1164
+ # require "google/cloud/container/v1beta1"
1165
+ #
1166
+ # # Create a client object. The client can be reused for multiple calls.
1167
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1168
+ #
1169
+ # # Create a request. To set request fields, pass in keyword arguments.
1170
+ # request = Google::Cloud::Container::V1beta1::SetAddonsConfigRequest.new
1171
+ #
1172
+ # # Call the set_addons_config method.
1173
+ # result = client.set_addons_config request
1174
+ #
1175
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1176
+ # p result
1177
+ #
1027
1178
  def set_addons_config request, options = nil
1028
1179
  raise ::ArgumentError, "request must be provided" if request.nil?
1029
1180
 
@@ -1041,9 +1192,11 @@ module Google
1041
1192
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1042
1193
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1043
1194
 
1044
- header_params = {
1045
- "name" => request.name
1046
- }
1195
+ header_params = {}
1196
+ if request.name
1197
+ header_params["name"] = request.name
1198
+ end
1199
+
1047
1200
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1048
1201
  metadata[:"x-goog-request-params"] ||= request_params_header
1049
1202
 
@@ -1118,6 +1271,21 @@ module Google
1118
1271
  #
1119
1272
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1120
1273
  #
1274
+ # @example Basic example
1275
+ # require "google/cloud/container/v1beta1"
1276
+ #
1277
+ # # Create a client object. The client can be reused for multiple calls.
1278
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1279
+ #
1280
+ # # Create a request. To set request fields, pass in keyword arguments.
1281
+ # request = Google::Cloud::Container::V1beta1::SetLocationsRequest.new
1282
+ #
1283
+ # # Call the set_locations method.
1284
+ # result = client.set_locations request
1285
+ #
1286
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1287
+ # p result
1288
+ #
1121
1289
  def set_locations request, options = nil
1122
1290
  raise ::ArgumentError, "request must be provided" if request.nil?
1123
1291
 
@@ -1135,9 +1303,11 @@ module Google
1135
1303
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1136
1304
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1137
1305
 
1138
- header_params = {
1139
- "name" => request.name
1140
- }
1306
+ header_params = {}
1307
+ if request.name
1308
+ header_params["name"] = request.name
1309
+ end
1310
+
1141
1311
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1142
1312
  metadata[:"x-goog-request-params"] ||= request_params_header
1143
1313
 
@@ -1210,6 +1380,21 @@ module Google
1210
1380
  #
1211
1381
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1212
1382
  #
1383
+ # @example Basic example
1384
+ # require "google/cloud/container/v1beta1"
1385
+ #
1386
+ # # Create a client object. The client can be reused for multiple calls.
1387
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1388
+ #
1389
+ # # Create a request. To set request fields, pass in keyword arguments.
1390
+ # request = Google::Cloud::Container::V1beta1::UpdateMasterRequest.new
1391
+ #
1392
+ # # Call the update_master method.
1393
+ # result = client.update_master request
1394
+ #
1395
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1396
+ # p result
1397
+ #
1213
1398
  def update_master request, options = nil
1214
1399
  raise ::ArgumentError, "request must be provided" if request.nil?
1215
1400
 
@@ -1227,9 +1412,11 @@ module Google
1227
1412
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1228
1413
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1229
1414
 
1230
- header_params = {
1231
- "name" => request.name
1232
- }
1415
+ header_params = {}
1416
+ if request.name
1417
+ header_params["name"] = request.name
1418
+ end
1419
+
1233
1420
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1234
1421
  metadata[:"x-goog-request-params"] ||= request_params_header
1235
1422
 
@@ -1297,6 +1484,21 @@ module Google
1297
1484
  #
1298
1485
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1299
1486
  #
1487
+ # @example Basic example
1488
+ # require "google/cloud/container/v1beta1"
1489
+ #
1490
+ # # Create a client object. The client can be reused for multiple calls.
1491
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1492
+ #
1493
+ # # Create a request. To set request fields, pass in keyword arguments.
1494
+ # request = Google::Cloud::Container::V1beta1::SetMasterAuthRequest.new
1495
+ #
1496
+ # # Call the set_master_auth method.
1497
+ # result = client.set_master_auth request
1498
+ #
1499
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1500
+ # p result
1501
+ #
1300
1502
  def set_master_auth request, options = nil
1301
1503
  raise ::ArgumentError, "request must be provided" if request.nil?
1302
1504
 
@@ -1314,9 +1516,11 @@ module Google
1314
1516
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1315
1517
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1316
1518
 
1317
- header_params = {
1318
- "name" => request.name
1319
- }
1519
+ header_params = {}
1520
+ if request.name
1521
+ header_params["name"] = request.name
1522
+ end
1523
+
1320
1524
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1321
1525
  metadata[:"x-goog-request-params"] ||= request_params_header
1322
1526
 
@@ -1386,6 +1590,21 @@ module Google
1386
1590
  #
1387
1591
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1388
1592
  #
1593
+ # @example Basic example
1594
+ # require "google/cloud/container/v1beta1"
1595
+ #
1596
+ # # Create a client object. The client can be reused for multiple calls.
1597
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1598
+ #
1599
+ # # Create a request. To set request fields, pass in keyword arguments.
1600
+ # request = Google::Cloud::Container::V1beta1::DeleteClusterRequest.new
1601
+ #
1602
+ # # Call the delete_cluster method.
1603
+ # result = client.delete_cluster request
1604
+ #
1605
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1606
+ # p result
1607
+ #
1389
1608
  def delete_cluster request, options = nil
1390
1609
  raise ::ArgumentError, "request must be provided" if request.nil?
1391
1610
 
@@ -1403,9 +1622,11 @@ module Google
1403
1622
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1404
1623
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1405
1624
 
1406
- header_params = {
1407
- "name" => request.name
1408
- }
1625
+ header_params = {}
1626
+ if request.name
1627
+ header_params["name"] = request.name
1628
+ end
1629
+
1409
1630
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1410
1631
  metadata[:"x-goog-request-params"] ||= request_params_header
1411
1632
 
@@ -1465,6 +1686,21 @@ module Google
1465
1686
  #
1466
1687
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1467
1688
  #
1689
+ # @example Basic example
1690
+ # require "google/cloud/container/v1beta1"
1691
+ #
1692
+ # # Create a client object. The client can be reused for multiple calls.
1693
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1694
+ #
1695
+ # # Create a request. To set request fields, pass in keyword arguments.
1696
+ # request = Google::Cloud::Container::V1beta1::ListOperationsRequest.new
1697
+ #
1698
+ # # Call the list_operations method.
1699
+ # result = client.list_operations request
1700
+ #
1701
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ListOperationsResponse.
1702
+ # p result
1703
+ #
1468
1704
  def list_operations request, options = nil
1469
1705
  raise ::ArgumentError, "request must be provided" if request.nil?
1470
1706
 
@@ -1482,9 +1718,11 @@ module Google
1482
1718
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1483
1719
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1484
1720
 
1485
- header_params = {
1486
- "parent" => request.parent
1487
- }
1721
+ header_params = {}
1722
+ if request.parent
1723
+ header_params["parent"] = request.parent
1724
+ end
1725
+
1488
1726
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1489
1727
  metadata[:"x-goog-request-params"] ||= request_params_header
1490
1728
 
@@ -1546,6 +1784,21 @@ module Google
1546
1784
  #
1547
1785
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1548
1786
  #
1787
+ # @example Basic example
1788
+ # require "google/cloud/container/v1beta1"
1789
+ #
1790
+ # # Create a client object. The client can be reused for multiple calls.
1791
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1792
+ #
1793
+ # # Create a request. To set request fields, pass in keyword arguments.
1794
+ # request = Google::Cloud::Container::V1beta1::GetOperationRequest.new
1795
+ #
1796
+ # # Call the get_operation method.
1797
+ # result = client.get_operation request
1798
+ #
1799
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
1800
+ # p result
1801
+ #
1549
1802
  def get_operation request, options = nil
1550
1803
  raise ::ArgumentError, "request must be provided" if request.nil?
1551
1804
 
@@ -1563,9 +1816,11 @@ module Google
1563
1816
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1564
1817
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1565
1818
 
1566
- header_params = {
1567
- "name" => request.name
1568
- }
1819
+ header_params = {}
1820
+ if request.name
1821
+ header_params["name"] = request.name
1822
+ end
1823
+
1569
1824
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1570
1825
  metadata[:"x-goog-request-params"] ||= request_params_header
1571
1826
 
@@ -1627,6 +1882,21 @@ module Google
1627
1882
  #
1628
1883
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1629
1884
  #
1885
+ # @example Basic example
1886
+ # require "google/cloud/container/v1beta1"
1887
+ #
1888
+ # # Create a client object. The client can be reused for multiple calls.
1889
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1890
+ #
1891
+ # # Create a request. To set request fields, pass in keyword arguments.
1892
+ # request = Google::Cloud::Container::V1beta1::CancelOperationRequest.new
1893
+ #
1894
+ # # Call the cancel_operation method.
1895
+ # result = client.cancel_operation request
1896
+ #
1897
+ # # The returned object is of type Google::Protobuf::Empty.
1898
+ # p result
1899
+ #
1630
1900
  def cancel_operation request, options = nil
1631
1901
  raise ::ArgumentError, "request must be provided" if request.nil?
1632
1902
 
@@ -1644,9 +1914,11 @@ module Google
1644
1914
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1645
1915
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1646
1916
 
1647
- header_params = {
1648
- "name" => request.name
1649
- }
1917
+ header_params = {}
1918
+ if request.name
1919
+ header_params["name"] = request.name
1920
+ end
1921
+
1650
1922
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1651
1923
  metadata[:"x-goog-request-params"] ||= request_params_header
1652
1924
 
@@ -1705,6 +1977,21 @@ module Google
1705
1977
  #
1706
1978
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1707
1979
  #
1980
+ # @example Basic example
1981
+ # require "google/cloud/container/v1beta1"
1982
+ #
1983
+ # # Create a client object. The client can be reused for multiple calls.
1984
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
1985
+ #
1986
+ # # Create a request. To set request fields, pass in keyword arguments.
1987
+ # request = Google::Cloud::Container::V1beta1::GetServerConfigRequest.new
1988
+ #
1989
+ # # Call the get_server_config method.
1990
+ # result = client.get_server_config request
1991
+ #
1992
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ServerConfig.
1993
+ # p result
1994
+ #
1708
1995
  def get_server_config request, options = nil
1709
1996
  raise ::ArgumentError, "request must be provided" if request.nil?
1710
1997
 
@@ -1722,9 +2009,11 @@ module Google
1722
2009
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1723
2010
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1724
2011
 
1725
- header_params = {
1726
- "name" => request.name
1727
- }
2012
+ header_params = {}
2013
+ if request.name
2014
+ header_params["name"] = request.name
2015
+ end
2016
+
1728
2017
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1729
2018
  metadata[:"x-goog-request-params"] ||= request_params_header
1730
2019
 
@@ -1786,6 +2075,21 @@ module Google
1786
2075
  #
1787
2076
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1788
2077
  #
2078
+ # @example Basic example
2079
+ # require "google/cloud/container/v1beta1"
2080
+ #
2081
+ # # Create a client object. The client can be reused for multiple calls.
2082
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2083
+ #
2084
+ # # Create a request. To set request fields, pass in keyword arguments.
2085
+ # request = Google::Cloud::Container::V1beta1::ListNodePoolsRequest.new
2086
+ #
2087
+ # # Call the list_node_pools method.
2088
+ # result = client.list_node_pools request
2089
+ #
2090
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ListNodePoolsResponse.
2091
+ # p result
2092
+ #
1789
2093
  def list_node_pools request, options = nil
1790
2094
  raise ::ArgumentError, "request must be provided" if request.nil?
1791
2095
 
@@ -1803,9 +2107,11 @@ module Google
1803
2107
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1804
2108
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1805
2109
 
1806
- header_params = {
1807
- "parent" => request.parent
1808
- }
2110
+ header_params = {}
2111
+ if request.parent
2112
+ header_params["parent"] = request.parent
2113
+ end
2114
+
1809
2115
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1810
2116
  metadata[:"x-goog-request-params"] ||= request_params_header
1811
2117
 
@@ -1858,6 +2164,21 @@ module Google
1858
2164
  #
1859
2165
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1860
2166
  #
2167
+ # @example Basic example
2168
+ # require "google/cloud/container/v1beta1"
2169
+ #
2170
+ # # Create a client object. The client can be reused for multiple calls.
2171
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2172
+ #
2173
+ # # Create a request. To set request fields, pass in keyword arguments.
2174
+ # request = Google::Cloud::Container::V1beta1::GetJSONWebKeysRequest.new
2175
+ #
2176
+ # # Call the get_json_web_keys method.
2177
+ # result = client.get_json_web_keys request
2178
+ #
2179
+ # # The returned object is of type Google::Cloud::Container::V1beta1::GetJSONWebKeysResponse.
2180
+ # p result
2181
+ #
1861
2182
  def get_json_web_keys request, options = nil
1862
2183
  raise ::ArgumentError, "request must be provided" if request.nil?
1863
2184
 
@@ -1875,9 +2196,11 @@ module Google
1875
2196
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1876
2197
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1877
2198
 
1878
- header_params = {
1879
- "parent" => request.parent
1880
- }
2199
+ header_params = {}
2200
+ if request.parent
2201
+ header_params["parent"] = request.parent
2202
+ end
2203
+
1881
2204
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1882
2205
  metadata[:"x-goog-request-params"] ||= request_params_header
1883
2206
 
@@ -1943,6 +2266,21 @@ module Google
1943
2266
  #
1944
2267
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1945
2268
  #
2269
+ # @example Basic example
2270
+ # require "google/cloud/container/v1beta1"
2271
+ #
2272
+ # # Create a client object. The client can be reused for multiple calls.
2273
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2274
+ #
2275
+ # # Create a request. To set request fields, pass in keyword arguments.
2276
+ # request = Google::Cloud::Container::V1beta1::GetNodePoolRequest.new
2277
+ #
2278
+ # # Call the get_node_pool method.
2279
+ # result = client.get_node_pool request
2280
+ #
2281
+ # # The returned object is of type Google::Cloud::Container::V1beta1::NodePool.
2282
+ # p result
2283
+ #
1946
2284
  def get_node_pool request, options = nil
1947
2285
  raise ::ArgumentError, "request must be provided" if request.nil?
1948
2286
 
@@ -1960,9 +2298,11 @@ module Google
1960
2298
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
1961
2299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1962
2300
 
1963
- header_params = {
1964
- "name" => request.name
1965
- }
2301
+ header_params = {}
2302
+ if request.name
2303
+ header_params["name"] = request.name
2304
+ end
2305
+
1966
2306
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1967
2307
  metadata[:"x-goog-request-params"] ||= request_params_header
1968
2308
 
@@ -2027,6 +2367,21 @@ module Google
2027
2367
  #
2028
2368
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2029
2369
  #
2370
+ # @example Basic example
2371
+ # require "google/cloud/container/v1beta1"
2372
+ #
2373
+ # # Create a client object. The client can be reused for multiple calls.
2374
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2375
+ #
2376
+ # # Create a request. To set request fields, pass in keyword arguments.
2377
+ # request = Google::Cloud::Container::V1beta1::CreateNodePoolRequest.new
2378
+ #
2379
+ # # Call the create_node_pool method.
2380
+ # result = client.create_node_pool request
2381
+ #
2382
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2383
+ # p result
2384
+ #
2030
2385
  def create_node_pool request, options = nil
2031
2386
  raise ::ArgumentError, "request must be provided" if request.nil?
2032
2387
 
@@ -2044,9 +2399,11 @@ module Google
2044
2399
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2045
2400
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2046
2401
 
2047
- header_params = {
2048
- "parent" => request.parent
2049
- }
2402
+ header_params = {}
2403
+ if request.parent
2404
+ header_params["parent"] = request.parent
2405
+ end
2406
+
2050
2407
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2051
2408
  metadata[:"x-goog-request-params"] ||= request_params_header
2052
2409
 
@@ -2112,6 +2469,21 @@ module Google
2112
2469
  #
2113
2470
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2114
2471
  #
2472
+ # @example Basic example
2473
+ # require "google/cloud/container/v1beta1"
2474
+ #
2475
+ # # Create a client object. The client can be reused for multiple calls.
2476
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2477
+ #
2478
+ # # Create a request. To set request fields, pass in keyword arguments.
2479
+ # request = Google::Cloud::Container::V1beta1::DeleteNodePoolRequest.new
2480
+ #
2481
+ # # Call the delete_node_pool method.
2482
+ # result = client.delete_node_pool request
2483
+ #
2484
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2485
+ # p result
2486
+ #
2115
2487
  def delete_node_pool request, options = nil
2116
2488
  raise ::ArgumentError, "request must be provided" if request.nil?
2117
2489
 
@@ -2129,9 +2501,11 @@ module Google
2129
2501
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2130
2502
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2131
2503
 
2132
- header_params = {
2133
- "name" => request.name
2134
- }
2504
+ header_params = {}
2505
+ if request.name
2506
+ header_params["name"] = request.name
2507
+ end
2508
+
2135
2509
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2136
2510
  metadata[:"x-goog-request-params"] ||= request_params_header
2137
2511
 
@@ -2198,6 +2572,21 @@ module Google
2198
2572
  #
2199
2573
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2200
2574
  #
2575
+ # @example Basic example
2576
+ # require "google/cloud/container/v1beta1"
2577
+ #
2578
+ # # Create a client object. The client can be reused for multiple calls.
2579
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2580
+ #
2581
+ # # Create a request. To set request fields, pass in keyword arguments.
2582
+ # request = Google::Cloud::Container::V1beta1::RollbackNodePoolUpgradeRequest.new
2583
+ #
2584
+ # # Call the rollback_node_pool_upgrade method.
2585
+ # result = client.rollback_node_pool_upgrade request
2586
+ #
2587
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2588
+ # p result
2589
+ #
2201
2590
  def rollback_node_pool_upgrade request, options = nil
2202
2591
  raise ::ArgumentError, "request must be provided" if request.nil?
2203
2592
 
@@ -2215,9 +2604,11 @@ module Google
2215
2604
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2216
2605
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2217
2606
 
2218
- header_params = {
2219
- "name" => request.name
2220
- }
2607
+ header_params = {}
2608
+ if request.name
2609
+ header_params["name"] = request.name
2610
+ end
2611
+
2221
2612
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2222
2613
  metadata[:"x-goog-request-params"] ||= request_params_header
2223
2614
 
@@ -2285,6 +2676,21 @@ module Google
2285
2676
  #
2286
2677
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2287
2678
  #
2679
+ # @example Basic example
2680
+ # require "google/cloud/container/v1beta1"
2681
+ #
2682
+ # # Create a client object. The client can be reused for multiple calls.
2683
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2684
+ #
2685
+ # # Create a request. To set request fields, pass in keyword arguments.
2686
+ # request = Google::Cloud::Container::V1beta1::SetNodePoolManagementRequest.new
2687
+ #
2688
+ # # Call the set_node_pool_management method.
2689
+ # result = client.set_node_pool_management request
2690
+ #
2691
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2692
+ # p result
2693
+ #
2288
2694
  def set_node_pool_management request, options = nil
2289
2695
  raise ::ArgumentError, "request must be provided" if request.nil?
2290
2696
 
@@ -2302,9 +2708,11 @@ module Google
2302
2708
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2303
2709
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2304
2710
 
2305
- header_params = {
2306
- "name" => request.name
2307
- }
2711
+ header_params = {}
2712
+ if request.name
2713
+ header_params["name"] = request.name
2714
+ end
2715
+
2308
2716
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2309
2717
  metadata[:"x-goog-request-params"] ||= request_params_header
2310
2718
 
@@ -2375,6 +2783,21 @@ module Google
2375
2783
  #
2376
2784
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2377
2785
  #
2786
+ # @example Basic example
2787
+ # require "google/cloud/container/v1beta1"
2788
+ #
2789
+ # # Create a client object. The client can be reused for multiple calls.
2790
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2791
+ #
2792
+ # # Create a request. To set request fields, pass in keyword arguments.
2793
+ # request = Google::Cloud::Container::V1beta1::SetLabelsRequest.new
2794
+ #
2795
+ # # Call the set_labels method.
2796
+ # result = client.set_labels request
2797
+ #
2798
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2799
+ # p result
2800
+ #
2378
2801
  def set_labels request, options = nil
2379
2802
  raise ::ArgumentError, "request must be provided" if request.nil?
2380
2803
 
@@ -2392,9 +2815,11 @@ module Google
2392
2815
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2393
2816
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2394
2817
 
2395
- header_params = {
2396
- "name" => request.name
2397
- }
2818
+ header_params = {}
2819
+ if request.name
2820
+ header_params["name"] = request.name
2821
+ end
2822
+
2398
2823
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2399
2824
  metadata[:"x-goog-request-params"] ||= request_params_header
2400
2825
 
@@ -2458,6 +2883,21 @@ module Google
2458
2883
  #
2459
2884
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2460
2885
  #
2886
+ # @example Basic example
2887
+ # require "google/cloud/container/v1beta1"
2888
+ #
2889
+ # # Create a client object. The client can be reused for multiple calls.
2890
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2891
+ #
2892
+ # # Create a request. To set request fields, pass in keyword arguments.
2893
+ # request = Google::Cloud::Container::V1beta1::SetLegacyAbacRequest.new
2894
+ #
2895
+ # # Call the set_legacy_abac method.
2896
+ # result = client.set_legacy_abac request
2897
+ #
2898
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2899
+ # p result
2900
+ #
2461
2901
  def set_legacy_abac request, options = nil
2462
2902
  raise ::ArgumentError, "request must be provided" if request.nil?
2463
2903
 
@@ -2475,9 +2915,11 @@ module Google
2475
2915
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2476
2916
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2477
2917
 
2478
- header_params = {
2479
- "name" => request.name
2480
- }
2918
+ header_params = {}
2919
+ if request.name
2920
+ header_params["name"] = request.name
2921
+ end
2922
+
2481
2923
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2482
2924
  metadata[:"x-goog-request-params"] ||= request_params_header
2483
2925
 
@@ -2541,6 +2983,21 @@ module Google
2541
2983
  #
2542
2984
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2543
2985
  #
2986
+ # @example Basic example
2987
+ # require "google/cloud/container/v1beta1"
2988
+ #
2989
+ # # Create a client object. The client can be reused for multiple calls.
2990
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
2991
+ #
2992
+ # # Create a request. To set request fields, pass in keyword arguments.
2993
+ # request = Google::Cloud::Container::V1beta1::StartIPRotationRequest.new
2994
+ #
2995
+ # # Call the start_ip_rotation method.
2996
+ # result = client.start_ip_rotation request
2997
+ #
2998
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
2999
+ # p result
3000
+ #
2544
3001
  def start_ip_rotation request, options = nil
2545
3002
  raise ::ArgumentError, "request must be provided" if request.nil?
2546
3003
 
@@ -2558,9 +3015,11 @@ module Google
2558
3015
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2559
3016
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2560
3017
 
2561
- header_params = {
2562
- "name" => request.name
2563
- }
3018
+ header_params = {}
3019
+ if request.name
3020
+ header_params["name"] = request.name
3021
+ end
3022
+
2564
3023
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2565
3024
  metadata[:"x-goog-request-params"] ||= request_params_header
2566
3025
 
@@ -2622,6 +3081,21 @@ module Google
2622
3081
  #
2623
3082
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2624
3083
  #
3084
+ # @example Basic example
3085
+ # require "google/cloud/container/v1beta1"
3086
+ #
3087
+ # # Create a client object. The client can be reused for multiple calls.
3088
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3089
+ #
3090
+ # # Create a request. To set request fields, pass in keyword arguments.
3091
+ # request = Google::Cloud::Container::V1beta1::CompleteIPRotationRequest.new
3092
+ #
3093
+ # # Call the complete_ip_rotation method.
3094
+ # result = client.complete_ip_rotation request
3095
+ #
3096
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
3097
+ # p result
3098
+ #
2625
3099
  def complete_ip_rotation request, options = nil
2626
3100
  raise ::ArgumentError, "request must be provided" if request.nil?
2627
3101
 
@@ -2639,9 +3113,11 @@ module Google
2639
3113
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2640
3114
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2641
3115
 
2642
- header_params = {
2643
- "name" => request.name
2644
- }
3116
+ header_params = {}
3117
+ if request.name
3118
+ header_params["name"] = request.name
3119
+ end
3120
+
2645
3121
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2646
3122
  metadata[:"x-goog-request-params"] ||= request_params_header
2647
3123
 
@@ -2711,6 +3187,21 @@ module Google
2711
3187
  #
2712
3188
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2713
3189
  #
3190
+ # @example Basic example
3191
+ # require "google/cloud/container/v1beta1"
3192
+ #
3193
+ # # Create a client object. The client can be reused for multiple calls.
3194
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3195
+ #
3196
+ # # Create a request. To set request fields, pass in keyword arguments.
3197
+ # request = Google::Cloud::Container::V1beta1::SetNodePoolSizeRequest.new
3198
+ #
3199
+ # # Call the set_node_pool_size method.
3200
+ # result = client.set_node_pool_size request
3201
+ #
3202
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
3203
+ # p result
3204
+ #
2714
3205
  def set_node_pool_size request, options = nil
2715
3206
  raise ::ArgumentError, "request must be provided" if request.nil?
2716
3207
 
@@ -2728,9 +3219,11 @@ module Google
2728
3219
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2729
3220
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2730
3221
 
2731
- header_params = {
2732
- "name" => request.name
2733
- }
3222
+ header_params = {}
3223
+ if request.name
3224
+ header_params["name"] = request.name
3225
+ end
3226
+
2734
3227
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2735
3228
  metadata[:"x-goog-request-params"] ||= request_params_header
2736
3229
 
@@ -2794,6 +3287,21 @@ module Google
2794
3287
  #
2795
3288
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2796
3289
  #
3290
+ # @example Basic example
3291
+ # require "google/cloud/container/v1beta1"
3292
+ #
3293
+ # # Create a client object. The client can be reused for multiple calls.
3294
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3295
+ #
3296
+ # # Create a request. To set request fields, pass in keyword arguments.
3297
+ # request = Google::Cloud::Container::V1beta1::SetNetworkPolicyRequest.new
3298
+ #
3299
+ # # Call the set_network_policy method.
3300
+ # result = client.set_network_policy request
3301
+ #
3302
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
3303
+ # p result
3304
+ #
2797
3305
  def set_network_policy request, options = nil
2798
3306
  raise ::ArgumentError, "request must be provided" if request.nil?
2799
3307
 
@@ -2811,9 +3319,11 @@ module Google
2811
3319
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2812
3320
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2813
3321
 
2814
- header_params = {
2815
- "name" => request.name
2816
- }
3322
+ header_params = {}
3323
+ if request.name
3324
+ header_params["name"] = request.name
3325
+ end
3326
+
2817
3327
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2818
3328
  metadata[:"x-goog-request-params"] ||= request_params_header
2819
3329
 
@@ -2876,6 +3386,21 @@ module Google
2876
3386
  #
2877
3387
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2878
3388
  #
3389
+ # @example Basic example
3390
+ # require "google/cloud/container/v1beta1"
3391
+ #
3392
+ # # Create a client object. The client can be reused for multiple calls.
3393
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3394
+ #
3395
+ # # Create a request. To set request fields, pass in keyword arguments.
3396
+ # request = Google::Cloud::Container::V1beta1::SetMaintenancePolicyRequest.new
3397
+ #
3398
+ # # Call the set_maintenance_policy method.
3399
+ # result = client.set_maintenance_policy request
3400
+ #
3401
+ # # The returned object is of type Google::Cloud::Container::V1beta1::Operation.
3402
+ # p result
3403
+ #
2879
3404
  def set_maintenance_policy request, options = nil
2880
3405
  raise ::ArgumentError, "request must be provided" if request.nil?
2881
3406
 
@@ -2893,9 +3418,11 @@ module Google
2893
3418
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2894
3419
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2895
3420
 
2896
- header_params = {
2897
- "name" => request.name
2898
- }
3421
+ header_params = {}
3422
+ if request.name
3423
+ header_params["name"] = request.name
3424
+ end
3425
+
2899
3426
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2900
3427
  metadata[:"x-goog-request-params"] ||= request_params_header
2901
3428
 
@@ -2958,6 +3485,27 @@ module Google
2958
3485
  #
2959
3486
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2960
3487
  #
3488
+ # @example Basic example
3489
+ # require "google/cloud/container/v1beta1"
3490
+ #
3491
+ # # Create a client object. The client can be reused for multiple calls.
3492
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3493
+ #
3494
+ # # Create a request. To set request fields, pass in keyword arguments.
3495
+ # request = Google::Cloud::Container::V1beta1::ListUsableSubnetworksRequest.new
3496
+ #
3497
+ # # Call the list_usable_subnetworks method.
3498
+ # result = client.list_usable_subnetworks request
3499
+ #
3500
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3501
+ # # iterate over all elements by calling #each, and the enumerable
3502
+ # # will lazily make API calls to fetch subsequent pages. Other
3503
+ # # methods are also available for managing paging directly.
3504
+ # result.each do |response|
3505
+ # # Each element is of type ::Google::Cloud::Container::V1beta1::UsableSubnetwork.
3506
+ # p response
3507
+ # end
3508
+ #
2961
3509
  def list_usable_subnetworks request, options = nil
2962
3510
  raise ::ArgumentError, "request must be provided" if request.nil?
2963
3511
 
@@ -2975,9 +3523,11 @@ module Google
2975
3523
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
2976
3524
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2977
3525
 
2978
- header_params = {
2979
- "parent" => request.parent
2980
- }
3526
+ header_params = {}
3527
+ if request.parent
3528
+ header_params["parent"] = request.parent
3529
+ end
3530
+
2981
3531
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2982
3532
  metadata[:"x-goog-request-params"] ||= request_params_header
2983
3533
 
@@ -3028,6 +3578,21 @@ module Google
3028
3578
  #
3029
3579
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3030
3580
  #
3581
+ # @example Basic example
3582
+ # require "google/cloud/container/v1beta1"
3583
+ #
3584
+ # # Create a client object. The client can be reused for multiple calls.
3585
+ # client = Google::Cloud::Container::V1beta1::ClusterManager::Client.new
3586
+ #
3587
+ # # Create a request. To set request fields, pass in keyword arguments.
3588
+ # request = Google::Cloud::Container::V1beta1::ListLocationsRequest.new
3589
+ #
3590
+ # # Call the list_locations method.
3591
+ # result = client.list_locations request
3592
+ #
3593
+ # # The returned object is of type Google::Cloud::Container::V1beta1::ListLocationsResponse.
3594
+ # p result
3595
+ #
3031
3596
  def list_locations request, options = nil
3032
3597
  raise ::ArgumentError, "request must be provided" if request.nil?
3033
3598
 
@@ -3045,9 +3610,11 @@ module Google
3045
3610
  gapic_version: ::Google::Cloud::Container::V1beta1::VERSION
3046
3611
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3047
3612
 
3048
- header_params = {
3049
- "parent" => request.parent
3050
- }
3613
+ header_params = {}
3614
+ if request.parent
3615
+ header_params["parent"] = request.parent
3616
+ end
3617
+
3051
3618
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3052
3619
  metadata[:"x-goog-request-params"] ||= request_params_header
3053
3620
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1beta1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.8.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/container/v1beta1/cluster_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -13,6 +11,8 @@ require 'google/protobuf/wrappers_pb'
13
11
  require 'google/rpc/code_pb'
14
12
  require 'google/rpc/status_pb'
15
13
  require 'google/type/date_pb'
14
+ require 'google/protobuf'
15
+
16
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
17
  add_file("google/container/v1beta1/cluster_service.proto", :syntax => :proto3) do
18
18
  add_message "google.container.v1beta1.LinuxNodeConfig" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Google Kubernetes Engine Cluster Manager v1beta1
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-container-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-22 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common