google-cloud-container-v1beta1 0.5.1 → 0.8.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.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Container::V1beta1::ClusterManager::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all ClusterManager clients:
47
- #
48
- # ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all ClusterManager clients
47
+ # ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -67,18 +66,12 @@ module Google
67
66
 
68
67
  default_config.rpcs.list_clusters.timeout = 20.0
69
68
  default_config.rpcs.list_clusters.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14, 4]
69
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
74
70
  }
75
71
 
76
72
  default_config.rpcs.get_cluster.timeout = 20.0
77
73
  default_config.rpcs.get_cluster.retry_policy = {
78
- initial_delay: 0.1,
79
- max_delay: 60.0,
80
- multiplier: 1.3,
81
- retry_codes: [14, 4]
74
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
82
75
  }
83
76
 
84
77
  default_config.rpcs.create_cluster.timeout = 45.0
@@ -103,62 +96,41 @@ module Google
103
96
 
104
97
  default_config.rpcs.delete_cluster.timeout = 20.0
105
98
  default_config.rpcs.delete_cluster.retry_policy = {
106
- initial_delay: 0.1,
107
- max_delay: 60.0,
108
- multiplier: 1.3,
109
- retry_codes: [14, 4]
99
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
110
100
  }
111
101
 
112
102
  default_config.rpcs.list_operations.timeout = 20.0
113
103
  default_config.rpcs.list_operations.retry_policy = {
114
- initial_delay: 0.1,
115
- max_delay: 60.0,
116
- multiplier: 1.3,
117
- retry_codes: [14, 4]
104
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
118
105
  }
119
106
 
120
107
  default_config.rpcs.get_operation.timeout = 20.0
121
108
  default_config.rpcs.get_operation.retry_policy = {
122
- initial_delay: 0.1,
123
- max_delay: 60.0,
124
- multiplier: 1.3,
125
- retry_codes: [14, 4]
109
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
126
110
  }
127
111
 
128
112
  default_config.rpcs.cancel_operation.timeout = 45.0
129
113
 
130
114
  default_config.rpcs.get_server_config.timeout = 20.0
131
115
  default_config.rpcs.get_server_config.retry_policy = {
132
- initial_delay: 0.1,
133
- max_delay: 60.0,
134
- multiplier: 1.3,
135
- retry_codes: [14, 4]
116
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
136
117
  }
137
118
 
138
119
  default_config.rpcs.list_node_pools.timeout = 20.0
139
120
  default_config.rpcs.list_node_pools.retry_policy = {
140
- initial_delay: 0.1,
141
- max_delay: 60.0,
142
- multiplier: 1.3,
143
- retry_codes: [14, 4]
121
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
144
122
  }
145
123
 
146
124
  default_config.rpcs.get_node_pool.timeout = 20.0
147
125
  default_config.rpcs.get_node_pool.retry_policy = {
148
- initial_delay: 0.1,
149
- max_delay: 60.0,
150
- multiplier: 1.3,
151
- retry_codes: [14, 4]
126
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
152
127
  }
153
128
 
154
129
  default_config.rpcs.create_node_pool.timeout = 45.0
155
130
 
156
131
  default_config.rpcs.delete_node_pool.timeout = 20.0
157
132
  default_config.rpcs.delete_node_pool.retry_policy = {
158
- initial_delay: 0.1,
159
- max_delay: 60.0,
160
- multiplier: 1.3,
161
- retry_codes: [14, 4]
133
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
162
134
  }
163
135
 
164
136
  default_config.rpcs.rollback_node_pool_upgrade.timeout = 45.0
@@ -181,18 +153,12 @@ module Google
181
153
 
182
154
  default_config.rpcs.list_usable_subnetworks.timeout = 20.0
183
155
  default_config.rpcs.list_usable_subnetworks.retry_policy = {
184
- initial_delay: 0.1,
185
- max_delay: 60.0,
186
- multiplier: 1.3,
187
- retry_codes: [14, 4]
156
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
188
157
  }
189
158
 
