diff --git a/GkeMultiCloud/metadata/V1/AzureService.php b/GkeMultiCloud/metadata/V1/AzureService.php index 52434bb070ff..b6b507c9edfc 100644 --- a/GkeMultiCloud/metadata/V1/AzureService.php +++ b/GkeMultiCloud/metadata/V1/AzureService.php @@ -26,7 +26,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( ' -�D +�D 1google/cloud/gkemulticloud/v1/azure_service.protogoogle.cloud.gkemulticloud.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto3google/cloud/gkemulticloud/v1/azure_resources.proto4google/cloud/gkemulticloud/v1/common_resources.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"� CreateAzureClusterRequestA parent ( B1�A�A+)gkemulticloud.googleapis.com/AzureClusterG @@ -47,13 +47,14 @@ public static function initOnce() { page_token ( "y ListAzureClustersResponseC azure_clusters ( 2+.google.cloud.gkemulticloud.v1.AzureCluster -next_page_token ( "� +next_page_token ( "� DeleteAzureClusterRequest? name ( B1�A�A+ )gkemulticloud.googleapis.com/AzureCluster allow_missing ( validate_only ( -etag ( "� +etag (  + ignore_errors (B�A"� CreateAzureNodePoolRequestB parent ( B2�A�A,*gkemulticloud.googleapis.com/AzureNodePoolJ azure_node_pool ( 2,.google.cloud.gkemulticloud.v1.AzureNodePoolB�A @@ -73,13 +74,14 @@ public static function initOnce() { page_token ( "} ListAzureNodePoolsResponseF azure_node_pools ( 2,.google.cloud.gkemulticloud.v1.AzureNodePool -next_page_token ( "� +next_page_token ( "� DeleteAzureNodePoolRequest@ name ( B2�A�A, *gkemulticloud.googleapis.com/AzureNodePool validate_only ( allow_missing ( -etag ( "g +etag (  + ignore_errors (B�A"g GetAzureOpenIdConfigRequestH azure_cluster ( B1�A�A+ )gkemulticloud.googleapis.com/AzureCluster"f diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/create_aws_node_pool.php b/GkeMultiCloud/samples/V1/AwsClustersClient/create_aws_node_pool.php index d51dc8eedd95..ac5ab532d32c 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/create_aws_node_pool.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/create_aws_node_pool.php @@ -57,8 +57,8 @@ * You can list all supported versions on a given Google Cloud region by * calling * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the - * pool. + * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to + * nodes in the pool. * @param string $awsNodePoolConfigConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or * equal to 1 and less than or equal to max_node_count. diff --git a/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_node_pool.php b/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_node_pool.php index 1c536991a600..d76e48ceb750 100644 --- a/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_node_pool.php +++ b/GkeMultiCloud/samples/V1/AwsClustersClient/update_aws_node_pool.php @@ -44,8 +44,8 @@ * You can list all supported versions on a given Google Cloud region by * calling * [GetAwsServerConfig][google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig]. - * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM role assigned to nodes in the - * pool. + * @param string $awsNodePoolConfigIamInstanceProfile The name or ARN of the AWS IAM instance profile to assign to + * nodes in the pool. * @param string $awsNodePoolConfigConfigEncryptionKmsKeyArn The ARN of the AWS KMS key used to encrypt user data. * @param int $awsNodePoolAutoscalingMinNodeCount Minimum number of nodes in the node pool. Must be greater than or * equal to 1 and less than or equal to max_node_count. diff --git a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_json_web_keys.php b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_json_web_keys.php index 929437f2592a..589225420c35 100644 --- a/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_json_web_keys.php +++ b/GkeMultiCloud/samples/V1/AzureClustersClient/get_azure_json_web_keys.php @@ -34,7 +34,7 @@ * * @param string $formattedAzureCluster The AzureCluster, which owns the JsonWebKeys. * Format: - * projects//locations//azureClusters/ + * `projects//locations//azureClusters/` * Please see {@see AzureClustersClient::azureClusterName()} for help formatting this field. */ function get_azure_json_web_keys_sample(string $formattedAzureCluster): void diff --git a/GkeMultiCloud/src/V1/AwsNodeConfig.php b/GkeMultiCloud/src/V1/AwsNodeConfig.php index 2f63e3222de7..a27af8a5a10e 100644 --- a/GkeMultiCloud/src/V1/AwsNodeConfig.php +++ b/GkeMultiCloud/src/V1/AwsNodeConfig.php @@ -56,8 +56,8 @@ class AwsNodeConfig extends \Google\Protobuf\Internal\Message */ private $tags; /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. + * Required. The name or ARN of the AWS IAM instance profile to assign to + * nodes in the pool. * * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; */ @@ -148,8 +148,8 @@ class AwsNodeConfig extends \Google\Protobuf\Internal\Message * (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to * 255 Unicode characters. * @type string $iam_instance_profile - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. + * Required. The name or ARN of the AWS IAM instance profile to assign to + * nodes in the pool. * @type string $image_type * Optional. The OS image type to use on node pool instances. * Can be unspecified, or have a value of `ubuntu`. @@ -344,8 +344,8 @@ public function setTags($var) } /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. + * Required. The name or ARN of the AWS IAM instance profile to assign to + * nodes in the pool. * * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; * @return string @@ -356,8 +356,8 @@ public function getIamInstanceProfile() } /** - * Required. The name or ARN of the AWS IAM role assigned to nodes in the - * pool. + * Required. The name or ARN of the AWS IAM instance profile to assign to + * nodes in the pool. * * Generated from protobuf field string iam_instance_profile = 6 [(.google.api.field_behavior) = REQUIRED]; * @param string $var diff --git a/GkeMultiCloud/src/V1/DeleteAzureClusterRequest.php b/GkeMultiCloud/src/V1/DeleteAzureClusterRequest.php index eff1d4f4c3d4..7db351b4cec9 100644 --- a/GkeMultiCloud/src/V1/DeleteAzureClusterRequest.php +++ b/GkeMultiCloud/src/V1/DeleteAzureClusterRequest.php @@ -52,6 +52,15 @@ class DeleteAzureClusterRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field string etag = 4; */ private $etag = ''; + /** + * Optional. If set to true, the deletion of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will + * succeed even if errors occur during deleting in cluster resources. Using + * this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $ignore_errors = false; /** * @param string $name Required. The resource name the @@ -101,6 +110,11 @@ public static function build(string $name): self * Allows clients to perform deletions through optimistic concurrency control. * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. + * @type bool $ignore_errors + * Optional. If set to true, the deletion of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will + * succeed even if errors occur during deleting in cluster resources. Using + * this parameter may result in orphaned resources in the cluster. * } */ public function __construct($data = NULL) { @@ -238,5 +252,37 @@ public function setEtag($var) return $this; } + /** + * Optional. If set to true, the deletion of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will + * succeed even if errors occur during deleting in cluster resources. Using + * this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIgnoreErrors() + { + return $this->ignore_errors; + } + + /** + * Optional. If set to true, the deletion of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will + * succeed even if errors occur during deleting in cluster resources. Using + * this parameter may result in orphaned resources in the cluster. + * + * Generated from protobuf field bool ignore_errors = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIgnoreErrors($var) + { + GPBUtil::checkBool($var); + $this->ignore_errors = $var; + + return $this; + } + } diff --git a/GkeMultiCloud/src/V1/DeleteAzureNodePoolRequest.php b/GkeMultiCloud/src/V1/DeleteAzureNodePoolRequest.php index bfe7dcb68d19..ad078d7dad23 100644 --- a/GkeMultiCloud/src/V1/DeleteAzureNodePoolRequest.php +++ b/GkeMultiCloud/src/V1/DeleteAzureNodePoolRequest.php @@ -54,6 +54,15 @@ class DeleteAzureNodePoolRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field string etag = 4; */ private $etag = ''; + /** + * Optional. If set to true, the deletion of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource will + * succeed even if errors occur during deleting in node pool resources. Using + * this parameter may result in orphaned resources in the node pool. + * + * Generated from protobuf field bool ignore_errors = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $ignore_errors = false; /** * @param string $name Required. The resource name the @@ -105,6 +114,11 @@ public static function build(string $name): self * Allows clients to perform deletions through optimistic concurrency control. * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. + * @type bool $ignore_errors + * Optional. If set to true, the deletion of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource will + * succeed even if errors occur during deleting in node pool resources. Using + * this parameter may result in orphaned resources in the node pool. * } */ public function __construct($data = NULL) { @@ -246,5 +260,37 @@ public function setEtag($var) return $this; } + /** + * Optional. If set to true, the deletion of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource will + * succeed even if errors occur during deleting in node pool resources. Using + * this parameter may result in orphaned resources in the node pool. + * + * Generated from protobuf field bool ignore_errors = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIgnoreErrors() + { + return $this->ignore_errors; + } + + /** + * Optional. If set to true, the deletion of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource will + * succeed even if errors occur during deleting in node pool resources. Using + * this parameter may result in orphaned resources in the node pool. + * + * Generated from protobuf field bool ignore_errors = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIgnoreErrors($var) + { + GPBUtil::checkBool($var); + $this->ignore_errors = $var; + + return $this; + } + } diff --git a/GkeMultiCloud/src/V1/Gapic/AzureClustersGapicClient.php b/GkeMultiCloud/src/V1/Gapic/AzureClustersGapicClient.php index a66f1fc6aa42..2ae69c834eee 100644 --- a/GkeMultiCloud/src/V1/Gapic/AzureClustersGapicClient.php +++ b/GkeMultiCloud/src/V1/Gapic/AzureClustersGapicClient.php @@ -1011,6 +1011,11 @@ public function deleteAzureClient($name, array $optionalArgs = []) * * If the provided etag does not match the current etag of the cluster, * the request will fail and an ABORTED error will be returned. + * @type bool $ignoreErrors + * Optional. If set to true, the deletion of + * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource will + * succeed even if errors occur during deleting in cluster resources. Using + * this parameter may result in orphaned resources in the cluster. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on @@ -1039,6 +1044,10 @@ public function deleteAzureCluster($name, array $optionalArgs = []) $request->setEtag($optionalArgs['etag']); } + if (isset($optionalArgs['ignoreErrors'])) { + $request->setIgnoreErrors($optionalArgs['ignoreErrors']); + } + $requestParams = new RequestParamsHeaderDescriptor( $requestParamHeaders ); @@ -1125,6 +1134,11 @@ public function deleteAzureCluster($name, array $optionalArgs = []) * * If the provided ETag does not match the current etag of the node pool, * the request will fail and an ABORTED error will be returned. + * @type bool $ignoreErrors + * Optional. If set to true, the deletion of + * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource will + * succeed even if errors occur during deleting in node pool resources. Using + * this parameter may result in orphaned resources in the node pool. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on @@ -1153,6 +1167,10 @@ public function deleteAzureNodePool($name, array $optionalArgs = []) $request->setEtag($optionalArgs['etag']); } + if (isset($optionalArgs['ignoreErrors'])) { + $request->setIgnoreErrors($optionalArgs['ignoreErrors']); + } + $requestParams = new RequestParamsHeaderDescriptor( $requestParamHeaders ); @@ -1458,7 +1476,7 @@ public function getAzureCluster($name, array $optionalArgs = []) * * @param string $azureCluster Required. The AzureCluster, which owns the JsonWebKeys. * Format: - * projects//locations//azureClusters/ + * `projects//locations//azureClusters/` * @param array $optionalArgs { * Optional. * diff --git a/GkeMultiCloud/src/V1/GetAzureJsonWebKeysRequest.php b/GkeMultiCloud/src/V1/GetAzureJsonWebKeysRequest.php index 8e6ec041d75d..175b70d5b9a3 100644 --- a/GkeMultiCloud/src/V1/GetAzureJsonWebKeysRequest.php +++ b/GkeMultiCloud/src/V1/GetAzureJsonWebKeysRequest.php @@ -21,7 +21,7 @@ class GetAzureJsonWebKeysRequest extends \Google\Protobuf\Internal\Message /** * Required. The AzureCluster, which owns the JsonWebKeys. * Format: - * projects//locations//azureClusters/ + * `projects//locations//azureClusters/` * * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -30,7 +30,7 @@ class GetAzureJsonWebKeysRequest extends \Google\Protobuf\Internal\Message /** * @param string $azureCluster Required. The AzureCluster, which owns the JsonWebKeys. * Format: - * projects//locations//azureClusters/ + * `projects//locations//azureClusters/` * Please see {@see AzureClustersClient::azureClusterName()} for help formatting this field. * * @return \Google\Cloud\GkeMultiCloud\V1\GetAzureJsonWebKeysRequest @@ -52,7 +52,7 @@ public static function build(string $azureCluster): self * @type string $azure_cluster * Required. The AzureCluster, which owns the JsonWebKeys. * Format: - * projects//locations//azureClusters/ + * `projects//locations//azureClusters/` * } */ public function __construct($data = NULL) { @@ -63,7 +63,7 @@ public function __construct($data = NULL) { /** * Required. The AzureCluster, which owns the JsonWebKeys. * Format: - * projects//locations//azureClusters/ + * `projects//locations//azureClusters/` * * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -76,7 +76,7 @@ public function getAzureCluster() /** * Required. The AzureCluster, which owns the JsonWebKeys. * Format: - * projects//locations//azureClusters/ + * `projects//locations//azureClusters/` * * Generated from protobuf field string azure_cluster = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var