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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.49
0.3.50
21 changes: 21 additions & 0 deletions src/Sandbox/Apis/CreateSandboxSiteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function __construct()
$this->markRequired("APIKey");
$this->markRequired("KeyID");
$this->markRequired("AccessCode");
$this->markRequired("TemplateName");
}


Expand Down Expand Up @@ -173,6 +174,26 @@ public function setAccessCode($accessCode)
$this->set("AccessCode", $accessCode);
}

/**
* TemplateName: 站点空间空间模版,格式:site-nc-ng,n为偶数
*
* @return string|null
*/
public function getTemplateName()
{
return $this->get("TemplateName");
}

/**
* TemplateName: 站点空间空间模版,格式:site-nc-ng,n为偶数
*
* @param string $templateName
*/
public function setTemplateName($templateName)
{
$this->set("TemplateName", $templateName);
}

/**
* Envs: 环境变量,格式:["key=value"]
*
Expand Down
1 change: 1 addition & 0 deletions src/Sandbox/SandboxClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function checkSandboxCustomDomain(CheckSandboxCustomDomainRequest $reques
* "APIKey" => (string) 密钥
* "KeyID" => (string) 密钥ID
* "AccessCode" => (string) 访问码
* "TemplateName" => (string) 站点空间空间模版,格式:site-nc-ng,n为偶数
* "Envs" => (string) 环境变量,格式:["key=value"]
* ]
*
Expand Down
112 changes: 112 additions & 0 deletions src/UK8S/Apis/ModifyUK8SClusterNameRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?php
/**
* Copyright 2026 UCloud Technology Co., Ltd.
*
* 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 UCloud\UK8S\Apis;

use UCloud\Core\Request\Request;

class ModifyUK8SClusterNameRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "ModifyUK8SClusterName"]);
$this->markRequired("Region");
$this->markRequired("ClusterId");
$this->markRequired("ClusterName");
}



/**
* ProjectId: 项目ID
*
* @return string|null
*/
public function getProjectId()
{
return $this->get("ProjectId");
}

/**
* ProjectId: 项目ID
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->set("ProjectId", $projectId);
}

/**
* Region: 所在地域
*
* @return string|null
*/
public function getRegion()
{
return $this->get("Region");
}

/**
* Region: 所在地域
*
* @param string $region
*/
public function setRegion($region)
{
$this->set("Region", $region);
}

/**
* ClusterId: 集群ID
*
* @return string|null
*/
public function getClusterId()
{
return $this->get("ClusterId");
}

/**
* ClusterId: 集群ID
*
* @param string $clusterId
*/
public function setClusterId($clusterId)
{
$this->set("ClusterId", $clusterId);
}

/**
* ClusterName: 集群名称
*
* @return string|null
*/
public function getClusterName()
{
return $this->get("ClusterName");
}

/**
* ClusterName: 集群名称
*
* @param string $clusterName
*/
public function setClusterName($clusterName)
{
$this->set("ClusterName", $clusterName);
}
}
26 changes: 26 additions & 0 deletions src/UK8S/Apis/ModifyUK8SClusterNameResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Copyright 2026 UCloud Technology Co., Ltd.
*
* 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 UCloud\UK8S\Apis;

use UCloud\Core\Response\Response;

class ModifyUK8SClusterNameResponse extends Response
{



}
30 changes: 30 additions & 0 deletions src/UK8S/UK8SClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
use UCloud\UK8S\Apis\ListUK8SNodeGroupResponse;
use UCloud\UK8S\Apis\ListUK8SULSConfigRequest;
use UCloud\UK8S\Apis\ListUK8SULSConfigResponse;
use UCloud\UK8S\Apis\ModifyUK8SClusterNameRequest;
use UCloud\UK8S\Apis\ModifyUK8SClusterNameResponse;
use UCloud\UK8S\Apis\RemoveUK8SNodeGroupRequest;
use UCloud\UK8S\Apis\RemoveUK8SNodeGroupResponse;
use UCloud\UK8S\Apis\UpdateUK8SNodeGroupRequest;
Expand Down Expand Up @@ -1403,6 +1405,34 @@ public function listUK8SULSConfig(ListUK8SULSConfigRequest $request = null)
return new ListUK8SULSConfigResponse($resp->toArray(), $resp->getRequestId());
}

/**
* ModifyUK8SClusterName - 修改k8s集群名称
*
* See also: https://docs.ucloud.cn/api/uk8s-api/modify_uk8s_cluster_name
*
* Arguments:
*
* $args = [
* "ProjectId" => (string) 项目ID
* "Region" => (string) 所在地域
* "ClusterId" => (string) 集群ID
* "ClusterName" => (string) 集群名称
* ]
*
* Outputs:
*
* $outputs = [
* ]
*
* @return ModifyUK8SClusterNameResponse
* @throws UCloudException
*/
public function modifyUK8SClusterName(ModifyUK8SClusterNameRequest $request = null)
{
$resp = $this->invoke($request);
return new ModifyUK8SClusterNameResponse($resp->toArray(), $resp->getRequestId());
}

/**
* RemoveUK8SNodeGroup - 删除UK8S节点池
*
Expand Down
2 changes: 1 addition & 1 deletion src/UMem/Apis/CheckUDredisSpaceAllowanceRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/UMem/Apis/CheckUDredisSpaceAllowanceResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/UMem/Apis/CheckURedisAllowanceRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/UMem/Apis/CheckURedisAllowanceResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading