google-apis-container_v1 0.2.0 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b4878053b15a6b3e8ecf1e4f6b170759dfd535d9e174efc8b729d29c25a76ba
4
- data.tar.gz: 79afcac463eeea94413350eb73cef335cce14b7de23c707ea443d2b72d365a71
3
+ metadata.gz: 85fd37a2c3e39afe3a483852b2dda21cf992359b6f5522bd59a200b39fa24c8d
4
+ data.tar.gz: 58f96539458df5e8af7d30f70c6eb2d770a7712268f3bb9d14a4d7b4a3e62108
5
5
  SHA512:
6
- metadata.gz: '035459a080d1eed5fc1711314ff8c600419210693513c3efe668daa361b21c23d7b9e6eaa6ee5600e62094c9ffd0c14239d98433f9ed1774fbc8b3459c63a4fb'
7
- data.tar.gz: f821c80a1e30655e3c5b094d402ffa43e580a4d9fc6fead68bd10e42192a3caa52f6e847ede795dbda8865e9091291beb24b265dfe741476f1f6cd1af4e2e596
6
+ metadata.gz: 59adf94460593f38c2e6b994fe8efae741c64ed846a978c6338ad2ef8bd5ace799fd038212393e028757e895f9c4a83b2a2d65979e6cec0200105feb1598ce13
7
+ data.tar.gz: 9ef0eb3b764c7c18e95de2ef5574100459856da6d25b67d05caa87e276e4c8a4995fc24f3a2e4830e7f351a384fefc528e5d0cc0dc3e8c7fdb57b30c286cd6c2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-container_v1
2
2
 
3
+ ### v0.3.0 (2021-02-19)
4
+
5
+ * Regenerated from discovery document revision 20210216
6
+
3
7
  ### v0.2.0 (2021-02-05)
4
8
 
5
9
  * Regenerated from discovery document revision 20210119
@@ -172,6 +172,27 @@ module Google
172
172
  end
173
173
  end
174
174
 
175
+ # Autopilot is the configuration for Autopilot settings on the cluster. It is
176
+ # the official product name of what is previously known as AutoGKE
177
+ class Autopilot
178
+ include Google::Apis::Core::Hashable
179
+
180
+ # Enable Autopilot
181
+ # Corresponds to the JSON property `enabled`
182
+ # @return [Boolean]
183
+ attr_accessor :enabled
184
+ alias_method :enabled?, :enabled
185
+
186
+ def initialize(**args)
187
+ update!(**args)
188
+ end
189
+
190
+ # Update properties of this object
191
+ def update!(**args)
192
+ @enabled = args[:enabled] if args.key?(:enabled)
193
+ end
194
+ end
195
+
175
196
  # AutoprovisioningNodePoolDefaults contains defaults for a node pool created by
176
197
  # NAP.
177
198
  class AutoprovisioningNodePoolDefaults
@@ -435,6 +456,12 @@ module Google
435
456
  # @return [Google::Apis::ContainerV1::AuthenticatorGroupsConfig]
436
457
  attr_accessor :authenticator_groups_config
437
458
 
459
+ # Autopilot is the configuration for Autopilot settings on the cluster. It is
460
+ # the official product name of what is previously known as AutoGKE
461
+ # Corresponds to the JSON property `autopilot`
462
+ # @return [Google::Apis::ContainerV1::Autopilot]
463
+ attr_accessor :autopilot
464
+
438
465
  # ClusterAutoscaling contains global, per-cluster information required by
439
466
  # Cluster Autoscaler to automatically adjust the size of the cluster and create/
440
467
  # delete node pools based on the current needs.
@@ -780,6 +807,7 @@ module Google
780
807
  def update!(**args)
781
808
  @addons_config = args[:addons_config] if args.key?(:addons_config)
782
809
  @authenticator_groups_config = args[:authenticator_groups_config] if args.key?(:authenticator_groups_config)
810
+ @autopilot = args[:autopilot] if args.key?(:autopilot)
783
811
  @autoscaling = args[:autoscaling] if args.key?(:autoscaling)
784
812
  @binary_authorization = args[:binary_authorization] if args.key?(:binary_authorization)
785
813
  @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
