google-cloud-container-v1 0.21.1 → 0.23.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.
@@ -133,6 +133,9 @@ module Google
133
133
  rpc :SetMaintenancePolicy, ::Google::Cloud::Container::V1::SetMaintenancePolicyRequest, ::Google::Cloud::Container::V1::Operation
134
134
  # Lists subnetworks that are usable for creating clusters in a project.
135
135
  rpc :ListUsableSubnetworks, ::Google::Cloud::Container::V1::ListUsableSubnetworksRequest, ::Google::Cloud::Container::V1::ListUsableSubnetworksResponse
136
+ # Checks the cluster compatibility with Autopilot mode, and returns a list of
137
+ # compatibility issues.
138
+ rpc :CheckAutopilotCompatibility, ::Google::Cloud::Container::V1::CheckAutopilotCompatibilityRequest, ::Google::Cloud::Container::V1::CheckAutopilotCompatibilityResponse
136
139
  end
137
140
 
138
141
  Stub = Service.rpc_stub_class
@@ -347,6 +347,9 @@ module Google
347
347
  # @return [::Google::Cloud::Container::V1::EphemeralStorageLocalSsdConfig]
348
348
  # Parameters for the node ephemeral storage using Local SSDs.
349
349
  # If unspecified, ephemeral storage is backed by the boot disk.
350
+ # @!attribute [rw] sole_tenant_config
351
+ # @return [::Google::Cloud::Container::V1::SoleTenantConfig]
352
+ # Parameters for node pools to be backed by shared sole tenant node groups.
350
353
  class NodeConfig
351
354
  include ::Google::Protobuf::MessageExts
352
355
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -562,6 +565,46 @@ module Google
562
565
  end
563
566
  end
564
567
 
568
+ # SoleTenantConfig contains the NodeAffinities to specify what shared sole
569
+ # tenant node groups should back the node pool.
570
+ # @!attribute [rw] node_affinities
571
+ # @return [::Array<::Google::Cloud::Container::V1::SoleTenantConfig::NodeAffinity>]
572
+ # NodeAffinities used to match to a shared sole tenant node group.
573
+ class SoleTenantConfig
574
+ include ::Google::Protobuf::MessageExts
575
+ extend ::Google::Protobuf::MessageExts::ClassMethods
576
+
577
+ # Specifies the NodeAffinity key, values, and affinity operator according to
578
+ # [shared sole tenant node group
579
+ # affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
580
+ # @!attribute [rw] key
581
+ # @return [::String]
582
+ # Key for NodeAffinity.
583
+ # @!attribute [rw] operator
584
+ # @return [::Google::Cloud::Container::V1::SoleTenantConfig::NodeAffinity::Operator]
585
+ # Operator for NodeAffinity.
586
+ # @!attribute [rw] values
587
+ # @return [::Array<::String>]
588
+ # Values for NodeAffinity.
589
+ class NodeAffinity
590
+ include ::Google::Protobuf::MessageExts
591
+ extend ::Google::Protobuf::MessageExts::ClassMethods
592
+
593
+ # Operator allows user to specify affinity or anti-affinity for the
594
+ # given key values.
595
+ module Operator
596
+ # Invalid or unspecified affinity operator.
597
+ OPERATOR_UNSPECIFIED = 0
598
+
599
+ # Affinity operator.
600
+ IN = 1
601
+
602
+ # Anti-affinity operator.
603
+ NOT_IN = 2
604
+ end
605
+ end
606
+ end
607
+
565
608
  # Kubernetes taint is composed of three fields: key, value, and effect. Effect
566
609
  # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
567
610
  #
@@ -1516,6 +1559,12 @@ module Google
1516
1559
  # @!attribute [rw] fleet
1517
1560
  # @return [::Google::Cloud::Container::V1::Fleet]
1518
1561
  # Fleet information for the cluster.
1562
+ # @!attribute [rw] security_posture_config
1563
+ # @return [::Google::Cloud::Container::V1::SecurityPostureConfig]
1564
+ # Enable/Disable Security Posture API features for the cluster.
1565
+ # @!attribute [rw] enable_k8s_beta_apis
1566
+ # @return [::Google::Cloud::Container::V1::K8sBetaAPIConfig]
1567
+ # Beta APIs Config
1519
1568
  class Cluster
1520
1569
  include ::Google::Protobuf::MessageExts