190
159
  default_config.rpcs.list_locations.timeout = 20.0
191
160
  default_config.rpcs.list_locations.retry_policy = {
192
- initial_delay: 0.1,
193
- max_delay: 60.0,
194
- multiplier: 1.3,
195
- retry_codes: [14, 4]
161
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
196
162
  }
197
163
 
198
164
  default_config
@@ -224,19 +190,15 @@ module Google
224
190
  ##
225
191
  # Create a new ClusterManager client object.
226
192
  #
227
- # ## Examples
228
- #
229
- # To create a new ClusterManager client with the default
230
- # configuration:
231
- #
232
- # client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new
193
+ # @example
233
194
  #
234
- # To create a new ClusterManager client with a custom
235
- # configuration:
195
+ # # Create a client using the default configuration
196
+ # client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new
236
197
  #
237
- # client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
238
- # config.timeout = 10.0
239
- # end
198
+ # # Create a client using a custom configuration
199
+ # client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
200
+ # config.timeout = 10.0
201
+ # end
240
202
  #
241
203
  # @yield [config] Configure the ClusterManager client.
242
204
  # @yieldparam config [Client::Configuration]
@@ -256,14 +218,13 @@ module Google
256
218
 
257
219
  # Create credentials
258
220
  credentials = @config.credentials
259
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
221
+ # Use self-signed JWT if the endpoint is unchanged from default,
260
222
  # but only if the default endpoint does not have a region prefix.
261
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
262
- @config.endpoint == Client.configure.endpoint &&
223
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
263
224
  !@config.endpoint.split(".").first.include?("-")
264
225
  credentials ||= Credentials.default scope: @config.scope,
265
226
  enable_self_signed_jwt: enable_self_signed_jwt
266
- if credentials.is_a?(String) || credentials.is_a?(Hash)
227
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
267
228
  credentials = Credentials.new credentials, scope: @config.scope
268
229
  end
269
230
  @quota_project_id = @config.quota_project
@@ -347,7 +308,9 @@ module Google
347
308
  options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
348
309
  metadata: metadata,
349
310
  retry_policy: @config.rpcs.list_clusters.retry_policy
350
- options.apply_defaults metadata: @config.metadata,
311
+
312
+ options.apply_defaults timeout: @config.timeout,
313
+ metadata: @config.metadata,
351
314
  retry_policy: @config.retry_policy
352
315
 
353
316
  @cluster_manager_stub.call_rpc :list_clusters, request, options: options do |response, operation|
@@ -426,7 +389,9 @@ module Google
426
389
  options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
427
390
  metadata: metadata,
428
391
  retry_policy: @config.rpcs.get_cluster.retry_policy
429
- options.apply_defaults metadata: @config.metadata,
392
+
393
+ options.apply_defaults timeout: @config.timeout,
394
+ metadata: @config.metadata,
430
395
  retry_policy: @config.retry_policy
431
396
 
432
397
  @cluster_manager_stub.call_rpc :get_cluster, request, options: options do |response, operation|
@@ -518,7 +483,9 @@ module Google
518
483
  options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
519
484
  metadata: metadata,
520
485
  retry_policy: @config.rpcs.create_cluster.retry_policy
521
- options.apply_defaults metadata: @config.metadata,
486
+
487
+ options.apply_defaults timeout: @config.timeout,
488
+ metadata: @config.metadata,
522
489
  retry_policy: @config.retry_policy
523
490
 
524
491
  @cluster_manager_stub.call_rpc :create_cluster, request, options: options do |response, operation|
@@ -599,7 +566,9 @@ module Google
599
566
  options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
600
567
  metadata: metadata,
601
568
  retry_policy: @config.rpcs.update_cluster.retry_policy
602
- options.apply_defaults metadata: @config.metadata,
569
+
570
+ options.apply_defaults timeout: @config.timeout,
571
+ metadata: @config.metadata,
603
572
  retry_policy: @config.retry_policy
604
573
 
605
574
  @cluster_manager_stub.call_rpc :update_cluster, request, options: options do |response, operation|