@@ -1815,6 +1843,28 @@ module Google
1815
1843
  end
1816
1844
  end
1817
1845
 
1846
+ # Parameters that can be configured on Linux nodes.
1847
+ class LinuxNodeConfig
1848
+ include Google::Apis::Core::Hashable
1849
+
1850
+ # The Linux kernel parameters to be applied to the nodes and all pods running on
1851
+ # the nodes. The following parameters are supported. net.core.netdev_max_backlog
1852
+ # net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max
1853
+ # net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
1854
+ # Corresponds to the JSON property `sysctls`
1855
+ # @return [Hash<String,String>]
1856
+ attr_accessor :sysctls
1857
+
1858
+ def initialize(**args)
1859
+ update!(**args)
1860
+ end
1861
+
1862
+ # Update properties of this object
1863
+ def update!(**args)
1864
+ @sysctls = args[:sysctls] if args.key?(:sysctls)
1865
+ end
1866
+ end
1867
+
1818
1868
  # ListClustersResponse is the result of ListClustersRequest.
1819
1869
  class ListClustersResponse
1820
1870
  include Google::Apis::Core::Hashable
@@ -2263,6 +2313,11 @@ module Google
2263
2313
  # @return [String]
2264
2314
  attr_accessor :image_type
2265
2315
 
2316
+ # Node kubelet configs.
2317
+ # Corresponds to the JSON property `kubeletConfig`
2318
+ # @return [Google::Apis::ContainerV1::NodeKubeletConfig]
2319
+ attr_accessor :kubelet_config
2320
+
2266
2321
  # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2267
2322
  # These will added in addition to any default label(s) that Kubernetes may apply
2268
2323
  # to the node. In case of conflict in label keys, the applied set may differ
@@ -2274,6 +2329,11 @@ module Google
2274
2329
  # @return [Hash<String,String>]
2275
2330
  attr_accessor :labels
2276
2331
 
2332
+ # Parameters that can be configured on Linux nodes.
2333
+ # Corresponds to the JSON property `linuxNodeConfig`
2334
+ # @return [Google::Apis::ContainerV1::LinuxNodeConfig]
2335
+ attr_accessor :linux_node_config
2336
+
2277
2337
  # The number of local SSD disks to be attached to the node. The limit for this
2278
2338
  # value is dependent upon the maximum number of disks available on a machine per
2279
2339
  # zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more
@@ -2402,7 +2462,9 @@ module Google
2402
2462
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
2403
2463
  @disk_type = args[:disk_type] if args.key?(:disk_type)
2404
2464
  @image_type = args[:image_type] if args.key?(:image_type)
2465
+ @kubelet_config = args[:kubelet_config] if args.key?(:kubelet_config)
2405
2466
  @labels = args[:labels] if args.key?(:labels)
2467
+ @linux_node_config = args[:linux_node_config] if args.key?(:linux_node_config)
2406
2468
  @local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)
2407
2469
  @machine_type = args[:machine_type] if args.key?(:machine_type)
2408
2470
  @metadata = args[:metadata] if args.key?(:metadata)
@@ -2420,6 +2482,52 @@ module Google
2420
2482
  end
2421
2483
  end
2422
2484
 