1521
1570
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1559,6 +1608,52 @@ module Google
1559
1608
  end
1560
1609
  end
1561
1610
 
1611
+ # K8sBetaAPIConfig , configuration for beta APIs
1612
+ # @!attribute [rw] enabled_apis
1613
+ # @return [::Array<::String>]
1614
+ # Enabled k8s beta APIs.
1615
+ class K8sBetaAPIConfig
1616
+ include ::Google::Protobuf::MessageExts
1617
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1618
+ end
1619
+
1620
+ # SecurityPostureConfig defines the flags needed to enable/disable features for
1621
+ # the Security Posture API.
1622
+ # @!attribute [rw] mode
1623
+ # @return [::Google::Cloud::Container::V1::SecurityPostureConfig::Mode]
1624
+ # Sets which mode to use for Security Posture features.
1625
+ # @!attribute [rw] vulnerability_mode
1626
+ # @return [::Google::Cloud::Container::V1::SecurityPostureConfig::VulnerabilityMode]
1627
+ # Sets which mode to use for vulnerability scanning.
1628
+ class SecurityPostureConfig
1629
+ include ::Google::Protobuf::MessageExts
1630
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1631
+
1632
+ # Mode defines enablement mode for GKE Security posture features.
1633
+ module Mode
1634
+ # Default value not specified.
1635
+ MODE_UNSPECIFIED = 0
1636
+
1637
+ # Disables Security Posture features on the cluster.
1638
+ DISABLED = 1
1639
+
1640
+ # Applies Security Posture features on the cluster.
1641
+ BASIC = 2
1642
+ end
1643
+
1644
+ # VulnerabilityMode defines enablement mode for vulnerability scanning.
1645
+ module VulnerabilityMode
1646
+ # Default value not specified.
1647
+ VULNERABILITY_MODE_UNSPECIFIED = 0
1648
+
1649
+ # Disables vulnerability scanning on the cluster.
1650
+ VULNERABILITY_DISABLED = 1
1651
+
1652
+ # Applies basic vulnerability scanning on the cluster.
1653
+ VULNERABILITY_BASIC = 2
1654
+ end
1655
+ end
1656
+
1562
1657
  # Node pool configs that apply to all auto-provisioned node pools
1563
1658
  # in autopilot clusters and node auto-provisioning enabled clusters.
1564
1659
  # @!attribute [rw] network_tags
@@ -1788,6 +1883,21 @@ module Google
1788
1883
  # The additional pod ranges that are to be removed from the cluster.
1789
1884
  # The pod ranges specified here must have been specified earlier in the
1790
1885
  # 'additional_pod_ranges_config' argument.
1886
+ # @!attribute [rw] enable_k8s_beta_apis
1887
+ # @return [::Google::Cloud::Container::V1::K8sBetaAPIConfig]
1888
+ # Kubernetes open source beta apis enabled on the cluster. Only beta apis
1889
+ # @!attribute [rw] desired_security_posture_config
1890
+ # @return [::Google::Cloud::Container::V1::SecurityPostureConfig]
1891
+ # Enable/Disable Security Posture API features for the cluster.
1892
+ # @!attribute [rw] desired_enable_fqdn_network_policy
1893
+ # @return [::Boolean]
1894
+ # Enable/Disable FQDN Network Policy for the cluster.
1895
+ # @!attribute [rw] desired_autopilot_workload_policy_config
1896
+ # @return [::Google::Cloud::Container::V1::WorkloadPolicyConfig]
1897
+ # The desired workload policy configuration for the autopilot cluster.
1898
+ # @!attribute [rw] desired_k8s_beta_apis
1899
+ # @return [::Google::Cloud::Container::V1::K8sBetaAPIConfig]
1900
+ # Desired Beta APIs to be enabled for cluster.
1791
1901
  class ClusterUpdate
1792
1902
  include ::Google::Protobuf::MessageExts
1793
1903
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2950,6 +3060,9 @@ module Google
2950
3060
  # This checksum is computed by the server based on the value of node pool
2951
3061
  # fields, and may be sent on update requests to ensure the client has an
2952
3062
  # up-to-date value before proceeding.
3063
+ # @!attribute [rw] best_effort_provisioning
3064
+ # @return [::Google::Cloud::Container::V1::BestEffortProvisioning]
3065
+ # Enable best effort provisioning for nodes
2953
3066
  class NodePool