@@ -623,7 +592,7 @@ module Google
623
592
  # @param options [::Gapic::CallOptions, ::Hash]
624
593
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
625
594
  #
626
- # @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, locations: nil, workload_metadata_config: nil, name: nil, upgrade_settings: nil, linux_node_config: nil, kubelet_config: nil)
595
+ # @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, locations: nil, workload_metadata_config: nil, name: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, gvnic: nil)
627
596
  # Pass arguments to `update_node_pool` via keyword arguments. Note that at
628
597
  # least one keyword argument is required. To specify no parameters, or to keep all
629
598
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -671,10 +640,24 @@ module Google
671
640
  # `projects/*/locations/*/clusters/*/nodePools/*`.
672
641
  # @param upgrade_settings [::Google::Cloud::Container::V1beta1::NodePool::UpgradeSettings, ::Hash]
673
642
  # Upgrade settings control disruption and speed of the upgrade.
643
+ # @param tags [::Google::Cloud::Container::V1beta1::NetworkTags, ::Hash]
644
+ # The desired network tags to be applied to all nodes in the node pool.
645
+ # If this field is not present, the tags will not be changed. Otherwise,
646
+ # the existing network tags will be *replaced* with the provided tags.
647
+ # @param taints [::Google::Cloud::Container::V1beta1::NodeTaints, ::Hash]
648
+ # The desired node taints to be applied to all nodes in the node pool.
649
+ # If this field is not present, the taints will not be changed. Otherwise,
650
+ # the existing node taints will be *replaced* with the provided taints.
651
+ # @param labels [::Google::Cloud::Container::V1beta1::NodeLabels, ::Hash]
652
+ # The desired node labels to be applied to all nodes in the node pool.
653
+ # If this field is not present, the labels will not be changed. Otherwise,
654
+ # the existing node labels will be *replaced* with the provided labels.
674
655
  # @param linux_node_config [::Google::Cloud::Container::V1beta1::LinuxNodeConfig, ::Hash]
675
656
  # Parameters that can be configured on Linux nodes.
676
657
  # @param kubelet_config [::Google::Cloud::Container::V1beta1::NodeKubeletConfig, ::Hash]
677
658
  # Node kubelet configs.
659
+ # @param gvnic [::Google::Cloud::Container::V1beta1::VirtualNIC, ::Hash]
660
+ # Enable or disable gvnic on the node pool.
678
661
  #
679
662
  # @yield [response, operation] Access the result along with the RPC operation
680
663
  # @yieldparam response [::Google::Cloud::Container::V1beta1::Operation]
@@ -710,7 +693,9 @@ module Google
710
693
  options.apply_defaults timeout: @config.rpcs.update_node_pool.timeout,
711
694
  metadata: metadata,
712
695
  retry_policy: @config.rpcs.update_node_pool.retry_policy
713
- options.apply_defaults metadata: @config.metadata,
696
+
697
+ options.apply_defaults timeout: @config.timeout,
698
+ metadata: @config.metadata,
714
699
  retry_policy: @config.retry_policy
715
700
 
716
701
  @cluster_manager_stub.call_rpc :update_node_pool, request, options: options do |response, operation|
@@ -795,7 +780,9 @@ module Google
795
780
  options.apply_defaults timeout: @config.rpcs.set_node_pool_autoscaling.timeout,
796
781
  metadata: metadata,
797
782
  retry_policy: @config.rpcs.set_node_pool_autoscaling.retry_policy
798
- options.apply_defaults metadata: @config.metadata,
783
+
784
+ options.apply_defaults timeout: @config.timeout,
785
+ metadata: @config.metadata,
799
786
  retry_policy: @config.retry_policy
800
787
 
801
788
  @cluster_manager_stub.call_rpc :set_node_pool_autoscaling, request, options: options do |response, operation|
@@ -886,7 +873,9 @@ module Google
886
873
  options.apply_defaults timeout: @config.rpcs.set_logging_service.timeout,
887
874
  metadata: metadata,
