Skip to content
Closed
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.27
0.3.28
111 changes: 111 additions & 0 deletions src/UKMS/Apis/CancelKeyDeletionRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?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\UKMS\Apis;

use UCloud\Core\Request\Request;

class CancelKeyDeletionRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "CancelKeyDeletion"]);
$this->markRequired("Region");
$this->markRequired("KeyId");
}



/**
* Region: 地域。参见地域和可用区列表。
*
* @return string|null
*/
public function getRegion()
{
return $this->get("Region");
}

/**
* Region: 地域。参见地域和可用区列表。
*
* @param string $region
*/
public function setRegion($region)
{
$this->set("Region", $region);
}

/**
* 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);
}

/**
* KeyId: 密钥 ID。
*
* @return string|null
*/
public function getKeyId()
{
return $this->get("KeyId");
}

/**
* KeyId: 密钥 ID。
*
* @param string $keyId
*/
public function setKeyId($keyId)
{
$this->set("KeyId", $keyId);
}

/**
* ResourceId: UKMS 实例资源 ID。
*
* @return string|null
*/
public function getResourceId()
{
return $this->get("ResourceId");
}

/**
* ResourceId: UKMS 实例资源 ID。
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->set("ResourceId", $resourceId);
}
}
26 changes: 26 additions & 0 deletions src/UKMS/Apis/CancelKeyDeletionResponse.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\UKMS\Apis;

use UCloud\Core\Response\Response;

class CancelKeyDeletionResponse extends Response
{



}
90 changes: 90 additions & 0 deletions src/UKMS/Apis/CancelScheduleKeyDeletionRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?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\UKMS\Apis;

use UCloud\Core\Request\Request;

class CancelScheduleKeyDeletionRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "CancelScheduleKeyDeletion"]);
$this->markRequired("KeyId");
}



/**
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
*
* @return string|null
*/
public function getProjectId()
{
return $this->get("ProjectId");
}

/**
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->set("ProjectId", $projectId);
}

/**
* KeyId: 需要查看的主密钥对应的 KeyId
*
* @return string|null
*/
public function getKeyId()
{
return $this->get("KeyId");
}

/**
* KeyId: 需要查看的主密钥对应的 KeyId
*
* @param string $keyId
*/
public function setKeyId($keyId)
{
$this->set("KeyId", $keyId);
}

/**
* ResourceId: 资源id
*
* @return string|null
*/
public function getResourceId()
{
return $this->get("ResourceId");
}

/**
* ResourceId: 资源id
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->set("ResourceId", $resourceId);
}
}
26 changes: 26 additions & 0 deletions src/UKMS/Apis/CancelScheduleKeyDeletionResponse.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\UKMS\Apis;

use UCloud\Core\Response\Response;

class CancelScheduleKeyDeletionResponse extends Response
{



}
132 changes: 132 additions & 0 deletions src/UKMS/Apis/CreateAliasRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?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\UKMS\Apis;

use UCloud\Core\Request\Request;

class CreateAliasRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "CreateAlias"]);
$this->markRequired("Region");
$this->markRequired("AliasName");
$this->markRequired("KeyId");
}



/**
* Region: 地域。参见地域和可用区列表。
*
* @return string|null
*/
public function getRegion()
{
return $this->get("Region");
}

/**
* Region: 地域。参见地域和可用区列表。
*
* @param string $region
*/
public function setRegion($region)
{
$this->set("Region", $region);
}

/**
* 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);
}

/**
* AliasName: 密钥别名,格式为 alias/name。
*
* @return string|null
*/
public function getAliasName()
{
return $this->get("AliasName");
}

/**
* AliasName: 密钥别名,格式为 alias/name。
*
* @param string $aliasName
*/
public function setAliasName($aliasName)
{
$this->set("AliasName", $aliasName);
}

/**
* KeyId: 密钥 ID、ARN 或别名。
*
* @return string|null
*/
public function getKeyId()
{
return $this->get("KeyId");
}

/**
* KeyId: 密钥 ID、ARN 或别名。
*
* @param string $keyId
*/
public function setKeyId($keyId)
{
$this->set("KeyId", $keyId);
}

/**
* ResourceId: UKMS 实例资源 ID。
*
* @return string|null
*/
public function getResourceId()
{
return $this->get("ResourceId");
}

/**
* ResourceId: UKMS 实例资源 ID。
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->set("ResourceId", $resourceId);
}
}
Loading
Loading