2954
3067
  include ::Google::Protobuf::MessageExts
2955
3068
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3156,6 +3269,22 @@ module Google
3156
3269
  extend ::Google::Protobuf::MessageExts::ClassMethods
3157
3270
  end
3158
3271
 
3272
+ # Best effort provisioning.
3273
+ # @!attribute [rw] enabled
3274
+ # @return [::Boolean]
3275
+ # When this is enabled, cluster/node pool creations will ignore non-fatal
3276
+ # errors like stockout to best provision as many nodes as possible right now
3277
+ # and eventually bring up all target number of nodes
3278
+ # @!attribute [rw] min_provision_nodes
3279
+ # @return [::Integer]
3280
+ # Minimum number of nodes to be provisioned to be considered as succeeded,
3281
+ # and the rest of nodes will be provisioned gradually and eventually when
3282
+ # stockout issue has been resolved.
3283
+ class BestEffortProvisioning
3284
+ include ::Google::Protobuf::MessageExts
3285
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3286
+ end
3287
+
3159
3288
  # AutoUpgradeOptions defines the set of options for the user to control how
3160
3289
  # the Auto Upgrades will proceed.
3161
3290
  # @!attribute [rw] auto_upgrade_start_time
@@ -3755,6 +3884,9 @@ module Google
3755
3884
  # @!attribute [rw] gpu_sharing_config
3756
3885
  # @return [::Google::Cloud::Container::V1::GPUSharingConfig]
3757
3886
  # The configuration for GPU sharing options.
3887
+ # @!attribute [rw] gpu_driver_installation_config
3888
+ # @return [::Google::Cloud::Container::V1::GPUDriverInstallationConfig]
3889
+ # The configuration for auto installation of GPU driver.
3758
3890
  class AcceleratorConfig
3759
3891
  include ::Google::Protobuf::MessageExts
3760
3892
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3782,6 +3914,31 @@ module Google
3782
3914
  end
3783
3915
  end
3784
3916
 
3917
+ # GPUDriverInstallationConfig specifies the version of GPU driver to be auto
3918
+ # installed.
3919
+ # @!attribute [rw] gpu_driver_version
3920
+ # @return [::Google::Cloud::Container::V1::GPUDriverInstallationConfig::GPUDriverVersion]
3921
+ # Mode for how the GPU driver is installed.
3922
+ class GPUDriverInstallationConfig
3923
+ include ::Google::Protobuf::MessageExts
3924
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3925
+
3926
+ # The GPU driver version to install.
3927
+ module GPUDriverVersion
3928
+ # Default value is to not install any GPU driver.
3929
+ GPU_DRIVER_VERSION_UNSPECIFIED = 0
3930
+
3931
+ # Disable GPU driver auto installation and needs manual installation
3932
+ INSTALLATION_DISABLED = 1
3933
+
3934
+ # "Default" GPU driver in COS and Ubuntu.
3935
+ DEFAULT = 2
3936
+
3937
+ # "Latest" GPU driver in COS.
3938
+ LATEST = 3
3939
+ end
3940
+ end
3941
+
3785
3942
  # WorkloadMetadataConfig defines the metadata configuration to expose to
3786
3943
  # workloads on the node pool.
3787
3944
  # @!attribute [rw] mode
@@ -3955,6 +4112,9 @@ module Google
3955
4112
  # @return [::Google::Cloud::Container::V1::GatewayAPIConfig]
3956
4113
  # GatewayAPIConfig contains the desired config of Gateway API on this
3957
4114
  # cluster.
4115
+ # @!attribute [rw] enable_fqdn_network_policy
4116
+ # @return [::Boolean]
4117
+ # Whether FQDN Network Policy is enabled on this cluster.
3958
4118
  class NetworkConfig
3959
4119
  include ::Google::Protobuf::MessageExts
3960
4120
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -4089,6 +4249,73 @@ module Google
4089
4249
  extend ::Google::Protobuf::MessageExts::ClassMethods
4090
4250
  end
4091
4251
 