888
875
  retry_policy: @config.rpcs.set_logging_service.retry_policy
889
- options.apply_defaults metadata: @config.metadata,
876
+
877
+ options.apply_defaults timeout: @config.timeout,
878
+ metadata: @config.metadata,
890
879
  retry_policy: @config.retry_policy
891
880
 
892
881
  @cluster_manager_stub.call_rpc :set_logging_service, request, options: options do |response, operation|
@@ -977,7 +966,9 @@ module Google
977
966
  options.apply_defaults timeout: @config.rpcs.set_monitoring_service.timeout,
978
967
  metadata: metadata,
979
968
  retry_policy: @config.rpcs.set_monitoring_service.retry_policy
980
- options.apply_defaults metadata: @config.metadata,
969
+
970
+ options.apply_defaults timeout: @config.timeout,
971
+ metadata: @config.metadata,
981
972
  retry_policy: @config.retry_policy
982
973
 
983
974
  @cluster_manager_stub.call_rpc :set_monitoring_service, request, options: options do |response, operation|
@@ -1019,8 +1010,8 @@ module Google
1019
1010
  # Required. Deprecated. The name of the cluster to upgrade.
1020
1011
  # This field has been deprecated and replaced by the name field.
1021
1012
  # @param addons_config [::Google::Cloud::Container::V1beta1::AddonsConfig, ::Hash]
1022
- # Required. The desired configurations for the various addons available to run in the
1023
- # cluster.
1013
+ # Required. The desired configurations for the various addons available to
1014
+ # run in the cluster.
1024
1015
  # @param name [::String]
1025
1016
  # The name (project, location, cluster) of the cluster to set addons.
1026
1017
  # Specified in the format `projects/*/locations/*/clusters/*`.
@@ -1059,7 +1050,9 @@ module Google
1059
1050
  options.apply_defaults timeout: @config.rpcs.set_addons_config.timeout,
1060
1051
  metadata: metadata,
1061
1052
  retry_policy: @config.rpcs.set_addons_config.retry_policy
1062
- options.apply_defaults metadata: @config.metadata,
1053
+
1054
+ options.apply_defaults timeout: @config.timeout,
1055
+ metadata: @config.metadata,
1063
1056
  retry_policy: @config.retry_policy
1064
1057
 
1065
1058
  @cluster_manager_stub.call_rpc :set_addons_config, request, options: options do |response, operation|
@@ -1076,6 +1069,8 @@ module Google
1076
1069
  # [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
1077
1070
  # instead.
1078
1071
  #
1072
+ # @deprecated This method is deprecated and may be removed in the next major version update.
1073
+ #
1079
1074
  # @overload set_locations(request, options = nil)
1080
1075
  # Pass arguments to `set_locations` via a request object, either of type
1081
1076
  # {::Google::Cloud::Container::V1beta1::SetLocationsRequest} or an equivalent Hash.
@@ -1149,7 +1144,9 @@ module Google
1149
1144
  options.apply_defaults timeout: @config.rpcs.set_locations.timeout,
1150
1145
  metadata: metadata,
1151
1146
  retry_policy: @config.rpcs.set_locations.retry_policy
1152
- options.apply_defaults metadata: @config.metadata,
1147
+
1148
+ options.apply_defaults timeout: @config.timeout,
1149
+ metadata: @config.metadata,
1153
1150
  retry_policy: @config.retry_policy
1154
1151
 
1155
1152
  @cluster_manager_stub.call_rpc :set_locations, request, options: options do |response, operation|
@@ -1239,7 +1236,9 @@ module Google
1239
1236
  options.apply_defaults timeout: @config.rpcs.update_master.timeout,
1240
1237
  metadata: metadata,
1241
1238
  retry_policy: @config.rpcs.update_master.retry_policy
1242
- options.apply_defaults metadata: @config.metadata,
1239
+
1240
+ options.apply_defaults timeout: @config.timeout,
1241
+ metadata: @config.metadata,
1243
1242
  retry_policy: @config.retry_policy
1244
1243
 