2485
+ # Node kubelet configs.
2486
+ class NodeKubeletConfig
2487
+ include Google::Apis::Core::Hashable
2488
+
2489
+ # Enable CPU CFS quota enforcement for containers that specify CPU limits. This
2490
+ # option is enabled by default which makes kubelet use CFS quota (https://www.
2491
+ # kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU
2492
+ # limits. Otherwise, CPU limits will not be enforced at all. Disable this option
2493
+ # to mitigate CPU throttling problems while still having your pods to be in
2494
+ # Guaranteed QoS class by specifying the CPU limits. The default value is 'true'
2495
+ # if unspecified.
2496
+ # Corresponds to the JSON property `cpuCfsQuota`
2497
+ # @return [Boolean]
2498
+ attr_accessor :cpu_cfs_quota
2499
+ alias_method :cpu_cfs_quota?, :cpu_cfs_quota
2500
+
2501
+ # Set the CPU CFS quota period value 'cpu.cfs_period_us'. The string must be a
2502
+ # sequence of decimal numbers, each with optional fraction and a unit suffix,
2503
+ # such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h"
2504
+ # . The value must be a positive duration.
2505
+ # Corresponds to the JSON property `cpuCfsQuotaPeriod`
2506
+ # @return [String]
2507
+ attr_accessor :cpu_cfs_quota_period
2508
+
2509
+ # Control the CPU management policy on the node. See https://kubernetes.io/docs/
2510
+ # tasks/administer-cluster/cpu-management-policies/ The following values are
2511
+ # allowed. - "none": the default, which represents the existing scheduling
2512
+ # behavior. - "static": allows pods with certain resource characteristics to be
2513
+ # granted increased CPU affinity and exclusivity on the node. The default value
2514
+ # is 'none' if unspecified.
2515
+ # Corresponds to the JSON property `cpuManagerPolicy`
2516
+ # @return [String]
2517
+ attr_accessor :cpu_manager_policy
2518
+
2519
+ def initialize(**args)
2520
+ update!(**args)
2521
+ end
2522
+
2523
+ # Update properties of this object
2524
+ def update!(**args)
2525
+ @cpu_cfs_quota = args[:cpu_cfs_quota] if args.key?(:cpu_cfs_quota)
2526
+ @cpu_cfs_quota_period = args[:cpu_cfs_quota_period] if args.key?(:cpu_cfs_quota_period)
2527
+ @cpu_manager_policy = args[:cpu_manager_policy] if args.key?(:cpu_manager_policy)
2528
+ end
2529
+ end
2530
+
2423
2531
  # NodeManagement defines the set of node management services turned on for the
2424
2532
  # node pool.
2425
2533
  class NodeManagement
@@ -4183,6 +4291,16 @@ module Google
4183
4291
  # @return [String]
4184
4292
  attr_accessor :image_type
4185
4293
 
4294
+ # Node kubelet configs.
4295
+ # Corresponds to the JSON property `kubeletConfig`
4296
+ # @return [Google::Apis::ContainerV1::NodeKubeletConfig]
4297
+ attr_accessor :kubelet_config
4298
+
4299
+ # Parameters that can be configured on Linux nodes.
4300
+ # Corresponds to the JSON property `linuxNodeConfig`
4301
+ # @return [Google::Apis::ContainerV1::LinuxNodeConfig]
4302
+ attr_accessor :linux_node_config
4303
+
4186
4304
  # The desired list of Google Compute Engine [zones](https://cloud.google.com/
4187
4305
  # compute/docs/zones#available) in which the node pool's nodes should be located.
4188
4306
  # Changing the locations for a node pool will result in nodes being either
@@ -4261,6 +4379,8 @@ module Google
4261
4379
  def update!(**args)
4262
4380
  @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
4263
4381
  @image_type = args[:image_type] if args.key?(:image_type)
4382
+ @kubelet_config = args[:kubelet_config] if args.key?(:kubelet_config)
4383
+ @linux_node_config = args[:linux_node_config] if args.key?(:linux_node_config)
4264
4384
  @locations = args[:locations] if args.key?(:locations)
4265
4385
  @name = args[:name] if args.key?(:name)
4266
4386
  @node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContainerV1
18
18
  # Version of the google-apis-container_v1 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210119"
25
+ REVISION = "20210216"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class Autopilot
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class AutoprovisioningNodePoolDefaults
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -232,6 +238,12 @@ module Google
232
238
  include Google::Apis::Core::JsonObjectSupport
233
239
  end
234
240
 
241
+ class LinuxNodeConfig
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
235
247
  class ListClustersResponse
236
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
249
 
@@ -316,6 +328,12 @@ module Google
316
328
  include Google::Apis::Core::JsonObjectSupport
317
329
  end
318
330
 
331
+ class NodeKubeletConfig
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
319
337
  class NodeManagement
320
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
339
 
@@ -638,6 +656,13 @@ module Google
638
656
  end
639
657
  end
640
658
 
659
+ class Autopilot
660
+ # @private
661
+ class Representation < Google::Apis::Core::JsonRepresentation
662
+ property :enabled, as: 'enabled'
663
+ end
664
+ end
665
+
641
666
  class AutoprovisioningNodePoolDefaults
