diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 1c53f766746d..f32f00f5936c 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. 1. [Select or create a Cloud Platform project][projects]. 1. [Enable billing for your project][billing]. 1. [Enable the Kubernetes Engine Cluster Manager API API][enable_api]. -1. [Set up authentication with a service account][auth] so you can access the +1. [Set up authentication][auth] so you can access the API from your local workstation. ### Installing the client library @@ -228,4 +228,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=container.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started +[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index ba8730d3d57f..f79bff88adfd 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -38,6 +38,14 @@ option (google.api.resource_definition) = { type: "pubsub.googleapis.com/Topic" pattern: "projects/{project}/topics/{topic}" }; +option (google.api.resource_definition) = { + type: "privateca.googleapis.com/CaPool" + pattern: "projects/{project}/locations/{location}/caPools/{ca_pool}" +}; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // Google Kubernetes Engine Cluster Manager v1 service ClusterManager { @@ -639,6 +647,21 @@ message NodeKubeletConfig { // [AutoprovisioningNodePoolDefaults][google.container.v1.AutoprovisioningNodePoolDefaults] // instead. message NodeConfig { + // Possible effective cgroup modes for the node. + enum EffectiveCgroupMode { + // EFFECTIVE_CGROUP_MODE_UNSPECIFIED means the cgroup configuration for the + // node pool is unspecified, i.e. the node pool is a Windows node pool. + EFFECTIVE_CGROUP_MODE_UNSPECIFIED = 0; + + // CGROUP_MODE_V1 means the node pool is configured to use cgroupv1 for the + // cgroup configuration. + EFFECTIVE_CGROUP_MODE_V1 = 1; + + // CGROUP_MODE_V2 means the node pool is configured to use cgroupv2 for the + // cgroup configuration. + EFFECTIVE_CGROUP_MODE_V2 = 2; + } + // The name of a Google Compute Engine [machine // type](https://cloud.google.com/compute/docs/machine-types) // @@ -857,9 +880,19 @@ message NodeConfig { // List of secondary boot disks attached to the nodes. repeated SecondaryBootDisk secondary_boot_disks = 48; + // List of Storage Pools where boot disks are provisioned. + repeated string storage_pools = 49; + // Secondary boot disk update strategy. optional SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; + + // Output only. effective_cgroup_mode is the cgroup mode actually used by the + // node pool. It is determined by the cgroup mode specified in the + // LinuxNodeConfig or the default cgroup mode based on the cluster creation + // version. + EffectiveCgroupMode effective_cgroup_mode = 55 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Specifies options for controlling advanced machine features. @@ -933,7 +966,7 @@ message NodeNetworkConfig { // Whether nodes have internal IP addresses only. // If enable_private_nodes is not specified, then the value is derived from - // [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + // [Cluster.NetworkConfig.default_enable_private_nodes][] optional bool enable_private_nodes = 9; // Network bandwidth tier configuration. @@ -1242,7 +1275,8 @@ message MasterAuth { [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Base64-encoded public certificate used by clients to - // authenticate to the cluster endpoint. + // authenticate to the cluster endpoint. Issued only if + // client_certificate_config is set. string client_certificate = 101 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Base64-encoded private key used by clients to authenticate @@ -1307,6 +1341,9 @@ message AddonsConfig { StatefulHAConfig stateful_ha_config = 18 [(google.api.field_behavior) = OPTIONAL]; + // Configuration for the Cloud Storage Parallelstore CSI driver. + ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; + // Optional. Configuration for Ray Operator addon. RayOperatorConfig ray_operator_config = 21 [(google.api.field_behavior) = OPTIONAL]; @@ -1362,10 +1399,19 @@ message PrivateClusterConfig { // Whether nodes have internal IP addresses only. If enabled, all nodes are // given only RFC 1918 private addresses and communicate with the master via // private networking. - bool enable_private_nodes = 1; + // + // Deprecated: Use + // [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + // instead. + bool enable_private_nodes = 1 [deprecated = true]; // Whether the master's internal IP address is used as the cluster endpoint. - bool enable_private_endpoint = 2; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint] + // instead. Note that the value of enable_public_endpoint is reversed: if + // enable_private_endpoint is false, then enable_public_endpoint will be true. + bool enable_private_endpoint = 2 [deprecated = true]; // The IP range in CIDR notation to use for the hosted master network. This // range will be used for assigning internal IP addresses to the master or @@ -1374,20 +1420,39 @@ message PrivateClusterConfig { string master_ipv4_cidr_block = 3; // Output only. The internal IP address of this cluster's master endpoint. - string private_endpoint = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint] + // instead. + string private_endpoint = 4 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The external IP address of this cluster's master endpoint. - string public_endpoint = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // + // Deprecated:Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint] + // instead. + string public_endpoint = 5 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The peering name in the customer VPC used by this cluster. string peering_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Controls master global access settings. - PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][] + // instead. + PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 + [deprecated = true]; // Subnet to provision the master's private endpoint during cluster creation. // Specified in projects/*/regions/*/subnetworks/* format. - string private_endpoint_subnetwork = 10; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork] + // instead. + string private_endpoint_subnetwork = 10 [deprecated = true]; } // Configuration for returning group information from authenticators. @@ -1446,6 +1511,13 @@ message GcsFuseCsiDriverConfig { bool enabled = 1; } +// Configuration for the Cloud Storage Parallelstore CSI driver. +message ParallelstoreCsiDriverConfig { + // Whether the Cloud Storage Parallelstore CSI driver is enabled for this + // cluster. + bool enabled = 1; +} + // Configuration options for the Ray Operator add-on. message RayOperatorConfig { // Whether the Ray Operator addon is enabled for this cluster. @@ -1495,6 +1567,9 @@ message MasterAuthorizedNetworksConfig { // Whether master is accessbile via Google Compute Engine Public IP addresses. optional bool gcp_public_cidrs_access_enabled = 3; + + // Whether master authorized networks is enforced on private endpoint or not. + optional bool private_endpoint_enforcement_enabled = 5; } // Configuration for the legacy Attribute Based Access Control authorization @@ -1884,7 +1959,12 @@ message Cluster { IPAllocationPolicy ip_allocation_policy = 20; // The configuration options for master authorized networks feature. - MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + // + // Deprecated: Use + // [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config] + // instead. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 + [deprecated = true]; // Configure the maintenance policy for this cluster. MaintenancePolicy maintenance_policy = 23; @@ -2083,17 +2163,135 @@ message Cluster { // Enable/Disable Security Posture API features for the cluster. SecurityPostureConfig security_posture_config = 145; + // Configuration for all cluster's control plane endpoints. + ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; + // Beta APIs Config K8sBetaAPIConfig enable_k8s_beta_apis = 143; // GKE Enterprise Configuration. EnterpriseConfig enterprise_config = 149; + // Secret CSI driver configuration. + SecretManagerConfig secret_manager_config = 150; + + // Enable/Disable Compliance Posture features for the cluster. + CompliancePostureConfig compliance_posture_config = 151; + // Output only. Reserved for future use. optional bool satisfies_pzs = 152 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Reserved for future use. optional bool satisfies_pzi = 153 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The Custom keys configuration for the cluster. + optional UserManagedKeysConfig user_managed_keys_config = 154; + + // RBACBindingConfig allows user to restrict ClusterRoleBindings an + // RoleBindings that can be created. + optional RBACBindingConfig rbac_binding_config = 156; +} + +// RBACBindingConfig allows user to restrict ClusterRoleBindings an RoleBindings +// that can be created. +message RBACBindingConfig { + // Setting this to true will allow any ClusterRoleBinding and RoleBinding + // with subjets system:anonymous or system:unauthenticated. + optional bool enable_insecure_binding_system_unauthenticated = 1; + + // Setting this to true will allow any ClusterRoleBinding and RoleBinding + // with subjects system:authenticated. + optional bool enable_insecure_binding_system_authenticated = 2; +} + +// UserManagedKeysConfig holds the resource address to Keys which are used +// for signing certs and token that are used for communication within cluster. +message UserManagedKeysConfig { + // The Certificate Authority Service caPool to use for the cluster CA in this + // cluster. + string cluster_ca = 10 [(google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + }]; + + // Resource path of the Certificate Authority Service caPool to use for the + // etcd API CA in this cluster. + string etcd_api_ca = 11 [(google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + }]; + + // Resource path of the Certificate Authority Service caPool to use for the + // etcd peer CA in this cluster. + string etcd_peer_ca = 12 [(google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + }]; + + // The Cloud KMS cryptoKeyVersions to use for signing service account JWTs + // issued by this cluster. + // + // Format: + // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` + repeated string service_account_signing_keys = 13 + [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + }]; + + // The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs + // issued by this cluster. + // + // Format: + // `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` + repeated string service_account_verification_keys = 14 + [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + }]; + + // The Certificate Authority Service caPool to use for the aggregation CA in + // this cluster. + string aggregation_ca = 15 [(google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + }]; + + // The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control + // plane nodes. + string control_plane_disk_encryption_key = 16 + [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + }]; + + // Resource path of the Cloud KMS cryptoKey to use for encryption of internal + // etcd backups. + string gkeops_etcd_backup_encryption_key = 17 + [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + }]; +} + +// CompliancePostureConfig defines the settings needed to enable/disable +// features for the Compliance Posture. +message CompliancePostureConfig { + // Mode defines enablement mode for Compliance Posture. + enum Mode { + // Default value not specified. + MODE_UNSPECIFIED = 0; + + // Disables Compliance Posture features on the cluster. + DISABLED = 1; + + // Enables Compliance Posture features on the cluster. + ENABLED = 2; + } + + // Defines the details of a compliance standard. + message ComplianceStandard { + // Name of the compliance standard. + optional string standard = 1; + } + + // Defines the enablement mode for Compliance Posture. + optional Mode mode = 1; + + // List of enabled compliance standards. + repeated ComplianceStandard compliance_standards = 2; } // K8sBetaAPIConfig , configuration for beta APIs @@ -2264,7 +2462,12 @@ message ClusterUpdate { repeated string desired_locations = 10; // The desired configuration options for master authorized networks feature. - MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + // + // Deprecated: Use + // desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config + // instead. + MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 + [deprecated = true]; // Cluster-level autoscaling configuration. ClusterAutoscaling desired_cluster_autoscaling = 15; @@ -2297,7 +2500,11 @@ message ClusterUpdate { // [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] // for modifying other fields within // [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. - PrivateClusterConfig desired_private_cluster_config = 25; + // + // Deprecated: Use + // desired_control_plane_endpoints_config.ip_endpoints_config.global_access + // instead. + PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; // The desired config of Intra-node visibility. IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; @@ -2337,7 +2544,22 @@ message ClusterUpdate { ServiceExternalIPsConfig desired_service_external_ips_config = 60; // Enable/Disable private endpoint for the cluster's master. - optional bool desired_enable_private_endpoint = 71; + // + // Deprecated: Use + // desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint + // instead. Note that the value of enable_public_endpoint is reversed: if + // enable_private_endpoint is false, then enable_public_endpoint will be true. + optional bool desired_enable_private_endpoint = 71 [deprecated = true]; + + // Override the default setting of whether future created + // nodes have private IP addresses only, namely + // [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] + optional bool desired_default_enable_private_nodes = 72; + + // [Control plane + // endpoints][google.container.v1.Cluster.control_plane_endpoints_config] + // configuration. + ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; // The Kubernetes version to change the master to. // @@ -2421,12 +2643,25 @@ message ClusterUpdate { // Enable/Disable Cilium Clusterwide Network Policy for the cluster. optional bool desired_enable_cilium_clusterwide_network_policy = 138; + // Enable/Disable Secret Manager Config. + optional SecretManagerConfig desired_secret_manager_config = 139; + + // Enable/Disable Compliance Posture features for the cluster. + optional CompliancePostureConfig desired_compliance_posture_config = 140; + // The desired node kubelet config for the cluster. NodeKubeletConfig desired_node_kubelet_config = 141; // The desired node kubelet config for all auto-provisioned node pools // in autopilot clusters and node auto-provisioning enabled clusters. NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + + // The Custom keys configuration for the cluster. + UserManagedKeysConfig user_managed_keys_config = 143; + + // RBACBindingConfig allows user to restrict ClusterRoleBindings an + // RoleBindings that can be created. + optional RBACBindingConfig desired_rbac_binding_config = 144; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -2922,6 +3157,10 @@ message UpdateNodePoolRequest { // Specifies the configuration of queued provisioning. NodePool.QueuedProvisioning queued_provisioning = 42; + + // List of Storage Pools where boot disks are provisioned. + // Existing Storage Pools will be replaced with storage-pools. + repeated string storage_pools = 43; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -3316,6 +3555,9 @@ message ServerConfig { // List of valid versions for the channel. repeated string valid_versions = 4; + + // The auto upgrade target version for clusters on the channel. + string upgrade_target_version = 5; } // Version of Kubernetes the service deploys by default. @@ -4555,6 +4797,13 @@ message NetworkConfig { // Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. optional bool enable_cilium_clusterwide_network_policy = 21; + + // Controls whether by default nodes have private IP addresses only. + // It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] + // and this field at the same time. + // To update the default setting, use + // [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes] + optional bool default_enable_private_nodes = 22; } // GatewayAPIConfig contains the desired config of Gateway API on this cluster. @@ -5305,6 +5554,12 @@ message LoggingComponentConfig { // kube-controller-manager CONTROLLER_MANAGER = 5; + + // kcp-sshd + KCP_SSHD = 7; + + // kcp connection logs + KCP_CONNECTION = 8; } // Select components to collect logs. An empty set would disable all logging. @@ -5508,6 +5763,70 @@ enum StackType { IPV4_IPV6 = 2; } +// Configuration for all of the cluster's control plane endpoints. +message ControlPlaneEndpointsConfig { + // Describes the configuration of a DNS endpoint. + message DNSEndpointConfig { + // Output only. The cluster's DNS endpoint configuration. + // A DNS format address. This is accessible from the public internet. + // Ex: uid.us-central1.gke.goog. + // Always present, but the behavior may change according to the value of + // [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic]. + string endpoint = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Controls whether user traffic is allowed over this endpoint. Note that + // GCP-managed services may still use the endpoint even if this is false. + optional bool allow_external_traffic = 3; + } + + // IP endpoints configuration. + message IPEndpointsConfig { + // Controls whether to allow direct IP access. + optional bool enabled = 1; + + // Controls whether the control plane allows access through a public IP. + // It is invalid to specify both + // [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same + // time. + optional bool enable_public_endpoint = 2; + + // Controls whether the control plane's private endpoint is accessible from + // sources in other regions. + // It is invalid to specify both + // [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] + // and this field at the same time. + optional bool global_access = 3; + + // Configuration of authorized networks. If enabled, restricts access to the + // control plane based on source IP. + // It is invalid to specify both + // [Cluster.masterAuthorizedNetworksConfig][] and this field at the same + // time. + MasterAuthorizedNetworksConfig authorized_networks_config = 4; + + // Output only. The external IP address of this cluster's control plane. + // Only populated if enabled. + string public_endpoint = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The internal IP address of this cluster's control plane. + // Only populated if enabled. + string private_endpoint = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Subnet to provision the master's private endpoint during cluster + // creation. Specified in projects/*/regions/*/subnetworks/* format. It is + // invalid to specify both + // [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the + // same time. + string private_endpoint_subnetwork = 7; + } + + // DNS endpoint configuration. + DNSEndpointConfig dns_endpoint_config = 1; + + // IP endpoints configuration. + IPEndpointsConfig ip_endpoints_config = 3; +} + // Possible values for IPv6 access type enum IPv6AccessType { // Default value, will be defaulted as type external. @@ -5594,10 +5913,16 @@ message EnterpriseConfig { ENTERPRISE = 2; } - // Output only. cluster_tier specifies the premium tier of the cluster. + // Output only. cluster_tier indicates the effective tier of the cluster. ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// SecretManagerConfig is config for secret manager enablement. +message SecretManagerConfig { + // Enable/Disable Secret Manager Config. + optional bool enabled = 1; +} + // SecondaryBootDisk represents a persistent disk attached to a node // with special configurations based on its mode. message SecondaryBootDisk { diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 7febc8771311..52965e8acd3b 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1340,8 +1340,14 @@ export namespace google { /** NodeConfig secondaryBootDisks */ secondaryBootDisks?: (google.container.v1.ISecondaryBootDisk[]|null); + /** NodeConfig storagePools */ + storagePools?: (string[]|null); + /** NodeConfig secondaryBootDiskUpdateStrategy */ secondaryBootDiskUpdateStrategy?: (google.container.v1.ISecondaryBootDiskUpdateStrategy|null); + + /** NodeConfig effectiveCgroupMode */ + effectiveCgroupMode?: (google.container.v1.NodeConfig.EffectiveCgroupMode|keyof typeof google.container.v1.NodeConfig.EffectiveCgroupMode|null); } /** Represents a NodeConfig. */ @@ -1467,9 +1473,15 @@ export namespace google { /** NodeConfig secondaryBootDisks. */ public secondaryBootDisks: google.container.v1.ISecondaryBootDisk[]; + /** NodeConfig storagePools. */ + public storagePools: string[]; + /** NodeConfig secondaryBootDiskUpdateStrategy. */ public secondaryBootDiskUpdateStrategy?: (google.container.v1.ISecondaryBootDiskUpdateStrategy|null); + /** NodeConfig effectiveCgroupMode. */ + public effectiveCgroupMode: (google.container.v1.NodeConfig.EffectiveCgroupMode|keyof typeof google.container.v1.NodeConfig.EffectiveCgroupMode); + /** NodeConfig _fastSocket. */ public _fastSocket?: "fastSocket"; @@ -1554,6 +1566,16 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace NodeConfig { + + /** EffectiveCgroupMode enum. */ + enum EffectiveCgroupMode { + EFFECTIVE_CGROUP_MODE_UNSPECIFIED = 0, + EFFECTIVE_CGROUP_MODE_V1 = 1, + EFFECTIVE_CGROUP_MODE_V2 = 2 + } + } + /** Properties of an AdvancedMachineFeatures. */ interface IAdvancedMachineFeatures { @@ -3969,6 +3991,9 @@ export namespace google { /** AddonsConfig statefulHaConfig */ statefulHaConfig?: (google.container.v1.IStatefulHAConfig|null); + /** AddonsConfig parallelstoreCsiDriverConfig */ + parallelstoreCsiDriverConfig?: (google.container.v1.IParallelstoreCsiDriverConfig|null); + /** AddonsConfig rayOperatorConfig */ rayOperatorConfig?: (google.container.v1.IRayOperatorConfig|null); } @@ -4018,6 +4043,9 @@ export namespace google { /** AddonsConfig statefulHaConfig. */ public statefulHaConfig?: (google.container.v1.IStatefulHAConfig|null); + /** AddonsConfig parallelstoreCsiDriverConfig. */ + public parallelstoreCsiDriverConfig?: (google.container.v1.IParallelstoreCsiDriverConfig|null); + /** AddonsConfig rayOperatorConfig. */ public rayOperatorConfig?: (google.container.v1.IRayOperatorConfig|null); @@ -5424,6 +5452,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ParallelstoreCsiDriverConfig. */ + interface IParallelstoreCsiDriverConfig { + + /** ParallelstoreCsiDriverConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a ParallelstoreCsiDriverConfig. */ + class ParallelstoreCsiDriverConfig implements IParallelstoreCsiDriverConfig { + + /** + * Constructs a new ParallelstoreCsiDriverConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IParallelstoreCsiDriverConfig); + + /** ParallelstoreCsiDriverConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new ParallelstoreCsiDriverConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ParallelstoreCsiDriverConfig instance + */ + public static create(properties?: google.container.v1.IParallelstoreCsiDriverConfig): google.container.v1.ParallelstoreCsiDriverConfig; + + /** + * Encodes the specified ParallelstoreCsiDriverConfig message. Does not implicitly {@link google.container.v1.ParallelstoreCsiDriverConfig.verify|verify} messages. + * @param message ParallelstoreCsiDriverConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IParallelstoreCsiDriverConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ParallelstoreCsiDriverConfig message, length delimited. Does not implicitly {@link google.container.v1.ParallelstoreCsiDriverConfig.verify|verify} messages. + * @param message ParallelstoreCsiDriverConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IParallelstoreCsiDriverConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParallelstoreCsiDriverConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParallelstoreCsiDriverConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ParallelstoreCsiDriverConfig; + + /** + * Decodes a ParallelstoreCsiDriverConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParallelstoreCsiDriverConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ParallelstoreCsiDriverConfig; + + /** + * Verifies a ParallelstoreCsiDriverConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ParallelstoreCsiDriverConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParallelstoreCsiDriverConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ParallelstoreCsiDriverConfig; + + /** + * Creates a plain object from a ParallelstoreCsiDriverConfig message. Also converts values to other types if specified. + * @param message ParallelstoreCsiDriverConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ParallelstoreCsiDriverConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ParallelstoreCsiDriverConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ParallelstoreCsiDriverConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a RayOperatorConfig. */ interface IRayOperatorConfig { @@ -5738,6 +5863,9 @@ export namespace google { /** MasterAuthorizedNetworksConfig gcpPublicCidrsAccessEnabled */ gcpPublicCidrsAccessEnabled?: (boolean|null); + + /** MasterAuthorizedNetworksConfig privateEndpointEnforcementEnabled */ + privateEndpointEnforcementEnabled?: (boolean|null); } /** Represents a MasterAuthorizedNetworksConfig. */ @@ -5758,9 +5886,15 @@ export namespace google { /** MasterAuthorizedNetworksConfig gcpPublicCidrsAccessEnabled. */ public gcpPublicCidrsAccessEnabled?: (boolean|null); + /** MasterAuthorizedNetworksConfig privateEndpointEnforcementEnabled. */ + public privateEndpointEnforcementEnabled?: (boolean|null); + /** MasterAuthorizedNetworksConfig _gcpPublicCidrsAccessEnabled. */ public _gcpPublicCidrsAccessEnabled?: "gcpPublicCidrsAccessEnabled"; + /** MasterAuthorizedNetworksConfig _privateEndpointEnforcementEnabled. */ + public _privateEndpointEnforcementEnabled?: "privateEndpointEnforcementEnabled"; + /** * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. * @param [properties] Properties to set @@ -6773,17 +6907,32 @@ export namespace google { /** Cluster securityPostureConfig */ securityPostureConfig?: (google.container.v1.ISecurityPostureConfig|null); + /** Cluster controlPlaneEndpointsConfig */ + controlPlaneEndpointsConfig?: (google.container.v1.IControlPlaneEndpointsConfig|null); + /** Cluster enableK8sBetaApis */ enableK8sBetaApis?: (google.container.v1.IK8sBetaAPIConfig|null); /** Cluster enterpriseConfig */ enterpriseConfig?: (google.container.v1.IEnterpriseConfig|null); + /** Cluster secretManagerConfig */ + secretManagerConfig?: (google.container.v1.ISecretManagerConfig|null); + + /** Cluster compliancePostureConfig */ + compliancePostureConfig?: (google.container.v1.ICompliancePostureConfig|null); + /** Cluster satisfiesPzs */ satisfiesPzs?: (boolean|null); /** Cluster satisfiesPzi */ satisfiesPzi?: (boolean|null); + + /** Cluster userManagedKeysConfig */ + userManagedKeysConfig?: (google.container.v1.IUserManagedKeysConfig|null); + + /** Cluster rbacBindingConfig */ + rbacBindingConfig?: (google.container.v1.IRBACBindingConfig|null); } /** Represents a Cluster. */ @@ -6990,18 +7139,33 @@ export namespace google { /** Cluster securityPostureConfig. */ public securityPostureConfig?: (google.container.v1.ISecurityPostureConfig|null); + /** Cluster controlPlaneEndpointsConfig. */ + public controlPlaneEndpointsConfig?: (google.container.v1.IControlPlaneEndpointsConfig|null); + /** Cluster enableK8sBetaApis. */ public enableK8sBetaApis?: (google.container.v1.IK8sBetaAPIConfig|null); /** Cluster enterpriseConfig. */ public enterpriseConfig?: (google.container.v1.IEnterpriseConfig|null); + /** Cluster secretManagerConfig. */ + public secretManagerConfig?: (google.container.v1.ISecretManagerConfig|null); + + /** Cluster compliancePostureConfig. */ + public compliancePostureConfig?: (google.container.v1.ICompliancePostureConfig|null); + /** Cluster satisfiesPzs. */ public satisfiesPzs?: (boolean|null); /** Cluster satisfiesPzi. */ public satisfiesPzi?: (boolean|null); + /** Cluster userManagedKeysConfig. */ + public userManagedKeysConfig?: (google.container.v1.IUserManagedKeysConfig|null); + + /** Cluster rbacBindingConfig. */ + public rbacBindingConfig?: (google.container.v1.IRBACBindingConfig|null); + /** Cluster _nodePoolDefaults. */ public _nodePoolDefaults?: "nodePoolDefaults"; @@ -7011,6 +7175,12 @@ export namespace google { /** Cluster _satisfiesPzi. */ public _satisfiesPzi?: "satisfiesPzi"; + /** Cluster _userManagedKeysConfig. */ + public _userManagedKeysConfig?: "userManagedKeysConfig"; + + /** Cluster _rbacBindingConfig. */ + public _rbacBindingConfig?: "rbacBindingConfig"; + /** * Creates a new Cluster instance using the specified properties. * @param [properties] Properties to set @@ -7103,303 +7273,767 @@ export namespace google { } } - /** Properties of a K8sBetaAPIConfig. */ - interface IK8sBetaAPIConfig { + /** Properties of a RBACBindingConfig. */ + interface IRBACBindingConfig { - /** K8sBetaAPIConfig enabledApis */ - enabledApis?: (string[]|null); + /** RBACBindingConfig enableInsecureBindingSystemUnauthenticated */ + enableInsecureBindingSystemUnauthenticated?: (boolean|null); + + /** RBACBindingConfig enableInsecureBindingSystemAuthenticated */ + enableInsecureBindingSystemAuthenticated?: (boolean|null); } - /** Represents a K8sBetaAPIConfig. */ - class K8sBetaAPIConfig implements IK8sBetaAPIConfig { + /** Represents a RBACBindingConfig. */ + class RBACBindingConfig implements IRBACBindingConfig { /** - * Constructs a new K8sBetaAPIConfig. + * Constructs a new RBACBindingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IK8sBetaAPIConfig); + constructor(properties?: google.container.v1.IRBACBindingConfig); - /** K8sBetaAPIConfig enabledApis. */ - public enabledApis: string[]; + /** RBACBindingConfig enableInsecureBindingSystemUnauthenticated. */ + public enableInsecureBindingSystemUnauthenticated?: (boolean|null); + + /** RBACBindingConfig enableInsecureBindingSystemAuthenticated. */ + public enableInsecureBindingSystemAuthenticated?: (boolean|null); + + /** RBACBindingConfig _enableInsecureBindingSystemUnauthenticated. */ + public _enableInsecureBindingSystemUnauthenticated?: "enableInsecureBindingSystemUnauthenticated"; + + /** RBACBindingConfig _enableInsecureBindingSystemAuthenticated. */ + public _enableInsecureBindingSystemAuthenticated?: "enableInsecureBindingSystemAuthenticated"; /** - * Creates a new K8sBetaAPIConfig instance using the specified properties. + * Creates a new RBACBindingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns K8sBetaAPIConfig instance + * @returns RBACBindingConfig instance */ - public static create(properties?: google.container.v1.IK8sBetaAPIConfig): google.container.v1.K8sBetaAPIConfig; + public static create(properties?: google.container.v1.IRBACBindingConfig): google.container.v1.RBACBindingConfig; /** - * Encodes the specified K8sBetaAPIConfig message. Does not implicitly {@link google.container.v1.K8sBetaAPIConfig.verify|verify} messages. - * @param message K8sBetaAPIConfig message or plain object to encode + * Encodes the specified RBACBindingConfig message. Does not implicitly {@link google.container.v1.RBACBindingConfig.verify|verify} messages. + * @param message RBACBindingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IK8sBetaAPIConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IRBACBindingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified K8sBetaAPIConfig message, length delimited. Does not implicitly {@link google.container.v1.K8sBetaAPIConfig.verify|verify} messages. - * @param message K8sBetaAPIConfig message or plain object to encode + * Encodes the specified RBACBindingConfig message, length delimited. Does not implicitly {@link google.container.v1.RBACBindingConfig.verify|verify} messages. + * @param message RBACBindingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IK8sBetaAPIConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IRBACBindingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a K8sBetaAPIConfig message from the specified reader or buffer. + * Decodes a RBACBindingConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns K8sBetaAPIConfig + * @returns RBACBindingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.K8sBetaAPIConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.RBACBindingConfig; /** - * Decodes a K8sBetaAPIConfig message from the specified reader or buffer, length delimited. + * Decodes a RBACBindingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns K8sBetaAPIConfig + * @returns RBACBindingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.K8sBetaAPIConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.RBACBindingConfig; /** - * Verifies a K8sBetaAPIConfig message. + * Verifies a RBACBindingConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a K8sBetaAPIConfig message from a plain object. Also converts values to their respective internal types. + * Creates a RBACBindingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns K8sBetaAPIConfig + * @returns RBACBindingConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.K8sBetaAPIConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.RBACBindingConfig; /** - * Creates a plain object from a K8sBetaAPIConfig message. Also converts values to other types if specified. - * @param message K8sBetaAPIConfig + * Creates a plain object from a RBACBindingConfig message. Also converts values to other types if specified. + * @param message RBACBindingConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.K8sBetaAPIConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.RBACBindingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this K8sBetaAPIConfig to JSON. + * Converts this RBACBindingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for K8sBetaAPIConfig + * Gets the default type url for RBACBindingConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SecurityPostureConfig. */ - interface ISecurityPostureConfig { + /** Properties of a UserManagedKeysConfig. */ + interface IUserManagedKeysConfig { - /** SecurityPostureConfig mode */ - mode?: (google.container.v1.SecurityPostureConfig.Mode|keyof typeof google.container.v1.SecurityPostureConfig.Mode|null); + /** UserManagedKeysConfig clusterCa */ + clusterCa?: (string|null); - /** SecurityPostureConfig vulnerabilityMode */ - vulnerabilityMode?: (google.container.v1.SecurityPostureConfig.VulnerabilityMode|keyof typeof google.container.v1.SecurityPostureConfig.VulnerabilityMode|null); + /** UserManagedKeysConfig etcdApiCa */ + etcdApiCa?: (string|null); + + /** UserManagedKeysConfig etcdPeerCa */ + etcdPeerCa?: (string|null); + + /** UserManagedKeysConfig serviceAccountSigningKeys */ + serviceAccountSigningKeys?: (string[]|null); + + /** UserManagedKeysConfig serviceAccountVerificationKeys */ + serviceAccountVerificationKeys?: (string[]|null); + + /** UserManagedKeysConfig aggregationCa */ + aggregationCa?: (string|null); + + /** UserManagedKeysConfig controlPlaneDiskEncryptionKey */ + controlPlaneDiskEncryptionKey?: (string|null); + + /** UserManagedKeysConfig gkeopsEtcdBackupEncryptionKey */ + gkeopsEtcdBackupEncryptionKey?: (string|null); } - /** Represents a SecurityPostureConfig. */ - class SecurityPostureConfig implements ISecurityPostureConfig { + /** Represents a UserManagedKeysConfig. */ + class UserManagedKeysConfig implements IUserManagedKeysConfig { /** - * Constructs a new SecurityPostureConfig. + * Constructs a new UserManagedKeysConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISecurityPostureConfig); + constructor(properties?: google.container.v1.IUserManagedKeysConfig); - /** SecurityPostureConfig mode. */ - public mode?: (google.container.v1.SecurityPostureConfig.Mode|keyof typeof google.container.v1.SecurityPostureConfig.Mode|null); + /** UserManagedKeysConfig clusterCa. */ + public clusterCa: string; - /** SecurityPostureConfig vulnerabilityMode. */ - public vulnerabilityMode?: (google.container.v1.SecurityPostureConfig.VulnerabilityMode|keyof typeof google.container.v1.SecurityPostureConfig.VulnerabilityMode|null); + /** UserManagedKeysConfig etcdApiCa. */ + public etcdApiCa: string; - /** SecurityPostureConfig _mode. */ - public _mode?: "mode"; + /** UserManagedKeysConfig etcdPeerCa. */ + public etcdPeerCa: string; - /** SecurityPostureConfig _vulnerabilityMode. */ - public _vulnerabilityMode?: "vulnerabilityMode"; + /** UserManagedKeysConfig serviceAccountSigningKeys. */ + public serviceAccountSigningKeys: string[]; + + /** UserManagedKeysConfig serviceAccountVerificationKeys. */ + public serviceAccountVerificationKeys: string[]; + + /** UserManagedKeysConfig aggregationCa. */ + public aggregationCa: string; + + /** UserManagedKeysConfig controlPlaneDiskEncryptionKey. */ + public controlPlaneDiskEncryptionKey: string; + + /** UserManagedKeysConfig gkeopsEtcdBackupEncryptionKey. */ + public gkeopsEtcdBackupEncryptionKey: string; /** - * Creates a new SecurityPostureConfig instance using the specified properties. + * Creates a new UserManagedKeysConfig instance using the specified properties. * @param [properties] Properties to set - * @returns SecurityPostureConfig instance + * @returns UserManagedKeysConfig instance */ - public static create(properties?: google.container.v1.ISecurityPostureConfig): google.container.v1.SecurityPostureConfig; + public static create(properties?: google.container.v1.IUserManagedKeysConfig): google.container.v1.UserManagedKeysConfig; /** - * Encodes the specified SecurityPostureConfig message. Does not implicitly {@link google.container.v1.SecurityPostureConfig.verify|verify} messages. - * @param message SecurityPostureConfig message or plain object to encode + * Encodes the specified UserManagedKeysConfig message. Does not implicitly {@link google.container.v1.UserManagedKeysConfig.verify|verify} messages. + * @param message UserManagedKeysConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.ISecurityPostureConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IUserManagedKeysConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SecurityPostureConfig message, length delimited. Does not implicitly {@link google.container.v1.SecurityPostureConfig.verify|verify} messages. - * @param message SecurityPostureConfig message or plain object to encode + * Encodes the specified UserManagedKeysConfig message, length delimited. Does not implicitly {@link google.container.v1.UserManagedKeysConfig.verify|verify} messages. + * @param message UserManagedKeysConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.ISecurityPostureConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IUserManagedKeysConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SecurityPostureConfig message from the specified reader or buffer. + * Decodes a UserManagedKeysConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SecurityPostureConfig + * @returns UserManagedKeysConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SecurityPostureConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.UserManagedKeysConfig; /** - * Decodes a SecurityPostureConfig message from the specified reader or buffer, length delimited. + * Decodes a UserManagedKeysConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SecurityPostureConfig + * @returns UserManagedKeysConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SecurityPostureConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.UserManagedKeysConfig; /** - * Verifies a SecurityPostureConfig message. + * Verifies a UserManagedKeysConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SecurityPostureConfig message from a plain object. Also converts values to their respective internal types. + * Creates a UserManagedKeysConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SecurityPostureConfig + * @returns UserManagedKeysConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SecurityPostureConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.UserManagedKeysConfig; /** - * Creates a plain object from a SecurityPostureConfig message. Also converts values to other types if specified. - * @param message SecurityPostureConfig + * Creates a plain object from a UserManagedKeysConfig message. Also converts values to other types if specified. + * @param message UserManagedKeysConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.SecurityPostureConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.UserManagedKeysConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SecurityPostureConfig to JSON. + * Converts this UserManagedKeysConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SecurityPostureConfig + * Gets the default type url for UserManagedKeysConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SecurityPostureConfig { - - /** Mode enum. */ - enum Mode { - MODE_UNSPECIFIED = 0, - DISABLED = 1, - BASIC = 2, - ENTERPRISE = 3 - } - - /** VulnerabilityMode enum. */ - enum VulnerabilityMode { - VULNERABILITY_MODE_UNSPECIFIED = 0, - VULNERABILITY_DISABLED = 1, - VULNERABILITY_BASIC = 2, - VULNERABILITY_ENTERPRISE = 3 - } - } - - /** Properties of a NodePoolAutoConfig. */ - interface INodePoolAutoConfig { - - /** NodePoolAutoConfig networkTags */ - networkTags?: (google.container.v1.INetworkTags|null); + /** Properties of a CompliancePostureConfig. */ + interface ICompliancePostureConfig { - /** NodePoolAutoConfig resourceManagerTags */ - resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + /** CompliancePostureConfig mode */ + mode?: (google.container.v1.CompliancePostureConfig.Mode|keyof typeof google.container.v1.CompliancePostureConfig.Mode|null); - /** NodePoolAutoConfig nodeKubeletConfig */ - nodeKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + /** CompliancePostureConfig complianceStandards */ + complianceStandards?: (google.container.v1.CompliancePostureConfig.IComplianceStandard[]|null); } - /** Represents a NodePoolAutoConfig. */ - class NodePoolAutoConfig implements INodePoolAutoConfig { + /** Represents a CompliancePostureConfig. */ + class CompliancePostureConfig implements ICompliancePostureConfig { /** - * Constructs a new NodePoolAutoConfig. + * Constructs a new CompliancePostureConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.INodePoolAutoConfig); + constructor(properties?: google.container.v1.ICompliancePostureConfig); - /** NodePoolAutoConfig networkTags. */ - public networkTags?: (google.container.v1.INetworkTags|null); + /** CompliancePostureConfig mode. */ + public mode?: (google.container.v1.CompliancePostureConfig.Mode|keyof typeof google.container.v1.CompliancePostureConfig.Mode|null); - /** NodePoolAutoConfig resourceManagerTags. */ - public resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + /** CompliancePostureConfig complianceStandards. */ + public complianceStandards: google.container.v1.CompliancePostureConfig.IComplianceStandard[]; - /** NodePoolAutoConfig nodeKubeletConfig. */ - public nodeKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + /** CompliancePostureConfig _mode. */ + public _mode?: "mode"; /** - * Creates a new NodePoolAutoConfig instance using the specified properties. + * Creates a new CompliancePostureConfig instance using the specified properties. * @param [properties] Properties to set - * @returns NodePoolAutoConfig instance + * @returns CompliancePostureConfig instance */ - public static create(properties?: google.container.v1.INodePoolAutoConfig): google.container.v1.NodePoolAutoConfig; + public static create(properties?: google.container.v1.ICompliancePostureConfig): google.container.v1.CompliancePostureConfig; /** - * Encodes the specified NodePoolAutoConfig message. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. - * @param message NodePoolAutoConfig message or plain object to encode + * Encodes the specified CompliancePostureConfig message. Does not implicitly {@link google.container.v1.CompliancePostureConfig.verify|verify} messages. + * @param message CompliancePostureConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.INodePoolAutoConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.ICompliancePostureConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NodePoolAutoConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. - * @param message NodePoolAutoConfig message or plain object to encode + * Encodes the specified CompliancePostureConfig message, length delimited. Does not implicitly {@link google.container.v1.CompliancePostureConfig.verify|verify} messages. + * @param message CompliancePostureConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.INodePoolAutoConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.ICompliancePostureConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodePoolAutoConfig message from the specified reader or buffer. + * Decodes a CompliancePostureConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NodePoolAutoConfig + * @returns CompliancePostureConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodePoolAutoConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.CompliancePostureConfig; /** - * Decodes a NodePoolAutoConfig message from the specified reader or buffer, length delimited. + * Decodes a CompliancePostureConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NodePoolAutoConfig + * @returns CompliancePostureConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodePoolAutoConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.CompliancePostureConfig; + + /** + * Verifies a CompliancePostureConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompliancePostureConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompliancePostureConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CompliancePostureConfig; + + /** + * Creates a plain object from a CompliancePostureConfig message. Also converts values to other types if specified. + * @param message CompliancePostureConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.CompliancePostureConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompliancePostureConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompliancePostureConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace CompliancePostureConfig { + + /** Mode enum. */ + enum Mode { + MODE_UNSPECIFIED = 0, + DISABLED = 1, + ENABLED = 2 + } + + /** Properties of a ComplianceStandard. */ + interface IComplianceStandard { + + /** ComplianceStandard standard */ + standard?: (string|null); + } + + /** Represents a ComplianceStandard. */ + class ComplianceStandard implements IComplianceStandard { + + /** + * Constructs a new ComplianceStandard. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.CompliancePostureConfig.IComplianceStandard); + + /** ComplianceStandard standard. */ + public standard?: (string|null); + + /** ComplianceStandard _standard. */ + public _standard?: "standard"; + + /** + * Creates a new ComplianceStandard instance using the specified properties. + * @param [properties] Properties to set + * @returns ComplianceStandard instance + */ + public static create(properties?: google.container.v1.CompliancePostureConfig.IComplianceStandard): google.container.v1.CompliancePostureConfig.ComplianceStandard; + + /** + * Encodes the specified ComplianceStandard message. Does not implicitly {@link google.container.v1.CompliancePostureConfig.ComplianceStandard.verify|verify} messages. + * @param message ComplianceStandard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.CompliancePostureConfig.IComplianceStandard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ComplianceStandard message, length delimited. Does not implicitly {@link google.container.v1.CompliancePostureConfig.ComplianceStandard.verify|verify} messages. + * @param message ComplianceStandard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.CompliancePostureConfig.IComplianceStandard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComplianceStandard message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComplianceStandard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.CompliancePostureConfig.ComplianceStandard; + + /** + * Decodes a ComplianceStandard message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ComplianceStandard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.CompliancePostureConfig.ComplianceStandard; + + /** + * Verifies a ComplianceStandard message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ComplianceStandard message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ComplianceStandard + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CompliancePostureConfig.ComplianceStandard; + + /** + * Creates a plain object from a ComplianceStandard message. Also converts values to other types if specified. + * @param message ComplianceStandard + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.CompliancePostureConfig.ComplianceStandard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ComplianceStandard to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ComplianceStandard + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a K8sBetaAPIConfig. */ + interface IK8sBetaAPIConfig { + + /** K8sBetaAPIConfig enabledApis */ + enabledApis?: (string[]|null); + } + + /** Represents a K8sBetaAPIConfig. */ + class K8sBetaAPIConfig implements IK8sBetaAPIConfig { + + /** + * Constructs a new K8sBetaAPIConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IK8sBetaAPIConfig); + + /** K8sBetaAPIConfig enabledApis. */ + public enabledApis: string[]; + + /** + * Creates a new K8sBetaAPIConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns K8sBetaAPIConfig instance + */ + public static create(properties?: google.container.v1.IK8sBetaAPIConfig): google.container.v1.K8sBetaAPIConfig; + + /** + * Encodes the specified K8sBetaAPIConfig message. Does not implicitly {@link google.container.v1.K8sBetaAPIConfig.verify|verify} messages. + * @param message K8sBetaAPIConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IK8sBetaAPIConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified K8sBetaAPIConfig message, length delimited. Does not implicitly {@link google.container.v1.K8sBetaAPIConfig.verify|verify} messages. + * @param message K8sBetaAPIConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IK8sBetaAPIConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a K8sBetaAPIConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns K8sBetaAPIConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.K8sBetaAPIConfig; + + /** + * Decodes a K8sBetaAPIConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns K8sBetaAPIConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.K8sBetaAPIConfig; + + /** + * Verifies a K8sBetaAPIConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a K8sBetaAPIConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns K8sBetaAPIConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.K8sBetaAPIConfig; + + /** + * Creates a plain object from a K8sBetaAPIConfig message. Also converts values to other types if specified. + * @param message K8sBetaAPIConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.K8sBetaAPIConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this K8sBetaAPIConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for K8sBetaAPIConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SecurityPostureConfig. */ + interface ISecurityPostureConfig { + + /** SecurityPostureConfig mode */ + mode?: (google.container.v1.SecurityPostureConfig.Mode|keyof typeof google.container.v1.SecurityPostureConfig.Mode|null); + + /** SecurityPostureConfig vulnerabilityMode */ + vulnerabilityMode?: (google.container.v1.SecurityPostureConfig.VulnerabilityMode|keyof typeof google.container.v1.SecurityPostureConfig.VulnerabilityMode|null); + } + + /** Represents a SecurityPostureConfig. */ + class SecurityPostureConfig implements ISecurityPostureConfig { + + /** + * Constructs a new SecurityPostureConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISecurityPostureConfig); + + /** SecurityPostureConfig mode. */ + public mode?: (google.container.v1.SecurityPostureConfig.Mode|keyof typeof google.container.v1.SecurityPostureConfig.Mode|null); + + /** SecurityPostureConfig vulnerabilityMode. */ + public vulnerabilityMode?: (google.container.v1.SecurityPostureConfig.VulnerabilityMode|keyof typeof google.container.v1.SecurityPostureConfig.VulnerabilityMode|null); + + /** SecurityPostureConfig _mode. */ + public _mode?: "mode"; + + /** SecurityPostureConfig _vulnerabilityMode. */ + public _vulnerabilityMode?: "vulnerabilityMode"; + + /** + * Creates a new SecurityPostureConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPostureConfig instance + */ + public static create(properties?: google.container.v1.ISecurityPostureConfig): google.container.v1.SecurityPostureConfig; + + /** + * Encodes the specified SecurityPostureConfig message. Does not implicitly {@link google.container.v1.SecurityPostureConfig.verify|verify} messages. + * @param message SecurityPostureConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISecurityPostureConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPostureConfig message, length delimited. Does not implicitly {@link google.container.v1.SecurityPostureConfig.verify|verify} messages. + * @param message SecurityPostureConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISecurityPostureConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPostureConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPostureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SecurityPostureConfig; + + /** + * Decodes a SecurityPostureConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPostureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SecurityPostureConfig; + + /** + * Verifies a SecurityPostureConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SecurityPostureConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPostureConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SecurityPostureConfig; + + /** + * Creates a plain object from a SecurityPostureConfig message. Also converts values to other types if specified. + * @param message SecurityPostureConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SecurityPostureConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPostureConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityPostureConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SecurityPostureConfig { + + /** Mode enum. */ + enum Mode { + MODE_UNSPECIFIED = 0, + DISABLED = 1, + BASIC = 2, + ENTERPRISE = 3 + } + + /** VulnerabilityMode enum. */ + enum VulnerabilityMode { + VULNERABILITY_MODE_UNSPECIFIED = 0, + VULNERABILITY_DISABLED = 1, + VULNERABILITY_BASIC = 2, + VULNERABILITY_ENTERPRISE = 3 + } + } + + /** Properties of a NodePoolAutoConfig. */ + interface INodePoolAutoConfig { + + /** NodePoolAutoConfig networkTags */ + networkTags?: (google.container.v1.INetworkTags|null); + + /** NodePoolAutoConfig resourceManagerTags */ + resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + + /** NodePoolAutoConfig nodeKubeletConfig */ + nodeKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + } + + /** Represents a NodePoolAutoConfig. */ + class NodePoolAutoConfig implements INodePoolAutoConfig { + + /** + * Constructs a new NodePoolAutoConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodePoolAutoConfig); + + /** NodePoolAutoConfig networkTags. */ + public networkTags?: (google.container.v1.INetworkTags|null); + + /** NodePoolAutoConfig resourceManagerTags. */ + public resourceManagerTags?: (google.container.v1.IResourceManagerTags|null); + + /** NodePoolAutoConfig nodeKubeletConfig. */ + public nodeKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + + /** + * Creates a new NodePoolAutoConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePoolAutoConfig instance + */ + public static create(properties?: google.container.v1.INodePoolAutoConfig): google.container.v1.NodePoolAutoConfig; + + /** + * Encodes the specified NodePoolAutoConfig message. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * @param message NodePoolAutoConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodePoolAutoConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodePoolAutoConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * @param message NodePoolAutoConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodePoolAutoConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodePoolAutoConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodePoolAutoConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.NodePoolAutoConfig; + + /** + * Decodes a NodePoolAutoConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodePoolAutoConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NodePoolAutoConfig; /** * Verifies a NodePoolAutoConfig message. @@ -7751,6 +8385,12 @@ export namespace google { /** ClusterUpdate desiredEnablePrivateEndpoint */ desiredEnablePrivateEndpoint?: (boolean|null); + /** ClusterUpdate desiredDefaultEnablePrivateNodes */ + desiredDefaultEnablePrivateNodes?: (boolean|null); + + /** ClusterUpdate desiredControlPlaneEndpointsConfig */ + desiredControlPlaneEndpointsConfig?: (google.container.v1.IControlPlaneEndpointsConfig|null); + /** ClusterUpdate desiredMasterVersion */ desiredMasterVersion?: (string|null); @@ -7814,11 +8454,23 @@ export namespace google { /** ClusterUpdate desiredEnableCiliumClusterwideNetworkPolicy */ desiredEnableCiliumClusterwideNetworkPolicy?: (boolean|null); + /** ClusterUpdate desiredSecretManagerConfig */ + desiredSecretManagerConfig?: (google.container.v1.ISecretManagerConfig|null); + + /** ClusterUpdate desiredCompliancePostureConfig */ + desiredCompliancePostureConfig?: (google.container.v1.ICompliancePostureConfig|null); + /** ClusterUpdate desiredNodeKubeletConfig */ desiredNodeKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); /** ClusterUpdate desiredNodePoolAutoConfigKubeletConfig */ desiredNodePoolAutoConfigKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + + /** ClusterUpdate userManagedKeysConfig */ + userManagedKeysConfig?: (google.container.v1.IUserManagedKeysConfig|null); + + /** ClusterUpdate desiredRbacBindingConfig */ + desiredRbacBindingConfig?: (google.container.v1.IRBACBindingConfig|null); } /** Represents a ClusterUpdate. */ @@ -7929,6 +8581,12 @@ export namespace google { /** ClusterUpdate desiredEnablePrivateEndpoint. */ public desiredEnablePrivateEndpoint?: (boolean|null); + /** ClusterUpdate desiredDefaultEnablePrivateNodes. */ + public desiredDefaultEnablePrivateNodes?: (boolean|null); + + /** ClusterUpdate desiredControlPlaneEndpointsConfig. */ + public desiredControlPlaneEndpointsConfig?: (google.container.v1.IControlPlaneEndpointsConfig|null); + /** ClusterUpdate desiredMasterVersion. */ public desiredMasterVersion: string; @@ -7992,15 +8650,30 @@ export namespace google { /** ClusterUpdate desiredEnableCiliumClusterwideNetworkPolicy. */ public desiredEnableCiliumClusterwideNetworkPolicy?: (boolean|null); + /** ClusterUpdate desiredSecretManagerConfig. */ + public desiredSecretManagerConfig?: (google.container.v1.ISecretManagerConfig|null); + + /** ClusterUpdate desiredCompliancePostureConfig. */ + public desiredCompliancePostureConfig?: (google.container.v1.ICompliancePostureConfig|null); + /** ClusterUpdate desiredNodeKubeletConfig. */ public desiredNodeKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); /** ClusterUpdate desiredNodePoolAutoConfigKubeletConfig. */ public desiredNodePoolAutoConfigKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + /** ClusterUpdate userManagedKeysConfig. */ + public userManagedKeysConfig?: (google.container.v1.IUserManagedKeysConfig|null); + + /** ClusterUpdate desiredRbacBindingConfig. */ + public desiredRbacBindingConfig?: (google.container.v1.IRBACBindingConfig|null); + /** ClusterUpdate _desiredEnablePrivateEndpoint. */ public _desiredEnablePrivateEndpoint?: "desiredEnablePrivateEndpoint"; + /** ClusterUpdate _desiredDefaultEnablePrivateNodes. */ + public _desiredDefaultEnablePrivateNodes?: "desiredDefaultEnablePrivateNodes"; + /** ClusterUpdate _desiredEnableFqdnNetworkPolicy. */ public _desiredEnableFqdnNetworkPolicy?: "desiredEnableFqdnNetworkPolicy"; @@ -8013,6 +8686,15 @@ export namespace google { /** ClusterUpdate _desiredEnableCiliumClusterwideNetworkPolicy. */ public _desiredEnableCiliumClusterwideNetworkPolicy?: "desiredEnableCiliumClusterwideNetworkPolicy"; + /** ClusterUpdate _desiredSecretManagerConfig. */ + public _desiredSecretManagerConfig?: "desiredSecretManagerConfig"; + + /** ClusterUpdate _desiredCompliancePostureConfig. */ + public _desiredCompliancePostureConfig?: "desiredCompliancePostureConfig"; + + /** ClusterUpdate _desiredRbacBindingConfig. */ + public _desiredRbacBindingConfig?: "desiredRbacBindingConfig"; + /** * Creates a new ClusterUpdate instance using the specified properties. * @param [properties] Properties to set @@ -9195,6 +9877,9 @@ export namespace google { /** UpdateNodePoolRequest queuedProvisioning */ queuedProvisioning?: (google.container.v1.NodePool.IQueuedProvisioning|null); + + /** UpdateNodePoolRequest storagePools */ + storagePools?: (string[]|null); } /** Represents an UpdateNodePoolRequest. */ @@ -9299,6 +9984,9 @@ export namespace google { /** UpdateNodePoolRequest queuedProvisioning. */ public queuedProvisioning?: (google.container.v1.NodePool.IQueuedProvisioning|null); + /** UpdateNodePoolRequest storagePools. */ + public storagePools: string[]; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set @@ -11265,6 +11953,9 @@ export namespace google { /** ReleaseChannelConfig validVersions */ validVersions?: (string[]|null); + + /** ReleaseChannelConfig upgradeTargetVersion */ + upgradeTargetVersion?: (string|null); } /** Represents a ReleaseChannelConfig. */ @@ -11285,6 +11976,9 @@ export namespace google { /** ReleaseChannelConfig validVersions. */ public validVersions: string[]; + /** ReleaseChannelConfig upgradeTargetVersion. */ + public upgradeTargetVersion: string; + /** * Creates a new ReleaseChannelConfig instance using the specified properties. * @param [properties] Properties to set @@ -16302,6 +16996,9 @@ export namespace google { /** NetworkConfig enableCiliumClusterwideNetworkPolicy */ enableCiliumClusterwideNetworkPolicy?: (boolean|null); + + /** NetworkConfig defaultEnablePrivateNodes */ + defaultEnablePrivateNodes?: (boolean|null); } /** Represents a NetworkConfig. */ @@ -16358,6 +17055,9 @@ export namespace google { /** NetworkConfig enableCiliumClusterwideNetworkPolicy. */ public enableCiliumClusterwideNetworkPolicy?: (boolean|null); + /** NetworkConfig defaultEnablePrivateNodes. */ + public defaultEnablePrivateNodes?: (boolean|null); + /** NetworkConfig _enableFqdnNetworkPolicy. */ public _enableFqdnNetworkPolicy?: "enableFqdnNetworkPolicy"; @@ -16367,6 +17067,9 @@ export namespace google { /** NetworkConfig _enableCiliumClusterwideNetworkPolicy. */ public _enableCiliumClusterwideNetworkPolicy?: "enableCiliumClusterwideNetworkPolicy"; + /** NetworkConfig _defaultEnablePrivateNodes. */ + public _defaultEnablePrivateNodes?: "defaultEnablePrivateNodes"; + /** * Creates a new NetworkConfig instance using the specified properties. * @param [properties] Properties to set @@ -21320,7 +22023,9 @@ export namespace google { WORKLOADS = 2, APISERVER = 3, SCHEDULER = 4, - CONTROLLER_MANAGER = 5 + CONTROLLER_MANAGER = 5, + KCP_SSHD = 7, + KCP_CONNECTION = 8 } } @@ -22235,68 +22940,422 @@ export namespace google { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IFleet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IFleet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Fleet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Fleet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.Fleet; + + /** + * Decodes a Fleet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Fleet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.Fleet; + + /** + * Verifies a Fleet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Fleet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Fleet + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.Fleet; + + /** + * Creates a plain object from a Fleet message. Also converts values to other types if specified. + * @param message Fleet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.Fleet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Fleet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Fleet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** StackType enum. */ + enum StackType { + STACK_TYPE_UNSPECIFIED = 0, + IPV4 = 1, + IPV4_IPV6 = 2 + } + + /** Properties of a ControlPlaneEndpointsConfig. */ + interface IControlPlaneEndpointsConfig { + + /** ControlPlaneEndpointsConfig dnsEndpointConfig */ + dnsEndpointConfig?: (google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig|null); + + /** ControlPlaneEndpointsConfig ipEndpointsConfig */ + ipEndpointsConfig?: (google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig|null); + } + + /** Represents a ControlPlaneEndpointsConfig. */ + class ControlPlaneEndpointsConfig implements IControlPlaneEndpointsConfig { + + /** + * Constructs a new ControlPlaneEndpointsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IControlPlaneEndpointsConfig); + + /** ControlPlaneEndpointsConfig dnsEndpointConfig. */ + public dnsEndpointConfig?: (google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig|null); + + /** ControlPlaneEndpointsConfig ipEndpointsConfig. */ + public ipEndpointsConfig?: (google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig|null); + + /** + * Creates a new ControlPlaneEndpointsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ControlPlaneEndpointsConfig instance + */ + public static create(properties?: google.container.v1.IControlPlaneEndpointsConfig): google.container.v1.ControlPlaneEndpointsConfig; + + /** + * Encodes the specified ControlPlaneEndpointsConfig message. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.verify|verify} messages. + * @param message ControlPlaneEndpointsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IControlPlaneEndpointsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ControlPlaneEndpointsConfig message, length delimited. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.verify|verify} messages. + * @param message ControlPlaneEndpointsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IControlPlaneEndpointsConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Fleet message from the specified reader or buffer. + * Decodes a ControlPlaneEndpointsConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Fleet + * @returns ControlPlaneEndpointsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.Fleet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ControlPlaneEndpointsConfig; /** - * Decodes a Fleet message from the specified reader or buffer, length delimited. + * Decodes a ControlPlaneEndpointsConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Fleet + * @returns ControlPlaneEndpointsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.Fleet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ControlPlaneEndpointsConfig; /** - * Verifies a Fleet message. + * Verifies a ControlPlaneEndpointsConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Fleet message from a plain object. Also converts values to their respective internal types. + * Creates a ControlPlaneEndpointsConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Fleet + * @returns ControlPlaneEndpointsConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.Fleet; + public static fromObject(object: { [k: string]: any }): google.container.v1.ControlPlaneEndpointsConfig; /** - * Creates a plain object from a Fleet message. Also converts values to other types if specified. - * @param message Fleet + * Creates a plain object from a ControlPlaneEndpointsConfig message. Also converts values to other types if specified. + * @param message ControlPlaneEndpointsConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.Fleet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.ControlPlaneEndpointsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Fleet to JSON. + * Converts this ControlPlaneEndpointsConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Fleet + * Gets the default type url for ControlPlaneEndpointsConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** StackType enum. */ - enum StackType { - STACK_TYPE_UNSPECIFIED = 0, - IPV4 = 1, - IPV4_IPV6 = 2 + namespace ControlPlaneEndpointsConfig { + + /** Properties of a DNSEndpointConfig. */ + interface IDNSEndpointConfig { + + /** DNSEndpointConfig endpoint */ + endpoint?: (string|null); + + /** DNSEndpointConfig allowExternalTraffic */ + allowExternalTraffic?: (boolean|null); + } + + /** Represents a DNSEndpointConfig. */ + class DNSEndpointConfig implements IDNSEndpointConfig { + + /** + * Constructs a new DNSEndpointConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig); + + /** DNSEndpointConfig endpoint. */ + public endpoint: string; + + /** DNSEndpointConfig allowExternalTraffic. */ + public allowExternalTraffic?: (boolean|null); + + /** DNSEndpointConfig _allowExternalTraffic. */ + public _allowExternalTraffic?: "allowExternalTraffic"; + + /** + * Creates a new DNSEndpointConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DNSEndpointConfig instance + */ + public static create(properties?: google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig): google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig; + + /** + * Encodes the specified DNSEndpointConfig message. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.verify|verify} messages. + * @param message DNSEndpointConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DNSEndpointConfig message, length delimited. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.verify|verify} messages. + * @param message DNSEndpointConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DNSEndpointConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DNSEndpointConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig; + + /** + * Decodes a DNSEndpointConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DNSEndpointConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig; + + /** + * Verifies a DNSEndpointConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DNSEndpointConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DNSEndpointConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig; + + /** + * Creates a plain object from a DNSEndpointConfig message. Also converts values to other types if specified. + * @param message DNSEndpointConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DNSEndpointConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DNSEndpointConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a IPEndpointsConfig. */ + interface IIPEndpointsConfig { + + /** IPEndpointsConfig enabled */ + enabled?: (boolean|null); + + /** IPEndpointsConfig enablePublicEndpoint */ + enablePublicEndpoint?: (boolean|null); + + /** IPEndpointsConfig globalAccess */ + globalAccess?: (boolean|null); + + /** IPEndpointsConfig authorizedNetworksConfig */ + authorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); + + /** IPEndpointsConfig publicEndpoint */ + publicEndpoint?: (string|null); + + /** IPEndpointsConfig privateEndpoint */ + privateEndpoint?: (string|null); + + /** IPEndpointsConfig privateEndpointSubnetwork */ + privateEndpointSubnetwork?: (string|null); + } + + /** Represents a IPEndpointsConfig. */ + class IPEndpointsConfig implements IIPEndpointsConfig { + + /** + * Constructs a new IPEndpointsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig); + + /** IPEndpointsConfig enabled. */ + public enabled?: (boolean|null); + + /** IPEndpointsConfig enablePublicEndpoint. */ + public enablePublicEndpoint?: (boolean|null); + + /** IPEndpointsConfig globalAccess. */ + public globalAccess?: (boolean|null); + + /** IPEndpointsConfig authorizedNetworksConfig. */ + public authorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); + + /** IPEndpointsConfig publicEndpoint. */ + public publicEndpoint: string; + + /** IPEndpointsConfig privateEndpoint. */ + public privateEndpoint: string; + + /** IPEndpointsConfig privateEndpointSubnetwork. */ + public privateEndpointSubnetwork: string; + + /** IPEndpointsConfig _enabled. */ + public _enabled?: "enabled"; + + /** IPEndpointsConfig _enablePublicEndpoint. */ + public _enablePublicEndpoint?: "enablePublicEndpoint"; + + /** IPEndpointsConfig _globalAccess. */ + public _globalAccess?: "globalAccess"; + + /** + * Creates a new IPEndpointsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns IPEndpointsConfig instance + */ + public static create(properties?: google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig): google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig; + + /** + * Encodes the specified IPEndpointsConfig message. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.verify|verify} messages. + * @param message IPEndpointsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IPEndpointsConfig message, length delimited. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.verify|verify} messages. + * @param message IPEndpointsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a IPEndpointsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IPEndpointsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig; + + /** + * Decodes a IPEndpointsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IPEndpointsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig; + + /** + * Verifies a IPEndpointsConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a IPEndpointsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IPEndpointsConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig; + + /** + * Creates a plain object from a IPEndpointsConfig message. Also converts values to other types if specified. + * @param message IPEndpointsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IPEndpointsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IPEndpointsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** IPv6AccessType enum. */ @@ -22704,6 +23763,106 @@ export namespace google { } } + /** Properties of a SecretManagerConfig. */ + interface ISecretManagerConfig { + + /** SecretManagerConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a SecretManagerConfig. */ + class SecretManagerConfig implements ISecretManagerConfig { + + /** + * Constructs a new SecretManagerConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISecretManagerConfig); + + /** SecretManagerConfig enabled. */ + public enabled?: (boolean|null); + + /** SecretManagerConfig _enabled. */ + public _enabled?: "enabled"; + + /** + * Creates a new SecretManagerConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SecretManagerConfig instance + */ + public static create(properties?: google.container.v1.ISecretManagerConfig): google.container.v1.SecretManagerConfig; + + /** + * Encodes the specified SecretManagerConfig message. Does not implicitly {@link google.container.v1.SecretManagerConfig.verify|verify} messages. + * @param message SecretManagerConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISecretManagerConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecretManagerConfig message, length delimited. Does not implicitly {@link google.container.v1.SecretManagerConfig.verify|verify} messages. + * @param message SecretManagerConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISecretManagerConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecretManagerConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecretManagerConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.SecretManagerConfig; + + /** + * Decodes a SecretManagerConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecretManagerConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.SecretManagerConfig; + + /** + * Verifies a SecretManagerConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SecretManagerConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecretManagerConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SecretManagerConfig; + + /** + * Creates a plain object from a SecretManagerConfig message. Also converts values to other types if specified. + * @param message SecretManagerConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SecretManagerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecretManagerConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecretManagerConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SecondaryBootDisk. */ interface ISecondaryBootDisk { diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 79f3498c2772..6e8d336035fb 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -2444,7 +2444,9 @@ * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] NodeConfig resourceManagerTags * @property {boolean|null} [enableConfidentialStorage] NodeConfig enableConfidentialStorage * @property {Array.|null} [secondaryBootDisks] NodeConfig secondaryBootDisks + * @property {Array.|null} [storagePools] NodeConfig storagePools * @property {google.container.v1.ISecondaryBootDiskUpdateStrategy|null} [secondaryBootDiskUpdateStrategy] NodeConfig secondaryBootDiskUpdateStrategy + * @property {google.container.v1.NodeConfig.EffectiveCgroupMode|null} [effectiveCgroupMode] NodeConfig effectiveCgroupMode */ /** @@ -2464,6 +2466,7 @@ this.taints = []; this.resourceLabels = {}; this.secondaryBootDisks = []; + this.storagePools = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -2774,6 +2777,14 @@ */ NodeConfig.prototype.secondaryBootDisks = $util.emptyArray; + /** + * NodeConfig storagePools. + * @member {Array.} storagePools + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.storagePools = $util.emptyArray; + /** * NodeConfig secondaryBootDiskUpdateStrategy. * @member {google.container.v1.ISecondaryBootDiskUpdateStrategy|null|undefined} secondaryBootDiskUpdateStrategy @@ -2782,6 +2793,14 @@ */ NodeConfig.prototype.secondaryBootDiskUpdateStrategy = null; + /** + * NodeConfig effectiveCgroupMode. + * @member {google.container.v1.NodeConfig.EffectiveCgroupMode} effectiveCgroupMode + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.effectiveCgroupMode = 0; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -2915,8 +2934,13 @@ if (message.secondaryBootDisks != null && message.secondaryBootDisks.length) for (var i = 0; i < message.secondaryBootDisks.length; ++i) $root.google.container.v1.SecondaryBootDisk.encode(message.secondaryBootDisks[i], writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim(); + if (message.storagePools != null && message.storagePools.length) + for (var i = 0; i < message.storagePools.length; ++i) + writer.uint32(/* id 49, wireType 2 =*/394).string(message.storagePools[i]); if (message.secondaryBootDiskUpdateStrategy != null && Object.hasOwnProperty.call(message, "secondaryBootDiskUpdateStrategy")) $root.google.container.v1.SecondaryBootDiskUpdateStrategy.encode(message.secondaryBootDiskUpdateStrategy, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.effectiveCgroupMode != null && Object.hasOwnProperty.call(message, "effectiveCgroupMode")) + writer.uint32(/* id 55, wireType 0 =*/440).int32(message.effectiveCgroupMode); return writer; }; @@ -3170,10 +3194,20 @@ message.secondaryBootDisks.push($root.google.container.v1.SecondaryBootDisk.decode(reader, reader.uint32())); break; } + case 49: { + if (!(message.storagePools && message.storagePools.length)) + message.storagePools = []; + message.storagePools.push(reader.string()); + break; + } case 50: { message.secondaryBootDiskUpdateStrategy = $root.google.container.v1.SecondaryBootDiskUpdateStrategy.decode(reader, reader.uint32()); break; } + case 55: { + message.effectiveCgroupMode = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -3404,6 +3438,13 @@ return "secondaryBootDisks." + error; } } + if (message.storagePools != null && message.hasOwnProperty("storagePools")) { + if (!Array.isArray(message.storagePools)) + return "storagePools: array expected"; + for (var i = 0; i < message.storagePools.length; ++i) + if (!$util.isString(message.storagePools[i])) + return "storagePools: string[] expected"; + } if (message.secondaryBootDiskUpdateStrategy != null && message.hasOwnProperty("secondaryBootDiskUpdateStrategy")) { properties._secondaryBootDiskUpdateStrategy = 1; { @@ -3412,6 +3453,15 @@ return "secondaryBootDiskUpdateStrategy." + error; } } + if (message.effectiveCgroupMode != null && message.hasOwnProperty("effectiveCgroupMode")) + switch (message.effectiveCgroupMode) { + default: + return "effectiveCgroupMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -3606,11 +3656,38 @@ message.secondaryBootDisks[i] = $root.google.container.v1.SecondaryBootDisk.fromObject(object.secondaryBootDisks[i]); } } + if (object.storagePools) { + if (!Array.isArray(object.storagePools)) + throw TypeError(".google.container.v1.NodeConfig.storagePools: array expected"); + message.storagePools = []; + for (var i = 0; i < object.storagePools.length; ++i) + message.storagePools[i] = String(object.storagePools[i]); + } if (object.secondaryBootDiskUpdateStrategy != null) { if (typeof object.secondaryBootDiskUpdateStrategy !== "object") throw TypeError(".google.container.v1.NodeConfig.secondaryBootDiskUpdateStrategy: object expected"); message.secondaryBootDiskUpdateStrategy = $root.google.container.v1.SecondaryBootDiskUpdateStrategy.fromObject(object.secondaryBootDiskUpdateStrategy); } + switch (object.effectiveCgroupMode) { + default: + if (typeof object.effectiveCgroupMode === "number") { + message.effectiveCgroupMode = object.effectiveCgroupMode; + break; + } + break; + case "EFFECTIVE_CGROUP_MODE_UNSPECIFIED": + case 0: + message.effectiveCgroupMode = 0; + break; + case "EFFECTIVE_CGROUP_MODE_V1": + case 1: + message.effectiveCgroupMode = 1; + break; + case "EFFECTIVE_CGROUP_MODE_V2": + case 2: + message.effectiveCgroupMode = 2; + break; + } return message; }; @@ -3633,6 +3710,7 @@ object.accelerators = []; object.taints = []; object.secondaryBootDisks = []; + object.storagePools = []; } if (options.objects || options.defaults) { object.metadata = {}; @@ -3669,6 +3747,7 @@ object.containerdConfig = null; object.resourceManagerTags = null; object.enableConfidentialStorage = false; + object.effectiveCgroupMode = options.enums === String ? "EFFECTIVE_CGROUP_MODE_UNSPECIFIED" : 0; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -3774,11 +3853,18 @@ for (var j = 0; j < message.secondaryBootDisks.length; ++j) object.secondaryBootDisks[j] = $root.google.container.v1.SecondaryBootDisk.toObject(message.secondaryBootDisks[j], options); } + if (message.storagePools && message.storagePools.length) { + object.storagePools = []; + for (var j = 0; j < message.storagePools.length; ++j) + object.storagePools[j] = message.storagePools[j]; + } if (message.secondaryBootDiskUpdateStrategy != null && message.hasOwnProperty("secondaryBootDiskUpdateStrategy")) { object.secondaryBootDiskUpdateStrategy = $root.google.container.v1.SecondaryBootDiskUpdateStrategy.toObject(message.secondaryBootDiskUpdateStrategy, options); if (options.oneofs) object._secondaryBootDiskUpdateStrategy = "secondaryBootDiskUpdateStrategy"; } + if (message.effectiveCgroupMode != null && message.hasOwnProperty("effectiveCgroupMode")) + object.effectiveCgroupMode = options.enums === String ? $root.google.container.v1.NodeConfig.EffectiveCgroupMode[message.effectiveCgroupMode] === undefined ? message.effectiveCgroupMode : $root.google.container.v1.NodeConfig.EffectiveCgroupMode[message.effectiveCgroupMode] : message.effectiveCgroupMode; return object; }; @@ -3808,6 +3894,22 @@ return typeUrlPrefix + "/google.container.v1.NodeConfig"; }; + /** + * EffectiveCgroupMode enum. + * @name google.container.v1.NodeConfig.EffectiveCgroupMode + * @enum {number} + * @property {number} EFFECTIVE_CGROUP_MODE_UNSPECIFIED=0 EFFECTIVE_CGROUP_MODE_UNSPECIFIED value + * @property {number} EFFECTIVE_CGROUP_MODE_V1=1 EFFECTIVE_CGROUP_MODE_V1 value + * @property {number} EFFECTIVE_CGROUP_MODE_V2=2 EFFECTIVE_CGROUP_MODE_V2 value + */ + NodeConfig.EffectiveCgroupMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EFFECTIVE_CGROUP_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EFFECTIVE_CGROUP_MODE_V1"] = 1; + values[valuesById[2] = "EFFECTIVE_CGROUP_MODE_V2"] = 2; + return values; + })(); + return NodeConfig; })(); @@ -9511,6 +9613,7 @@ * @property {google.container.v1.IGkeBackupAgentConfig|null} [gkeBackupAgentConfig] AddonsConfig gkeBackupAgentConfig * @property {google.container.v1.IGcsFuseCsiDriverConfig|null} [gcsFuseCsiDriverConfig] AddonsConfig gcsFuseCsiDriverConfig * @property {google.container.v1.IStatefulHAConfig|null} [statefulHaConfig] AddonsConfig statefulHaConfig + * @property {google.container.v1.IParallelstoreCsiDriverConfig|null} [parallelstoreCsiDriverConfig] AddonsConfig parallelstoreCsiDriverConfig * @property {google.container.v1.IRayOperatorConfig|null} [rayOperatorConfig] AddonsConfig rayOperatorConfig */ @@ -9625,6 +9728,14 @@ */ AddonsConfig.prototype.statefulHaConfig = null; + /** + * AddonsConfig parallelstoreCsiDriverConfig. + * @member {google.container.v1.IParallelstoreCsiDriverConfig|null|undefined} parallelstoreCsiDriverConfig + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.parallelstoreCsiDriverConfig = null; + /** * AddonsConfig rayOperatorConfig. * @member {google.container.v1.IRayOperatorConfig|null|undefined} rayOperatorConfig @@ -9681,6 +9792,8 @@ $root.google.container.v1.GcsFuseCsiDriverConfig.encode(message.gcsFuseCsiDriverConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); if (message.statefulHaConfig != null && Object.hasOwnProperty.call(message, "statefulHaConfig")) $root.google.container.v1.StatefulHAConfig.encode(message.statefulHaConfig, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.parallelstoreCsiDriverConfig != null && Object.hasOwnProperty.call(message, "parallelstoreCsiDriverConfig")) + $root.google.container.v1.ParallelstoreCsiDriverConfig.encode(message.parallelstoreCsiDriverConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); if (message.rayOperatorConfig != null && Object.hasOwnProperty.call(message, "rayOperatorConfig")) $root.google.container.v1.RayOperatorConfig.encode(message.rayOperatorConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); return writer; @@ -9765,6 +9878,10 @@ message.statefulHaConfig = $root.google.container.v1.StatefulHAConfig.decode(reader, reader.uint32()); break; } + case 19: { + message.parallelstoreCsiDriverConfig = $root.google.container.v1.ParallelstoreCsiDriverConfig.decode(reader, reader.uint32()); + break; + } case 21: { message.rayOperatorConfig = $root.google.container.v1.RayOperatorConfig.decode(reader, reader.uint32()); break; @@ -9864,6 +9981,11 @@ if (error) return "statefulHaConfig." + error; } + if (message.parallelstoreCsiDriverConfig != null && message.hasOwnProperty("parallelstoreCsiDriverConfig")) { + var error = $root.google.container.v1.ParallelstoreCsiDriverConfig.verify(message.parallelstoreCsiDriverConfig); + if (error) + return "parallelstoreCsiDriverConfig." + error; + } if (message.rayOperatorConfig != null && message.hasOwnProperty("rayOperatorConfig")) { var error = $root.google.container.v1.RayOperatorConfig.verify(message.rayOperatorConfig); if (error) @@ -9944,6 +10066,11 @@ throw TypeError(".google.container.v1.AddonsConfig.statefulHaConfig: object expected"); message.statefulHaConfig = $root.google.container.v1.StatefulHAConfig.fromObject(object.statefulHaConfig); } + if (object.parallelstoreCsiDriverConfig != null) { + if (typeof object.parallelstoreCsiDriverConfig !== "object") + throw TypeError(".google.container.v1.AddonsConfig.parallelstoreCsiDriverConfig: object expected"); + message.parallelstoreCsiDriverConfig = $root.google.container.v1.ParallelstoreCsiDriverConfig.fromObject(object.parallelstoreCsiDriverConfig); + } if (object.rayOperatorConfig != null) { if (typeof object.rayOperatorConfig !== "object") throw TypeError(".google.container.v1.AddonsConfig.rayOperatorConfig: object expected"); @@ -9978,6 +10105,7 @@ object.gkeBackupAgentConfig = null; object.gcsFuseCsiDriverConfig = null; object.statefulHaConfig = null; + object.parallelstoreCsiDriverConfig = null; object.rayOperatorConfig = null; } if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) @@ -10004,6 +10132,8 @@ object.gcsFuseCsiDriverConfig = $root.google.container.v1.GcsFuseCsiDriverConfig.toObject(message.gcsFuseCsiDriverConfig, options); if (message.statefulHaConfig != null && message.hasOwnProperty("statefulHaConfig")) object.statefulHaConfig = $root.google.container.v1.StatefulHAConfig.toObject(message.statefulHaConfig, options); + if (message.parallelstoreCsiDriverConfig != null && message.hasOwnProperty("parallelstoreCsiDriverConfig")) + object.parallelstoreCsiDriverConfig = $root.google.container.v1.ParallelstoreCsiDriverConfig.toObject(message.parallelstoreCsiDriverConfig, options); if (message.rayOperatorConfig != null && message.hasOwnProperty("rayOperatorConfig")) object.rayOperatorConfig = $root.google.container.v1.RayOperatorConfig.toObject(message.rayOperatorConfig, options); return object; @@ -12932,6 +13062,209 @@ return GcsFuseCsiDriverConfig; })(); + v1.ParallelstoreCsiDriverConfig = (function() { + + /** + * Properties of a ParallelstoreCsiDriverConfig. + * @memberof google.container.v1 + * @interface IParallelstoreCsiDriverConfig + * @property {boolean|null} [enabled] ParallelstoreCsiDriverConfig enabled + */ + + /** + * Constructs a new ParallelstoreCsiDriverConfig. + * @memberof google.container.v1 + * @classdesc Represents a ParallelstoreCsiDriverConfig. + * @implements IParallelstoreCsiDriverConfig + * @constructor + * @param {google.container.v1.IParallelstoreCsiDriverConfig=} [properties] Properties to set + */ + function ParallelstoreCsiDriverConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParallelstoreCsiDriverConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @instance + */ + ParallelstoreCsiDriverConfig.prototype.enabled = false; + + /** + * Creates a new ParallelstoreCsiDriverConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {google.container.v1.IParallelstoreCsiDriverConfig=} [properties] Properties to set + * @returns {google.container.v1.ParallelstoreCsiDriverConfig} ParallelstoreCsiDriverConfig instance + */ + ParallelstoreCsiDriverConfig.create = function create(properties) { + return new ParallelstoreCsiDriverConfig(properties); + }; + + /** + * Encodes the specified ParallelstoreCsiDriverConfig message. Does not implicitly {@link google.container.v1.ParallelstoreCsiDriverConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {google.container.v1.IParallelstoreCsiDriverConfig} message ParallelstoreCsiDriverConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParallelstoreCsiDriverConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified ParallelstoreCsiDriverConfig message, length delimited. Does not implicitly {@link google.container.v1.ParallelstoreCsiDriverConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {google.container.v1.IParallelstoreCsiDriverConfig} message ParallelstoreCsiDriverConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParallelstoreCsiDriverConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ParallelstoreCsiDriverConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ParallelstoreCsiDriverConfig} ParallelstoreCsiDriverConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParallelstoreCsiDriverConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ParallelstoreCsiDriverConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ParallelstoreCsiDriverConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ParallelstoreCsiDriverConfig} ParallelstoreCsiDriverConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParallelstoreCsiDriverConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ParallelstoreCsiDriverConfig message. + * @function verify + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParallelstoreCsiDriverConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a ParallelstoreCsiDriverConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ParallelstoreCsiDriverConfig} ParallelstoreCsiDriverConfig + */ + ParallelstoreCsiDriverConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ParallelstoreCsiDriverConfig) + return object; + var message = new $root.google.container.v1.ParallelstoreCsiDriverConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a ParallelstoreCsiDriverConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {google.container.v1.ParallelstoreCsiDriverConfig} message ParallelstoreCsiDriverConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ParallelstoreCsiDriverConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this ParallelstoreCsiDriverConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @instance + * @returns {Object.} JSON object + */ + ParallelstoreCsiDriverConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ParallelstoreCsiDriverConfig + * @function getTypeUrl + * @memberof google.container.v1.ParallelstoreCsiDriverConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ParallelstoreCsiDriverConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ParallelstoreCsiDriverConfig"; + }; + + return ParallelstoreCsiDriverConfig; + })(); + v1.RayOperatorConfig = (function() { /** @@ -13607,6 +13940,7 @@ * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks * @property {boolean|null} [gcpPublicCidrsAccessEnabled] MasterAuthorizedNetworksConfig gcpPublicCidrsAccessEnabled + * @property {boolean|null} [privateEndpointEnforcementEnabled] MasterAuthorizedNetworksConfig privateEndpointEnforcementEnabled */ /** @@ -13649,6 +13983,14 @@ */ MasterAuthorizedNetworksConfig.prototype.gcpPublicCidrsAccessEnabled = null; + /** + * MasterAuthorizedNetworksConfig privateEndpointEnforcementEnabled. + * @member {boolean|null|undefined} privateEndpointEnforcementEnabled + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @instance + */ + MasterAuthorizedNetworksConfig.prototype.privateEndpointEnforcementEnabled = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -13663,6 +14005,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * MasterAuthorizedNetworksConfig _privateEndpointEnforcementEnabled. + * @member {"privateEndpointEnforcementEnabled"|undefined} _privateEndpointEnforcementEnabled + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @instance + */ + Object.defineProperty(MasterAuthorizedNetworksConfig.prototype, "_privateEndpointEnforcementEnabled", { + get: $util.oneOfGetter($oneOfFields = ["privateEndpointEnforcementEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. * @function create @@ -13694,6 +14047,8 @@ $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.encode(message.cidrBlocks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.gcpPublicCidrsAccessEnabled != null && Object.hasOwnProperty.call(message, "gcpPublicCidrsAccessEnabled")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.gcpPublicCidrsAccessEnabled); + if (message.privateEndpointEnforcementEnabled != null && Object.hasOwnProperty.call(message, "privateEndpointEnforcementEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.privateEndpointEnforcementEnabled); return writer; }; @@ -13742,6 +14097,10 @@ message.gcpPublicCidrsAccessEnabled = reader.bool(); break; } + case 5: { + message.privateEndpointEnforcementEnabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -13795,6 +14154,11 @@ if (typeof message.gcpPublicCidrsAccessEnabled !== "boolean") return "gcpPublicCidrsAccessEnabled: boolean expected"; } + if (message.privateEndpointEnforcementEnabled != null && message.hasOwnProperty("privateEndpointEnforcementEnabled")) { + properties._privateEndpointEnforcementEnabled = 1; + if (typeof message.privateEndpointEnforcementEnabled !== "boolean") + return "privateEndpointEnforcementEnabled: boolean expected"; + } return null; }; @@ -13824,6 +14188,8 @@ } if (object.gcpPublicCidrsAccessEnabled != null) message.gcpPublicCidrsAccessEnabled = Boolean(object.gcpPublicCidrsAccessEnabled); + if (object.privateEndpointEnforcementEnabled != null) + message.privateEndpointEnforcementEnabled = Boolean(object.privateEndpointEnforcementEnabled); return message; }; @@ -13856,6 +14222,11 @@ if (options.oneofs) object._gcpPublicCidrsAccessEnabled = "gcpPublicCidrsAccessEnabled"; } + if (message.privateEndpointEnforcementEnabled != null && message.hasOwnProperty("privateEndpointEnforcementEnabled")) { + object.privateEndpointEnforcementEnabled = message.privateEndpointEnforcementEnabled; + if (options.oneofs) + object._privateEndpointEnforcementEnabled = "privateEndpointEnforcementEnabled"; + } return object; }; @@ -15818,10 +16189,15 @@ * @property {string|null} [etag] Cluster etag * @property {google.container.v1.IFleet|null} [fleet] Cluster fleet * @property {google.container.v1.ISecurityPostureConfig|null} [securityPostureConfig] Cluster securityPostureConfig + * @property {google.container.v1.IControlPlaneEndpointsConfig|null} [controlPlaneEndpointsConfig] Cluster controlPlaneEndpointsConfig * @property {google.container.v1.IK8sBetaAPIConfig|null} [enableK8sBetaApis] Cluster enableK8sBetaApis * @property {google.container.v1.IEnterpriseConfig|null} [enterpriseConfig] Cluster enterpriseConfig + * @property {google.container.v1.ISecretManagerConfig|null} [secretManagerConfig] Cluster secretManagerConfig + * @property {google.container.v1.ICompliancePostureConfig|null} [compliancePostureConfig] Cluster compliancePostureConfig * @property {boolean|null} [satisfiesPzs] Cluster satisfiesPzs * @property {boolean|null} [satisfiesPzi] Cluster satisfiesPzi + * @property {google.container.v1.IUserManagedKeysConfig|null} [userManagedKeysConfig] Cluster userManagedKeysConfig + * @property {google.container.v1.IRBACBindingConfig|null} [rbacBindingConfig] Cluster rbacBindingConfig */ /** @@ -16364,6 +16740,14 @@ */ Cluster.prototype.securityPostureConfig = null; + /** + * Cluster controlPlaneEndpointsConfig. + * @member {google.container.v1.IControlPlaneEndpointsConfig|null|undefined} controlPlaneEndpointsConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.controlPlaneEndpointsConfig = null; + /** * Cluster enableK8sBetaApis. * @member {google.container.v1.IK8sBetaAPIConfig|null|undefined} enableK8sBetaApis @@ -16380,6 +16764,22 @@ */ Cluster.prototype.enterpriseConfig = null; + /** + * Cluster secretManagerConfig. + * @member {google.container.v1.ISecretManagerConfig|null|undefined} secretManagerConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.secretManagerConfig = null; + + /** + * Cluster compliancePostureConfig. + * @member {google.container.v1.ICompliancePostureConfig|null|undefined} compliancePostureConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.compliancePostureConfig = null; + /** * Cluster satisfiesPzs. * @member {boolean|null|undefined} satisfiesPzs @@ -16396,6 +16796,22 @@ */ Cluster.prototype.satisfiesPzi = null; + /** + * Cluster userManagedKeysConfig. + * @member {google.container.v1.IUserManagedKeysConfig|null|undefined} userManagedKeysConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.userManagedKeysConfig = null; + + /** + * Cluster rbacBindingConfig. + * @member {google.container.v1.IRBACBindingConfig|null|undefined} rbacBindingConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.rbacBindingConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -16432,6 +16848,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Cluster _userManagedKeysConfig. + * @member {"userManagedKeysConfig"|undefined} _userManagedKeysConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Object.defineProperty(Cluster.prototype, "_userManagedKeysConfig", { + get: $util.oneOfGetter($oneOfFields = ["userManagedKeysConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Cluster _rbacBindingConfig. + * @member {"rbacBindingConfig"|undefined} _rbacBindingConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Object.defineProperty(Cluster.prototype, "_rbacBindingConfig", { + get: $util.oneOfGetter($oneOfFields = ["rbacBindingConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Cluster instance using the specified properties. * @function create @@ -16593,12 +17031,22 @@ $root.google.container.v1.K8sBetaAPIConfig.encode(message.enableK8sBetaApis, writer.uint32(/* id 143, wireType 2 =*/1146).fork()).ldelim(); if (message.securityPostureConfig != null && Object.hasOwnProperty.call(message, "securityPostureConfig")) $root.google.container.v1.SecurityPostureConfig.encode(message.securityPostureConfig, writer.uint32(/* id 145, wireType 2 =*/1162).fork()).ldelim(); + if (message.controlPlaneEndpointsConfig != null && Object.hasOwnProperty.call(message, "controlPlaneEndpointsConfig")) + $root.google.container.v1.ControlPlaneEndpointsConfig.encode(message.controlPlaneEndpointsConfig, writer.uint32(/* id 146, wireType 2 =*/1170).fork()).ldelim(); if (message.enterpriseConfig != null && Object.hasOwnProperty.call(message, "enterpriseConfig")) $root.google.container.v1.EnterpriseConfig.encode(message.enterpriseConfig, writer.uint32(/* id 149, wireType 2 =*/1194).fork()).ldelim(); + if (message.secretManagerConfig != null && Object.hasOwnProperty.call(message, "secretManagerConfig")) + $root.google.container.v1.SecretManagerConfig.encode(message.secretManagerConfig, writer.uint32(/* id 150, wireType 2 =*/1202).fork()).ldelim(); + if (message.compliancePostureConfig != null && Object.hasOwnProperty.call(message, "compliancePostureConfig")) + $root.google.container.v1.CompliancePostureConfig.encode(message.compliancePostureConfig, writer.uint32(/* id 151, wireType 2 =*/1210).fork()).ldelim(); if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) writer.uint32(/* id 152, wireType 0 =*/1216).bool(message.satisfiesPzs); if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) writer.uint32(/* id 153, wireType 0 =*/1224).bool(message.satisfiesPzi); + if (message.userManagedKeysConfig != null && Object.hasOwnProperty.call(message, "userManagedKeysConfig")) + $root.google.container.v1.UserManagedKeysConfig.encode(message.userManagedKeysConfig, writer.uint32(/* id 154, wireType 2 =*/1234).fork()).ldelim(); + if (message.rbacBindingConfig != null && Object.hasOwnProperty.call(message, "rbacBindingConfig")) + $root.google.container.v1.RBACBindingConfig.encode(message.rbacBindingConfig, writer.uint32(/* id 156, wireType 2 =*/1250).fork()).ldelim(); return writer; }; @@ -16920,6 +17368,10 @@ message.securityPostureConfig = $root.google.container.v1.SecurityPostureConfig.decode(reader, reader.uint32()); break; } + case 146: { + message.controlPlaneEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.decode(reader, reader.uint32()); + break; + } case 143: { message.enableK8sBetaApis = $root.google.container.v1.K8sBetaAPIConfig.decode(reader, reader.uint32()); break; @@ -16928,6 +17380,14 @@ message.enterpriseConfig = $root.google.container.v1.EnterpriseConfig.decode(reader, reader.uint32()); break; } + case 150: { + message.secretManagerConfig = $root.google.container.v1.SecretManagerConfig.decode(reader, reader.uint32()); + break; + } + case 151: { + message.compliancePostureConfig = $root.google.container.v1.CompliancePostureConfig.decode(reader, reader.uint32()); + break; + } case 152: { message.satisfiesPzs = reader.bool(); break; @@ -16936,6 +17396,14 @@ message.satisfiesPzi = reader.bool(); break; } + case 154: { + message.userManagedKeysConfig = $root.google.container.v1.UserManagedKeysConfig.decode(reader, reader.uint32()); + break; + } + case 156: { + message.rbacBindingConfig = $root.google.container.v1.RBACBindingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -17269,6 +17737,11 @@ if (error) return "securityPostureConfig." + error; } + if (message.controlPlaneEndpointsConfig != null && message.hasOwnProperty("controlPlaneEndpointsConfig")) { + var error = $root.google.container.v1.ControlPlaneEndpointsConfig.verify(message.controlPlaneEndpointsConfig); + if (error) + return "controlPlaneEndpointsConfig." + error; + } if (message.enableK8sBetaApis != null && message.hasOwnProperty("enableK8sBetaApis")) { var error = $root.google.container.v1.K8sBetaAPIConfig.verify(message.enableK8sBetaApis); if (error) @@ -17279,6 +17752,16 @@ if (error) return "enterpriseConfig." + error; } + if (message.secretManagerConfig != null && message.hasOwnProperty("secretManagerConfig")) { + var error = $root.google.container.v1.SecretManagerConfig.verify(message.secretManagerConfig); + if (error) + return "secretManagerConfig." + error; + } + if (message.compliancePostureConfig != null && message.hasOwnProperty("compliancePostureConfig")) { + var error = $root.google.container.v1.CompliancePostureConfig.verify(message.compliancePostureConfig); + if (error) + return "compliancePostureConfig." + error; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { properties._satisfiesPzs = 1; if (typeof message.satisfiesPzs !== "boolean") @@ -17289,6 +17772,22 @@ if (typeof message.satisfiesPzi !== "boolean") return "satisfiesPzi: boolean expected"; } + if (message.userManagedKeysConfig != null && message.hasOwnProperty("userManagedKeysConfig")) { + properties._userManagedKeysConfig = 1; + { + var error = $root.google.container.v1.UserManagedKeysConfig.verify(message.userManagedKeysConfig); + if (error) + return "userManagedKeysConfig." + error; + } + } + if (message.rbacBindingConfig != null && message.hasOwnProperty("rbacBindingConfig")) { + properties._rbacBindingConfig = 1; + { + var error = $root.google.container.v1.RBACBindingConfig.verify(message.rbacBindingConfig); + if (error) + return "rbacBindingConfig." + error; + } + } return null; }; @@ -17595,6 +18094,11 @@ throw TypeError(".google.container.v1.Cluster.securityPostureConfig: object expected"); message.securityPostureConfig = $root.google.container.v1.SecurityPostureConfig.fromObject(object.securityPostureConfig); } + if (object.controlPlaneEndpointsConfig != null) { + if (typeof object.controlPlaneEndpointsConfig !== "object") + throw TypeError(".google.container.v1.Cluster.controlPlaneEndpointsConfig: object expected"); + message.controlPlaneEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.fromObject(object.controlPlaneEndpointsConfig); + } if (object.enableK8sBetaApis != null) { if (typeof object.enableK8sBetaApis !== "object") throw TypeError(".google.container.v1.Cluster.enableK8sBetaApis: object expected"); @@ -17605,10 +18109,30 @@ throw TypeError(".google.container.v1.Cluster.enterpriseConfig: object expected"); message.enterpriseConfig = $root.google.container.v1.EnterpriseConfig.fromObject(object.enterpriseConfig); } + if (object.secretManagerConfig != null) { + if (typeof object.secretManagerConfig !== "object") + throw TypeError(".google.container.v1.Cluster.secretManagerConfig: object expected"); + message.secretManagerConfig = $root.google.container.v1.SecretManagerConfig.fromObject(object.secretManagerConfig); + } + if (object.compliancePostureConfig != null) { + if (typeof object.compliancePostureConfig !== "object") + throw TypeError(".google.container.v1.Cluster.compliancePostureConfig: object expected"); + message.compliancePostureConfig = $root.google.container.v1.CompliancePostureConfig.fromObject(object.compliancePostureConfig); + } if (object.satisfiesPzs != null) message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.satisfiesPzi != null) message.satisfiesPzi = Boolean(object.satisfiesPzi); + if (object.userManagedKeysConfig != null) { + if (typeof object.userManagedKeysConfig !== "object") + throw TypeError(".google.container.v1.Cluster.userManagedKeysConfig: object expected"); + message.userManagedKeysConfig = $root.google.container.v1.UserManagedKeysConfig.fromObject(object.userManagedKeysConfig); + } + if (object.rbacBindingConfig != null) { + if (typeof object.rbacBindingConfig !== "object") + throw TypeError(".google.container.v1.Cluster.rbacBindingConfig: object expected"); + message.rbacBindingConfig = $root.google.container.v1.RBACBindingConfig.fromObject(object.rbacBindingConfig); + } return message; }; @@ -17694,7 +18218,10 @@ object.fleet = null; object.enableK8sBetaApis = null; object.securityPostureConfig = null; + object.controlPlaneEndpointsConfig = null; object.enterpriseConfig = null; + object.secretManagerConfig = null; + object.compliancePostureConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -17847,8 +18374,14 @@ object.enableK8sBetaApis = $root.google.container.v1.K8sBetaAPIConfig.toObject(message.enableK8sBetaApis, options); if (message.securityPostureConfig != null && message.hasOwnProperty("securityPostureConfig")) object.securityPostureConfig = $root.google.container.v1.SecurityPostureConfig.toObject(message.securityPostureConfig, options); + if (message.controlPlaneEndpointsConfig != null && message.hasOwnProperty("controlPlaneEndpointsConfig")) + object.controlPlaneEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.toObject(message.controlPlaneEndpointsConfig, options); if (message.enterpriseConfig != null && message.hasOwnProperty("enterpriseConfig")) object.enterpriseConfig = $root.google.container.v1.EnterpriseConfig.toObject(message.enterpriseConfig, options); + if (message.secretManagerConfig != null && message.hasOwnProperty("secretManagerConfig")) + object.secretManagerConfig = $root.google.container.v1.SecretManagerConfig.toObject(message.secretManagerConfig, options); + if (message.compliancePostureConfig != null && message.hasOwnProperty("compliancePostureConfig")) + object.compliancePostureConfig = $root.google.container.v1.CompliancePostureConfig.toObject(message.compliancePostureConfig, options); if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { object.satisfiesPzs = message.satisfiesPzs; if (options.oneofs) @@ -17859,6 +18392,16 @@ if (options.oneofs) object._satisfiesPzi = "satisfiesPzi"; } + if (message.userManagedKeysConfig != null && message.hasOwnProperty("userManagedKeysConfig")) { + object.userManagedKeysConfig = $root.google.container.v1.UserManagedKeysConfig.toObject(message.userManagedKeysConfig, options); + if (options.oneofs) + object._userManagedKeysConfig = "userManagedKeysConfig"; + } + if (message.rbacBindingConfig != null && message.hasOwnProperty("rbacBindingConfig")) { + object.rbacBindingConfig = $root.google.container.v1.RBACBindingConfig.toObject(message.rbacBindingConfig, options); + if (options.oneofs) + object._rbacBindingConfig = "rbacBindingConfig"; + } return object; }; @@ -17915,25 +18458,25 @@ return Cluster; })(); - v1.K8sBetaAPIConfig = (function() { + v1.RBACBindingConfig = (function() { /** - * Properties of a K8sBetaAPIConfig. + * Properties of a RBACBindingConfig. * @memberof google.container.v1 - * @interface IK8sBetaAPIConfig - * @property {Array.|null} [enabledApis] K8sBetaAPIConfig enabledApis + * @interface IRBACBindingConfig + * @property {boolean|null} [enableInsecureBindingSystemUnauthenticated] RBACBindingConfig enableInsecureBindingSystemUnauthenticated + * @property {boolean|null} [enableInsecureBindingSystemAuthenticated] RBACBindingConfig enableInsecureBindingSystemAuthenticated */ /** - * Constructs a new K8sBetaAPIConfig. + * Constructs a new RBACBindingConfig. * @memberof google.container.v1 - * @classdesc Represents a K8sBetaAPIConfig. - * @implements IK8sBetaAPIConfig + * @classdesc Represents a RBACBindingConfig. + * @implements IRBACBindingConfig * @constructor - * @param {google.container.v1.IK8sBetaAPIConfig=} [properties] Properties to set + * @param {google.container.v1.IRBACBindingConfig=} [properties] Properties to set */ - function K8sBetaAPIConfig(properties) { - this.enabledApis = []; + function RBACBindingConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17941,78 +18484,114 @@ } /** - * K8sBetaAPIConfig enabledApis. - * @member {Array.} enabledApis - * @memberof google.container.v1.K8sBetaAPIConfig + * RBACBindingConfig enableInsecureBindingSystemUnauthenticated. + * @member {boolean|null|undefined} enableInsecureBindingSystemUnauthenticated + * @memberof google.container.v1.RBACBindingConfig * @instance */ - K8sBetaAPIConfig.prototype.enabledApis = $util.emptyArray; + RBACBindingConfig.prototype.enableInsecureBindingSystemUnauthenticated = null; /** - * Creates a new K8sBetaAPIConfig instance using the specified properties. + * RBACBindingConfig enableInsecureBindingSystemAuthenticated. + * @member {boolean|null|undefined} enableInsecureBindingSystemAuthenticated + * @memberof google.container.v1.RBACBindingConfig + * @instance + */ + RBACBindingConfig.prototype.enableInsecureBindingSystemAuthenticated = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RBACBindingConfig _enableInsecureBindingSystemUnauthenticated. + * @member {"enableInsecureBindingSystemUnauthenticated"|undefined} _enableInsecureBindingSystemUnauthenticated + * @memberof google.container.v1.RBACBindingConfig + * @instance + */ + Object.defineProperty(RBACBindingConfig.prototype, "_enableInsecureBindingSystemUnauthenticated", { + get: $util.oneOfGetter($oneOfFields = ["enableInsecureBindingSystemUnauthenticated"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * RBACBindingConfig _enableInsecureBindingSystemAuthenticated. + * @member {"enableInsecureBindingSystemAuthenticated"|undefined} _enableInsecureBindingSystemAuthenticated + * @memberof google.container.v1.RBACBindingConfig + * @instance + */ + Object.defineProperty(RBACBindingConfig.prototype, "_enableInsecureBindingSystemAuthenticated", { + get: $util.oneOfGetter($oneOfFields = ["enableInsecureBindingSystemAuthenticated"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RBACBindingConfig instance using the specified properties. * @function create - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static - * @param {google.container.v1.IK8sBetaAPIConfig=} [properties] Properties to set - * @returns {google.container.v1.K8sBetaAPIConfig} K8sBetaAPIConfig instance + * @param {google.container.v1.IRBACBindingConfig=} [properties] Properties to set + * @returns {google.container.v1.RBACBindingConfig} RBACBindingConfig instance */ - K8sBetaAPIConfig.create = function create(properties) { - return new K8sBetaAPIConfig(properties); + RBACBindingConfig.create = function create(properties) { + return new RBACBindingConfig(properties); }; /** - * Encodes the specified K8sBetaAPIConfig message. Does not implicitly {@link google.container.v1.K8sBetaAPIConfig.verify|verify} messages. + * Encodes the specified RBACBindingConfig message. Does not implicitly {@link google.container.v1.RBACBindingConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static - * @param {google.container.v1.IK8sBetaAPIConfig} message K8sBetaAPIConfig message or plain object to encode + * @param {google.container.v1.IRBACBindingConfig} message RBACBindingConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - K8sBetaAPIConfig.encode = function encode(message, writer) { + RBACBindingConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabledApis != null && message.enabledApis.length) - for (var i = 0; i < message.enabledApis.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.enabledApis[i]); + if (message.enableInsecureBindingSystemUnauthenticated != null && Object.hasOwnProperty.call(message, "enableInsecureBindingSystemUnauthenticated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableInsecureBindingSystemUnauthenticated); + if (message.enableInsecureBindingSystemAuthenticated != null && Object.hasOwnProperty.call(message, "enableInsecureBindingSystemAuthenticated")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableInsecureBindingSystemAuthenticated); return writer; }; /** - * Encodes the specified K8sBetaAPIConfig message, length delimited. Does not implicitly {@link google.container.v1.K8sBetaAPIConfig.verify|verify} messages. + * Encodes the specified RBACBindingConfig message, length delimited. Does not implicitly {@link google.container.v1.RBACBindingConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static - * @param {google.container.v1.IK8sBetaAPIConfig} message K8sBetaAPIConfig message or plain object to encode + * @param {google.container.v1.IRBACBindingConfig} message RBACBindingConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - K8sBetaAPIConfig.encodeDelimited = function encodeDelimited(message, writer) { + RBACBindingConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a K8sBetaAPIConfig message from the specified reader or buffer. + * Decodes a RBACBindingConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.K8sBetaAPIConfig} K8sBetaAPIConfig + * @returns {google.container.v1.RBACBindingConfig} RBACBindingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - K8sBetaAPIConfig.decode = function decode(reader, length) { + RBACBindingConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.K8sBetaAPIConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RBACBindingConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.enabledApis && message.enabledApis.length)) - message.enabledApis = []; - message.enabledApis.push(reader.string()); + message.enableInsecureBindingSystemUnauthenticated = reader.bool(); + break; + } + case 2: { + message.enableInsecureBindingSystemAuthenticated = reader.bool(); break; } default: @@ -18024,135 +18603,147 @@ }; /** - * Decodes a K8sBetaAPIConfig message from the specified reader or buffer, length delimited. + * Decodes a RBACBindingConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.K8sBetaAPIConfig} K8sBetaAPIConfig + * @returns {google.container.v1.RBACBindingConfig} RBACBindingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - K8sBetaAPIConfig.decodeDelimited = function decodeDelimited(reader) { + RBACBindingConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a K8sBetaAPIConfig message. + * Verifies a RBACBindingConfig message. * @function verify - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - K8sBetaAPIConfig.verify = function verify(message) { + RBACBindingConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabledApis != null && message.hasOwnProperty("enabledApis")) { - if (!Array.isArray(message.enabledApis)) - return "enabledApis: array expected"; - for (var i = 0; i < message.enabledApis.length; ++i) - if (!$util.isString(message.enabledApis[i])) - return "enabledApis: string[] expected"; + var properties = {}; + if (message.enableInsecureBindingSystemUnauthenticated != null && message.hasOwnProperty("enableInsecureBindingSystemUnauthenticated")) { + properties._enableInsecureBindingSystemUnauthenticated = 1; + if (typeof message.enableInsecureBindingSystemUnauthenticated !== "boolean") + return "enableInsecureBindingSystemUnauthenticated: boolean expected"; + } + if (message.enableInsecureBindingSystemAuthenticated != null && message.hasOwnProperty("enableInsecureBindingSystemAuthenticated")) { + properties._enableInsecureBindingSystemAuthenticated = 1; + if (typeof message.enableInsecureBindingSystemAuthenticated !== "boolean") + return "enableInsecureBindingSystemAuthenticated: boolean expected"; } return null; }; /** - * Creates a K8sBetaAPIConfig message from a plain object. Also converts values to their respective internal types. + * Creates a RBACBindingConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.K8sBetaAPIConfig} K8sBetaAPIConfig + * @returns {google.container.v1.RBACBindingConfig} RBACBindingConfig */ - K8sBetaAPIConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.K8sBetaAPIConfig) + RBACBindingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.RBACBindingConfig) return object; - var message = new $root.google.container.v1.K8sBetaAPIConfig(); - if (object.enabledApis) { - if (!Array.isArray(object.enabledApis)) - throw TypeError(".google.container.v1.K8sBetaAPIConfig.enabledApis: array expected"); - message.enabledApis = []; - for (var i = 0; i < object.enabledApis.length; ++i) - message.enabledApis[i] = String(object.enabledApis[i]); - } + var message = new $root.google.container.v1.RBACBindingConfig(); + if (object.enableInsecureBindingSystemUnauthenticated != null) + message.enableInsecureBindingSystemUnauthenticated = Boolean(object.enableInsecureBindingSystemUnauthenticated); + if (object.enableInsecureBindingSystemAuthenticated != null) + message.enableInsecureBindingSystemAuthenticated = Boolean(object.enableInsecureBindingSystemAuthenticated); return message; }; /** - * Creates a plain object from a K8sBetaAPIConfig message. Also converts values to other types if specified. + * Creates a plain object from a RBACBindingConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static - * @param {google.container.v1.K8sBetaAPIConfig} message K8sBetaAPIConfig + * @param {google.container.v1.RBACBindingConfig} message RBACBindingConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - K8sBetaAPIConfig.toObject = function toObject(message, options) { + RBACBindingConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.enabledApis = []; - if (message.enabledApis && message.enabledApis.length) { - object.enabledApis = []; - for (var j = 0; j < message.enabledApis.length; ++j) - object.enabledApis[j] = message.enabledApis[j]; + if (message.enableInsecureBindingSystemUnauthenticated != null && message.hasOwnProperty("enableInsecureBindingSystemUnauthenticated")) { + object.enableInsecureBindingSystemUnauthenticated = message.enableInsecureBindingSystemUnauthenticated; + if (options.oneofs) + object._enableInsecureBindingSystemUnauthenticated = "enableInsecureBindingSystemUnauthenticated"; + } + if (message.enableInsecureBindingSystemAuthenticated != null && message.hasOwnProperty("enableInsecureBindingSystemAuthenticated")) { + object.enableInsecureBindingSystemAuthenticated = message.enableInsecureBindingSystemAuthenticated; + if (options.oneofs) + object._enableInsecureBindingSystemAuthenticated = "enableInsecureBindingSystemAuthenticated"; } return object; }; /** - * Converts this K8sBetaAPIConfig to JSON. + * Converts this RBACBindingConfig to JSON. * @function toJSON - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @instance * @returns {Object.} JSON object */ - K8sBetaAPIConfig.prototype.toJSON = function toJSON() { + RBACBindingConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for K8sBetaAPIConfig + * Gets the default type url for RBACBindingConfig * @function getTypeUrl - * @memberof google.container.v1.K8sBetaAPIConfig + * @memberof google.container.v1.RBACBindingConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - K8sBetaAPIConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RBACBindingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.container.v1.K8sBetaAPIConfig"; + return typeUrlPrefix + "/google.container.v1.RBACBindingConfig"; }; - return K8sBetaAPIConfig; + return RBACBindingConfig; })(); - v1.SecurityPostureConfig = (function() { + v1.UserManagedKeysConfig = (function() { /** - * Properties of a SecurityPostureConfig. + * Properties of a UserManagedKeysConfig. * @memberof google.container.v1 - * @interface ISecurityPostureConfig - * @property {google.container.v1.SecurityPostureConfig.Mode|null} [mode] SecurityPostureConfig mode - * @property {google.container.v1.SecurityPostureConfig.VulnerabilityMode|null} [vulnerabilityMode] SecurityPostureConfig vulnerabilityMode + * @interface IUserManagedKeysConfig + * @property {string|null} [clusterCa] UserManagedKeysConfig clusterCa + * @property {string|null} [etcdApiCa] UserManagedKeysConfig etcdApiCa + * @property {string|null} [etcdPeerCa] UserManagedKeysConfig etcdPeerCa + * @property {Array.|null} [serviceAccountSigningKeys] UserManagedKeysConfig serviceAccountSigningKeys + * @property {Array.|null} [serviceAccountVerificationKeys] UserManagedKeysConfig serviceAccountVerificationKeys + * @property {string|null} [aggregationCa] UserManagedKeysConfig aggregationCa + * @property {string|null} [controlPlaneDiskEncryptionKey] UserManagedKeysConfig controlPlaneDiskEncryptionKey + * @property {string|null} [gkeopsEtcdBackupEncryptionKey] UserManagedKeysConfig gkeopsEtcdBackupEncryptionKey */ /** - * Constructs a new SecurityPostureConfig. + * Constructs a new UserManagedKeysConfig. * @memberof google.container.v1 - * @classdesc Represents a SecurityPostureConfig. - * @implements ISecurityPostureConfig + * @classdesc Represents a UserManagedKeysConfig. + * @implements IUserManagedKeysConfig * @constructor - * @param {google.container.v1.ISecurityPostureConfig=} [properties] Properties to set + * @param {google.container.v1.IUserManagedKeysConfig=} [properties] Properties to set */ - function SecurityPostureConfig(properties) { + function UserManagedKeysConfig(properties) { + this.serviceAccountSigningKeys = []; + this.serviceAccountVerificationKeys = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18160,114 +18751,179 @@ } /** - * SecurityPostureConfig mode. - * @member {google.container.v1.SecurityPostureConfig.Mode|null|undefined} mode - * @memberof google.container.v1.SecurityPostureConfig + * UserManagedKeysConfig clusterCa. + * @member {string} clusterCa + * @memberof google.container.v1.UserManagedKeysConfig * @instance */ - SecurityPostureConfig.prototype.mode = null; + UserManagedKeysConfig.prototype.clusterCa = ""; /** - * SecurityPostureConfig vulnerabilityMode. - * @member {google.container.v1.SecurityPostureConfig.VulnerabilityMode|null|undefined} vulnerabilityMode - * @memberof google.container.v1.SecurityPostureConfig + * UserManagedKeysConfig etcdApiCa. + * @member {string} etcdApiCa + * @memberof google.container.v1.UserManagedKeysConfig * @instance */ - SecurityPostureConfig.prototype.vulnerabilityMode = null; + UserManagedKeysConfig.prototype.etcdApiCa = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * UserManagedKeysConfig etcdPeerCa. + * @member {string} etcdPeerCa + * @memberof google.container.v1.UserManagedKeysConfig + * @instance + */ + UserManagedKeysConfig.prototype.etcdPeerCa = ""; /** - * SecurityPostureConfig _mode. - * @member {"mode"|undefined} _mode - * @memberof google.container.v1.SecurityPostureConfig + * UserManagedKeysConfig serviceAccountSigningKeys. + * @member {Array.} serviceAccountSigningKeys + * @memberof google.container.v1.UserManagedKeysConfig * @instance */ - Object.defineProperty(SecurityPostureConfig.prototype, "_mode", { - get: $util.oneOfGetter($oneOfFields = ["mode"]), - set: $util.oneOfSetter($oneOfFields) - }); + UserManagedKeysConfig.prototype.serviceAccountSigningKeys = $util.emptyArray; /** - * SecurityPostureConfig _vulnerabilityMode. - * @member {"vulnerabilityMode"|undefined} _vulnerabilityMode - * @memberof google.container.v1.SecurityPostureConfig + * UserManagedKeysConfig serviceAccountVerificationKeys. + * @member {Array.} serviceAccountVerificationKeys + * @memberof google.container.v1.UserManagedKeysConfig * @instance */ - Object.defineProperty(SecurityPostureConfig.prototype, "_vulnerabilityMode", { - get: $util.oneOfGetter($oneOfFields = ["vulnerabilityMode"]), - set: $util.oneOfSetter($oneOfFields) - }); + UserManagedKeysConfig.prototype.serviceAccountVerificationKeys = $util.emptyArray; /** - * Creates a new SecurityPostureConfig instance using the specified properties. + * UserManagedKeysConfig aggregationCa. + * @member {string} aggregationCa + * @memberof google.container.v1.UserManagedKeysConfig + * @instance + */ + UserManagedKeysConfig.prototype.aggregationCa = ""; + + /** + * UserManagedKeysConfig controlPlaneDiskEncryptionKey. + * @member {string} controlPlaneDiskEncryptionKey + * @memberof google.container.v1.UserManagedKeysConfig + * @instance + */ + UserManagedKeysConfig.prototype.controlPlaneDiskEncryptionKey = ""; + + /** + * UserManagedKeysConfig gkeopsEtcdBackupEncryptionKey. + * @member {string} gkeopsEtcdBackupEncryptionKey + * @memberof google.container.v1.UserManagedKeysConfig + * @instance + */ + UserManagedKeysConfig.prototype.gkeopsEtcdBackupEncryptionKey = ""; + + /** + * Creates a new UserManagedKeysConfig instance using the specified properties. * @function create - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static - * @param {google.container.v1.ISecurityPostureConfig=} [properties] Properties to set - * @returns {google.container.v1.SecurityPostureConfig} SecurityPostureConfig instance + * @param {google.container.v1.IUserManagedKeysConfig=} [properties] Properties to set + * @returns {google.container.v1.UserManagedKeysConfig} UserManagedKeysConfig instance */ - SecurityPostureConfig.create = function create(properties) { - return new SecurityPostureConfig(properties); + UserManagedKeysConfig.create = function create(properties) { + return new UserManagedKeysConfig(properties); }; /** - * Encodes the specified SecurityPostureConfig message. Does not implicitly {@link google.container.v1.SecurityPostureConfig.verify|verify} messages. + * Encodes the specified UserManagedKeysConfig message. Does not implicitly {@link google.container.v1.UserManagedKeysConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static - * @param {google.container.v1.ISecurityPostureConfig} message SecurityPostureConfig message or plain object to encode + * @param {google.container.v1.IUserManagedKeysConfig} message UserManagedKeysConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityPostureConfig.encode = function encode(message, writer) { + UserManagedKeysConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.mode != null && Object.hasOwnProperty.call(message, "mode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); - if (message.vulnerabilityMode != null && Object.hasOwnProperty.call(message, "vulnerabilityMode")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.vulnerabilityMode); + if (message.clusterCa != null && Object.hasOwnProperty.call(message, "clusterCa")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.clusterCa); + if (message.etcdApiCa != null && Object.hasOwnProperty.call(message, "etcdApiCa")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.etcdApiCa); + if (message.etcdPeerCa != null && Object.hasOwnProperty.call(message, "etcdPeerCa")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.etcdPeerCa); + if (message.serviceAccountSigningKeys != null && message.serviceAccountSigningKeys.length) + for (var i = 0; i < message.serviceAccountSigningKeys.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.serviceAccountSigningKeys[i]); + if (message.serviceAccountVerificationKeys != null && message.serviceAccountVerificationKeys.length) + for (var i = 0; i < message.serviceAccountVerificationKeys.length; ++i) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.serviceAccountVerificationKeys[i]); + if (message.aggregationCa != null && Object.hasOwnProperty.call(message, "aggregationCa")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.aggregationCa); + if (message.controlPlaneDiskEncryptionKey != null && Object.hasOwnProperty.call(message, "controlPlaneDiskEncryptionKey")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.controlPlaneDiskEncryptionKey); + if (message.gkeopsEtcdBackupEncryptionKey != null && Object.hasOwnProperty.call(message, "gkeopsEtcdBackupEncryptionKey")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.gkeopsEtcdBackupEncryptionKey); return writer; }; /** - * Encodes the specified SecurityPostureConfig message, length delimited. Does not implicitly {@link google.container.v1.SecurityPostureConfig.verify|verify} messages. + * Encodes the specified UserManagedKeysConfig message, length delimited. Does not implicitly {@link google.container.v1.UserManagedKeysConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static - * @param {google.container.v1.ISecurityPostureConfig} message SecurityPostureConfig message or plain object to encode + * @param {google.container.v1.IUserManagedKeysConfig} message UserManagedKeysConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SecurityPostureConfig.encodeDelimited = function encodeDelimited(message, writer) { + UserManagedKeysConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SecurityPostureConfig message from the specified reader or buffer. + * Decodes a UserManagedKeysConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SecurityPostureConfig} SecurityPostureConfig + * @returns {google.container.v1.UserManagedKeysConfig} UserManagedKeysConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityPostureConfig.decode = function decode(reader, length) { + UserManagedKeysConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SecurityPostureConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UserManagedKeysConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.mode = reader.int32(); + case 10: { + message.clusterCa = reader.string(); break; } - case 2: { - message.vulnerabilityMode = reader.int32(); + case 11: { + message.etcdApiCa = reader.string(); + break; + } + case 12: { + message.etcdPeerCa = reader.string(); + break; + } + case 13: { + if (!(message.serviceAccountSigningKeys && message.serviceAccountSigningKeys.length)) + message.serviceAccountSigningKeys = []; + message.serviceAccountSigningKeys.push(reader.string()); + break; + } + case 14: { + if (!(message.serviceAccountVerificationKeys && message.serviceAccountVerificationKeys.length)) + message.serviceAccountVerificationKeys = []; + message.serviceAccountVerificationKeys.push(reader.string()); + break; + } + case 15: { + message.aggregationCa = reader.string(); + break; + } + case 16: { + message.controlPlaneDiskEncryptionKey = reader.string(); + break; + } + case 17: { + message.gkeopsEtcdBackupEncryptionKey = reader.string(); break; } default: @@ -18279,234 +18935,207 @@ }; /** - * Decodes a SecurityPostureConfig message from the specified reader or buffer, length delimited. + * Decodes a UserManagedKeysConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SecurityPostureConfig} SecurityPostureConfig + * @returns {google.container.v1.UserManagedKeysConfig} UserManagedKeysConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecurityPostureConfig.decodeDelimited = function decodeDelimited(reader) { + UserManagedKeysConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SecurityPostureConfig message. + * Verifies a UserManagedKeysConfig message. * @function verify - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SecurityPostureConfig.verify = function verify(message) { + UserManagedKeysConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.mode != null && message.hasOwnProperty("mode")) { - properties._mode = 1; - switch (message.mode) { - default: - return "mode: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.vulnerabilityMode != null && message.hasOwnProperty("vulnerabilityMode")) { - properties._vulnerabilityMode = 1; - switch (message.vulnerabilityMode) { - default: - return "vulnerabilityMode: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } + if (message.clusterCa != null && message.hasOwnProperty("clusterCa")) + if (!$util.isString(message.clusterCa)) + return "clusterCa: string expected"; + if (message.etcdApiCa != null && message.hasOwnProperty("etcdApiCa")) + if (!$util.isString(message.etcdApiCa)) + return "etcdApiCa: string expected"; + if (message.etcdPeerCa != null && message.hasOwnProperty("etcdPeerCa")) + if (!$util.isString(message.etcdPeerCa)) + return "etcdPeerCa: string expected"; + if (message.serviceAccountSigningKeys != null && message.hasOwnProperty("serviceAccountSigningKeys")) { + if (!Array.isArray(message.serviceAccountSigningKeys)) + return "serviceAccountSigningKeys: array expected"; + for (var i = 0; i < message.serviceAccountSigningKeys.length; ++i) + if (!$util.isString(message.serviceAccountSigningKeys[i])) + return "serviceAccountSigningKeys: string[] expected"; + } + if (message.serviceAccountVerificationKeys != null && message.hasOwnProperty("serviceAccountVerificationKeys")) { + if (!Array.isArray(message.serviceAccountVerificationKeys)) + return "serviceAccountVerificationKeys: array expected"; + for (var i = 0; i < message.serviceAccountVerificationKeys.length; ++i) + if (!$util.isString(message.serviceAccountVerificationKeys[i])) + return "serviceAccountVerificationKeys: string[] expected"; + } + if (message.aggregationCa != null && message.hasOwnProperty("aggregationCa")) + if (!$util.isString(message.aggregationCa)) + return "aggregationCa: string expected"; + if (message.controlPlaneDiskEncryptionKey != null && message.hasOwnProperty("controlPlaneDiskEncryptionKey")) + if (!$util.isString(message.controlPlaneDiskEncryptionKey)) + return "controlPlaneDiskEncryptionKey: string expected"; + if (message.gkeopsEtcdBackupEncryptionKey != null && message.hasOwnProperty("gkeopsEtcdBackupEncryptionKey")) + if (!$util.isString(message.gkeopsEtcdBackupEncryptionKey)) + return "gkeopsEtcdBackupEncryptionKey: string expected"; return null; }; /** - * Creates a SecurityPostureConfig message from a plain object. Also converts values to their respective internal types. + * Creates a UserManagedKeysConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SecurityPostureConfig} SecurityPostureConfig + * @returns {google.container.v1.UserManagedKeysConfig} UserManagedKeysConfig */ - SecurityPostureConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SecurityPostureConfig) + UserManagedKeysConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UserManagedKeysConfig) return object; - var message = new $root.google.container.v1.SecurityPostureConfig(); - switch (object.mode) { - default: - if (typeof object.mode === "number") { - message.mode = object.mode; - break; - } - break; - case "MODE_UNSPECIFIED": - case 0: - message.mode = 0; - break; - case "DISABLED": - case 1: - message.mode = 1; - break; - case "BASIC": - case 2: - message.mode = 2; - break; - case "ENTERPRISE": - case 3: - message.mode = 3; - break; - } - switch (object.vulnerabilityMode) { - default: - if (typeof object.vulnerabilityMode === "number") { - message.vulnerabilityMode = object.vulnerabilityMode; - break; - } - break; - case "VULNERABILITY_MODE_UNSPECIFIED": - case 0: - message.vulnerabilityMode = 0; - break; - case "VULNERABILITY_DISABLED": - case 1: - message.vulnerabilityMode = 1; - break; - case "VULNERABILITY_BASIC": - case 2: - message.vulnerabilityMode = 2; - break; - case "VULNERABILITY_ENTERPRISE": - case 3: - message.vulnerabilityMode = 3; - break; - } - return message; - }; - - /** - * Creates a plain object from a SecurityPostureConfig message. Also converts values to other types if specified. + var message = new $root.google.container.v1.UserManagedKeysConfig(); + if (object.clusterCa != null) + message.clusterCa = String(object.clusterCa); + if (object.etcdApiCa != null) + message.etcdApiCa = String(object.etcdApiCa); + if (object.etcdPeerCa != null) + message.etcdPeerCa = String(object.etcdPeerCa); + if (object.serviceAccountSigningKeys) { + if (!Array.isArray(object.serviceAccountSigningKeys)) + throw TypeError(".google.container.v1.UserManagedKeysConfig.serviceAccountSigningKeys: array expected"); + message.serviceAccountSigningKeys = []; + for (var i = 0; i < object.serviceAccountSigningKeys.length; ++i) + message.serviceAccountSigningKeys[i] = String(object.serviceAccountSigningKeys[i]); + } + if (object.serviceAccountVerificationKeys) { + if (!Array.isArray(object.serviceAccountVerificationKeys)) + throw TypeError(".google.container.v1.UserManagedKeysConfig.serviceAccountVerificationKeys: array expected"); + message.serviceAccountVerificationKeys = []; + for (var i = 0; i < object.serviceAccountVerificationKeys.length; ++i) + message.serviceAccountVerificationKeys[i] = String(object.serviceAccountVerificationKeys[i]); + } + if (object.aggregationCa != null) + message.aggregationCa = String(object.aggregationCa); + if (object.controlPlaneDiskEncryptionKey != null) + message.controlPlaneDiskEncryptionKey = String(object.controlPlaneDiskEncryptionKey); + if (object.gkeopsEtcdBackupEncryptionKey != null) + message.gkeopsEtcdBackupEncryptionKey = String(object.gkeopsEtcdBackupEncryptionKey); + return message; + }; + + /** + * Creates a plain object from a UserManagedKeysConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static - * @param {google.container.v1.SecurityPostureConfig} message SecurityPostureConfig + * @param {google.container.v1.UserManagedKeysConfig} message UserManagedKeysConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecurityPostureConfig.toObject = function toObject(message, options) { + UserManagedKeysConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.mode != null && message.hasOwnProperty("mode")) { - object.mode = options.enums === String ? $root.google.container.v1.SecurityPostureConfig.Mode[message.mode] === undefined ? message.mode : $root.google.container.v1.SecurityPostureConfig.Mode[message.mode] : message.mode; - if (options.oneofs) - object._mode = "mode"; - } - if (message.vulnerabilityMode != null && message.hasOwnProperty("vulnerabilityMode")) { - object.vulnerabilityMode = options.enums === String ? $root.google.container.v1.SecurityPostureConfig.VulnerabilityMode[message.vulnerabilityMode] === undefined ? message.vulnerabilityMode : $root.google.container.v1.SecurityPostureConfig.VulnerabilityMode[message.vulnerabilityMode] : message.vulnerabilityMode; - if (options.oneofs) - object._vulnerabilityMode = "vulnerabilityMode"; + if (options.arrays || options.defaults) { + object.serviceAccountSigningKeys = []; + object.serviceAccountVerificationKeys = []; } + if (options.defaults) { + object.clusterCa = ""; + object.etcdApiCa = ""; + object.etcdPeerCa = ""; + object.aggregationCa = ""; + object.controlPlaneDiskEncryptionKey = ""; + object.gkeopsEtcdBackupEncryptionKey = ""; + } + if (message.clusterCa != null && message.hasOwnProperty("clusterCa")) + object.clusterCa = message.clusterCa; + if (message.etcdApiCa != null && message.hasOwnProperty("etcdApiCa")) + object.etcdApiCa = message.etcdApiCa; + if (message.etcdPeerCa != null && message.hasOwnProperty("etcdPeerCa")) + object.etcdPeerCa = message.etcdPeerCa; + if (message.serviceAccountSigningKeys && message.serviceAccountSigningKeys.length) { + object.serviceAccountSigningKeys = []; + for (var j = 0; j < message.serviceAccountSigningKeys.length; ++j) + object.serviceAccountSigningKeys[j] = message.serviceAccountSigningKeys[j]; + } + if (message.serviceAccountVerificationKeys && message.serviceAccountVerificationKeys.length) { + object.serviceAccountVerificationKeys = []; + for (var j = 0; j < message.serviceAccountVerificationKeys.length; ++j) + object.serviceAccountVerificationKeys[j] = message.serviceAccountVerificationKeys[j]; + } + if (message.aggregationCa != null && message.hasOwnProperty("aggregationCa")) + object.aggregationCa = message.aggregationCa; + if (message.controlPlaneDiskEncryptionKey != null && message.hasOwnProperty("controlPlaneDiskEncryptionKey")) + object.controlPlaneDiskEncryptionKey = message.controlPlaneDiskEncryptionKey; + if (message.gkeopsEtcdBackupEncryptionKey != null && message.hasOwnProperty("gkeopsEtcdBackupEncryptionKey")) + object.gkeopsEtcdBackupEncryptionKey = message.gkeopsEtcdBackupEncryptionKey; return object; }; /** - * Converts this SecurityPostureConfig to JSON. + * Converts this UserManagedKeysConfig to JSON. * @function toJSON - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @instance * @returns {Object.} JSON object */ - SecurityPostureConfig.prototype.toJSON = function toJSON() { + UserManagedKeysConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SecurityPostureConfig + * Gets the default type url for UserManagedKeysConfig * @function getTypeUrl - * @memberof google.container.v1.SecurityPostureConfig + * @memberof google.container.v1.UserManagedKeysConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SecurityPostureConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UserManagedKeysConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.container.v1.SecurityPostureConfig"; + return typeUrlPrefix + "/google.container.v1.UserManagedKeysConfig"; }; - /** - * Mode enum. - * @name google.container.v1.SecurityPostureConfig.Mode - * @enum {number} - * @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value - * @property {number} DISABLED=1 DISABLED value - * @property {number} BASIC=2 BASIC value - * @property {number} ENTERPRISE=3 ENTERPRISE value - */ - SecurityPostureConfig.Mode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DISABLED"] = 1; - values[valuesById[2] = "BASIC"] = 2; - values[valuesById[3] = "ENTERPRISE"] = 3; - return values; - })(); - - /** - * VulnerabilityMode enum. - * @name google.container.v1.SecurityPostureConfig.VulnerabilityMode - * @enum {number} - * @property {number} VULNERABILITY_MODE_UNSPECIFIED=0 VULNERABILITY_MODE_UNSPECIFIED value - * @property {number} VULNERABILITY_DISABLED=1 VULNERABILITY_DISABLED value - * @property {number} VULNERABILITY_BASIC=2 VULNERABILITY_BASIC value - * @property {number} VULNERABILITY_ENTERPRISE=3 VULNERABILITY_ENTERPRISE value - */ - SecurityPostureConfig.VulnerabilityMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VULNERABILITY_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "VULNERABILITY_DISABLED"] = 1; - values[valuesById[2] = "VULNERABILITY_BASIC"] = 2; - values[valuesById[3] = "VULNERABILITY_ENTERPRISE"] = 3; - return values; - })(); - - return SecurityPostureConfig; + return UserManagedKeysConfig; })(); - v1.NodePoolAutoConfig = (function() { + v1.CompliancePostureConfig = (function() { /** - * Properties of a NodePoolAutoConfig. + * Properties of a CompliancePostureConfig. * @memberof google.container.v1 - * @interface INodePoolAutoConfig - * @property {google.container.v1.INetworkTags|null} [networkTags] NodePoolAutoConfig networkTags - * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] NodePoolAutoConfig resourceManagerTags - * @property {google.container.v1.INodeKubeletConfig|null} [nodeKubeletConfig] NodePoolAutoConfig nodeKubeletConfig + * @interface ICompliancePostureConfig + * @property {google.container.v1.CompliancePostureConfig.Mode|null} [mode] CompliancePostureConfig mode + * @property {Array.|null} [complianceStandards] CompliancePostureConfig complianceStandards */ /** - * Constructs a new NodePoolAutoConfig. + * Constructs a new CompliancePostureConfig. * @memberof google.container.v1 - * @classdesc Represents a NodePoolAutoConfig. - * @implements INodePoolAutoConfig + * @classdesc Represents a CompliancePostureConfig. + * @implements ICompliancePostureConfig * @constructor - * @param {google.container.v1.INodePoolAutoConfig=} [properties] Properties to set + * @param {google.container.v1.ICompliancePostureConfig=} [properties] Properties to set */ - function NodePoolAutoConfig(properties) { + function CompliancePostureConfig(properties) { + this.complianceStandards = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18514,103 +19143,106 @@ } /** - * NodePoolAutoConfig networkTags. - * @member {google.container.v1.INetworkTags|null|undefined} networkTags - * @memberof google.container.v1.NodePoolAutoConfig + * CompliancePostureConfig mode. + * @member {google.container.v1.CompliancePostureConfig.Mode|null|undefined} mode + * @memberof google.container.v1.CompliancePostureConfig * @instance */ - NodePoolAutoConfig.prototype.networkTags = null; + CompliancePostureConfig.prototype.mode = null; /** - * NodePoolAutoConfig resourceManagerTags. - * @member {google.container.v1.IResourceManagerTags|null|undefined} resourceManagerTags - * @memberof google.container.v1.NodePoolAutoConfig + * CompliancePostureConfig complianceStandards. + * @member {Array.} complianceStandards + * @memberof google.container.v1.CompliancePostureConfig * @instance */ - NodePoolAutoConfig.prototype.resourceManagerTags = null; + CompliancePostureConfig.prototype.complianceStandards = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * NodePoolAutoConfig nodeKubeletConfig. - * @member {google.container.v1.INodeKubeletConfig|null|undefined} nodeKubeletConfig - * @memberof google.container.v1.NodePoolAutoConfig + * CompliancePostureConfig _mode. + * @member {"mode"|undefined} _mode + * @memberof google.container.v1.CompliancePostureConfig * @instance */ - NodePoolAutoConfig.prototype.nodeKubeletConfig = null; + Object.defineProperty(CompliancePostureConfig.prototype, "_mode", { + get: $util.oneOfGetter($oneOfFields = ["mode"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new NodePoolAutoConfig instance using the specified properties. + * Creates a new CompliancePostureConfig instance using the specified properties. * @function create - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static - * @param {google.container.v1.INodePoolAutoConfig=} [properties] Properties to set - * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig instance + * @param {google.container.v1.ICompliancePostureConfig=} [properties] Properties to set + * @returns {google.container.v1.CompliancePostureConfig} CompliancePostureConfig instance */ - NodePoolAutoConfig.create = function create(properties) { - return new NodePoolAutoConfig(properties); + CompliancePostureConfig.create = function create(properties) { + return new CompliancePostureConfig(properties); }; /** - * Encodes the specified NodePoolAutoConfig message. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * Encodes the specified CompliancePostureConfig message. Does not implicitly {@link google.container.v1.CompliancePostureConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static - * @param {google.container.v1.INodePoolAutoConfig} message NodePoolAutoConfig message or plain object to encode + * @param {google.container.v1.ICompliancePostureConfig} message CompliancePostureConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolAutoConfig.encode = function encode(message, writer) { + CompliancePostureConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.networkTags != null && Object.hasOwnProperty.call(message, "networkTags")) - $root.google.container.v1.NetworkTags.encode(message.networkTags, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) - $root.google.container.v1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nodeKubeletConfig != null && Object.hasOwnProperty.call(message, "nodeKubeletConfig")) - $root.google.container.v1.NodeKubeletConfig.encode(message.nodeKubeletConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mode != null && Object.hasOwnProperty.call(message, "mode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); + if (message.complianceStandards != null && message.complianceStandards.length) + for (var i = 0; i < message.complianceStandards.length; ++i) + $root.google.container.v1.CompliancePostureConfig.ComplianceStandard.encode(message.complianceStandards[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified NodePoolAutoConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * Encodes the specified CompliancePostureConfig message, length delimited. Does not implicitly {@link google.container.v1.CompliancePostureConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static - * @param {google.container.v1.INodePoolAutoConfig} message NodePoolAutoConfig message or plain object to encode + * @param {google.container.v1.ICompliancePostureConfig} message CompliancePostureConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolAutoConfig.encodeDelimited = function encodeDelimited(message, writer) { + CompliancePostureConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodePoolAutoConfig message from the specified reader or buffer. + * Decodes a CompliancePostureConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + * @returns {google.container.v1.CompliancePostureConfig} CompliancePostureConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolAutoConfig.decode = function decode(reader, length) { + CompliancePostureConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolAutoConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CompliancePostureConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.networkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); + message.mode = reader.int32(); break; } case 2: { - message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.decode(reader, reader.uint32()); - break; - } - case 3: { - message.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); + if (!(message.complianceStandards && message.complianceStandards.length)) + message.complianceStandards = []; + message.complianceStandards.push($root.google.container.v1.CompliancePostureConfig.ComplianceStandard.decode(reader, reader.uint32())); break; } default: @@ -18622,154 +19254,414 @@ }; /** - * Decodes a NodePoolAutoConfig message from the specified reader or buffer, length delimited. + * Decodes a CompliancePostureConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + * @returns {google.container.v1.CompliancePostureConfig} CompliancePostureConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolAutoConfig.decodeDelimited = function decodeDelimited(reader) { + CompliancePostureConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodePoolAutoConfig message. + * Verifies a CompliancePostureConfig message. * @function verify - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodePoolAutoConfig.verify = function verify(message) { + CompliancePostureConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.networkTags != null && message.hasOwnProperty("networkTags")) { - var error = $root.google.container.v1.NetworkTags.verify(message.networkTags); - if (error) - return "networkTags." + error; - } - if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { - var error = $root.google.container.v1.ResourceManagerTags.verify(message.resourceManagerTags); - if (error) - return "resourceManagerTags." + error; + var properties = {}; + if (message.mode != null && message.hasOwnProperty("mode")) { + properties._mode = 1; + switch (message.mode) { + default: + return "mode: enum value expected"; + case 0: + case 1: + case 2: + break; + } } - if (message.nodeKubeletConfig != null && message.hasOwnProperty("nodeKubeletConfig")) { - var error = $root.google.container.v1.NodeKubeletConfig.verify(message.nodeKubeletConfig); - if (error) - return "nodeKubeletConfig." + error; + if (message.complianceStandards != null && message.hasOwnProperty("complianceStandards")) { + if (!Array.isArray(message.complianceStandards)) + return "complianceStandards: array expected"; + for (var i = 0; i < message.complianceStandards.length; ++i) { + var error = $root.google.container.v1.CompliancePostureConfig.ComplianceStandard.verify(message.complianceStandards[i]); + if (error) + return "complianceStandards." + error; + } } return null; }; /** - * Creates a NodePoolAutoConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CompliancePostureConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + * @returns {google.container.v1.CompliancePostureConfig} CompliancePostureConfig */ - NodePoolAutoConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodePoolAutoConfig) + CompliancePostureConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CompliancePostureConfig) return object; - var message = new $root.google.container.v1.NodePoolAutoConfig(); - if (object.networkTags != null) { - if (typeof object.networkTags !== "object") - throw TypeError(".google.container.v1.NodePoolAutoConfig.networkTags: object expected"); - message.networkTags = $root.google.container.v1.NetworkTags.fromObject(object.networkTags); - } - if (object.resourceManagerTags != null) { - if (typeof object.resourceManagerTags !== "object") - throw TypeError(".google.container.v1.NodePoolAutoConfig.resourceManagerTags: object expected"); - message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.fromObject(object.resourceManagerTags); + var message = new $root.google.container.v1.CompliancePostureConfig(); + switch (object.mode) { + default: + if (typeof object.mode === "number") { + message.mode = object.mode; + break; + } + break; + case "MODE_UNSPECIFIED": + case 0: + message.mode = 0; + break; + case "DISABLED": + case 1: + message.mode = 1; + break; + case "ENABLED": + case 2: + message.mode = 2; + break; } - if (object.nodeKubeletConfig != null) { - if (typeof object.nodeKubeletConfig !== "object") - throw TypeError(".google.container.v1.NodePoolAutoConfig.nodeKubeletConfig: object expected"); - message.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.fromObject(object.nodeKubeletConfig); + if (object.complianceStandards) { + if (!Array.isArray(object.complianceStandards)) + throw TypeError(".google.container.v1.CompliancePostureConfig.complianceStandards: array expected"); + message.complianceStandards = []; + for (var i = 0; i < object.complianceStandards.length; ++i) { + if (typeof object.complianceStandards[i] !== "object") + throw TypeError(".google.container.v1.CompliancePostureConfig.complianceStandards: object expected"); + message.complianceStandards[i] = $root.google.container.v1.CompliancePostureConfig.ComplianceStandard.fromObject(object.complianceStandards[i]); + } } return message; }; /** - * Creates a plain object from a NodePoolAutoConfig message. Also converts values to other types if specified. + * Creates a plain object from a CompliancePostureConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static - * @param {google.container.v1.NodePoolAutoConfig} message NodePoolAutoConfig + * @param {google.container.v1.CompliancePostureConfig} message CompliancePostureConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodePoolAutoConfig.toObject = function toObject(message, options) { + CompliancePostureConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.networkTags = null; - object.resourceManagerTags = null; - object.nodeKubeletConfig = null; + if (options.arrays || options.defaults) + object.complianceStandards = []; + if (message.mode != null && message.hasOwnProperty("mode")) { + object.mode = options.enums === String ? $root.google.container.v1.CompliancePostureConfig.Mode[message.mode] === undefined ? message.mode : $root.google.container.v1.CompliancePostureConfig.Mode[message.mode] : message.mode; + if (options.oneofs) + object._mode = "mode"; + } + if (message.complianceStandards && message.complianceStandards.length) { + object.complianceStandards = []; + for (var j = 0; j < message.complianceStandards.length; ++j) + object.complianceStandards[j] = $root.google.container.v1.CompliancePostureConfig.ComplianceStandard.toObject(message.complianceStandards[j], options); } - if (message.networkTags != null && message.hasOwnProperty("networkTags")) - object.networkTags = $root.google.container.v1.NetworkTags.toObject(message.networkTags, options); - if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) - object.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.resourceManagerTags, options); - if (message.nodeKubeletConfig != null && message.hasOwnProperty("nodeKubeletConfig")) - object.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.toObject(message.nodeKubeletConfig, options); return object; }; /** - * Converts this NodePoolAutoConfig to JSON. + * Converts this CompliancePostureConfig to JSON. * @function toJSON - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @instance * @returns {Object.} JSON object */ - NodePoolAutoConfig.prototype.toJSON = function toJSON() { + CompliancePostureConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NodePoolAutoConfig + * Gets the default type url for CompliancePostureConfig * @function getTypeUrl - * @memberof google.container.v1.NodePoolAutoConfig + * @memberof google.container.v1.CompliancePostureConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NodePoolAutoConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CompliancePostureConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.container.v1.NodePoolAutoConfig"; + return typeUrlPrefix + "/google.container.v1.CompliancePostureConfig"; }; - return NodePoolAutoConfig; + /** + * Mode enum. + * @name google.container.v1.CompliancePostureConfig.Mode + * @enum {number} + * @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value + * @property {number} DISABLED=1 DISABLED value + * @property {number} ENABLED=2 ENABLED value + */ + CompliancePostureConfig.Mode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DISABLED"] = 1; + values[valuesById[2] = "ENABLED"] = 2; + return values; + })(); + + CompliancePostureConfig.ComplianceStandard = (function() { + + /** + * Properties of a ComplianceStandard. + * @memberof google.container.v1.CompliancePostureConfig + * @interface IComplianceStandard + * @property {string|null} [standard] ComplianceStandard standard + */ + + /** + * Constructs a new ComplianceStandard. + * @memberof google.container.v1.CompliancePostureConfig + * @classdesc Represents a ComplianceStandard. + * @implements IComplianceStandard + * @constructor + * @param {google.container.v1.CompliancePostureConfig.IComplianceStandard=} [properties] Properties to set + */ + function ComplianceStandard(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ComplianceStandard standard. + * @member {string|null|undefined} standard + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @instance + */ + ComplianceStandard.prototype.standard = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ComplianceStandard _standard. + * @member {"standard"|undefined} _standard + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @instance + */ + Object.defineProperty(ComplianceStandard.prototype, "_standard", { + get: $util.oneOfGetter($oneOfFields = ["standard"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ComplianceStandard instance using the specified properties. + * @function create + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {google.container.v1.CompliancePostureConfig.IComplianceStandard=} [properties] Properties to set + * @returns {google.container.v1.CompliancePostureConfig.ComplianceStandard} ComplianceStandard instance + */ + ComplianceStandard.create = function create(properties) { + return new ComplianceStandard(properties); + }; + + /** + * Encodes the specified ComplianceStandard message. Does not implicitly {@link google.container.v1.CompliancePostureConfig.ComplianceStandard.verify|verify} messages. + * @function encode + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {google.container.v1.CompliancePostureConfig.IComplianceStandard} message ComplianceStandard message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComplianceStandard.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.standard != null && Object.hasOwnProperty.call(message, "standard")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.standard); + return writer; + }; + + /** + * Encodes the specified ComplianceStandard message, length delimited. Does not implicitly {@link google.container.v1.CompliancePostureConfig.ComplianceStandard.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {google.container.v1.CompliancePostureConfig.IComplianceStandard} message ComplianceStandard message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComplianceStandard.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ComplianceStandard message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.CompliancePostureConfig.ComplianceStandard} ComplianceStandard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComplianceStandard.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CompliancePostureConfig.ComplianceStandard(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.standard = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ComplianceStandard message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.CompliancePostureConfig.ComplianceStandard} ComplianceStandard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComplianceStandard.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ComplianceStandard message. + * @function verify + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComplianceStandard.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.standard != null && message.hasOwnProperty("standard")) { + properties._standard = 1; + if (!$util.isString(message.standard)) + return "standard: string expected"; + } + return null; + }; + + /** + * Creates a ComplianceStandard message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.CompliancePostureConfig.ComplianceStandard} ComplianceStandard + */ + ComplianceStandard.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CompliancePostureConfig.ComplianceStandard) + return object; + var message = new $root.google.container.v1.CompliancePostureConfig.ComplianceStandard(); + if (object.standard != null) + message.standard = String(object.standard); + return message; + }; + + /** + * Creates a plain object from a ComplianceStandard message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {google.container.v1.CompliancePostureConfig.ComplianceStandard} message ComplianceStandard + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ComplianceStandard.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.standard != null && message.hasOwnProperty("standard")) { + object.standard = message.standard; + if (options.oneofs) + object._standard = "standard"; + } + return object; + }; + + /** + * Converts this ComplianceStandard to JSON. + * @function toJSON + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @instance + * @returns {Object.} JSON object + */ + ComplianceStandard.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ComplianceStandard + * @function getTypeUrl + * @memberof google.container.v1.CompliancePostureConfig.ComplianceStandard + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ComplianceStandard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.CompliancePostureConfig.ComplianceStandard"; + }; + + return ComplianceStandard; + })(); + + return CompliancePostureConfig; })(); - v1.NodePoolDefaults = (function() { + v1.K8sBetaAPIConfig = (function() { /** - * Properties of a NodePoolDefaults. + * Properties of a K8sBetaAPIConfig. * @memberof google.container.v1 - * @interface INodePoolDefaults - * @property {google.container.v1.INodeConfigDefaults|null} [nodeConfigDefaults] NodePoolDefaults nodeConfigDefaults + * @interface IK8sBetaAPIConfig + * @property {Array.|null} [enabledApis] K8sBetaAPIConfig enabledApis */ /** - * Constructs a new NodePoolDefaults. + * Constructs a new K8sBetaAPIConfig. * @memberof google.container.v1 - * @classdesc Represents a NodePoolDefaults. - * @implements INodePoolDefaults + * @classdesc Represents a K8sBetaAPIConfig. + * @implements IK8sBetaAPIConfig * @constructor - * @param {google.container.v1.INodePoolDefaults=} [properties] Properties to set + * @param {google.container.v1.IK8sBetaAPIConfig=} [properties] Properties to set */ - function NodePoolDefaults(properties) { + function K8sBetaAPIConfig(properties) { + this.enabledApis = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18777,75 +19669,78 @@ } /** - * NodePoolDefaults nodeConfigDefaults. - * @member {google.container.v1.INodeConfigDefaults|null|undefined} nodeConfigDefaults - * @memberof google.container.v1.NodePoolDefaults + * K8sBetaAPIConfig enabledApis. + * @member {Array.} enabledApis + * @memberof google.container.v1.K8sBetaAPIConfig * @instance */ - NodePoolDefaults.prototype.nodeConfigDefaults = null; + K8sBetaAPIConfig.prototype.enabledApis = $util.emptyArray; /** - * Creates a new NodePoolDefaults instance using the specified properties. + * Creates a new K8sBetaAPIConfig instance using the specified properties. * @function create - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static - * @param {google.container.v1.INodePoolDefaults=} [properties] Properties to set - * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults instance + * @param {google.container.v1.IK8sBetaAPIConfig=} [properties] Properties to set + * @returns {google.container.v1.K8sBetaAPIConfig} K8sBetaAPIConfig instance */ - NodePoolDefaults.create = function create(properties) { - return new NodePoolDefaults(properties); + K8sBetaAPIConfig.create = function create(properties) { + return new K8sBetaAPIConfig(properties); }; /** - * Encodes the specified NodePoolDefaults message. Does not implicitly {@link google.container.v1.NodePoolDefaults.verify|verify} messages. + * Encodes the specified K8sBetaAPIConfig message. Does not implicitly {@link google.container.v1.K8sBetaAPIConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static - * @param {google.container.v1.INodePoolDefaults} message NodePoolDefaults message or plain object to encode + * @param {google.container.v1.IK8sBetaAPIConfig} message K8sBetaAPIConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolDefaults.encode = function encode(message, writer) { + K8sBetaAPIConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodeConfigDefaults != null && Object.hasOwnProperty.call(message, "nodeConfigDefaults")) - $root.google.container.v1.NodeConfigDefaults.encode(message.nodeConfigDefaults, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.enabledApis != null && message.enabledApis.length) + for (var i = 0; i < message.enabledApis.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.enabledApis[i]); return writer; }; /** - * Encodes the specified NodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.NodePoolDefaults.verify|verify} messages. + * Encodes the specified K8sBetaAPIConfig message, length delimited. Does not implicitly {@link google.container.v1.K8sBetaAPIConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static - * @param {google.container.v1.INodePoolDefaults} message NodePoolDefaults message or plain object to encode + * @param {google.container.v1.IK8sBetaAPIConfig} message K8sBetaAPIConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolDefaults.encodeDelimited = function encodeDelimited(message, writer) { + K8sBetaAPIConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodePoolDefaults message from the specified reader or buffer. + * Decodes a K8sBetaAPIConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + * @returns {google.container.v1.K8sBetaAPIConfig} K8sBetaAPIConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolDefaults.decode = function decode(reader, length) { + K8sBetaAPIConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolDefaults(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.K8sBetaAPIConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.decode(reader, reader.uint32()); + if (!(message.enabledApis && message.enabledApis.length)) + message.enabledApis = []; + message.enabledApis.push(reader.string()); break; } default: @@ -18857,130 +19752,135 @@ }; /** - * Decodes a NodePoolDefaults message from the specified reader or buffer, length delimited. + * Decodes a K8sBetaAPIConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + * @returns {google.container.v1.K8sBetaAPIConfig} K8sBetaAPIConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolDefaults.decodeDelimited = function decodeDelimited(reader) { + K8sBetaAPIConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodePoolDefaults message. + * Verifies a K8sBetaAPIConfig message. * @function verify - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodePoolDefaults.verify = function verify(message) { + K8sBetaAPIConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodeConfigDefaults != null && message.hasOwnProperty("nodeConfigDefaults")) { - var error = $root.google.container.v1.NodeConfigDefaults.verify(message.nodeConfigDefaults); - if (error) - return "nodeConfigDefaults." + error; + if (message.enabledApis != null && message.hasOwnProperty("enabledApis")) { + if (!Array.isArray(message.enabledApis)) + return "enabledApis: array expected"; + for (var i = 0; i < message.enabledApis.length; ++i) + if (!$util.isString(message.enabledApis[i])) + return "enabledApis: string[] expected"; } return null; }; /** - * Creates a NodePoolDefaults message from a plain object. Also converts values to their respective internal types. + * Creates a K8sBetaAPIConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + * @returns {google.container.v1.K8sBetaAPIConfig} K8sBetaAPIConfig */ - NodePoolDefaults.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodePoolDefaults) + K8sBetaAPIConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.K8sBetaAPIConfig) return object; - var message = new $root.google.container.v1.NodePoolDefaults(); - if (object.nodeConfigDefaults != null) { - if (typeof object.nodeConfigDefaults !== "object") - throw TypeError(".google.container.v1.NodePoolDefaults.nodeConfigDefaults: object expected"); - message.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.fromObject(object.nodeConfigDefaults); + var message = new $root.google.container.v1.K8sBetaAPIConfig(); + if (object.enabledApis) { + if (!Array.isArray(object.enabledApis)) + throw TypeError(".google.container.v1.K8sBetaAPIConfig.enabledApis: array expected"); + message.enabledApis = []; + for (var i = 0; i < object.enabledApis.length; ++i) + message.enabledApis[i] = String(object.enabledApis[i]); } return message; }; /** - * Creates a plain object from a NodePoolDefaults message. Also converts values to other types if specified. + * Creates a plain object from a K8sBetaAPIConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static - * @param {google.container.v1.NodePoolDefaults} message NodePoolDefaults + * @param {google.container.v1.K8sBetaAPIConfig} message K8sBetaAPIConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodePoolDefaults.toObject = function toObject(message, options) { + K8sBetaAPIConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.nodeConfigDefaults = null; - if (message.nodeConfigDefaults != null && message.hasOwnProperty("nodeConfigDefaults")) - object.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.toObject(message.nodeConfigDefaults, options); + if (options.arrays || options.defaults) + object.enabledApis = []; + if (message.enabledApis && message.enabledApis.length) { + object.enabledApis = []; + for (var j = 0; j < message.enabledApis.length; ++j) + object.enabledApis[j] = message.enabledApis[j]; + } return object; }; /** - * Converts this NodePoolDefaults to JSON. + * Converts this K8sBetaAPIConfig to JSON. * @function toJSON - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @instance * @returns {Object.} JSON object */ - NodePoolDefaults.prototype.toJSON = function toJSON() { + K8sBetaAPIConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NodePoolDefaults + * Gets the default type url for K8sBetaAPIConfig * @function getTypeUrl - * @memberof google.container.v1.NodePoolDefaults + * @memberof google.container.v1.K8sBetaAPIConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NodePoolDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + K8sBetaAPIConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.container.v1.NodePoolDefaults"; + return typeUrlPrefix + "/google.container.v1.K8sBetaAPIConfig"; }; - return NodePoolDefaults; + return K8sBetaAPIConfig; })(); - v1.NodeConfigDefaults = (function() { + v1.SecurityPostureConfig = (function() { /** - * Properties of a NodeConfigDefaults. + * Properties of a SecurityPostureConfig. * @memberof google.container.v1 - * @interface INodeConfigDefaults - * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] NodeConfigDefaults gcfsConfig - * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] NodeConfigDefaults loggingConfig - * @property {google.container.v1.IContainerdConfig|null} [containerdConfig] NodeConfigDefaults containerdConfig - * @property {google.container.v1.INodeKubeletConfig|null} [nodeKubeletConfig] NodeConfigDefaults nodeKubeletConfig + * @interface ISecurityPostureConfig + * @property {google.container.v1.SecurityPostureConfig.Mode|null} [mode] SecurityPostureConfig mode + * @property {google.container.v1.SecurityPostureConfig.VulnerabilityMode|null} [vulnerabilityMode] SecurityPostureConfig vulnerabilityMode */ /** - * Constructs a new NodeConfigDefaults. + * Constructs a new SecurityPostureConfig. * @memberof google.container.v1 - * @classdesc Represents a NodeConfigDefaults. - * @implements INodeConfigDefaults + * @classdesc Represents a SecurityPostureConfig. + * @implements ISecurityPostureConfig * @constructor - * @param {google.container.v1.INodeConfigDefaults=} [properties] Properties to set + * @param {google.container.v1.ISecurityPostureConfig=} [properties] Properties to set */ - function NodeConfigDefaults(properties) { + function SecurityPostureConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18988,25 +19888,853 @@ } /** - * NodeConfigDefaults gcfsConfig. - * @member {google.container.v1.IGcfsConfig|null|undefined} gcfsConfig - * @memberof google.container.v1.NodeConfigDefaults + * SecurityPostureConfig mode. + * @member {google.container.v1.SecurityPostureConfig.Mode|null|undefined} mode + * @memberof google.container.v1.SecurityPostureConfig * @instance */ - NodeConfigDefaults.prototype.gcfsConfig = null; + SecurityPostureConfig.prototype.mode = null; /** - * NodeConfigDefaults loggingConfig. - * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig - * @memberof google.container.v1.NodeConfigDefaults + * SecurityPostureConfig vulnerabilityMode. + * @member {google.container.v1.SecurityPostureConfig.VulnerabilityMode|null|undefined} vulnerabilityMode + * @memberof google.container.v1.SecurityPostureConfig * @instance */ - NodeConfigDefaults.prototype.loggingConfig = null; + SecurityPostureConfig.prototype.vulnerabilityMode = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * NodeConfigDefaults containerdConfig. - * @member {google.container.v1.IContainerdConfig|null|undefined} containerdConfig - * @memberof google.container.v1.NodeConfigDefaults + * SecurityPostureConfig _mode. + * @member {"mode"|undefined} _mode + * @memberof google.container.v1.SecurityPostureConfig + * @instance + */ + Object.defineProperty(SecurityPostureConfig.prototype, "_mode", { + get: $util.oneOfGetter($oneOfFields = ["mode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPostureConfig _vulnerabilityMode. + * @member {"vulnerabilityMode"|undefined} _vulnerabilityMode + * @memberof google.container.v1.SecurityPostureConfig + * @instance + */ + Object.defineProperty(SecurityPostureConfig.prototype, "_vulnerabilityMode", { + get: $util.oneOfGetter($oneOfFields = ["vulnerabilityMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPostureConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {google.container.v1.ISecurityPostureConfig=} [properties] Properties to set + * @returns {google.container.v1.SecurityPostureConfig} SecurityPostureConfig instance + */ + SecurityPostureConfig.create = function create(properties) { + return new SecurityPostureConfig(properties); + }; + + /** + * Encodes the specified SecurityPostureConfig message. Does not implicitly {@link google.container.v1.SecurityPostureConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {google.container.v1.ISecurityPostureConfig} message SecurityPostureConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPostureConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mode != null && Object.hasOwnProperty.call(message, "mode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); + if (message.vulnerabilityMode != null && Object.hasOwnProperty.call(message, "vulnerabilityMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.vulnerabilityMode); + return writer; + }; + + /** + * Encodes the specified SecurityPostureConfig message, length delimited. Does not implicitly {@link google.container.v1.SecurityPostureConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {google.container.v1.ISecurityPostureConfig} message SecurityPostureConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPostureConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPostureConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SecurityPostureConfig} SecurityPostureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPostureConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SecurityPostureConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.mode = reader.int32(); + break; + } + case 2: { + message.vulnerabilityMode = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPostureConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SecurityPostureConfig} SecurityPostureConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPostureConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPostureConfig message. + * @function verify + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPostureConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.mode != null && message.hasOwnProperty("mode")) { + properties._mode = 1; + switch (message.mode) { + default: + return "mode: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.vulnerabilityMode != null && message.hasOwnProperty("vulnerabilityMode")) { + properties._vulnerabilityMode = 1; + switch (message.vulnerabilityMode) { + default: + return "vulnerabilityMode: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + return null; + }; + + /** + * Creates a SecurityPostureConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SecurityPostureConfig} SecurityPostureConfig + */ + SecurityPostureConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SecurityPostureConfig) + return object; + var message = new $root.google.container.v1.SecurityPostureConfig(); + switch (object.mode) { + default: + if (typeof object.mode === "number") { + message.mode = object.mode; + break; + } + break; + case "MODE_UNSPECIFIED": + case 0: + message.mode = 0; + break; + case "DISABLED": + case 1: + message.mode = 1; + break; + case "BASIC": + case 2: + message.mode = 2; + break; + case "ENTERPRISE": + case 3: + message.mode = 3; + break; + } + switch (object.vulnerabilityMode) { + default: + if (typeof object.vulnerabilityMode === "number") { + message.vulnerabilityMode = object.vulnerabilityMode; + break; + } + break; + case "VULNERABILITY_MODE_UNSPECIFIED": + case 0: + message.vulnerabilityMode = 0; + break; + case "VULNERABILITY_DISABLED": + case 1: + message.vulnerabilityMode = 1; + break; + case "VULNERABILITY_BASIC": + case 2: + message.vulnerabilityMode = 2; + break; + case "VULNERABILITY_ENTERPRISE": + case 3: + message.vulnerabilityMode = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from a SecurityPostureConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {google.container.v1.SecurityPostureConfig} message SecurityPostureConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPostureConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.mode != null && message.hasOwnProperty("mode")) { + object.mode = options.enums === String ? $root.google.container.v1.SecurityPostureConfig.Mode[message.mode] === undefined ? message.mode : $root.google.container.v1.SecurityPostureConfig.Mode[message.mode] : message.mode; + if (options.oneofs) + object._mode = "mode"; + } + if (message.vulnerabilityMode != null && message.hasOwnProperty("vulnerabilityMode")) { + object.vulnerabilityMode = options.enums === String ? $root.google.container.v1.SecurityPostureConfig.VulnerabilityMode[message.vulnerabilityMode] === undefined ? message.vulnerabilityMode : $root.google.container.v1.SecurityPostureConfig.VulnerabilityMode[message.vulnerabilityMode] : message.vulnerabilityMode; + if (options.oneofs) + object._vulnerabilityMode = "vulnerabilityMode"; + } + return object; + }; + + /** + * Converts this SecurityPostureConfig to JSON. + * @function toJSON + * @memberof google.container.v1.SecurityPostureConfig + * @instance + * @returns {Object.} JSON object + */ + SecurityPostureConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityPostureConfig + * @function getTypeUrl + * @memberof google.container.v1.SecurityPostureConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityPostureConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SecurityPostureConfig"; + }; + + /** + * Mode enum. + * @name google.container.v1.SecurityPostureConfig.Mode + * @enum {number} + * @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value + * @property {number} DISABLED=1 DISABLED value + * @property {number} BASIC=2 BASIC value + * @property {number} ENTERPRISE=3 ENTERPRISE value + */ + SecurityPostureConfig.Mode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DISABLED"] = 1; + values[valuesById[2] = "BASIC"] = 2; + values[valuesById[3] = "ENTERPRISE"] = 3; + return values; + })(); + + /** + * VulnerabilityMode enum. + * @name google.container.v1.SecurityPostureConfig.VulnerabilityMode + * @enum {number} + * @property {number} VULNERABILITY_MODE_UNSPECIFIED=0 VULNERABILITY_MODE_UNSPECIFIED value + * @property {number} VULNERABILITY_DISABLED=1 VULNERABILITY_DISABLED value + * @property {number} VULNERABILITY_BASIC=2 VULNERABILITY_BASIC value + * @property {number} VULNERABILITY_ENTERPRISE=3 VULNERABILITY_ENTERPRISE value + */ + SecurityPostureConfig.VulnerabilityMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VULNERABILITY_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "VULNERABILITY_DISABLED"] = 1; + values[valuesById[2] = "VULNERABILITY_BASIC"] = 2; + values[valuesById[3] = "VULNERABILITY_ENTERPRISE"] = 3; + return values; + })(); + + return SecurityPostureConfig; + })(); + + v1.NodePoolAutoConfig = (function() { + + /** + * Properties of a NodePoolAutoConfig. + * @memberof google.container.v1 + * @interface INodePoolAutoConfig + * @property {google.container.v1.INetworkTags|null} [networkTags] NodePoolAutoConfig networkTags + * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] NodePoolAutoConfig resourceManagerTags + * @property {google.container.v1.INodeKubeletConfig|null} [nodeKubeletConfig] NodePoolAutoConfig nodeKubeletConfig + */ + + /** + * Constructs a new NodePoolAutoConfig. + * @memberof google.container.v1 + * @classdesc Represents a NodePoolAutoConfig. + * @implements INodePoolAutoConfig + * @constructor + * @param {google.container.v1.INodePoolAutoConfig=} [properties] Properties to set + */ + function NodePoolAutoConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodePoolAutoConfig networkTags. + * @member {google.container.v1.INetworkTags|null|undefined} networkTags + * @memberof google.container.v1.NodePoolAutoConfig + * @instance + */ + NodePoolAutoConfig.prototype.networkTags = null; + + /** + * NodePoolAutoConfig resourceManagerTags. + * @member {google.container.v1.IResourceManagerTags|null|undefined} resourceManagerTags + * @memberof google.container.v1.NodePoolAutoConfig + * @instance + */ + NodePoolAutoConfig.prototype.resourceManagerTags = null; + + /** + * NodePoolAutoConfig nodeKubeletConfig. + * @member {google.container.v1.INodeKubeletConfig|null|undefined} nodeKubeletConfig + * @memberof google.container.v1.NodePoolAutoConfig + * @instance + */ + NodePoolAutoConfig.prototype.nodeKubeletConfig = null; + + /** + * Creates a new NodePoolAutoConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {google.container.v1.INodePoolAutoConfig=} [properties] Properties to set + * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig instance + */ + NodePoolAutoConfig.create = function create(properties) { + return new NodePoolAutoConfig(properties); + }; + + /** + * Encodes the specified NodePoolAutoConfig message. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {google.container.v1.INodePoolAutoConfig} message NodePoolAutoConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolAutoConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkTags != null && Object.hasOwnProperty.call(message, "networkTags")) + $root.google.container.v1.NetworkTags.encode(message.networkTags, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + $root.google.container.v1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nodeKubeletConfig != null && Object.hasOwnProperty.call(message, "nodeKubeletConfig")) + $root.google.container.v1.NodeKubeletConfig.encode(message.nodeKubeletConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodePoolAutoConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {google.container.v1.INodePoolAutoConfig} message NodePoolAutoConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolAutoConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodePoolAutoConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolAutoConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolAutoConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.networkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); + break; + } + case 2: { + message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.decode(reader, reader.uint32()); + break; + } + case 3: { + message.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodePoolAutoConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolAutoConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodePoolAutoConfig message. + * @function verify + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodePoolAutoConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkTags != null && message.hasOwnProperty("networkTags")) { + var error = $root.google.container.v1.NetworkTags.verify(message.networkTags); + if (error) + return "networkTags." + error; + } + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + var error = $root.google.container.v1.ResourceManagerTags.verify(message.resourceManagerTags); + if (error) + return "resourceManagerTags." + error; + } + if (message.nodeKubeletConfig != null && message.hasOwnProperty("nodeKubeletConfig")) { + var error = $root.google.container.v1.NodeKubeletConfig.verify(message.nodeKubeletConfig); + if (error) + return "nodeKubeletConfig." + error; + } + return null; + }; + + /** + * Creates a NodePoolAutoConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + */ + NodePoolAutoConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolAutoConfig) + return object; + var message = new $root.google.container.v1.NodePoolAutoConfig(); + if (object.networkTags != null) { + if (typeof object.networkTags !== "object") + throw TypeError(".google.container.v1.NodePoolAutoConfig.networkTags: object expected"); + message.networkTags = $root.google.container.v1.NetworkTags.fromObject(object.networkTags); + } + if (object.resourceManagerTags != null) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.container.v1.NodePoolAutoConfig.resourceManagerTags: object expected"); + message.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.fromObject(object.resourceManagerTags); + } + if (object.nodeKubeletConfig != null) { + if (typeof object.nodeKubeletConfig !== "object") + throw TypeError(".google.container.v1.NodePoolAutoConfig.nodeKubeletConfig: object expected"); + message.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.fromObject(object.nodeKubeletConfig); + } + return message; + }; + + /** + * Creates a plain object from a NodePoolAutoConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {google.container.v1.NodePoolAutoConfig} message NodePoolAutoConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodePoolAutoConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.networkTags = null; + object.resourceManagerTags = null; + object.nodeKubeletConfig = null; + } + if (message.networkTags != null && message.hasOwnProperty("networkTags")) + object.networkTags = $root.google.container.v1.NetworkTags.toObject(message.networkTags, options); + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) + object.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.resourceManagerTags, options); + if (message.nodeKubeletConfig != null && message.hasOwnProperty("nodeKubeletConfig")) + object.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.toObject(message.nodeKubeletConfig, options); + return object; + }; + + /** + * Converts this NodePoolAutoConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NodePoolAutoConfig + * @instance + * @returns {Object.} JSON object + */ + NodePoolAutoConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodePoolAutoConfig + * @function getTypeUrl + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodePoolAutoConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePoolAutoConfig"; + }; + + return NodePoolAutoConfig; + })(); + + v1.NodePoolDefaults = (function() { + + /** + * Properties of a NodePoolDefaults. + * @memberof google.container.v1 + * @interface INodePoolDefaults + * @property {google.container.v1.INodeConfigDefaults|null} [nodeConfigDefaults] NodePoolDefaults nodeConfigDefaults + */ + + /** + * Constructs a new NodePoolDefaults. + * @memberof google.container.v1 + * @classdesc Represents a NodePoolDefaults. + * @implements INodePoolDefaults + * @constructor + * @param {google.container.v1.INodePoolDefaults=} [properties] Properties to set + */ + function NodePoolDefaults(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodePoolDefaults nodeConfigDefaults. + * @member {google.container.v1.INodeConfigDefaults|null|undefined} nodeConfigDefaults + * @memberof google.container.v1.NodePoolDefaults + * @instance + */ + NodePoolDefaults.prototype.nodeConfigDefaults = null; + + /** + * Creates a new NodePoolDefaults instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {google.container.v1.INodePoolDefaults=} [properties] Properties to set + * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults instance + */ + NodePoolDefaults.create = function create(properties) { + return new NodePoolDefaults(properties); + }; + + /** + * Encodes the specified NodePoolDefaults message. Does not implicitly {@link google.container.v1.NodePoolDefaults.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {google.container.v1.INodePoolDefaults} message NodePoolDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeConfigDefaults != null && Object.hasOwnProperty.call(message, "nodeConfigDefaults")) + $root.google.container.v1.NodeConfigDefaults.encode(message.nodeConfigDefaults, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.NodePoolDefaults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {google.container.v1.INodePoolDefaults} message NodePoolDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolDefaults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodePoolDefaults message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolDefaults.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodePoolDefaults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolDefaults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodePoolDefaults message. + * @function verify + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodePoolDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeConfigDefaults != null && message.hasOwnProperty("nodeConfigDefaults")) { + var error = $root.google.container.v1.NodeConfigDefaults.verify(message.nodeConfigDefaults); + if (error) + return "nodeConfigDefaults." + error; + } + return null; + }; + + /** + * Creates a NodePoolDefaults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + */ + NodePoolDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolDefaults) + return object; + var message = new $root.google.container.v1.NodePoolDefaults(); + if (object.nodeConfigDefaults != null) { + if (typeof object.nodeConfigDefaults !== "object") + throw TypeError(".google.container.v1.NodePoolDefaults.nodeConfigDefaults: object expected"); + message.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.fromObject(object.nodeConfigDefaults); + } + return message; + }; + + /** + * Creates a plain object from a NodePoolDefaults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {google.container.v1.NodePoolDefaults} message NodePoolDefaults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodePoolDefaults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.nodeConfigDefaults = null; + if (message.nodeConfigDefaults != null && message.hasOwnProperty("nodeConfigDefaults")) + object.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.toObject(message.nodeConfigDefaults, options); + return object; + }; + + /** + * Converts this NodePoolDefaults to JSON. + * @function toJSON + * @memberof google.container.v1.NodePoolDefaults + * @instance + * @returns {Object.} JSON object + */ + NodePoolDefaults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodePoolDefaults + * @function getTypeUrl + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodePoolDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePoolDefaults"; + }; + + return NodePoolDefaults; + })(); + + v1.NodeConfigDefaults = (function() { + + /** + * Properties of a NodeConfigDefaults. + * @memberof google.container.v1 + * @interface INodeConfigDefaults + * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] NodeConfigDefaults gcfsConfig + * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] NodeConfigDefaults loggingConfig + * @property {google.container.v1.IContainerdConfig|null} [containerdConfig] NodeConfigDefaults containerdConfig + * @property {google.container.v1.INodeKubeletConfig|null} [nodeKubeletConfig] NodeConfigDefaults nodeKubeletConfig + */ + + /** + * Constructs a new NodeConfigDefaults. + * @memberof google.container.v1 + * @classdesc Represents a NodeConfigDefaults. + * @implements INodeConfigDefaults + * @constructor + * @param {google.container.v1.INodeConfigDefaults=} [properties] Properties to set + */ + function NodeConfigDefaults(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeConfigDefaults gcfsConfig. + * @member {google.container.v1.IGcfsConfig|null|undefined} gcfsConfig + * @memberof google.container.v1.NodeConfigDefaults + * @instance + */ + NodeConfigDefaults.prototype.gcfsConfig = null; + + /** + * NodeConfigDefaults loggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig + * @memberof google.container.v1.NodeConfigDefaults + * @instance + */ + NodeConfigDefaults.prototype.loggingConfig = null; + + /** + * NodeConfigDefaults containerdConfig. + * @member {google.container.v1.IContainerdConfig|null|undefined} containerdConfig + * @memberof google.container.v1.NodeConfigDefaults * @instance */ NodeConfigDefaults.prototype.containerdConfig = null; @@ -19292,6 +21020,8 @@ * @property {google.container.v1.IIdentityServiceConfig|null} [desiredIdentityServiceConfig] ClusterUpdate desiredIdentityServiceConfig * @property {google.container.v1.IServiceExternalIPsConfig|null} [desiredServiceExternalIpsConfig] ClusterUpdate desiredServiceExternalIpsConfig * @property {boolean|null} [desiredEnablePrivateEndpoint] ClusterUpdate desiredEnablePrivateEndpoint + * @property {boolean|null} [desiredDefaultEnablePrivateNodes] ClusterUpdate desiredDefaultEnablePrivateNodes + * @property {google.container.v1.IControlPlaneEndpointsConfig|null} [desiredControlPlaneEndpointsConfig] ClusterUpdate desiredControlPlaneEndpointsConfig * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion * @property {google.container.v1.IGcfsConfig|null} [desiredGcfsConfig] ClusterUpdate desiredGcfsConfig * @property {google.container.v1.INetworkTags|null} [desiredNodePoolAutoConfigNetworkTags] ClusterUpdate desiredNodePoolAutoConfigNetworkTags @@ -19313,8 +21043,12 @@ * @property {google.container.v1.IResourceManagerTags|null} [desiredNodePoolAutoConfigResourceManagerTags] ClusterUpdate desiredNodePoolAutoConfigResourceManagerTags * @property {google.container.v1.InTransitEncryptionConfig|null} [desiredInTransitEncryptionConfig] ClusterUpdate desiredInTransitEncryptionConfig * @property {boolean|null} [desiredEnableCiliumClusterwideNetworkPolicy] ClusterUpdate desiredEnableCiliumClusterwideNetworkPolicy + * @property {google.container.v1.ISecretManagerConfig|null} [desiredSecretManagerConfig] ClusterUpdate desiredSecretManagerConfig + * @property {google.container.v1.ICompliancePostureConfig|null} [desiredCompliancePostureConfig] ClusterUpdate desiredCompliancePostureConfig * @property {google.container.v1.INodeKubeletConfig|null} [desiredNodeKubeletConfig] ClusterUpdate desiredNodeKubeletConfig * @property {google.container.v1.INodeKubeletConfig|null} [desiredNodePoolAutoConfigKubeletConfig] ClusterUpdate desiredNodePoolAutoConfigKubeletConfig + * @property {google.container.v1.IUserManagedKeysConfig|null} [userManagedKeysConfig] ClusterUpdate userManagedKeysConfig + * @property {google.container.v1.IRBACBindingConfig|null} [desiredRbacBindingConfig] ClusterUpdate desiredRbacBindingConfig */ /** @@ -19597,6 +21331,22 @@ */ ClusterUpdate.prototype.desiredEnablePrivateEndpoint = null; + /** + * ClusterUpdate desiredDefaultEnablePrivateNodes. + * @member {boolean|null|undefined} desiredDefaultEnablePrivateNodes + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredDefaultEnablePrivateNodes = null; + + /** + * ClusterUpdate desiredControlPlaneEndpointsConfig. + * @member {google.container.v1.IControlPlaneEndpointsConfig|null|undefined} desiredControlPlaneEndpointsConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredControlPlaneEndpointsConfig = null; + /** * ClusterUpdate desiredMasterVersion. * @member {string} desiredMasterVersion @@ -19765,6 +21515,22 @@ */ ClusterUpdate.prototype.desiredEnableCiliumClusterwideNetworkPolicy = null; + /** + * ClusterUpdate desiredSecretManagerConfig. + * @member {google.container.v1.ISecretManagerConfig|null|undefined} desiredSecretManagerConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredSecretManagerConfig = null; + + /** + * ClusterUpdate desiredCompliancePostureConfig. + * @member {google.container.v1.ICompliancePostureConfig|null|undefined} desiredCompliancePostureConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredCompliancePostureConfig = null; + /** * ClusterUpdate desiredNodeKubeletConfig. * @member {google.container.v1.INodeKubeletConfig|null|undefined} desiredNodeKubeletConfig @@ -19781,6 +21547,22 @@ */ ClusterUpdate.prototype.desiredNodePoolAutoConfigKubeletConfig = null; + /** + * ClusterUpdate userManagedKeysConfig. + * @member {google.container.v1.IUserManagedKeysConfig|null|undefined} userManagedKeysConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.userManagedKeysConfig = null; + + /** + * ClusterUpdate desiredRbacBindingConfig. + * @member {google.container.v1.IRBACBindingConfig|null|undefined} desiredRbacBindingConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredRbacBindingConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -19795,6 +21577,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ClusterUpdate _desiredDefaultEnablePrivateNodes. + * @member {"desiredDefaultEnablePrivateNodes"|undefined} _desiredDefaultEnablePrivateNodes + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + Object.defineProperty(ClusterUpdate.prototype, "_desiredDefaultEnablePrivateNodes", { + get: $util.oneOfGetter($oneOfFields = ["desiredDefaultEnablePrivateNodes"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * ClusterUpdate _desiredEnableFqdnNetworkPolicy. * @member {"desiredEnableFqdnNetworkPolicy"|undefined} _desiredEnableFqdnNetworkPolicy @@ -19839,6 +21632,39 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ClusterUpdate _desiredSecretManagerConfig. + * @member {"desiredSecretManagerConfig"|undefined} _desiredSecretManagerConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + Object.defineProperty(ClusterUpdate.prototype, "_desiredSecretManagerConfig", { + get: $util.oneOfGetter($oneOfFields = ["desiredSecretManagerConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ClusterUpdate _desiredCompliancePostureConfig. + * @member {"desiredCompliancePostureConfig"|undefined} _desiredCompliancePostureConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + Object.defineProperty(ClusterUpdate.prototype, "_desiredCompliancePostureConfig", { + get: $util.oneOfGetter($oneOfFields = ["desiredCompliancePostureConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ClusterUpdate _desiredRbacBindingConfig. + * @member {"desiredRbacBindingConfig"|undefined} _desiredRbacBindingConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + Object.defineProperty(ClusterUpdate.prototype, "_desiredRbacBindingConfig", { + get: $util.oneOfGetter($oneOfFields = ["desiredRbacBindingConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ClusterUpdate instance using the specified properties. * @function create @@ -19930,6 +21756,10 @@ $root.google.container.v1.MeshCertificates.encode(message.desiredMeshCertificates, writer.uint32(/* id 67, wireType 2 =*/538).fork()).ldelim(); if (message.desiredEnablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "desiredEnablePrivateEndpoint")) writer.uint32(/* id 71, wireType 0 =*/568).bool(message.desiredEnablePrivateEndpoint); + if (message.desiredDefaultEnablePrivateNodes != null && Object.hasOwnProperty.call(message, "desiredDefaultEnablePrivateNodes")) + writer.uint32(/* id 72, wireType 0 =*/576).bool(message.desiredDefaultEnablePrivateNodes); + if (message.desiredControlPlaneEndpointsConfig != null && Object.hasOwnProperty.call(message, "desiredControlPlaneEndpointsConfig")) + $root.google.container.v1.ControlPlaneEndpointsConfig.encode(message.desiredControlPlaneEndpointsConfig, writer.uint32(/* id 73, wireType 2 =*/586).fork()).ldelim(); if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); if (message.desiredGcfsConfig != null && Object.hasOwnProperty.call(message, "desiredGcfsConfig")) @@ -19972,10 +21802,18 @@ writer.uint32(/* id 137, wireType 0 =*/1096).int32(message.desiredInTransitEncryptionConfig); if (message.desiredEnableCiliumClusterwideNetworkPolicy != null && Object.hasOwnProperty.call(message, "desiredEnableCiliumClusterwideNetworkPolicy")) writer.uint32(/* id 138, wireType 0 =*/1104).bool(message.desiredEnableCiliumClusterwideNetworkPolicy); + if (message.desiredSecretManagerConfig != null && Object.hasOwnProperty.call(message, "desiredSecretManagerConfig")) + $root.google.container.v1.SecretManagerConfig.encode(message.desiredSecretManagerConfig, writer.uint32(/* id 139, wireType 2 =*/1114).fork()).ldelim(); + if (message.desiredCompliancePostureConfig != null && Object.hasOwnProperty.call(message, "desiredCompliancePostureConfig")) + $root.google.container.v1.CompliancePostureConfig.encode(message.desiredCompliancePostureConfig, writer.uint32(/* id 140, wireType 2 =*/1122).fork()).ldelim(); if (message.desiredNodeKubeletConfig != null && Object.hasOwnProperty.call(message, "desiredNodeKubeletConfig")) $root.google.container.v1.NodeKubeletConfig.encode(message.desiredNodeKubeletConfig, writer.uint32(/* id 141, wireType 2 =*/1130).fork()).ldelim(); if (message.desiredNodePoolAutoConfigKubeletConfig != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoConfigKubeletConfig")) $root.google.container.v1.NodeKubeletConfig.encode(message.desiredNodePoolAutoConfigKubeletConfig, writer.uint32(/* id 142, wireType 2 =*/1138).fork()).ldelim(); + if (message.userManagedKeysConfig != null && Object.hasOwnProperty.call(message, "userManagedKeysConfig")) + $root.google.container.v1.UserManagedKeysConfig.encode(message.userManagedKeysConfig, writer.uint32(/* id 143, wireType 2 =*/1146).fork()).ldelim(); + if (message.desiredRbacBindingConfig != null && Object.hasOwnProperty.call(message, "desiredRbacBindingConfig")) + $root.google.container.v1.RBACBindingConfig.encode(message.desiredRbacBindingConfig, writer.uint32(/* id 144, wireType 2 =*/1154).fork()).ldelim(); return writer; }; @@ -20144,6 +21982,14 @@ message.desiredEnablePrivateEndpoint = reader.bool(); break; } + case 72: { + message.desiredDefaultEnablePrivateNodes = reader.bool(); + break; + } + case 73: { + message.desiredControlPlaneEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.decode(reader, reader.uint32()); + break; + } case 100: { message.desiredMasterVersion = reader.string(); break; @@ -20228,6 +22074,14 @@ message.desiredEnableCiliumClusterwideNetworkPolicy = reader.bool(); break; } + case 139: { + message.desiredSecretManagerConfig = $root.google.container.v1.SecretManagerConfig.decode(reader, reader.uint32()); + break; + } + case 140: { + message.desiredCompliancePostureConfig = $root.google.container.v1.CompliancePostureConfig.decode(reader, reader.uint32()); + break; + } case 141: { message.desiredNodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); break; @@ -20236,6 +22090,14 @@ message.desiredNodePoolAutoConfigKubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); break; } + case 143: { + message.userManagedKeysConfig = $root.google.container.v1.UserManagedKeysConfig.decode(reader, reader.uint32()); + break; + } + case 144: { + message.desiredRbacBindingConfig = $root.google.container.v1.RBACBindingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -20438,6 +22300,16 @@ if (typeof message.desiredEnablePrivateEndpoint !== "boolean") return "desiredEnablePrivateEndpoint: boolean expected"; } + if (message.desiredDefaultEnablePrivateNodes != null && message.hasOwnProperty("desiredDefaultEnablePrivateNodes")) { + properties._desiredDefaultEnablePrivateNodes = 1; + if (typeof message.desiredDefaultEnablePrivateNodes !== "boolean") + return "desiredDefaultEnablePrivateNodes: boolean expected"; + } + if (message.desiredControlPlaneEndpointsConfig != null && message.hasOwnProperty("desiredControlPlaneEndpointsConfig")) { + var error = $root.google.container.v1.ControlPlaneEndpointsConfig.verify(message.desiredControlPlaneEndpointsConfig); + if (error) + return "desiredControlPlaneEndpointsConfig." + error; + } if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) if (!$util.isString(message.desiredMasterVersion)) return "desiredMasterVersion: string expected"; @@ -20549,6 +22421,22 @@ if (typeof message.desiredEnableCiliumClusterwideNetworkPolicy !== "boolean") return "desiredEnableCiliumClusterwideNetworkPolicy: boolean expected"; } + if (message.desiredSecretManagerConfig != null && message.hasOwnProperty("desiredSecretManagerConfig")) { + properties._desiredSecretManagerConfig = 1; + { + var error = $root.google.container.v1.SecretManagerConfig.verify(message.desiredSecretManagerConfig); + if (error) + return "desiredSecretManagerConfig." + error; + } + } + if (message.desiredCompliancePostureConfig != null && message.hasOwnProperty("desiredCompliancePostureConfig")) { + properties._desiredCompliancePostureConfig = 1; + { + var error = $root.google.container.v1.CompliancePostureConfig.verify(message.desiredCompliancePostureConfig); + if (error) + return "desiredCompliancePostureConfig." + error; + } + } if (message.desiredNodeKubeletConfig != null && message.hasOwnProperty("desiredNodeKubeletConfig")) { var error = $root.google.container.v1.NodeKubeletConfig.verify(message.desiredNodeKubeletConfig); if (error) @@ -20559,6 +22447,19 @@ if (error) return "desiredNodePoolAutoConfigKubeletConfig." + error; } + if (message.userManagedKeysConfig != null && message.hasOwnProperty("userManagedKeysConfig")) { + var error = $root.google.container.v1.UserManagedKeysConfig.verify(message.userManagedKeysConfig); + if (error) + return "userManagedKeysConfig." + error; + } + if (message.desiredRbacBindingConfig != null && message.hasOwnProperty("desiredRbacBindingConfig")) { + properties._desiredRbacBindingConfig = 1; + { + var error = $root.google.container.v1.RBACBindingConfig.verify(message.desiredRbacBindingConfig); + if (error) + return "desiredRbacBindingConfig." + error; + } + } return null; }; @@ -20757,6 +22658,13 @@ } if (object.desiredEnablePrivateEndpoint != null) message.desiredEnablePrivateEndpoint = Boolean(object.desiredEnablePrivateEndpoint); + if (object.desiredDefaultEnablePrivateNodes != null) + message.desiredDefaultEnablePrivateNodes = Boolean(object.desiredDefaultEnablePrivateNodes); + if (object.desiredControlPlaneEndpointsConfig != null) { + if (typeof object.desiredControlPlaneEndpointsConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredControlPlaneEndpointsConfig: object expected"); + message.desiredControlPlaneEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.fromObject(object.desiredControlPlaneEndpointsConfig); + } if (object.desiredMasterVersion != null) message.desiredMasterVersion = String(object.desiredMasterVersion); if (object.desiredGcfsConfig != null) { @@ -20877,6 +22785,16 @@ } if (object.desiredEnableCiliumClusterwideNetworkPolicy != null) message.desiredEnableCiliumClusterwideNetworkPolicy = Boolean(object.desiredEnableCiliumClusterwideNetworkPolicy); + if (object.desiredSecretManagerConfig != null) { + if (typeof object.desiredSecretManagerConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredSecretManagerConfig: object expected"); + message.desiredSecretManagerConfig = $root.google.container.v1.SecretManagerConfig.fromObject(object.desiredSecretManagerConfig); + } + if (object.desiredCompliancePostureConfig != null) { + if (typeof object.desiredCompliancePostureConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredCompliancePostureConfig: object expected"); + message.desiredCompliancePostureConfig = $root.google.container.v1.CompliancePostureConfig.fromObject(object.desiredCompliancePostureConfig); + } if (object.desiredNodeKubeletConfig != null) { if (typeof object.desiredNodeKubeletConfig !== "object") throw TypeError(".google.container.v1.ClusterUpdate.desiredNodeKubeletConfig: object expected"); @@ -20887,6 +22805,16 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoConfigKubeletConfig: object expected"); message.desiredNodePoolAutoConfigKubeletConfig = $root.google.container.v1.NodeKubeletConfig.fromObject(object.desiredNodePoolAutoConfigKubeletConfig); } + if (object.userManagedKeysConfig != null) { + if (typeof object.userManagedKeysConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.userManagedKeysConfig: object expected"); + message.userManagedKeysConfig = $root.google.container.v1.UserManagedKeysConfig.fromObject(object.userManagedKeysConfig); + } + if (object.desiredRbacBindingConfig != null) { + if (typeof object.desiredRbacBindingConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredRbacBindingConfig: object expected"); + message.desiredRbacBindingConfig = $root.google.container.v1.RBACBindingConfig.fromObject(object.desiredRbacBindingConfig); + } return message; }; @@ -20937,6 +22865,7 @@ object.desiredMonitoringConfig = null; object.desiredIdentityServiceConfig = null; object.desiredMeshCertificates = null; + object.desiredControlPlaneEndpointsConfig = null; object.desiredMasterVersion = ""; object.desiredGcfsConfig = null; object.desiredNodePoolAutoConfigNetworkTags = null; @@ -20956,6 +22885,7 @@ object.desiredNodePoolAutoConfigResourceManagerTags = null; object.desiredNodeKubeletConfig = null; object.desiredNodePoolAutoConfigKubeletConfig = null; + object.userManagedKeysConfig = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) object.desiredNodeVersion = message.desiredNodeVersion; @@ -21029,6 +22959,13 @@ if (options.oneofs) object._desiredEnablePrivateEndpoint = "desiredEnablePrivateEndpoint"; } + if (message.desiredDefaultEnablePrivateNodes != null && message.hasOwnProperty("desiredDefaultEnablePrivateNodes")) { + object.desiredDefaultEnablePrivateNodes = message.desiredDefaultEnablePrivateNodes; + if (options.oneofs) + object._desiredDefaultEnablePrivateNodes = "desiredDefaultEnablePrivateNodes"; + } + if (message.desiredControlPlaneEndpointsConfig != null && message.hasOwnProperty("desiredControlPlaneEndpointsConfig")) + object.desiredControlPlaneEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.toObject(message.desiredControlPlaneEndpointsConfig, options); if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) object.desiredMasterVersion = message.desiredMasterVersion; if (message.desiredGcfsConfig != null && message.hasOwnProperty("desiredGcfsConfig")) @@ -21083,10 +23020,27 @@ if (options.oneofs) object._desiredEnableCiliumClusterwideNetworkPolicy = "desiredEnableCiliumClusterwideNetworkPolicy"; } + if (message.desiredSecretManagerConfig != null && message.hasOwnProperty("desiredSecretManagerConfig")) { + object.desiredSecretManagerConfig = $root.google.container.v1.SecretManagerConfig.toObject(message.desiredSecretManagerConfig, options); + if (options.oneofs) + object._desiredSecretManagerConfig = "desiredSecretManagerConfig"; + } + if (message.desiredCompliancePostureConfig != null && message.hasOwnProperty("desiredCompliancePostureConfig")) { + object.desiredCompliancePostureConfig = $root.google.container.v1.CompliancePostureConfig.toObject(message.desiredCompliancePostureConfig, options); + if (options.oneofs) + object._desiredCompliancePostureConfig = "desiredCompliancePostureConfig"; + } if (message.desiredNodeKubeletConfig != null && message.hasOwnProperty("desiredNodeKubeletConfig")) object.desiredNodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.toObject(message.desiredNodeKubeletConfig, options); if (message.desiredNodePoolAutoConfigKubeletConfig != null && message.hasOwnProperty("desiredNodePoolAutoConfigKubeletConfig")) object.desiredNodePoolAutoConfigKubeletConfig = $root.google.container.v1.NodeKubeletConfig.toObject(message.desiredNodePoolAutoConfigKubeletConfig, options); + if (message.userManagedKeysConfig != null && message.hasOwnProperty("userManagedKeysConfig")) + object.userManagedKeysConfig = $root.google.container.v1.UserManagedKeysConfig.toObject(message.userManagedKeysConfig, options); + if (message.desiredRbacBindingConfig != null && message.hasOwnProperty("desiredRbacBindingConfig")) { + object.desiredRbacBindingConfig = $root.google.container.v1.RBACBindingConfig.toObject(message.desiredRbacBindingConfig, options); + if (options.oneofs) + object._desiredRbacBindingConfig = "desiredRbacBindingConfig"; + } return object; }; @@ -23949,6 +25903,7 @@ * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] UpdateNodePoolRequest resourceManagerTags * @property {google.container.v1.IContainerdConfig|null} [containerdConfig] UpdateNodePoolRequest containerdConfig * @property {google.container.v1.NodePool.IQueuedProvisioning|null} [queuedProvisioning] UpdateNodePoolRequest queuedProvisioning + * @property {Array.|null} [storagePools] UpdateNodePoolRequest storagePools */ /** @@ -23962,6 +25917,7 @@ function UpdateNodePoolRequest(properties) { this.locations = []; this.accelerators = []; + this.storagePools = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24216,6 +26172,14 @@ */ UpdateNodePoolRequest.prototype.queuedProvisioning = null; + /** + * UpdateNodePoolRequest storagePools. + * @member {Array.} storagePools + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.storagePools = $util.emptyArray; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @function create @@ -24304,6 +26268,9 @@ $root.google.container.v1.ContainerdConfig.encode(message.containerdConfig, writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); if (message.queuedProvisioning != null && Object.hasOwnProperty.call(message, "queuedProvisioning")) $root.google.container.v1.NodePool.QueuedProvisioning.encode(message.queuedProvisioning, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); + if (message.storagePools != null && message.storagePools.length) + for (var i = 0; i < message.storagePools.length; ++i) + writer.uint32(/* id 43, wireType 2 =*/346).string(message.storagePools[i]); return writer; }; @@ -24466,6 +26433,12 @@ message.queuedProvisioning = $root.google.container.v1.NodePool.QueuedProvisioning.decode(reader, reader.uint32()); break; } + case 43: { + if (!(message.storagePools && message.storagePools.length)) + message.storagePools = []; + message.storagePools.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -24640,6 +26613,13 @@ if (error) return "queuedProvisioning." + error; } + if (message.storagePools != null && message.hasOwnProperty("storagePools")) { + if (!Array.isArray(message.storagePools)) + return "storagePools: array expected"; + for (var i = 0; i < message.storagePools.length; ++i) + if (!$util.isString(message.storagePools[i])) + return "storagePools: string[] expected"; + } return null; }; @@ -24791,6 +26771,13 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.queuedProvisioning: object expected"); message.queuedProvisioning = $root.google.container.v1.NodePool.QueuedProvisioning.fromObject(object.queuedProvisioning); } + if (object.storagePools) { + if (!Array.isArray(object.storagePools)) + throw TypeError(".google.container.v1.UpdateNodePoolRequest.storagePools: array expected"); + message.storagePools = []; + for (var i = 0; i < object.storagePools.length; ++i) + message.storagePools[i] = String(object.storagePools[i]); + } return message; }; @@ -24810,6 +26797,7 @@ if (options.arrays || options.defaults) { object.locations = []; object.accelerators = []; + object.storagePools = []; } if (options.defaults) { object.projectId = ""; @@ -24917,6 +26905,11 @@ object.containerdConfig = $root.google.container.v1.ContainerdConfig.toObject(message.containerdConfig, options); if (message.queuedProvisioning != null && message.hasOwnProperty("queuedProvisioning")) object.queuedProvisioning = $root.google.container.v1.NodePool.QueuedProvisioning.toObject(message.queuedProvisioning, options); + if (message.storagePools && message.storagePools.length) { + object.storagePools = []; + for (var j = 0; j < message.storagePools.length; ++j) + object.storagePools[j] = message.storagePools[j]; + } return object; }; @@ -29639,6 +31632,7 @@ * @property {google.container.v1.ReleaseChannel.Channel|null} [channel] ReleaseChannelConfig channel * @property {string|null} [defaultVersion] ReleaseChannelConfig defaultVersion * @property {Array.|null} [validVersions] ReleaseChannelConfig validVersions + * @property {string|null} [upgradeTargetVersion] ReleaseChannelConfig upgradeTargetVersion */ /** @@ -29681,6 +31675,14 @@ */ ReleaseChannelConfig.prototype.validVersions = $util.emptyArray; + /** + * ReleaseChannelConfig upgradeTargetVersion. + * @member {string} upgradeTargetVersion + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + */ + ReleaseChannelConfig.prototype.upgradeTargetVersion = ""; + /** * Creates a new ReleaseChannelConfig instance using the specified properties. * @function create @@ -29712,6 +31714,8 @@ if (message.validVersions != null && message.validVersions.length) for (var i = 0; i < message.validVersions.length; ++i) writer.uint32(/* id 4, wireType 2 =*/34).string(message.validVersions[i]); + if (message.upgradeTargetVersion != null && Object.hasOwnProperty.call(message, "upgradeTargetVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.upgradeTargetVersion); return writer; }; @@ -29760,6 +31764,10 @@ message.validVersions.push(reader.string()); break; } + case 5: { + message.upgradeTargetVersion = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -29816,6 +31824,9 @@ if (!$util.isString(message.validVersions[i])) return "validVersions: string[] expected"; } + if (message.upgradeTargetVersion != null && message.hasOwnProperty("upgradeTargetVersion")) + if (!$util.isString(message.upgradeTargetVersion)) + return "upgradeTargetVersion: string expected"; return null; }; @@ -29868,6 +31879,8 @@ for (var i = 0; i < object.validVersions.length; ++i) message.validVersions[i] = String(object.validVersions[i]); } + if (object.upgradeTargetVersion != null) + message.upgradeTargetVersion = String(object.upgradeTargetVersion); return message; }; @@ -29889,6 +31902,7 @@ if (options.defaults) { object.channel = options.enums === String ? "UNSPECIFIED" : 0; object.defaultVersion = ""; + object.upgradeTargetVersion = ""; } if (message.channel != null && message.hasOwnProperty("channel")) object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] === undefined ? message.channel : $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; @@ -29899,6 +31913,8 @@ for (var j = 0; j < message.validVersions.length; ++j) object.validVersions[j] = message.validVersions[j]; } + if (message.upgradeTargetVersion != null && message.hasOwnProperty("upgradeTargetVersion")) + object.upgradeTargetVersion = message.upgradeTargetVersion; return object; }; @@ -42529,6 +44545,7 @@ * @property {boolean|null} [enableFqdnNetworkPolicy] NetworkConfig enableFqdnNetworkPolicy * @property {google.container.v1.InTransitEncryptionConfig|null} [inTransitEncryptionConfig] NetworkConfig inTransitEncryptionConfig * @property {boolean|null} [enableCiliumClusterwideNetworkPolicy] NetworkConfig enableCiliumClusterwideNetworkPolicy + * @property {boolean|null} [defaultEnablePrivateNodes] NetworkConfig defaultEnablePrivateNodes */ /** @@ -42666,6 +44683,14 @@ */ NetworkConfig.prototype.enableCiliumClusterwideNetworkPolicy = null; + /** + * NetworkConfig defaultEnablePrivateNodes. + * @member {boolean|null|undefined} defaultEnablePrivateNodes + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.defaultEnablePrivateNodes = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -42702,6 +44727,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * NetworkConfig _defaultEnablePrivateNodes. + * @member {"defaultEnablePrivateNodes"|undefined} _defaultEnablePrivateNodes + * @memberof google.container.v1.NetworkConfig + * @instance + */ + Object.defineProperty(NetworkConfig.prototype, "_defaultEnablePrivateNodes", { + get: $util.oneOfGetter($oneOfFields = ["defaultEnablePrivateNodes"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new NetworkConfig instance using the specified properties. * @function create @@ -42756,6 +44792,8 @@ writer.uint32(/* id 20, wireType 0 =*/160).int32(message.inTransitEncryptionConfig); if (message.enableCiliumClusterwideNetworkPolicy != null && Object.hasOwnProperty.call(message, "enableCiliumClusterwideNetworkPolicy")) writer.uint32(/* id 21, wireType 0 =*/168).bool(message.enableCiliumClusterwideNetworkPolicy); + if (message.defaultEnablePrivateNodes != null && Object.hasOwnProperty.call(message, "defaultEnablePrivateNodes")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.defaultEnablePrivateNodes); return writer; }; @@ -42850,6 +44888,10 @@ message.enableCiliumClusterwideNetworkPolicy = reader.bool(); break; } + case 22: { + message.defaultEnablePrivateNodes = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -42966,6 +45008,11 @@ if (typeof message.enableCiliumClusterwideNetworkPolicy !== "boolean") return "enableCiliumClusterwideNetworkPolicy: boolean expected"; } + if (message.defaultEnablePrivateNodes != null && message.hasOwnProperty("defaultEnablePrivateNodes")) { + properties._defaultEnablePrivateNodes = 1; + if (typeof message.defaultEnablePrivateNodes !== "boolean") + return "defaultEnablePrivateNodes: boolean expected"; + } return null; }; @@ -43084,6 +45131,8 @@ } if (object.enableCiliumClusterwideNetworkPolicy != null) message.enableCiliumClusterwideNetworkPolicy = Boolean(object.enableCiliumClusterwideNetworkPolicy); + if (object.defaultEnablePrivateNodes != null) + message.defaultEnablePrivateNodes = Boolean(object.defaultEnablePrivateNodes); return message; }; @@ -43153,6 +45202,11 @@ if (options.oneofs) object._enableCiliumClusterwideNetworkPolicy = "enableCiliumClusterwideNetworkPolicy"; } + if (message.defaultEnablePrivateNodes != null && message.hasOwnProperty("defaultEnablePrivateNodes")) { + object.defaultEnablePrivateNodes = message.defaultEnablePrivateNodes; + if (options.oneofs) + object._defaultEnablePrivateNodes = "defaultEnablePrivateNodes"; + } return object; }; @@ -54673,6 +56727,8 @@ case 3: case 4: case 5: + case 7: + case 8: break; } } @@ -54726,6 +56782,14 @@ case 5: message.enableComponents[i] = 5; break; + case "KCP_SSHD": + case 7: + message.enableComponents[i] = 7; + break; + case "KCP_CONNECTION": + case 8: + message.enableComponents[i] = 8; + break; } } return message; @@ -54790,6 +56854,8 @@ * @property {number} APISERVER=3 APISERVER value * @property {number} SCHEDULER=4 SCHEDULER value * @property {number} CONTROLLER_MANAGER=5 CONTROLLER_MANAGER value + * @property {number} KCP_SSHD=7 KCP_SSHD value + * @property {number} KCP_CONNECTION=8 KCP_CONNECTION value */ LoggingComponentConfig.Component = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -54799,6 +56865,8 @@ values[valuesById[3] = "APISERVER"] = 3; values[valuesById[4] = "SCHEDULER"] = 4; values[valuesById[5] = "CONTROLLER_MANAGER"] = 5; + values[valuesById[7] = "KCP_SSHD"] = 7; + values[valuesById[8] = "KCP_CONNECTION"] = 8; return values; })(); @@ -56498,145 +58566,615 @@ }; /** - * Creates a plain object from a MonitoringComponentConfig message. Also converts values to other types if specified. + * Creates a plain object from a MonitoringComponentConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {google.container.v1.MonitoringComponentConfig} message MonitoringComponentConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MonitoringComponentConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.enableComponents = []; + if (message.enableComponents && message.enableComponents.length) { + object.enableComponents = []; + for (var j = 0; j < message.enableComponents.length; ++j) + object.enableComponents[j] = options.enums === String ? $root.google.container.v1.MonitoringComponentConfig.Component[message.enableComponents[j]] === undefined ? message.enableComponents[j] : $root.google.container.v1.MonitoringComponentConfig.Component[message.enableComponents[j]] : message.enableComponents[j]; + } + return object; + }; + + /** + * Converts this MonitoringComponentConfig to JSON. + * @function toJSON + * @memberof google.container.v1.MonitoringComponentConfig + * @instance + * @returns {Object.} JSON object + */ + MonitoringComponentConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MonitoringComponentConfig + * @function getTypeUrl + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MonitoringComponentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MonitoringComponentConfig"; + }; + + /** + * Component enum. + * @name google.container.v1.MonitoringComponentConfig.Component + * @enum {number} + * @property {number} COMPONENT_UNSPECIFIED=0 COMPONENT_UNSPECIFIED value + * @property {number} SYSTEM_COMPONENTS=1 SYSTEM_COMPONENTS value + * @property {number} APISERVER=3 APISERVER value + * @property {number} SCHEDULER=4 SCHEDULER value + * @property {number} CONTROLLER_MANAGER=5 CONTROLLER_MANAGER value + * @property {number} STORAGE=7 STORAGE value + * @property {number} HPA=8 HPA value + * @property {number} POD=9 POD value + * @property {number} DAEMONSET=10 DAEMONSET value + * @property {number} DEPLOYMENT=11 DEPLOYMENT value + * @property {number} STATEFULSET=12 STATEFULSET value + * @property {number} CADVISOR=13 CADVISOR value + * @property {number} KUBELET=14 KUBELET value + * @property {number} DCGM=15 DCGM value + */ + MonitoringComponentConfig.Component = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPONENT_UNSPECIFIED"] = 0; + values[valuesById[1] = "SYSTEM_COMPONENTS"] = 1; + values[valuesById[3] = "APISERVER"] = 3; + values[valuesById[4] = "SCHEDULER"] = 4; + values[valuesById[5] = "CONTROLLER_MANAGER"] = 5; + values[valuesById[7] = "STORAGE"] = 7; + values[valuesById[8] = "HPA"] = 8; + values[valuesById[9] = "POD"] = 9; + values[valuesById[10] = "DAEMONSET"] = 10; + values[valuesById[11] = "DEPLOYMENT"] = 11; + values[valuesById[12] = "STATEFULSET"] = 12; + values[valuesById[13] = "CADVISOR"] = 13; + values[valuesById[14] = "KUBELET"] = 14; + values[valuesById[15] = "DCGM"] = 15; + return values; + })(); + + return MonitoringComponentConfig; + })(); + + /** + * DatapathProvider enum. + * @name google.container.v1.DatapathProvider + * @enum {number} + * @property {number} DATAPATH_PROVIDER_UNSPECIFIED=0 DATAPATH_PROVIDER_UNSPECIFIED value + * @property {number} LEGACY_DATAPATH=1 LEGACY_DATAPATH value + * @property {number} ADVANCED_DATAPATH=2 ADVANCED_DATAPATH value + */ + v1.DatapathProvider = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATAPATH_PROVIDER_UNSPECIFIED"] = 0; + values[valuesById[1] = "LEGACY_DATAPATH"] = 1; + values[valuesById[2] = "ADVANCED_DATAPATH"] = 2; + return values; + })(); + + /** + * NodePoolUpdateStrategy enum. + * @name google.container.v1.NodePoolUpdateStrategy + * @enum {number} + * @property {number} NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED=0 NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED value + * @property {number} BLUE_GREEN=2 BLUE_GREEN value + * @property {number} SURGE=3 SURGE value + */ + v1.NodePoolUpdateStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[2] = "BLUE_GREEN"] = 2; + values[valuesById[3] = "SURGE"] = 3; + return values; + })(); + + v1.ManagedPrometheusConfig = (function() { + + /** + * Properties of a ManagedPrometheusConfig. + * @memberof google.container.v1 + * @interface IManagedPrometheusConfig + * @property {boolean|null} [enabled] ManagedPrometheusConfig enabled + */ + + /** + * Constructs a new ManagedPrometheusConfig. + * @memberof google.container.v1 + * @classdesc Represents a ManagedPrometheusConfig. + * @implements IManagedPrometheusConfig + * @constructor + * @param {google.container.v1.IManagedPrometheusConfig=} [properties] Properties to set + */ + function ManagedPrometheusConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ManagedPrometheusConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ManagedPrometheusConfig + * @instance + */ + ManagedPrometheusConfig.prototype.enabled = false; + + /** + * Creates a new ManagedPrometheusConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {google.container.v1.IManagedPrometheusConfig=} [properties] Properties to set + * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig instance + */ + ManagedPrometheusConfig.create = function create(properties) { + return new ManagedPrometheusConfig(properties); + }; + + /** + * Encodes the specified ManagedPrometheusConfig message. Does not implicitly {@link google.container.v1.ManagedPrometheusConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {google.container.v1.IManagedPrometheusConfig} message ManagedPrometheusConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagedPrometheusConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified ManagedPrometheusConfig message, length delimited. Does not implicitly {@link google.container.v1.ManagedPrometheusConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {google.container.v1.IManagedPrometheusConfig} message ManagedPrometheusConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagedPrometheusConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ManagedPrometheusConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagedPrometheusConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ManagedPrometheusConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ManagedPrometheusConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagedPrometheusConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ManagedPrometheusConfig message. + * @function verify + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ManagedPrometheusConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + return null; + }; + + /** + * Creates a ManagedPrometheusConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + */ + ManagedPrometheusConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ManagedPrometheusConfig) + return object; + var message = new $root.google.container.v1.ManagedPrometheusConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a ManagedPrometheusConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {google.container.v1.ManagedPrometheusConfig} message ManagedPrometheusConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ManagedPrometheusConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + return object; + }; + + /** + * Converts this ManagedPrometheusConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ManagedPrometheusConfig + * @instance + * @returns {Object.} JSON object + */ + ManagedPrometheusConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ManagedPrometheusConfig + * @function getTypeUrl + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ManagedPrometheusConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ManagedPrometheusConfig"; + }; + + return ManagedPrometheusConfig; + })(); + + v1.Fleet = (function() { + + /** + * Properties of a Fleet. + * @memberof google.container.v1 + * @interface IFleet + * @property {string|null} [project] Fleet project + * @property {string|null} [membership] Fleet membership + * @property {boolean|null} [preRegistered] Fleet preRegistered + */ + + /** + * Constructs a new Fleet. + * @memberof google.container.v1 + * @classdesc Represents a Fleet. + * @implements IFleet + * @constructor + * @param {google.container.v1.IFleet=} [properties] Properties to set + */ + function Fleet(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Fleet project. + * @member {string} project + * @memberof google.container.v1.Fleet + * @instance + */ + Fleet.prototype.project = ""; + + /** + * Fleet membership. + * @member {string} membership + * @memberof google.container.v1.Fleet + * @instance + */ + Fleet.prototype.membership = ""; + + /** + * Fleet preRegistered. + * @member {boolean} preRegistered + * @memberof google.container.v1.Fleet + * @instance + */ + Fleet.prototype.preRegistered = false; + + /** + * Creates a new Fleet instance using the specified properties. + * @function create + * @memberof google.container.v1.Fleet + * @static + * @param {google.container.v1.IFleet=} [properties] Properties to set + * @returns {google.container.v1.Fleet} Fleet instance + */ + Fleet.create = function create(properties) { + return new Fleet(properties); + }; + + /** + * Encodes the specified Fleet message. Does not implicitly {@link google.container.v1.Fleet.verify|verify} messages. + * @function encode + * @memberof google.container.v1.Fleet + * @static + * @param {google.container.v1.IFleet} message Fleet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Fleet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.membership != null && Object.hasOwnProperty.call(message, "membership")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.membership); + if (message.preRegistered != null && Object.hasOwnProperty.call(message, "preRegistered")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.preRegistered); + return writer; + }; + + /** + * Encodes the specified Fleet message, length delimited. Does not implicitly {@link google.container.v1.Fleet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.Fleet + * @static + * @param {google.container.v1.IFleet} message Fleet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Fleet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Fleet message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.Fleet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.Fleet} Fleet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Fleet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.Fleet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.project = reader.string(); + break; + } + case 2: { + message.membership = reader.string(); + break; + } + case 3: { + message.preRegistered = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Fleet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.Fleet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.Fleet} Fleet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Fleet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Fleet message. + * @function verify + * @memberof google.container.v1.Fleet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Fleet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.membership != null && message.hasOwnProperty("membership")) + if (!$util.isString(message.membership)) + return "membership: string expected"; + if (message.preRegistered != null && message.hasOwnProperty("preRegistered")) + if (typeof message.preRegistered !== "boolean") + return "preRegistered: boolean expected"; + return null; + }; + + /** + * Creates a Fleet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.Fleet + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.Fleet} Fleet + */ + Fleet.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.Fleet) + return object; + var message = new $root.google.container.v1.Fleet(); + if (object.project != null) + message.project = String(object.project); + if (object.membership != null) + message.membership = String(object.membership); + if (object.preRegistered != null) + message.preRegistered = Boolean(object.preRegistered); + return message; + }; + + /** + * Creates a plain object from a Fleet message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MonitoringComponentConfig + * @memberof google.container.v1.Fleet * @static - * @param {google.container.v1.MonitoringComponentConfig} message MonitoringComponentConfig + * @param {google.container.v1.Fleet} message Fleet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MonitoringComponentConfig.toObject = function toObject(message, options) { + Fleet.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.enableComponents = []; - if (message.enableComponents && message.enableComponents.length) { - object.enableComponents = []; - for (var j = 0; j < message.enableComponents.length; ++j) - object.enableComponents[j] = options.enums === String ? $root.google.container.v1.MonitoringComponentConfig.Component[message.enableComponents[j]] === undefined ? message.enableComponents[j] : $root.google.container.v1.MonitoringComponentConfig.Component[message.enableComponents[j]] : message.enableComponents[j]; + if (options.defaults) { + object.project = ""; + object.membership = ""; + object.preRegistered = false; } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.membership != null && message.hasOwnProperty("membership")) + object.membership = message.membership; + if (message.preRegistered != null && message.hasOwnProperty("preRegistered")) + object.preRegistered = message.preRegistered; return object; }; /** - * Converts this MonitoringComponentConfig to JSON. + * Converts this Fleet to JSON. * @function toJSON - * @memberof google.container.v1.MonitoringComponentConfig + * @memberof google.container.v1.Fleet * @instance * @returns {Object.} JSON object */ - MonitoringComponentConfig.prototype.toJSON = function toJSON() { + Fleet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MonitoringComponentConfig + * Gets the default type url for Fleet * @function getTypeUrl - * @memberof google.container.v1.MonitoringComponentConfig + * @memberof google.container.v1.Fleet * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MonitoringComponentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Fleet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.container.v1.MonitoringComponentConfig"; + return typeUrlPrefix + "/google.container.v1.Fleet"; }; - /** - * Component enum. - * @name google.container.v1.MonitoringComponentConfig.Component - * @enum {number} - * @property {number} COMPONENT_UNSPECIFIED=0 COMPONENT_UNSPECIFIED value - * @property {number} SYSTEM_COMPONENTS=1 SYSTEM_COMPONENTS value - * @property {number} APISERVER=3 APISERVER value - * @property {number} SCHEDULER=4 SCHEDULER value - * @property {number} CONTROLLER_MANAGER=5 CONTROLLER_MANAGER value - * @property {number} STORAGE=7 STORAGE value - * @property {number} HPA=8 HPA value - * @property {number} POD=9 POD value - * @property {number} DAEMONSET=10 DAEMONSET value - * @property {number} DEPLOYMENT=11 DEPLOYMENT value - * @property {number} STATEFULSET=12 STATEFULSET value - * @property {number} CADVISOR=13 CADVISOR value - * @property {number} KUBELET=14 KUBELET value - * @property {number} DCGM=15 DCGM value - */ - MonitoringComponentConfig.Component = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COMPONENT_UNSPECIFIED"] = 0; - values[valuesById[1] = "SYSTEM_COMPONENTS"] = 1; - values[valuesById[3] = "APISERVER"] = 3; - values[valuesById[4] = "SCHEDULER"] = 4; - values[valuesById[5] = "CONTROLLER_MANAGER"] = 5; - values[valuesById[7] = "STORAGE"] = 7; - values[valuesById[8] = "HPA"] = 8; - values[valuesById[9] = "POD"] = 9; - values[valuesById[10] = "DAEMONSET"] = 10; - values[valuesById[11] = "DEPLOYMENT"] = 11; - values[valuesById[12] = "STATEFULSET"] = 12; - values[valuesById[13] = "CADVISOR"] = 13; - values[valuesById[14] = "KUBELET"] = 14; - values[valuesById[15] = "DCGM"] = 15; - return values; - })(); - - return MonitoringComponentConfig; - })(); - - /** - * DatapathProvider enum. - * @name google.container.v1.DatapathProvider - * @enum {number} - * @property {number} DATAPATH_PROVIDER_UNSPECIFIED=0 DATAPATH_PROVIDER_UNSPECIFIED value - * @property {number} LEGACY_DATAPATH=1 LEGACY_DATAPATH value - * @property {number} ADVANCED_DATAPATH=2 ADVANCED_DATAPATH value - */ - v1.DatapathProvider = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATAPATH_PROVIDER_UNSPECIFIED"] = 0; - values[valuesById[1] = "LEGACY_DATAPATH"] = 1; - values[valuesById[2] = "ADVANCED_DATAPATH"] = 2; - return values; + return Fleet; })(); /** - * NodePoolUpdateStrategy enum. - * @name google.container.v1.NodePoolUpdateStrategy + * StackType enum. + * @name google.container.v1.StackType * @enum {number} - * @property {number} NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED=0 NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED value - * @property {number} BLUE_GREEN=2 BLUE_GREEN value - * @property {number} SURGE=3 SURGE value + * @property {number} STACK_TYPE_UNSPECIFIED=0 STACK_TYPE_UNSPECIFIED value + * @property {number} IPV4=1 IPV4 value + * @property {number} IPV4_IPV6=2 IPV4_IPV6 value */ - v1.NodePoolUpdateStrategy = (function() { + v1.StackType = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED"] = 0; - values[valuesById[2] = "BLUE_GREEN"] = 2; - values[valuesById[3] = "SURGE"] = 3; + values[valuesById[0] = "STACK_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "IPV4"] = 1; + values[valuesById[2] = "IPV4_IPV6"] = 2; return values; })(); - v1.ManagedPrometheusConfig = (function() { + v1.ControlPlaneEndpointsConfig = (function() { /** - * Properties of a ManagedPrometheusConfig. + * Properties of a ControlPlaneEndpointsConfig. * @memberof google.container.v1 - * @interface IManagedPrometheusConfig - * @property {boolean|null} [enabled] ManagedPrometheusConfig enabled + * @interface IControlPlaneEndpointsConfig + * @property {google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig|null} [dnsEndpointConfig] ControlPlaneEndpointsConfig dnsEndpointConfig + * @property {google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig|null} [ipEndpointsConfig] ControlPlaneEndpointsConfig ipEndpointsConfig */ /** - * Constructs a new ManagedPrometheusConfig. + * Constructs a new ControlPlaneEndpointsConfig. * @memberof google.container.v1 - * @classdesc Represents a ManagedPrometheusConfig. - * @implements IManagedPrometheusConfig + * @classdesc Represents a ControlPlaneEndpointsConfig. + * @implements IControlPlaneEndpointsConfig * @constructor - * @param {google.container.v1.IManagedPrometheusConfig=} [properties] Properties to set + * @param {google.container.v1.IControlPlaneEndpointsConfig=} [properties] Properties to set */ - function ManagedPrometheusConfig(properties) { + function ControlPlaneEndpointsConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56644,75 +59182,89 @@ } /** - * ManagedPrometheusConfig enabled. - * @member {boolean} enabled - * @memberof google.container.v1.ManagedPrometheusConfig + * ControlPlaneEndpointsConfig dnsEndpointConfig. + * @member {google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig|null|undefined} dnsEndpointConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @instance */ - ManagedPrometheusConfig.prototype.enabled = false; + ControlPlaneEndpointsConfig.prototype.dnsEndpointConfig = null; /** - * Creates a new ManagedPrometheusConfig instance using the specified properties. + * ControlPlaneEndpointsConfig ipEndpointsConfig. + * @member {google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig|null|undefined} ipEndpointsConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig + * @instance + */ + ControlPlaneEndpointsConfig.prototype.ipEndpointsConfig = null; + + /** + * Creates a new ControlPlaneEndpointsConfig instance using the specified properties. * @function create - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static - * @param {google.container.v1.IManagedPrometheusConfig=} [properties] Properties to set - * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig instance + * @param {google.container.v1.IControlPlaneEndpointsConfig=} [properties] Properties to set + * @returns {google.container.v1.ControlPlaneEndpointsConfig} ControlPlaneEndpointsConfig instance */ - ManagedPrometheusConfig.create = function create(properties) { - return new ManagedPrometheusConfig(properties); + ControlPlaneEndpointsConfig.create = function create(properties) { + return new ControlPlaneEndpointsConfig(properties); }; /** - * Encodes the specified ManagedPrometheusConfig message. Does not implicitly {@link google.container.v1.ManagedPrometheusConfig.verify|verify} messages. + * Encodes the specified ControlPlaneEndpointsConfig message. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static - * @param {google.container.v1.IManagedPrometheusConfig} message ManagedPrometheusConfig message or plain object to encode + * @param {google.container.v1.IControlPlaneEndpointsConfig} message ControlPlaneEndpointsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManagedPrometheusConfig.encode = function encode(message, writer) { + ControlPlaneEndpointsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.dnsEndpointConfig != null && Object.hasOwnProperty.call(message, "dnsEndpointConfig")) + $root.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.encode(message.dnsEndpointConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.ipEndpointsConfig != null && Object.hasOwnProperty.call(message, "ipEndpointsConfig")) + $root.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.encode(message.ipEndpointsConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ManagedPrometheusConfig message, length delimited. Does not implicitly {@link google.container.v1.ManagedPrometheusConfig.verify|verify} messages. + * Encodes the specified ControlPlaneEndpointsConfig message, length delimited. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static - * @param {google.container.v1.IManagedPrometheusConfig} message ManagedPrometheusConfig message or plain object to encode + * @param {google.container.v1.IControlPlaneEndpointsConfig} message ControlPlaneEndpointsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManagedPrometheusConfig.encodeDelimited = function encodeDelimited(message, writer) { + ControlPlaneEndpointsConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ManagedPrometheusConfig message from the specified reader or buffer. + * Decodes a ControlPlaneEndpointsConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + * @returns {google.container.v1.ControlPlaneEndpointsConfig} ControlPlaneEndpointsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManagedPrometheusConfig.decode = function decode(reader, length) { + ControlPlaneEndpointsConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ManagedPrometheusConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ControlPlaneEndpointsConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enabled = reader.bool(); + message.dnsEndpointConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.ipEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.decode(reader, reader.uint32()); break; } default: @@ -56724,368 +59276,762 @@ }; /** - * Decodes a ManagedPrometheusConfig message from the specified reader or buffer, length delimited. + * Decodes a ControlPlaneEndpointsConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + * @returns {google.container.v1.ControlPlaneEndpointsConfig} ControlPlaneEndpointsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManagedPrometheusConfig.decodeDelimited = function decodeDelimited(reader) { + ControlPlaneEndpointsConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ManagedPrometheusConfig message. + * Verifies a ControlPlaneEndpointsConfig message. * @function verify - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ManagedPrometheusConfig.verify = function verify(message) { + ControlPlaneEndpointsConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; + if (message.dnsEndpointConfig != null && message.hasOwnProperty("dnsEndpointConfig")) { + var error = $root.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.verify(message.dnsEndpointConfig); + if (error) + return "dnsEndpointConfig." + error; + } + if (message.ipEndpointsConfig != null && message.hasOwnProperty("ipEndpointsConfig")) { + var error = $root.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.verify(message.ipEndpointsConfig); + if (error) + return "ipEndpointsConfig." + error; + } return null; }; /** - * Creates a ManagedPrometheusConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ControlPlaneEndpointsConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + * @returns {google.container.v1.ControlPlaneEndpointsConfig} ControlPlaneEndpointsConfig */ - ManagedPrometheusConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ManagedPrometheusConfig) + ControlPlaneEndpointsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ControlPlaneEndpointsConfig) return object; - var message = new $root.google.container.v1.ManagedPrometheusConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); + var message = new $root.google.container.v1.ControlPlaneEndpointsConfig(); + if (object.dnsEndpointConfig != null) { + if (typeof object.dnsEndpointConfig !== "object") + throw TypeError(".google.container.v1.ControlPlaneEndpointsConfig.dnsEndpointConfig: object expected"); + message.dnsEndpointConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.fromObject(object.dnsEndpointConfig); + } + if (object.ipEndpointsConfig != null) { + if (typeof object.ipEndpointsConfig !== "object") + throw TypeError(".google.container.v1.ControlPlaneEndpointsConfig.ipEndpointsConfig: object expected"); + message.ipEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.fromObject(object.ipEndpointsConfig); + } return message; }; /** - * Creates a plain object from a ManagedPrometheusConfig message. Also converts values to other types if specified. + * Creates a plain object from a ControlPlaneEndpointsConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static - * @param {google.container.v1.ManagedPrometheusConfig} message ManagedPrometheusConfig + * @param {google.container.v1.ControlPlaneEndpointsConfig} message ControlPlaneEndpointsConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ManagedPrometheusConfig.toObject = function toObject(message, options) { + ControlPlaneEndpointsConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.enabled = false; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; + if (options.defaults) { + object.dnsEndpointConfig = null; + object.ipEndpointsConfig = null; + } + if (message.dnsEndpointConfig != null && message.hasOwnProperty("dnsEndpointConfig")) + object.dnsEndpointConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.toObject(message.dnsEndpointConfig, options); + if (message.ipEndpointsConfig != null && message.hasOwnProperty("ipEndpointsConfig")) + object.ipEndpointsConfig = $root.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.toObject(message.ipEndpointsConfig, options); return object; }; /** - * Converts this ManagedPrometheusConfig to JSON. + * Converts this ControlPlaneEndpointsConfig to JSON. * @function toJSON - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @instance * @returns {Object.} JSON object */ - ManagedPrometheusConfig.prototype.toJSON = function toJSON() { + ControlPlaneEndpointsConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ManagedPrometheusConfig + * Gets the default type url for ControlPlaneEndpointsConfig * @function getTypeUrl - * @memberof google.container.v1.ManagedPrometheusConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ManagedPrometheusConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ControlPlaneEndpointsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.container.v1.ManagedPrometheusConfig"; + return typeUrlPrefix + "/google.container.v1.ControlPlaneEndpointsConfig"; }; - return ManagedPrometheusConfig; - })(); + ControlPlaneEndpointsConfig.DNSEndpointConfig = (function() { - v1.Fleet = (function() { + /** + * Properties of a DNSEndpointConfig. + * @memberof google.container.v1.ControlPlaneEndpointsConfig + * @interface IDNSEndpointConfig + * @property {string|null} [endpoint] DNSEndpointConfig endpoint + * @property {boolean|null} [allowExternalTraffic] DNSEndpointConfig allowExternalTraffic + */ - /** - * Properties of a Fleet. - * @memberof google.container.v1 - * @interface IFleet - * @property {string|null} [project] Fleet project - * @property {string|null} [membership] Fleet membership - * @property {boolean|null} [preRegistered] Fleet preRegistered - */ + /** + * Constructs a new DNSEndpointConfig. + * @memberof google.container.v1.ControlPlaneEndpointsConfig + * @classdesc Represents a DNSEndpointConfig. + * @implements IDNSEndpointConfig + * @constructor + * @param {google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig=} [properties] Properties to set + */ + function DNSEndpointConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new Fleet. - * @memberof google.container.v1 - * @classdesc Represents a Fleet. - * @implements IFleet - * @constructor - * @param {google.container.v1.IFleet=} [properties] Properties to set - */ - function Fleet(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * DNSEndpointConfig endpoint. + * @member {string} endpoint + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @instance + */ + DNSEndpointConfig.prototype.endpoint = ""; - /** - * Fleet project. - * @member {string} project - * @memberof google.container.v1.Fleet - * @instance - */ - Fleet.prototype.project = ""; + /** + * DNSEndpointConfig allowExternalTraffic. + * @member {boolean|null|undefined} allowExternalTraffic + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @instance + */ + DNSEndpointConfig.prototype.allowExternalTraffic = null; - /** - * Fleet membership. - * @member {string} membership - * @memberof google.container.v1.Fleet - * @instance - */ - Fleet.prototype.membership = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Fleet preRegistered. - * @member {boolean} preRegistered - * @memberof google.container.v1.Fleet - * @instance - */ - Fleet.prototype.preRegistered = false; + /** + * DNSEndpointConfig _allowExternalTraffic. + * @member {"allowExternalTraffic"|undefined} _allowExternalTraffic + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @instance + */ + Object.defineProperty(DNSEndpointConfig.prototype, "_allowExternalTraffic", { + get: $util.oneOfGetter($oneOfFields = ["allowExternalTraffic"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a new Fleet instance using the specified properties. - * @function create - * @memberof google.container.v1.Fleet - * @static - * @param {google.container.v1.IFleet=} [properties] Properties to set - * @returns {google.container.v1.Fleet} Fleet instance - */ - Fleet.create = function create(properties) { - return new Fleet(properties); - }; + /** + * Creates a new DNSEndpointConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig=} [properties] Properties to set + * @returns {google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig} DNSEndpointConfig instance + */ + DNSEndpointConfig.create = function create(properties) { + return new DNSEndpointConfig(properties); + }; - /** - * Encodes the specified Fleet message. Does not implicitly {@link google.container.v1.Fleet.verify|verify} messages. - * @function encode - * @memberof google.container.v1.Fleet - * @static - * @param {google.container.v1.IFleet} message Fleet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Fleet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && Object.hasOwnProperty.call(message, "project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.membership != null && Object.hasOwnProperty.call(message, "membership")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.membership); - if (message.preRegistered != null && Object.hasOwnProperty.call(message, "preRegistered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.preRegistered); - return writer; - }; + /** + * Encodes the specified DNSEndpointConfig message. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig} message DNSEndpointConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DNSEndpointConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.endpoint); + if (message.allowExternalTraffic != null && Object.hasOwnProperty.call(message, "allowExternalTraffic")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowExternalTraffic); + return writer; + }; + + /** + * Encodes the specified DNSEndpointConfig message, length delimited. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {google.container.v1.ControlPlaneEndpointsConfig.IDNSEndpointConfig} message DNSEndpointConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DNSEndpointConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DNSEndpointConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig} DNSEndpointConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DNSEndpointConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.endpoint = reader.string(); + break; + } + case 3: { + message.allowExternalTraffic = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DNSEndpointConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig} DNSEndpointConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DNSEndpointConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DNSEndpointConfig message. + * @function verify + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DNSEndpointConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.allowExternalTraffic != null && message.hasOwnProperty("allowExternalTraffic")) { + properties._allowExternalTraffic = 1; + if (typeof message.allowExternalTraffic !== "boolean") + return "allowExternalTraffic: boolean expected"; + } + return null; + }; + + /** + * Creates a DNSEndpointConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig} DNSEndpointConfig + */ + DNSEndpointConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig) + return object; + var message = new $root.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.allowExternalTraffic != null) + message.allowExternalTraffic = Boolean(object.allowExternalTraffic); + return message; + }; + + /** + * Creates a plain object from a DNSEndpointConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig} message DNSEndpointConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DNSEndpointConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.endpoint = ""; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.allowExternalTraffic != null && message.hasOwnProperty("allowExternalTraffic")) { + object.allowExternalTraffic = message.allowExternalTraffic; + if (options.oneofs) + object._allowExternalTraffic = "allowExternalTraffic"; + } + return object; + }; + + /** + * Converts this DNSEndpointConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @instance + * @returns {Object.} JSON object + */ + DNSEndpointConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DNSEndpointConfig + * @function getTypeUrl + * @memberof google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DNSEndpointConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig"; + }; + + return DNSEndpointConfig; + })(); + + ControlPlaneEndpointsConfig.IPEndpointsConfig = (function() { + + /** + * Properties of a IPEndpointsConfig. + * @memberof google.container.v1.ControlPlaneEndpointsConfig + * @interface IIPEndpointsConfig + * @property {boolean|null} [enabled] IPEndpointsConfig enabled + * @property {boolean|null} [enablePublicEndpoint] IPEndpointsConfig enablePublicEndpoint + * @property {boolean|null} [globalAccess] IPEndpointsConfig globalAccess + * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [authorizedNetworksConfig] IPEndpointsConfig authorizedNetworksConfig + * @property {string|null} [publicEndpoint] IPEndpointsConfig publicEndpoint + * @property {string|null} [privateEndpoint] IPEndpointsConfig privateEndpoint + * @property {string|null} [privateEndpointSubnetwork] IPEndpointsConfig privateEndpointSubnetwork + */ + + /** + * Constructs a new IPEndpointsConfig. + * @memberof google.container.v1.ControlPlaneEndpointsConfig + * @classdesc Represents a IPEndpointsConfig. + * @implements IIPEndpointsConfig + * @constructor + * @param {google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig=} [properties] Properties to set + */ + function IPEndpointsConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IPEndpointsConfig enabled. + * @member {boolean|null|undefined} enabled + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + IPEndpointsConfig.prototype.enabled = null; + + /** + * IPEndpointsConfig enablePublicEndpoint. + * @member {boolean|null|undefined} enablePublicEndpoint + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + IPEndpointsConfig.prototype.enablePublicEndpoint = null; + + /** + * IPEndpointsConfig globalAccess. + * @member {boolean|null|undefined} globalAccess + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + IPEndpointsConfig.prototype.globalAccess = null; + + /** + * IPEndpointsConfig authorizedNetworksConfig. + * @member {google.container.v1.IMasterAuthorizedNetworksConfig|null|undefined} authorizedNetworksConfig + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + IPEndpointsConfig.prototype.authorizedNetworksConfig = null; + + /** + * IPEndpointsConfig publicEndpoint. + * @member {string} publicEndpoint + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + IPEndpointsConfig.prototype.publicEndpoint = ""; + + /** + * IPEndpointsConfig privateEndpoint. + * @member {string} privateEndpoint + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + IPEndpointsConfig.prototype.privateEndpoint = ""; + + /** + * IPEndpointsConfig privateEndpointSubnetwork. + * @member {string} privateEndpointSubnetwork + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + IPEndpointsConfig.prototype.privateEndpointSubnetwork = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * IPEndpointsConfig _enabled. + * @member {"enabled"|undefined} _enabled + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + Object.defineProperty(IPEndpointsConfig.prototype, "_enabled", { + get: $util.oneOfGetter($oneOfFields = ["enabled"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified Fleet message, length delimited. Does not implicitly {@link google.container.v1.Fleet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.container.v1.Fleet - * @static - * @param {google.container.v1.IFleet} message Fleet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Fleet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * IPEndpointsConfig _enablePublicEndpoint. + * @member {"enablePublicEndpoint"|undefined} _enablePublicEndpoint + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + Object.defineProperty(IPEndpointsConfig.prototype, "_enablePublicEndpoint", { + get: $util.oneOfGetter($oneOfFields = ["enablePublicEndpoint"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Decodes a Fleet message from the specified reader or buffer. - * @function decode - * @memberof google.container.v1.Fleet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.Fleet} Fleet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Fleet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.Fleet(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.project = reader.string(); - break; - } - case 2: { - message.membership = reader.string(); - break; - } - case 3: { - message.preRegistered = reader.bool(); + /** + * IPEndpointsConfig _globalAccess. + * @member {"globalAccess"|undefined} _globalAccess + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + */ + Object.defineProperty(IPEndpointsConfig.prototype, "_globalAccess", { + get: $util.oneOfGetter($oneOfFields = ["globalAccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new IPEndpointsConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig=} [properties] Properties to set + * @returns {google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig} IPEndpointsConfig instance + */ + IPEndpointsConfig.create = function create(properties) { + return new IPEndpointsConfig(properties); + }; + + /** + * Encodes the specified IPEndpointsConfig message. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig} message IPEndpointsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IPEndpointsConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.enablePublicEndpoint != null && Object.hasOwnProperty.call(message, "enablePublicEndpoint")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePublicEndpoint); + if (message.globalAccess != null && Object.hasOwnProperty.call(message, "globalAccess")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.globalAccess); + if (message.authorizedNetworksConfig != null && Object.hasOwnProperty.call(message, "authorizedNetworksConfig")) + $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.authorizedNetworksConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.publicEndpoint != null && Object.hasOwnProperty.call(message, "publicEndpoint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); + if (message.privateEndpoint != null && Object.hasOwnProperty.call(message, "privateEndpoint")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.privateEndpoint); + if (message.privateEndpointSubnetwork != null && Object.hasOwnProperty.call(message, "privateEndpointSubnetwork")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.privateEndpointSubnetwork); + return writer; + }; + + /** + * Encodes the specified IPEndpointsConfig message, length delimited. Does not implicitly {@link google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {google.container.v1.ControlPlaneEndpointsConfig.IIPEndpointsConfig} message IPEndpointsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IPEndpointsConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a IPEndpointsConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig} IPEndpointsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IPEndpointsConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.enablePublicEndpoint = reader.bool(); + break; + } + case 3: { + message.globalAccess = reader.bool(); + break; + } + case 4: { + message.authorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.decode(reader, reader.uint32()); + break; + } + case 5: { + message.publicEndpoint = reader.string(); + break; + } + case 6: { + message.privateEndpoint = reader.string(); + break; + } + case 7: { + message.privateEndpointSubnetwork = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Fleet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.container.v1.Fleet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.Fleet} Fleet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Fleet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a IPEndpointsConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig} IPEndpointsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IPEndpointsConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Fleet message. - * @function verify - * @memberof google.container.v1.Fleet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Fleet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.membership != null && message.hasOwnProperty("membership")) - if (!$util.isString(message.membership)) - return "membership: string expected"; - if (message.preRegistered != null && message.hasOwnProperty("preRegistered")) - if (typeof message.preRegistered !== "boolean") - return "preRegistered: boolean expected"; - return null; - }; + /** + * Verifies a IPEndpointsConfig message. + * @function verify + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IPEndpointsConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + properties._enabled = 1; + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + } + if (message.enablePublicEndpoint != null && message.hasOwnProperty("enablePublicEndpoint")) { + properties._enablePublicEndpoint = 1; + if (typeof message.enablePublicEndpoint !== "boolean") + return "enablePublicEndpoint: boolean expected"; + } + if (message.globalAccess != null && message.hasOwnProperty("globalAccess")) { + properties._globalAccess = 1; + if (typeof message.globalAccess !== "boolean") + return "globalAccess: boolean expected"; + } + if (message.authorizedNetworksConfig != null && message.hasOwnProperty("authorizedNetworksConfig")) { + var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.authorizedNetworksConfig); + if (error) + return "authorizedNetworksConfig." + error; + } + if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) + if (!$util.isString(message.publicEndpoint)) + return "publicEndpoint: string expected"; + if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) + if (!$util.isString(message.privateEndpoint)) + return "privateEndpoint: string expected"; + if (message.privateEndpointSubnetwork != null && message.hasOwnProperty("privateEndpointSubnetwork")) + if (!$util.isString(message.privateEndpointSubnetwork)) + return "privateEndpointSubnetwork: string expected"; + return null; + }; - /** - * Creates a Fleet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.Fleet - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.Fleet} Fleet - */ - Fleet.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.Fleet) - return object; - var message = new $root.google.container.v1.Fleet(); - if (object.project != null) - message.project = String(object.project); - if (object.membership != null) - message.membership = String(object.membership); - if (object.preRegistered != null) - message.preRegistered = Boolean(object.preRegistered); - return message; - }; + /** + * Creates a IPEndpointsConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig} IPEndpointsConfig + */ + IPEndpointsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig) + return object; + var message = new $root.google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.enablePublicEndpoint != null) + message.enablePublicEndpoint = Boolean(object.enablePublicEndpoint); + if (object.globalAccess != null) + message.globalAccess = Boolean(object.globalAccess); + if (object.authorizedNetworksConfig != null) { + if (typeof object.authorizedNetworksConfig !== "object") + throw TypeError(".google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorizedNetworksConfig: object expected"); + message.authorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.fromObject(object.authorizedNetworksConfig); + } + if (object.publicEndpoint != null) + message.publicEndpoint = String(object.publicEndpoint); + if (object.privateEndpoint != null) + message.privateEndpoint = String(object.privateEndpoint); + if (object.privateEndpointSubnetwork != null) + message.privateEndpointSubnetwork = String(object.privateEndpointSubnetwork); + return message; + }; - /** - * Creates a plain object from a Fleet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.container.v1.Fleet - * @static - * @param {google.container.v1.Fleet} message Fleet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Fleet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.project = ""; - object.membership = ""; - object.preRegistered = false; - } - if (message.project != null && message.hasOwnProperty("project")) - object.project = message.project; - if (message.membership != null && message.hasOwnProperty("membership")) - object.membership = message.membership; - if (message.preRegistered != null && message.hasOwnProperty("preRegistered")) - object.preRegistered = message.preRegistered; - return object; - }; + /** + * Creates a plain object from a IPEndpointsConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig} message IPEndpointsConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IPEndpointsConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.authorizedNetworksConfig = null; + object.publicEndpoint = ""; + object.privateEndpoint = ""; + object.privateEndpointSubnetwork = ""; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) { + object.enabled = message.enabled; + if (options.oneofs) + object._enabled = "enabled"; + } + if (message.enablePublicEndpoint != null && message.hasOwnProperty("enablePublicEndpoint")) { + object.enablePublicEndpoint = message.enablePublicEndpoint; + if (options.oneofs) + object._enablePublicEndpoint = "enablePublicEndpoint"; + } + if (message.globalAccess != null && message.hasOwnProperty("globalAccess")) { + object.globalAccess = message.globalAccess; + if (options.oneofs) + object._globalAccess = "globalAccess"; + } + if (message.authorizedNetworksConfig != null && message.hasOwnProperty("authorizedNetworksConfig")) + object.authorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.authorizedNetworksConfig, options); + if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) + object.publicEndpoint = message.publicEndpoint; + if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) + object.privateEndpoint = message.privateEndpoint; + if (message.privateEndpointSubnetwork != null && message.hasOwnProperty("privateEndpointSubnetwork")) + object.privateEndpointSubnetwork = message.privateEndpointSubnetwork; + return object; + }; - /** - * Converts this Fleet to JSON. - * @function toJSON - * @memberof google.container.v1.Fleet - * @instance - * @returns {Object.} JSON object - */ - Fleet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this IPEndpointsConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @instance + * @returns {Object.} JSON object + */ + IPEndpointsConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Fleet - * @function getTypeUrl - * @memberof google.container.v1.Fleet - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Fleet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.container.v1.Fleet"; - }; + /** + * Gets the default type url for IPEndpointsConfig + * @function getTypeUrl + * @memberof google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IPEndpointsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig"; + }; - return Fleet; - })(); + return IPEndpointsConfig; + })(); - /** - * StackType enum. - * @name google.container.v1.StackType - * @enum {number} - * @property {number} STACK_TYPE_UNSPECIFIED=0 STACK_TYPE_UNSPECIFIED value - * @property {number} IPV4=1 IPV4 value - * @property {number} IPV4_IPV6=2 IPV4_IPV6 value - */ - v1.StackType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STACK_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "IPV4"] = 1; - values[valuesById[2] = "IPV4_IPV6"] = 2; - return values; + return ControlPlaneEndpointsConfig; })(); /** @@ -57991,6 +60937,227 @@ return EnterpriseConfig; })(); + v1.SecretManagerConfig = (function() { + + /** + * Properties of a SecretManagerConfig. + * @memberof google.container.v1 + * @interface ISecretManagerConfig + * @property {boolean|null} [enabled] SecretManagerConfig enabled + */ + + /** + * Constructs a new SecretManagerConfig. + * @memberof google.container.v1 + * @classdesc Represents a SecretManagerConfig. + * @implements ISecretManagerConfig + * @constructor + * @param {google.container.v1.ISecretManagerConfig=} [properties] Properties to set + */ + function SecretManagerConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecretManagerConfig enabled. + * @member {boolean|null|undefined} enabled + * @memberof google.container.v1.SecretManagerConfig + * @instance + */ + SecretManagerConfig.prototype.enabled = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecretManagerConfig _enabled. + * @member {"enabled"|undefined} _enabled + * @memberof google.container.v1.SecretManagerConfig + * @instance + */ + Object.defineProperty(SecretManagerConfig.prototype, "_enabled", { + get: $util.oneOfGetter($oneOfFields = ["enabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecretManagerConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {google.container.v1.ISecretManagerConfig=} [properties] Properties to set + * @returns {google.container.v1.SecretManagerConfig} SecretManagerConfig instance + */ + SecretManagerConfig.create = function create(properties) { + return new SecretManagerConfig(properties); + }; + + /** + * Encodes the specified SecretManagerConfig message. Does not implicitly {@link google.container.v1.SecretManagerConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {google.container.v1.ISecretManagerConfig} message SecretManagerConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecretManagerConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified SecretManagerConfig message, length delimited. Does not implicitly {@link google.container.v1.SecretManagerConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {google.container.v1.ISecretManagerConfig} message SecretManagerConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecretManagerConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecretManagerConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SecretManagerConfig} SecretManagerConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecretManagerConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SecretManagerConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecretManagerConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SecretManagerConfig} SecretManagerConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecretManagerConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecretManagerConfig message. + * @function verify + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecretManagerConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + properties._enabled = 1; + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + } + return null; + }; + + /** + * Creates a SecretManagerConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SecretManagerConfig} SecretManagerConfig + */ + SecretManagerConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SecretManagerConfig) + return object; + var message = new $root.google.container.v1.SecretManagerConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a SecretManagerConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {google.container.v1.SecretManagerConfig} message SecretManagerConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecretManagerConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) { + object.enabled = message.enabled; + if (options.oneofs) + object._enabled = "enabled"; + } + return object; + }; + + /** + * Converts this SecretManagerConfig to JSON. + * @function toJSON + * @memberof google.container.v1.SecretManagerConfig + * @instance + * @returns {Object.} JSON object + */ + SecretManagerConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecretManagerConfig + * @function getTypeUrl + * @memberof google.container.v1.SecretManagerConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecretManagerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SecretManagerConfig"; + }; + + return SecretManagerConfig; + })(); + v1.SecondaryBootDisk = (function() { /** diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 9c2c9ef0e077..1895850a6eed 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1,4 +1,7 @@ { + "options": { + "syntax": "proto3" + }, "nested": { "google": { "nested": { @@ -13,8 +16,8 @@ "java_package": "com.google.container.v1", "php_namespace": "Google\\Cloud\\Container\\V1", "ruby_package": "Google::Cloud::Container::V1", - "(google.api.resource_definition).type": "pubsub.googleapis.com/Topic", - "(google.api.resource_definition).pattern": "projects/{project}/topics/{topic}" + "(google.api.resource_definition).type": "cloudkms.googleapis.com/CryptoKeyVersion", + "(google.api.resource_definition).pattern": "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" }, "nested": { "ClusterManager": { @@ -1179,12 +1182,33 @@ "type": "SecondaryBootDisk", "id": 48 }, + "storagePools": { + "rule": "repeated", + "type": "string", + "id": 49 + }, "secondaryBootDiskUpdateStrategy": { "type": "SecondaryBootDiskUpdateStrategy", "id": 50, "options": { "proto3_optional": true } + }, + "effectiveCgroupMode": { + "type": "EffectiveCgroupMode", + "id": 55, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "EffectiveCgroupMode": { + "values": { + "EFFECTIVE_CGROUP_MODE_UNSPECIFIED": 0, + "EFFECTIVE_CGROUP_MODE_V1": 1, + "EFFECTIVE_CGROUP_MODE_V2": 2 + } } } }, @@ -1674,6 +1698,10 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "parallelstoreCsiDriverConfig": { + "type": "ParallelstoreCsiDriverConfig", + "id": 19 + }, "rayOperatorConfig": { "type": "RayOperatorConfig", "id": 21, @@ -1735,11 +1763,17 @@ "fields": { "enablePrivateNodes": { "type": "bool", - "id": 1 + "id": 1, + "options": { + "deprecated": true + } }, "enablePrivateEndpoint": { "type": "bool", - "id": 2 + "id": 2, + "options": { + "deprecated": true + } }, "masterIpv4CidrBlock": { "type": "string", @@ -1749,6 +1783,7 @@ "type": "string", "id": 4, "options": { + "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } }, @@ -1756,6 +1791,7 @@ "type": "string", "id": 5, "options": { + "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } }, @@ -1768,11 +1804,17 @@ }, "masterGlobalAccessConfig": { "type": "PrivateClusterMasterGlobalAccessConfig", - "id": 8 + "id": 8, + "options": { + "deprecated": true + } }, "privateEndpointSubnetwork": { "type": "string", - "id": 10 + "id": 10, + "options": { + "deprecated": true + } } } }, @@ -1841,6 +1883,14 @@ } } }, + "ParallelstoreCsiDriverConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "RayOperatorConfig": { "fields": { "enabled": { @@ -1885,6 +1935,11 @@ "oneof": [ "gcpPublicCidrsAccessEnabled" ] + }, + "_privateEndpointEnforcementEnabled": { + "oneof": [ + "privateEndpointEnforcementEnabled" + ] } }, "fields": { @@ -1903,6 +1958,13 @@ "options": { "proto3_optional": true } + }, + "privateEndpointEnforcementEnabled": { + "type": "bool", + "id": 5, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -2101,6 +2163,16 @@ "oneof": [ "satisfiesPzi" ] + }, + "_userManagedKeysConfig": { + "oneof": [ + "userManagedKeysConfig" + ] + }, + "_rbacBindingConfig": { + "oneof": [ + "rbacBindingConfig" + ] } }, "fields": { @@ -2191,7 +2263,10 @@ }, "masterAuthorizedNetworksConfig": { "type": "MasterAuthorizedNetworksConfig", - "id": 22 + "id": 22, + "options": { + "deprecated": true + } }, "maintenancePolicy": { "type": "MaintenancePolicy", @@ -2431,6 +2506,10 @@ "type": "SecurityPostureConfig", "id": 145 }, + "controlPlaneEndpointsConfig": { + "type": "ControlPlaneEndpointsConfig", + "id": 146 + }, "enableK8sBetaApis": { "type": "K8sBetaAPIConfig", "id": 143 @@ -2439,6 +2518,14 @@ "type": "EnterpriseConfig", "id": 149 }, + "secretManagerConfig": { + "type": "SecretManagerConfig", + "id": 150 + }, + "compliancePostureConfig": { + "type": "CompliancePostureConfig", + "id": 151 + }, "satisfiesPzs": { "type": "bool", "id": 152, @@ -2454,6 +2541,20 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "proto3_optional": true } + }, + "userManagedKeysConfig": { + "type": "UserManagedKeysConfig", + "id": 154, + "options": { + "proto3_optional": true + } + }, + "rbacBindingConfig": { + "type": "RBACBindingConfig", + "id": 156, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -2470,6 +2571,148 @@ } } }, + "RBACBindingConfig": { + "oneofs": { + "_enableInsecureBindingSystemUnauthenticated": { + "oneof": [ + "enableInsecureBindingSystemUnauthenticated" + ] + }, + "_enableInsecureBindingSystemAuthenticated": { + "oneof": [ + "enableInsecureBindingSystemAuthenticated" + ] + } + }, + "fields": { + "enableInsecureBindingSystemUnauthenticated": { + "type": "bool", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "enableInsecureBindingSystemAuthenticated": { + "type": "bool", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, + "UserManagedKeysConfig": { + "fields": { + "clusterCa": { + "type": "string", + "id": 10, + "options": { + "(google.api.resource_reference).type": "privateca.googleapis.com/CaPool" + } + }, + "etcdApiCa": { + "type": "string", + "id": 11, + "options": { + "(google.api.resource_reference).type": "privateca.googleapis.com/CaPool" + } + }, + "etcdPeerCa": { + "type": "string", + "id": 12, + "options": { + "(google.api.resource_reference).type": "privateca.googleapis.com/CaPool" + } + }, + "serviceAccountSigningKeys": { + "rule": "repeated", + "type": "string", + "id": 13, + "options": { + "(google.api.resource_reference).type": "cloudkms.googleapis.com/CryptoKeyVersion" + } + }, + "serviceAccountVerificationKeys": { + "rule": "repeated", + "type": "string", + "id": 14, + "options": { + "(google.api.resource_reference).type": "cloudkms.googleapis.com/CryptoKeyVersion" + } + }, + "aggregationCa": { + "type": "string", + "id": 15, + "options": { + "(google.api.resource_reference).type": "privateca.googleapis.com/CaPool" + } + }, + "controlPlaneDiskEncryptionKey": { + "type": "string", + "id": 16, + "options": { + "(google.api.resource_reference).type": "cloudkms.googleapis.com/CryptoKeyVersion" + } + }, + "gkeopsEtcdBackupEncryptionKey": { + "type": "string", + "id": 17, + "options": { + "(google.api.resource_reference).type": "cloudkms.googleapis.com/CryptoKeyVersion" + } + } + } + }, + "CompliancePostureConfig": { + "oneofs": { + "_mode": { + "oneof": [ + "mode" + ] + } + }, + "fields": { + "mode": { + "type": "Mode", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "complianceStandards": { + "rule": "repeated", + "type": "ComplianceStandard", + "id": 2 + } + }, + "nested": { + "Mode": { + "values": { + "MODE_UNSPECIFIED": 0, + "DISABLED": 1, + "ENABLED": 2 + } + }, + "ComplianceStandard": { + "oneofs": { + "_standard": { + "oneof": [ + "standard" + ] + } + }, + "fields": { + "standard": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + } + } + } + } + }, "K8sBetaAPIConfig": { "fields": { "enabledApis": { @@ -2578,6 +2821,11 @@ "desiredEnablePrivateEndpoint" ] }, + "_desiredDefaultEnablePrivateNodes": { + "oneof": [ + "desiredDefaultEnablePrivateNodes" + ] + }, "_desiredEnableFqdnNetworkPolicy": { "oneof": [ "desiredEnableFqdnNetworkPolicy" @@ -2597,6 +2845,21 @@ "oneof": [ "desiredEnableCiliumClusterwideNetworkPolicy" ] + }, + "_desiredSecretManagerConfig": { + "oneof": [ + "desiredSecretManagerConfig" + ] + }, + "_desiredCompliancePostureConfig": { + "oneof": [ + "desiredCompliancePostureConfig" + ] + }, + "_desiredRbacBindingConfig": { + "oneof": [ + "desiredRbacBindingConfig" + ] } }, "fields": { @@ -2655,7 +2918,10 @@ }, "desiredMasterAuthorizedNetworksConfig": { "type": "MasterAuthorizedNetworksConfig", - "id": 12 + "id": 12, + "options": { + "deprecated": true + } }, "desiredClusterAutoscaling": { "type": "ClusterAutoscaling", @@ -2679,7 +2945,10 @@ }, "desiredPrivateClusterConfig": { "type": "PrivateClusterConfig", - "id": 25 + "id": 25, + "options": { + "deprecated": true + } }, "desiredIntraNodeVisibilityConfig": { "type": "IntraNodeVisibilityConfig", @@ -2732,10 +3001,22 @@ "desiredEnablePrivateEndpoint": { "type": "bool", "id": 71, + "options": { + "deprecated": true, + "proto3_optional": true + } + }, + "desiredDefaultEnablePrivateNodes": { + "type": "bool", + "id": 72, "options": { "proto3_optional": true } }, + "desiredControlPlaneEndpointsConfig": { + "type": "ControlPlaneEndpointsConfig", + "id": 73 + }, "desiredMasterVersion": { "type": "string", "id": 100 @@ -2832,6 +3113,20 @@ "proto3_optional": true } }, + "desiredSecretManagerConfig": { + "type": "SecretManagerConfig", + "id": 139, + "options": { + "proto3_optional": true + } + }, + "desiredCompliancePostureConfig": { + "type": "CompliancePostureConfig", + "id": 140, + "options": { + "proto3_optional": true + } + }, "desiredNodeKubeletConfig": { "type": "NodeKubeletConfig", "id": 141 @@ -2839,6 +3134,17 @@ "desiredNodePoolAutoConfigKubeletConfig": { "type": "NodeKubeletConfig", "id": 142 + }, + "userManagedKeysConfig": { + "type": "UserManagedKeysConfig", + "id": 143 + }, + "desiredRbacBindingConfig": { + "type": "RBACBindingConfig", + "id": 144, + "options": { + "proto3_optional": true + } } } }, @@ -3342,6 +3648,11 @@ "queuedProvisioning": { "type": "NodePool.QueuedProvisioning", "id": 42 + }, + "storagePools": { + "rule": "repeated", + "type": "string", + "id": 43 } } }, @@ -3849,6 +4160,10 @@ "rule": "repeated", "type": "string", "id": 4 + }, + "upgradeTargetVersion": { + "type": "string", + "id": 5 } } } @@ -5125,6 +5440,11 @@ "oneof": [ "enableCiliumClusterwideNetworkPolicy" ] + }, + "_defaultEnablePrivateNodes": { + "oneof": [ + "defaultEnablePrivateNodes" + ] } }, "fields": { @@ -5202,6 +5522,13 @@ "options": { "proto3_optional": true } + }, + "defaultEnablePrivateNodes": { + "type": "bool", + "id": 22, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -5997,7 +6324,9 @@ "WORKLOADS": 2, "APISERVER": 3, "SCHEDULER": 4, - "CONTROLLER_MANAGER": 5 + "CONTROLLER_MANAGER": 5, + "KCP_SSHD": 7, + "KCP_CONNECTION": 8 } } } @@ -6175,6 +6504,109 @@ "IPV4_IPV6": 2 } }, + "ControlPlaneEndpointsConfig": { + "fields": { + "dnsEndpointConfig": { + "type": "DNSEndpointConfig", + "id": 1 + }, + "ipEndpointsConfig": { + "type": "IPEndpointsConfig", + "id": 3 + } + }, + "nested": { + "DNSEndpointConfig": { + "oneofs": { + "_allowExternalTraffic": { + "oneof": [ + "allowExternalTraffic" + ] + } + }, + "fields": { + "endpoint": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "allowExternalTraffic": { + "type": "bool", + "id": 3, + "options": { + "proto3_optional": true + } + } + } + }, + "IPEndpointsConfig": { + "oneofs": { + "_enabled": { + "oneof": [ + "enabled" + ] + }, + "_enablePublicEndpoint": { + "oneof": [ + "enablePublicEndpoint" + ] + }, + "_globalAccess": { + "oneof": [ + "globalAccess" + ] + } + }, + "fields": { + "enabled": { + "type": "bool", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "enablePublicEndpoint": { + "type": "bool", + "id": 2, + "options": { + "proto3_optional": true + } + }, + "globalAccess": { + "type": "bool", + "id": 3, + "options": { + "proto3_optional": true + } + }, + "authorizedNetworksConfig": { + "type": "MasterAuthorizedNetworksConfig", + "id": 4 + }, + "publicEndpoint": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "privateEndpoint": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "privateEndpointSubnetwork": { + "type": "string", + "id": 7 + } + } + } + } + }, "IPv6AccessType": { "values": { "IPV6_ACCESS_TYPE_UNSPECIFIED": 0, @@ -6227,6 +6659,24 @@ } } }, + "SecretManagerConfig": { + "oneofs": { + "_enabled": { + "oneof": [ + "enabled" + ] + } + }, + "fields": { + "enabled": { + "type": "bool", + "id": 1, + "options": { + "proto3_optional": true + } + } + } + }, "SecondaryBootDisk": { "fields": { "mode": { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index fca19ba4d006..482516b2a337 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -177,6 +177,11 @@ function main(nodeVersion, imageType) { * Specifies the configuration of queued provisioning. */ // const queuedProvisioning = {} + /** + * List of Storage Pools where boot disks are provisioned. + * Existing Storage Pools will be replaced with storage-pools. + */ + // const storagePools = ['abc','def'] // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; diff --git a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json index 90265ae94b13..d168af320c5d 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 199, + "end": 204, "type": "FULL" } ], @@ -362,6 +362,10 @@ { "name": "queued_provisioning", "type": ".google.container.v1.NodePool.QueuedProvisioning" + }, + { + "name": "storage_pools", + "type": "TYPE_STRING[]" } ], "resultType": ".google.container.v1.Operation", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index d6b90addb442..640807611e87 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -62,6 +62,7 @@ export class ClusterManagerClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; clusterManagerStub?: Promise<{[name: string]: Function}>; /** @@ -194,6 +195,18 @@ export class ClusterManagerClient { // Load the applicable protos. this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + caPoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/caPools/{ca_pool}' + ), + cryptoKeyVersionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}' + ), + }; + // Some of the methods on this service return "paged" results, // (e.g. 50 results at a time, with tokens to get subsequent // pages). Denote the keys used for pagination and results. @@ -924,6 +937,9 @@ export class ClusterManagerClient { * config. * @param {google.container.v1.NodePool.QueuedProvisioning} request.queuedProvisioning * Specifies the configuration of queued provisioning. + * @param {string[]} request.storagePools + * List of Storage Pools where boot disks are provisioned. + * Existing Storage Pools will be replaced with storage-pools. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4130,6 +4146,149 @@ export class ClusterManagerClient { callSettings ) as AsyncIterable; } + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified caPool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} ca_pool + * @returns {string} Resource name string. + */ + caPoolPath(project: string, location: string, caPool: string) { + return this.pathTemplates.caPoolPathTemplate.render({ + project: project, + location: location, + ca_pool: caPool, + }); + } + + /** + * Parse the project from CaPool resource. + * + * @param {string} caPoolName + * A fully-qualified path representing CaPool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCaPoolName(caPoolName: string) { + return this.pathTemplates.caPoolPathTemplate.match(caPoolName).project; + } + + /** + * Parse the location from CaPool resource. + * + * @param {string} caPoolName + * A fully-qualified path representing CaPool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCaPoolName(caPoolName: string) { + return this.pathTemplates.caPoolPathTemplate.match(caPoolName).location; + } + + /** + * Parse the ca_pool from CaPool resource. + * + * @param {string} caPoolName + * A fully-qualified path representing CaPool resource. + * @returns {string} A string representing the ca_pool. + */ + matchCaPoolFromCaPoolName(caPoolName: string) { + return this.pathTemplates.caPoolPathTemplate.match(caPoolName).ca_pool; + } + + /** + * Return a fully-qualified cryptoKeyVersion resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} key_ring + * @param {string} crypto_key + * @param {string} crypto_key_version + * @returns {string} Resource name string. + */ + cryptoKeyVersionPath( + project: string, + location: string, + keyRing: string, + cryptoKey: string, + cryptoKeyVersion: string + ) { + return this.pathTemplates.cryptoKeyVersionPathTemplate.render({ + project: project, + location: location, + key_ring: keyRing, + crypto_key: cryptoKey, + crypto_key_version: cryptoKeyVersion, + }); + } + + /** + * Parse the project from CryptoKeyVersion resource. + * + * @param {string} cryptoKeyVersionName + * A fully-qualified path representing CryptoKeyVersion resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCryptoKeyVersionName(cryptoKeyVersionName: string) { + return this.pathTemplates.cryptoKeyVersionPathTemplate.match( + cryptoKeyVersionName + ).project; + } + + /** + * Parse the location from CryptoKeyVersion resource. + * + * @param {string} cryptoKeyVersionName + * A fully-qualified path representing CryptoKeyVersion resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCryptoKeyVersionName(cryptoKeyVersionName: string) { + return this.pathTemplates.cryptoKeyVersionPathTemplate.match( + cryptoKeyVersionName + ).location; + } + + /** + * Parse the key_ring from CryptoKeyVersion resource. + * + * @param {string} cryptoKeyVersionName + * A fully-qualified path representing CryptoKeyVersion resource. + * @returns {string} A string representing the key_ring. + */ + matchKeyRingFromCryptoKeyVersionName(cryptoKeyVersionName: string) { + return this.pathTemplates.cryptoKeyVersionPathTemplate.match( + cryptoKeyVersionName + ).key_ring; + } + + /** + * Parse the crypto_key from CryptoKeyVersion resource. + * + * @param {string} cryptoKeyVersionName + * A fully-qualified path representing CryptoKeyVersion resource. + * @returns {string} A string representing the crypto_key. + */ + matchCryptoKeyFromCryptoKeyVersionName(cryptoKeyVersionName: string) { + return this.pathTemplates.cryptoKeyVersionPathTemplate.match( + cryptoKeyVersionName + ).crypto_key; + } + + /** + * Parse the crypto_key_version from CryptoKeyVersion resource. + * + * @param {string} cryptoKeyVersionName + * A fully-qualified path representing CryptoKeyVersion resource. + * @returns {string} A string representing the crypto_key_version. + */ + matchCryptoKeyVersionFromCryptoKeyVersionName(cryptoKeyVersionName: string) { + return this.pathTemplates.cryptoKeyVersionPathTemplate.match( + cryptoKeyVersionName + ).crypto_key_version; + } /** * Terminate the gRPC channel and close the client. diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 99bacb8e4788..e9ff7875d011 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -6846,4 +6846,162 @@ describe('v1.ClusterManagerClient', () => { ); }); }); + + describe('Path templates', () => { + describe('caPool', () => { + const fakePath = '/rendered/path/caPool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + ca_pool: 'caPoolValue', + }; + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.caPoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.caPoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('caPoolPath', () => { + const result = client.caPoolPath( + 'projectValue', + 'locationValue', + 'caPoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.caPoolPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCaPoolName', () => { + const result = client.matchProjectFromCaPoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.caPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCaPoolName', () => { + const result = client.matchLocationFromCaPoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.caPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCaPoolFromCaPoolName', () => { + const result = client.matchCaPoolFromCaPoolName(fakePath); + assert.strictEqual(result, 'caPoolValue'); + assert( + (client.pathTemplates.caPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('cryptoKeyVersion', () => { + const fakePath = '/rendered/path/cryptoKeyVersion'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + key_ring: 'keyRingValue', + crypto_key: 'cryptoKeyValue', + crypto_key_version: 'cryptoKeyVersionValue', + }; + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.cryptoKeyVersionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.cryptoKeyVersionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('cryptoKeyVersionPath', () => { + const result = client.cryptoKeyVersionPath( + 'projectValue', + 'locationValue', + 'keyRingValue', + 'cryptoKeyValue', + 'cryptoKeyVersionValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.cryptoKeyVersionPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCryptoKeyVersionName', () => { + const result = client.matchProjectFromCryptoKeyVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.cryptoKeyVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCryptoKeyVersionName', () => { + const result = client.matchLocationFromCryptoKeyVersionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.cryptoKeyVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchKeyRingFromCryptoKeyVersionName', () => { + const result = client.matchKeyRingFromCryptoKeyVersionName(fakePath); + assert.strictEqual(result, 'keyRingValue'); + assert( + (client.pathTemplates.cryptoKeyVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCryptoKeyFromCryptoKeyVersionName', () => { + const result = client.matchCryptoKeyFromCryptoKeyVersionName(fakePath); + assert.strictEqual(result, 'cryptoKeyValue'); + assert( + (client.pathTemplates.cryptoKeyVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCryptoKeyVersionFromCryptoKeyVersionName', () => { + const result = + client.matchCryptoKeyVersionFromCryptoKeyVersionName(fakePath); + assert.strictEqual(result, 'cryptoKeyVersionValue'); + assert( + (client.pathTemplates.cryptoKeyVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); });