1245
1244
  @cluster_manager_stub.call_rpc :update_master, request, options: options do |response, operation|
@@ -1324,7 +1323,9 @@ module Google
1324
1323
  options.apply_defaults timeout: @config.rpcs.set_master_auth.timeout,
1325
1324
  metadata: metadata,
1326
1325
  retry_policy: @config.rpcs.set_master_auth.retry_policy
1327
- options.apply_defaults metadata: @config.metadata,
1326
+
1327
+ options.apply_defaults timeout: @config.timeout,
1328
+ metadata: @config.metadata,
1328
1329
  retry_policy: @config.retry_policy
1329
1330
 
1330
1331
  @cluster_manager_stub.call_rpc :set_master_auth, request, options: options do |response, operation|
@@ -1411,7 +1412,9 @@ module Google
1411
1412
  options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
1412
1413
  metadata: metadata,
1413
1414
  retry_policy: @config.rpcs.delete_cluster.retry_policy
1414
- options.apply_defaults metadata: @config.metadata,
1415
+
1416
+ options.apply_defaults timeout: @config.timeout,
1417
+ metadata: @config.metadata,
1415
1418
  retry_policy: @config.retry_policy
1416
1419
 
1417
1420
  @cluster_manager_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
@@ -1488,7 +1491,9 @@ module Google
1488
1491
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
1489
1492
  metadata: metadata,
1490
1493
  retry_policy: @config.rpcs.list_operations.retry_policy
1491
- options.apply_defaults metadata: @config.metadata,
1494
+
1495
+ options.apply_defaults timeout: @config.timeout,
1496
+ metadata: @config.metadata,
1492
1497
  retry_policy: @config.retry_policy
1493
1498
 
1494
1499
  @cluster_manager_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -1567,7 +1572,9 @@ module Google
1567
1572
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
1568
1573
  metadata: metadata,
1569
1574
  retry_policy: @config.rpcs.get_operation.retry_policy
1570
- options.apply_defaults metadata: @config.metadata,
1575
+
1576
+ options.apply_defaults timeout: @config.timeout,
1577
+ metadata: @config.metadata,
1571
1578
  retry_policy: @config.retry_policy
1572
1579
 
1573
1580
  @cluster_manager_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -1646,7 +1653,9 @@ module Google
1646
1653
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
1647
1654
  metadata: metadata,
1648
1655
  retry_policy: @config.rpcs.cancel_operation.retry_policy
1649
- options.apply_defaults metadata: @config.metadata,
1656
+
1657
+ options.apply_defaults timeout: @config.timeout,
1658
+ metadata: @config.metadata,
1650
1659
  retry_policy: @config.retry_policy
1651
1660
 
1652
1661
  @cluster_manager_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -1722,7 +1731,9 @@ module Google
1722
1731
  options.apply_defaults timeout: @config.rpcs.get_server_config.timeout,
1723
1732
  metadata: metadata,
1724
1733
  retry_policy: @config.rpcs.get_server_config.retry_policy
1725
- options.apply_defaults metadata: @config.metadata,
1734
+
1735
+ options.apply_defaults timeout: @config.timeout,
1736
+ metadata: @config.metadata,
1726
1737
  retry_policy: @config.retry_policy
1727
1738
 
1728
1739
  @cluster_manager_stub.call_rpc :get_server_config, request, options: options do |response, operation|
@@ -1801,7 +1812,9 @@ module Google
1801
1812
  options.apply_defaults timeout: @config.rpcs.list_node_pools.timeout,
1802
1813
  metadata: metadata,
1803
1814
  retry_policy: @config.rpcs.list_node_pools.retry_policy
1804
- options.apply_defaults metadata: @config.metadata,
1815
+
1816
+ options.apply_defaults timeout: @config.timeout,
1817
+ metadata: @config.metadata,
1805
1818
  retry_policy: @config.retry_policy
1806
1819
 
1807
1820
  @cluster_manager_stub.call_rpc :list_node_pools, request, options: options do |response, operation|