4252
+ # CheckAutopilotCompatibilityRequest requests getting the blockers for the
4253
+ # given operation in the cluster.
4254
+ # @!attribute [rw] name
4255
+ # @return [::String]
4256
+ # The name (project, location, cluster) of the cluster to retrieve.
4257
+ # Specified in the format `projects/*/locations/*/clusters/*`.
4258
+ class CheckAutopilotCompatibilityRequest
4259
+ include ::Google::Protobuf::MessageExts
4260
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4261
+ end
4262
+
4263
+ # AutopilotCompatibilityIssue contains information about a specific
4264
+ # compatibility issue with Autopilot mode.
4265
+ # @!attribute [rw] last_observation
4266
+ # @return [::Google::Protobuf::Timestamp]
4267
+ # The last time when this issue was observed.
4268
+ # @!attribute [rw] constraint_type
4269
+ # @return [::String]
4270
+ # The constraint type of the issue.
4271
+ # @!attribute [rw] incompatibility_type
4272
+ # @return [::Google::Cloud::Container::V1::AutopilotCompatibilityIssue::IssueType]
4273
+ # The incompatibility type of this issue.
4274
+ # @!attribute [rw] subjects
4275
+ # @return [::Array<::String>]
4276
+ # The name of the resources which are subject to this issue.
4277
+ # @!attribute [rw] documentation_url
4278
+ # @return [::String]
4279
+ # A URL to a public documnetation, which addresses resolving this issue.
4280
+ # @!attribute [rw] description
4281
+ # @return [::String]
4282
+ # The description of the issue.
4283
+ class AutopilotCompatibilityIssue
4284
+ include ::Google::Protobuf::MessageExts
4285
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4286
+
4287
+ # The type of the reported issue.
4288
+ module IssueType
4289
+ # Default value, should not be used.
4290
+ UNSPECIFIED = 0
4291
+
4292
+ # Indicates that the issue is a known incompatibility between the
4293
+ # cluster and Autopilot mode.
4294
+ INCOMPATIBILITY = 1
4295
+
4296
+ # Indicates the issue is an incompatibility if customers take no further
4297
+ # action to resolve.
4298
+ ADDITIONAL_CONFIG_REQUIRED = 2
4299
+
4300
+ # Indicates the issue is not an incompatibility, but depending on the
4301
+ # workloads business logic, there is a potential that they won't work on
4302
+ # Autopilot.
4303
+ PASSED_WITH_OPTIONAL_CONFIG = 3
4304
+ end
4305
+ end
4306
+
4307
+ # CheckAutopilotCompatibilityResponse has a list of compatibility issues.
4308
+ # @!attribute [rw] issues
4309
+ # @return [::Array<::Google::Cloud::Container::V1::AutopilotCompatibilityIssue>]
4310
+ # The list of issues for the given operation.
4311
+ # @!attribute [rw] summary
4312
+ # @return [::String]
4313
+ # The summary of the autopilot compatibility response.
4314
+ class CheckAutopilotCompatibilityResponse
4315
+ include ::Google::Protobuf::MessageExts
4316
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4317
+ end
4318
+
4092
4319
  # ReleaseChannel indicates which release channel a cluster is
4093
4320
  # subscribed to. Release channels are arranged in order of risk.
4094
4321
  #
@@ -4620,11 +4847,24 @@ module Google
4620
4847
  # @!attribute [rw] enabled
4621
4848
  # @return [::Boolean]
4622
4849
  # Enable Autopilot
4850
+ # @!attribute [rw] workload_policy_config
4851
+ # @return [::Google::Cloud::Container::V1::WorkloadPolicyConfig]
4852
+ # Workload policy configuration for Autopilot.
4623
4853
  class Autopilot
4624
4854
  include ::Google::Protobuf::MessageExts
4625
4855
  extend ::Google::Protobuf::MessageExts::ClassMethods
4626
4856
  end
4627
4857
 
4858
+ # WorkloadPolicyConfig is the configuration of workload policy for autopilot
4859
+ # clusters.
4860
+ # @!attribute [rw] allow_net_admin
4861
+ # @return [::Boolean]
4862
+ # If true, workloads can use NET_ADMIN capability.
4863
+ class WorkloadPolicyConfig
4864
+ include ::Google::Protobuf::MessageExts
4865
+ extend ::Google::Protobuf::MessageExts::ClassMethods
4866
+ end
4867
+
4628
4868
  # LoggingConfig is cluster logging configuration.
4629
4869
  # @!attribute [rw] component_config
4630
4870
  # @return [::Google::Cloud::Container::V1::LoggingComponentConfig]
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-container-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1
4
+ version: 0.23.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: 2023-05-19 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a