Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/Container/Autopilot.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

class Autopilot extends \Google\Model
{
protected $clusterPolicyConfigType = ClusterPolicyConfig::class;
protected $clusterPolicyConfigDataType = '';
/**
* Enable Autopilot
*
Expand All @@ -30,6 +32,23 @@ class Autopilot extends \Google\Model
protected $workloadPolicyConfigType = WorkloadPolicyConfig::class;
protected $workloadPolicyConfigDataType = '';

/**
* ClusterPolicyConfig denotes cluster level policies that are enforced for
* the cluster.
*
* @param ClusterPolicyConfig $clusterPolicyConfig
*/
public function setClusterPolicyConfig(ClusterPolicyConfig $clusterPolicyConfig)
{
$this->clusterPolicyConfig = $clusterPolicyConfig;
}
/**
* @return ClusterPolicyConfig
*/
public function getClusterPolicyConfig()
{
return $this->clusterPolicyConfig;
}
/**
* Enable Autopilot
*
Expand Down
36 changes: 36 additions & 0 deletions src/Container/Cluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ class Cluster extends \Google\Collection
public $loggingService;
protected $maintenancePolicyType = MaintenancePolicy::class;
protected $maintenancePolicyDataType = '';
protected $managedMachineLearningDiagnosticsConfigType = ManagedMachineLearningDiagnosticsConfig::class;
protected $managedMachineLearningDiagnosticsConfigDataType = '';
protected $managedOpentelemetryConfigType = ManagedOpenTelemetryConfig::class;
protected $managedOpentelemetryConfigDataType = '';
protected $masterAuthType = MasterAuth::class;
Expand Down Expand Up @@ -375,6 +377,8 @@ class Cluster extends \Google\Collection
* @var bool
*/
public $satisfiesPzs;
protected $scheduleUpgradeConfigType = ScheduleUpgradeConfig::class;
protected $scheduleUpgradeConfigDataType = '';
protected $secretManagerConfigType = SecretManagerConfig::class;
protected $secretManagerConfigDataType = '';
protected $securityPostureConfigType = SecurityPostureConfig::class;
Expand Down Expand Up @@ -1196,6 +1200,22 @@ public function getMaintenancePolicy()
{
return $this->maintenancePolicy;
}
/**
* Configuration for Managed Machine Learning Diagnostics.
*
* @param ManagedMachineLearningDiagnosticsConfig $managedMachineLearningDiagnosticsConfig
*/
public function setManagedMachineLearningDiagnosticsConfig(ManagedMachineLearningDiagnosticsConfig $managedMachineLearningDiagnosticsConfig)
{
$this->managedMachineLearningDiagnosticsConfig = $managedMachineLearningDiagnosticsConfig;
}
/**
* @return ManagedMachineLearningDiagnosticsConfig
*/
public function getManagedMachineLearningDiagnosticsConfig()
{
return $this->managedMachineLearningDiagnosticsConfig;
}
/**
* Configuration for Managed OpenTelemetry pipeline.
*
Expand Down Expand Up @@ -1643,6 +1663,22 @@ public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Optional. Configuration for scheduled upgrades.
*
* @param ScheduleUpgradeConfig $scheduleUpgradeConfig
*/
public function setScheduleUpgradeConfig(ScheduleUpgradeConfig $scheduleUpgradeConfig)
{
$this->scheduleUpgradeConfig = $scheduleUpgradeConfig;
}
/**
* @return ScheduleUpgradeConfig
*/
public function getScheduleUpgradeConfig()
{
return $this->scheduleUpgradeConfig;
}
/**
* Secret CSI driver configuration.
*
Expand Down
118 changes: 118 additions & 0 deletions src/Container/ClusterPolicyConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

namespace Google\Service\Container;

class ClusterPolicyConfig extends \Google\Model
{
/**
* Denotes preventing standard node pools and requiring only autopilot node
* pools.
*
* @var bool
*/
public $noStandardNodePools;
/**
* Denotes preventing impersonation and CSRs for GKE System users.
*
* @var bool
*/
public $noSystemImpersonation;
/**
* Denotes that preventing creation and mutation of resources in GKE managed
* namespaces and cluster-scoped GKE managed resources .
*
* @var bool
*/
public $noSystemMutation;
/**
* Denotes preventing unsafe webhooks.
*
* @var bool
*/
public $noUnsafeWebhooks;

/**
* Denotes preventing standard node pools and requiring only autopilot node
* pools.
*
* @param bool $noStandardNodePools
*/
public function setNoStandardNodePools($noStandardNodePools)
{
$this->noStandardNodePools = $noStandardNodePools;
}
/**
* @return bool
*/
public function getNoStandardNodePools()
{
return $this->noStandardNodePools;
}
/**
* Denotes preventing impersonation and CSRs for GKE System users.
*
* @param bool $noSystemImpersonation
*/
public function setNoSystemImpersonation($noSystemImpersonation)
{
$this->noSystemImpersonation = $noSystemImpersonation;
}
/**
* @return bool
*/
public function getNoSystemImpersonation()
{
return $this->noSystemImpersonation;
}
/**
* Denotes that preventing creation and mutation of resources in GKE managed
* namespaces and cluster-scoped GKE managed resources .
*
* @param bool $noSystemMutation
*/
public function setNoSystemMutation($noSystemMutation)
{
$this->noSystemMutation = $noSystemMutation;
}
/**
* @return bool
*/
public function getNoSystemMutation()
{
return $this->noSystemMutation;
}
/**
* Denotes preventing unsafe webhooks.
*
* @param bool $noUnsafeWebhooks
*/
public function setNoUnsafeWebhooks($noUnsafeWebhooks)
{
$this->noUnsafeWebhooks = $noUnsafeWebhooks;
}
/**
* @return bool
*/
public function getNoUnsafeWebhooks()
{
return $this->noUnsafeWebhooks;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterPolicyConfig::class, 'Google_Service_Container_ClusterPolicyConfig');
36 changes: 36 additions & 0 deletions src/Container/ClusterUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class ClusterUpdate extends \Google\Collection
protected $desiredAuthenticatorGroupsConfigDataType = '';
protected $desiredAutoIpamConfigType = AutoIpamConfig::class;
protected $desiredAutoIpamConfigDataType = '';
protected $desiredAutopilotClusterPolicyConfigType = ClusterPolicyConfig::class;
protected $desiredAutopilotClusterPolicyConfigDataType = '';
protected $desiredAutopilotWorkloadPolicyConfigType = WorkloadPolicyConfig::class;
protected $desiredAutopilotWorkloadPolicyConfigDataType = '';
protected $desiredBinaryAuthorizationType = BinaryAuthorization::class;
Expand Down Expand Up @@ -210,6 +212,8 @@ class ClusterUpdate extends \Google\Collection
* @var string
*/
public $desiredLoggingService;
protected $desiredManagedMachineLearningDiagnosticsConfigType = ManagedMachineLearningDiagnosticsConfig::class;
protected $desiredManagedMachineLearningDiagnosticsConfigDataType = '';
protected $desiredManagedOpentelemetryConfigType = ManagedOpenTelemetryConfig::class;
protected $desiredManagedOpentelemetryConfigDataType = '';
protected $desiredMasterAuthorizedNetworksConfigType = MasterAuthorizedNetworksConfig::class;
Expand Down Expand Up @@ -441,6 +445,22 @@ public function getDesiredAutoIpamConfig()
{
return $this->desiredAutoIpamConfig;
}
/**
* The desired autopilot cluster policies that to be enforced in the cluster.
*
* @param ClusterPolicyConfig $desiredAutopilotClusterPolicyConfig
*/
public function setDesiredAutopilotClusterPolicyConfig(ClusterPolicyConfig $desiredAutopilotClusterPolicyConfig)
{
$this->desiredAutopilotClusterPolicyConfig = $desiredAutopilotClusterPolicyConfig;
}
/**
* @return ClusterPolicyConfig
*/
public function getDesiredAutopilotClusterPolicyConfig()
{
return $this->desiredAutopilotClusterPolicyConfig;
}
/**
* WorkloadPolicyConfig is the configuration related to GCW workload policy
*
Expand Down Expand Up @@ -956,6 +976,22 @@ public function getDesiredLoggingService()
{
return $this->desiredLoggingService;
}
/**
* The desired managed machine learning diagnostics configuration.
*
* @param ManagedMachineLearningDiagnosticsConfig $desiredManagedMachineLearningDiagnosticsConfig
*/
public function setDesiredManagedMachineLearningDiagnosticsConfig(ManagedMachineLearningDiagnosticsConfig $desiredManagedMachineLearningDiagnosticsConfig)
{
$this->desiredManagedMachineLearningDiagnosticsConfig = $desiredManagedMachineLearningDiagnosticsConfig;
}
/**
* @return ManagedMachineLearningDiagnosticsConfig
*/
public function getDesiredManagedMachineLearningDiagnosticsConfig()
{
return $this->desiredManagedMachineLearningDiagnosticsConfig;
}
/**
* The desired managed open telemetry configuration.
*
Expand Down
26 changes: 24 additions & 2 deletions src/Container/DatabaseEncryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ class DatabaseEncryption extends \Google\Collection
* De-crypting Secrets to plain text in etcd encountered an error.
*/
public const CURRENT_STATE_CURRENT_STATE_DECRYPTION_ERROR = 'CURRENT_STATE_DECRYPTION_ERROR';
/**
* Encryption of all objects in the storage is enabled. It does not guarantee
* that all objects in the storage are encrypted, but eventually they will be.
*/
public const CURRENT_STATE_CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ENABLED = 'CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ENABLED';
/**
* Enablement of the encryption of all objects in storage is pending.
*/
public const CURRENT_STATE_CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_PENDING = 'CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_PENDING';
/**
* Enabling encryption of all objects in storage encountered an error.
*/
public const CURRENT_STATE_CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ERROR = 'CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ERROR';
/**
* Should never be set
*/
Expand All @@ -63,6 +76,11 @@ class DatabaseEncryption extends \Google\Collection
* unrelated to Compute Engine level full disk encryption.
*/
public const STATE_DECRYPTED = 'DECRYPTED';
/**
* Encryption of all objects in the storage is enabled. There is no guarantee
* that all objects in the storage are encrypted, but eventually they will be.
*/
public const STATE_ALL_OBJECTS_ENCRYPTION_ENABLED = 'ALL_OBJECTS_ENCRYPTION_ENABLED';
protected $collection_key = 'lastOperationErrors';
/**
* Output only. The current state of etcd encryption.
Expand Down Expand Up @@ -99,7 +117,10 @@ class DatabaseEncryption extends \Google\Collection
* Accepted values: CURRENT_STATE_UNSPECIFIED, CURRENT_STATE_ENCRYPTED,
* CURRENT_STATE_DECRYPTED, CURRENT_STATE_ENCRYPTION_PENDING,
* CURRENT_STATE_ENCRYPTION_ERROR, CURRENT_STATE_DECRYPTION_PENDING,
* CURRENT_STATE_DECRYPTION_ERROR
* CURRENT_STATE_DECRYPTION_ERROR,
* CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ENABLED,
* CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_PENDING,
* CURRENT_STATE_ALL_OBJECTS_ENCRYPTION_ERROR
*
* @param self::CURRENT_STATE_* $currentState
*/
Expand Down Expand Up @@ -168,7 +189,8 @@ public function getLastOperationErrors()
/**
* The desired state of etcd encryption.
*
* Accepted values: UNKNOWN, ENCRYPTED, DECRYPTED
* Accepted values: UNKNOWN, ENCRYPTED, DECRYPTED,
* ALL_OBJECTS_ENCRYPTION_ENABLED
*
* @param self::STATE_* $state
*/
Expand Down
28 changes: 28 additions & 0 deletions src/Container/LustreCsiDriverConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@

class LustreCsiDriverConfig extends \Google\Model
{
/**
* When set to true, this disables multi-NIC support for the Lustre CSI
* driver. By default, GKE enables multi-NIC support, which allows the Lustre
* CSI driver to automatically detect and configure all suitable network
* interfaces on a node to maximize I/O performance for demanding workloads.
*
* @var bool
*/
public $disableMultiNic;
/**
* If set to true, the Lustre CSI driver will install Lustre kernel modules
* using port 6988. This serves as a workaround for a port conflict with the
Expand All @@ -40,6 +49,25 @@ class LustreCsiDriverConfig extends \Google\Model
*/
public $enabled;

/**
* When set to true, this disables multi-NIC support for the Lustre CSI
* driver. By default, GKE enables multi-NIC support, which allows the Lustre
* CSI driver to automatically detect and configure all suitable network
* interfaces on a node to maximize I/O performance for demanding workloads.
*
* @param bool $disableMultiNic
*/
public function setDisableMultiNic($disableMultiNic)
{
$this->disableMultiNic = $disableMultiNic;
}
/**
* @return bool
*/
public function getDisableMultiNic()
{
return $this->disableMultiNic;
}
/**
* If set to true, the Lustre CSI driver will install Lustre kernel modules
* using port 6988. This serves as a workaround for a port conflict with the
Expand Down
Loading
Loading