@@ -1871,7 +1884,9 @@ module Google
1871
1884
  options.apply_defaults timeout: @config.rpcs.get_json_web_keys.timeout,
1872
1885
  metadata: metadata,
1873
1886
  retry_policy: @config.rpcs.get_json_web_keys.retry_policy
1874
- options.apply_defaults metadata: @config.metadata,
1887
+
1888
+ options.apply_defaults timeout: @config.timeout,
1889
+ metadata: @config.metadata,
1875
1890
  retry_policy: @config.retry_policy
1876
1891
 
1877
1892
  @cluster_manager_stub.call_rpc :get_json_web_keys, request, options: options do |response, operation|
@@ -1954,7 +1969,9 @@ module Google
1954
1969
  options.apply_defaults timeout: @config.rpcs.get_node_pool.timeout,
1955
1970
  metadata: metadata,
1956
1971
  retry_policy: @config.rpcs.get_node_pool.retry_policy
1957
- options.apply_defaults metadata: @config.metadata,
1972
+
1973
+ options.apply_defaults timeout: @config.timeout,
1974
+ metadata: @config.metadata,
1958
1975
  retry_policy: @config.retry_policy
1959
1976
 
1960
1977
  @cluster_manager_stub.call_rpc :get_node_pool, request, options: options do |response, operation|
@@ -2036,7 +2053,9 @@ module Google
2036
2053
  options.apply_defaults timeout: @config.rpcs.create_node_pool.timeout,
2037
2054
  metadata: metadata,
2038
2055
  retry_policy: @config.rpcs.create_node_pool.retry_policy
2039
- options.apply_defaults metadata: @config.metadata,
2056
+
2057
+ options.apply_defaults timeout: @config.timeout,
2058
+ metadata: @config.metadata,
2040
2059
  retry_policy: @config.retry_policy
2041
2060
 
2042
2061
  @cluster_manager_stub.call_rpc :create_node_pool, request, options: options do |response, operation|
@@ -2119,7 +2138,9 @@ module Google
2119
2138
  options.apply_defaults timeout: @config.rpcs.delete_node_pool.timeout,
2120
2139
  metadata: metadata,
2121
2140
  retry_policy: @config.rpcs.delete_node_pool.retry_policy
2122
- options.apply_defaults metadata: @config.metadata,
2141
+
2142
+ options.apply_defaults timeout: @config.timeout,
2143
+ metadata: @config.metadata,
2123
2144
  retry_policy: @config.retry_policy
2124
2145
 
2125
2146
  @cluster_manager_stub.call_rpc :delete_node_pool, request, options: options do |response, operation|
@@ -2203,7 +2224,9 @@ module Google
2203
2224
  options.apply_defaults timeout: @config.rpcs.rollback_node_pool_upgrade.timeout,
2204
2225
  metadata: metadata,
2205
2226
  retry_policy: @config.rpcs.rollback_node_pool_upgrade.retry_policy
2206
- options.apply_defaults metadata: @config.metadata,
2227
+
2228
+ options.apply_defaults timeout: @config.timeout,
2229
+ metadata: @config.metadata,
2207
2230
  retry_policy: @config.retry_policy
2208
2231
 
2209
2232
  @cluster_manager_stub.call_rpc :rollback_node_pool_upgrade, request, options: options do |response, operation|
@@ -2288,7 +2311,9 @@ module Google
2288
2311
  options.apply_defaults timeout: @config.rpcs.set_node_pool_management.timeout,
2289
2312
  metadata: metadata,
2290
2313
  retry_policy: @config.rpcs.set_node_pool_management.retry_policy
2291
- options.apply_defaults metadata: @config.metadata,
2314
+
2315
+ options.apply_defaults timeout: @config.timeout,
2316
+ metadata: @config.metadata,
2292
2317
  retry_policy: @config.retry_policy
2293
2318
 
2294
2319
  @cluster_manager_stub.call_rpc :set_node_pool_management, request, options: options do |response, operation|
@@ -2376,7 +2401,9 @@ module Google
2376
2401
  options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