642
667
  # @private
643
668
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -710,6 +735,8 @@ module Google
710
735
 
711
736
  property :authenticator_groups_config, as: 'authenticatorGroupsConfig', class: Google::Apis::ContainerV1::AuthenticatorGroupsConfig, decorator: Google::Apis::ContainerV1::AuthenticatorGroupsConfig::Representation
712
737
 
738
+ property :autopilot, as: 'autopilot', class: Google::Apis::ContainerV1::Autopilot, decorator: Google::Apis::ContainerV1::Autopilot::Representation
739
+
713
740
  property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::ClusterAutoscaling, decorator: Google::Apis::ContainerV1::ClusterAutoscaling::Representation
714
741
 
715
742
  property :binary_authorization, as: 'binaryAuthorization', class: Google::Apis::ContainerV1::BinaryAuthorization, decorator: Google::Apis::ContainerV1::BinaryAuthorization::Representation
@@ -1033,6 +1060,13 @@ module Google
1033
1060
  end
1034
1061
  end
1035
1062
 
1063
+ class LinuxNodeConfig
1064
+ # @private
1065
+ class Representation < Google::Apis::Core::JsonRepresentation
1066
+ hash :sysctls, as: 'sysctls'
1067
+ end
1068
+ end
1069
+
1036
1070
  class ListClustersResponse
1037
1071
  # @private
1038
1072
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1164,7 +1198,11 @@ module Google
1164
1198
  property :disk_size_gb, as: 'diskSizeGb'
1165
1199
  property :disk_type, as: 'diskType'
1166
1200
  property :image_type, as: 'imageType'
1201
+ property :kubelet_config, as: 'kubeletConfig', class: Google::Apis::ContainerV1::NodeKubeletConfig, decorator: Google::Apis::ContainerV1::NodeKubeletConfig::Representation
1202
+
1167
1203
  hash :labels, as: 'labels'
1204
+ property :linux_node_config, as: 'linuxNodeConfig', class: Google::Apis::ContainerV1::LinuxNodeConfig, decorator: Google::Apis::ContainerV1::LinuxNodeConfig::Representation
1205
+
1168
1206
  property :local_ssd_count, as: 'localSsdCount'
1169
1207
  property :machine_type, as: 'machineType'
1170
1208
  hash :metadata, as: 'metadata'
@@ -1187,6 +1225,15 @@ module Google
1187
1225
  end
1188
1226
  end
1189
1227
 
1228
+ class NodeKubeletConfig
1229
+ # @private
1230
+ class Representation < Google::Apis::Core::JsonRepresentation
1231
+ property :cpu_cfs_quota, as: 'cpuCfsQuota'
1232
+ property :cpu_cfs_quota_period, as: 'cpuCfsQuotaPeriod'
1233
+ property :cpu_manager_policy, as: 'cpuManagerPolicy'
1234
+ end
1235
+ end
1236
+
1190
1237
  class NodeManagement
1191
1238
  # @private
1192
1239
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1613,6 +1660,10 @@ module Google
1613
1660
  class Representation < Google::Apis::Core::JsonRepresentation
1614
1661
  property :cluster_id, as: 'clusterId'
1615
1662
  property :image_type, as: 'imageType'
1663
+ property :kubelet_config, as: 'kubeletConfig', class: Google::Apis::ContainerV1::NodeKubeletConfig, decorator: Google::Apis::ContainerV1::NodeKubeletConfig::Representation
1664
+
1665
+ property :linux_node_config, as: 'linuxNodeConfig', class: Google::Apis::ContainerV1::LinuxNodeConfig, decorator: Google::Apis::ContainerV1::LinuxNodeConfig::Representation
1666
+
1616
1667
  collection :locations, as: 'locations'
1617
1668
  property :name, as: 'name'
1618
1669
  property :node_pool_id, as: 'nodePoolId'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-container_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
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-02-08 00:00:00.000000000 Z
11
+ date: 2021-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-container_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-container_v1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-container_v1/v0.3.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-container_v1
57
57
  post_install_message:
58
58
  rdoc_options: []