2377
2402
  metadata: metadata,
2378
2403
  retry_policy: @config.rpcs.set_labels.retry_policy
2379
- options.apply_defaults metadata: @config.metadata,
2404
+
2405
+ options.apply_defaults timeout: @config.timeout,
2406
+ metadata: @config.metadata,
2380
2407
  retry_policy: @config.retry_policy
2381
2408
 
2382
2409
  @cluster_manager_stub.call_rpc :set_labels, request, options: options do |response, operation|
@@ -2457,7 +2484,9 @@ module Google
2457
2484
  options.apply_defaults timeout: @config.rpcs.set_legacy_abac.timeout,
2458
2485
  metadata: metadata,
2459
2486
  retry_policy: @config.rpcs.set_legacy_abac.retry_policy
2460
- options.apply_defaults metadata: @config.metadata,
2487
+
2488
+ options.apply_defaults timeout: @config.timeout,
2489
+ metadata: @config.metadata,
2461
2490
  retry_policy: @config.retry_policy
2462
2491
 
2463
2492
  @cluster_manager_stub.call_rpc :set_legacy_abac, request, options: options do |response, operation|
@@ -2538,7 +2567,9 @@ module Google
2538
2567
  options.apply_defaults timeout: @config.rpcs.start_ip_rotation.timeout,
2539
2568
  metadata: metadata,
2540
2569
  retry_policy: @config.rpcs.start_ip_rotation.retry_policy
2541
- options.apply_defaults metadata: @config.metadata,
2570
+
2571
+ options.apply_defaults timeout: @config.timeout,
2572
+ metadata: @config.metadata,
2542
2573
  retry_policy: @config.retry_policy
2543
2574
 
2544
2575
  @cluster_manager_stub.call_rpc :start_ip_rotation, request, options: options do |response, operation|
@@ -2617,7 +2648,9 @@ module Google
2617
2648
  options.apply_defaults timeout: @config.rpcs.complete_ip_rotation.timeout,
2618
2649
  metadata: metadata,
2619
2650
  retry_policy: @config.rpcs.complete_ip_rotation.retry_policy
2620
- options.apply_defaults metadata: @config.metadata,
2651
+
2652
+ options.apply_defaults timeout: @config.timeout,
2653
+ metadata: @config.metadata,
2621
2654
  retry_policy: @config.retry_policy
2622
2655
 
2623
2656
  @cluster_manager_stub.call_rpc :complete_ip_rotation, request, options: options do |response, operation|
@@ -2629,7 +2662,9 @@ module Google
2629
2662
  end
2630
2663
 
2631
2664
  ##
2632
- # Sets the size for a specific node pool.
2665
+ # SetNodePoolSizeRequest sets the size of a node pool. The new size will be
2666
+ # used for all replicas, including future replicas created by modifying
2667
+ # {::Google::Cloud::Container::V1beta1::NodePool#locations NodePool.locations}.
2633
2668
  #
2634
2669
  # @overload set_node_pool_size(request, options = nil)
2635
2670
  # Pass arguments to `set_node_pool_size` via a request object, either of type
@@ -2702,7 +2737,9 @@ module Google
2702
2737
  options.apply_defaults timeout: @config.rpcs.set_node_pool_size.timeout,
2703
2738
  metadata: metadata,
2704
2739
  retry_policy: @config.rpcs.set_node_pool_size.retry_policy
2705
- options.apply_defaults metadata: @config.metadata,
2740
+
2741
+ options.apply_defaults timeout: @config.timeout,
2742
+ metadata: @config.metadata,
2706
2743
  retry_policy: @config.retry_policy
2707
2744
 
2708
2745
  @cluster_manager_stub.call_rpc :set_node_pool_size, request, options: options do |response, operation|
@@ -2783,7 +2820,9 @@ module Google
2783
2820
  options.apply_defaults timeout: @config.rpcs.set_network_policy.timeout,
2784
2821
  metadata: metadata,
2785
2822
  retry_policy: @config.rpcs.set_network_policy.retry_policy
2786
- options.apply_defaults metadata: @config.metadata,
2823
+
2824
+ options.apply_defaults timeout: @config.timeout,
2825
+ metadata: @config.metadata,
2787
2826
  retry_policy: @config.retry_policy
2788
2827
 
2789
2828
  @cluster_manager_stub.call_rpc :set_network_policy, request, options: options do |response, operation|
@@ -2863,7 +2902,9 @@ module Google
2863
2902
  options.apply_defaults timeout: @config.rpcs.set_maintenance_policy.timeout,
2864
2903
  metadata: metadata,
2865
2904
  retry_policy: @config.rpcs.set_maintenance_policy.retry_policy
2866
- options.apply_defaults metadata: @config.metadata,
2905
+
2906
+ options.apply_defaults timeout: @config.timeout,
2907
+ metadata: @config.metadata,
2867
2908
  retry_policy: @config.retry_policy
2868
2909
 
2869
2910
  @cluster_manager_stub.call_rpc :set_maintenance_policy, request, options: options do |response, operation|
@@ -2943,7 +2984,9 @@ module Google
2943
2984
  options.apply_defaults timeout: @config.rpcs.list_usable_subnetworks.timeout,
2944
2985
  metadata: metadata,
2945
2986
  retry_policy: @config.rpcs.list_usable_subnetworks.retry_policy
2946
- options.apply_defaults metadata: @config.metadata,
2987
+
2988
+ options.apply_defaults timeout: @config.timeout,
2989
+ metadata: @config.metadata,
2947
2990
  retry_policy: @config.retry_policy
2948
2991
 
2949
2992
  @cluster_manager_stub.call_rpc :list_usable_subnetworks, request, options: options do |response, operation|
@@ -3011,7 +3054,9 @@ module Google
3011
3054
  options.apply_defaults timeout: @config.rpcs.list_locations.timeout,
3012
3055
  metadata: metadata,
3013
3056
  retry_policy: @config.rpcs.list_locations.retry_policy
3014
- options.apply_defaults metadata: @config.metadata,
3057
+
3058
+ options.apply_defaults timeout: @config.timeout,
3059
+ metadata: @config.metadata,
3015
3060
  retry_policy: @config.retry_policy
3016
3061
 
3017
3062
  @cluster_manager_stub.call_rpc :list_locations, request, options: options do |response, operation|
@@ -3035,22 +3080,21 @@ module Google
3035
3080
  # Configuration can be applied globally to all clients, or to a single client
3036
3081
  # on construction.
3037
3082
  #
3038
- # # Examples
3039
- #
3040
- # To modify the global config, setting the timeout for list_clusters
3041
- # to 20 seconds, and all remaining timeouts to 10 seconds:
3042
- #
3043
- # ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
3044
- # config.timeout = 10.0
3045
- # config.rpcs.list_clusters.timeout = 20.0
3046
- # end
3047
- #
3048
- # To apply the above configuration only to a new client:
3049
- #
3050
- # client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
3051
- # config.timeout = 10.0
3052
- # config.rpcs.list_clusters.timeout = 20.0
3053
- # end
3083
+ # @example
3084
+ #
3085
+ # # Modify the global config, setting the timeout for
3086
+ # # list_clusters to 20 seconds,
3087
+ # # and all remaining timeouts to 10 seconds.
3088
+ # ::Google::Cloud::Container::V1beta1::ClusterManager::Client.configure do |config|
3089
+ # config.timeout = 10.0
3090
+ # config.rpcs.list_clusters.timeout = 20.0
3091
+ # end
3092
+ #
3093
+ # # Apply the above configuration only to a new client.
3094
+ # client = ::Google::Cloud::Container::V1beta1::ClusterManager::Client.new do |config|
3095
+ # config.timeout = 10.0
3096
+ # config.rpcs.list_clusters.timeout = 20.0
3097
+ # end
3054
3098
  #
3055
3099
  # @!attribute [rw] endpoint
3056
3100
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1beta1
24
- VERSION = "0.5.1"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end