Skip to content

Commit

Permalink
sdk: add UPhone apis (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat authored Apr 28, 2022
1 parent 015b684 commit 8e4ff34
Show file tree
Hide file tree
Showing 96 changed files with 11,071 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ gen:
--only "UFile" \
--only "USMS" \
--only "UEC" \
--only "UPhone" \
--public \
-s $(HOME)/.oas/vcs/git.ucloudadmin.com/apispec/apispec/specification \
$(HOME)/.oas/vcs/git.ucloudadmin.com/apispec/template-opensdk-php .
90 changes: 90 additions & 0 deletions src/UPhone/Apis/CreateUPhoneAppRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?php
/**
* Copyright 2022 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\UPhone\Apis;

use UCloud\Core\Request\Request;

class CreateUPhoneAppRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "CreateUPhoneApp"]);
$this->markRequired("Name");
}



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

/**
* Name: 应用名称。
*
* @return string|null
*/
public function getName()
{
return $this->get("Name");
}

/**
* Name: 应用名称。
*
* @param string $name
*/
public function setName($name)
{
$this->set("Name", $name);
}

/**
* Description: 应用描述。
*
* @return string|null
*/
public function getDescription()
{
return $this->get("Description");
}

/**
* Description: 应用描述。
*
* @param string $description
*/
public function setDescription($description)
{
$this->set("Description", $description);
}
}
44 changes: 44 additions & 0 deletions src/UPhone/Apis/CreateUPhoneAppResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* Copyright 2022 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\UPhone\Apis;

use UCloud\Core\Response\Response;

class CreateUPhoneAppResponse extends Response
{


/**
* AppId: 应用的唯一标识ID
*
* @return string|null
*/
public function getAppId()
{
return $this->get("AppId");
}

/**
* AppId: 应用的唯一标识ID
*
* @param string $appId
*/
public function setAppId($appId)
{
$this->set("AppId", $appId);
}
}
132 changes: 132 additions & 0 deletions src/UPhone/Apis/CreateUPhoneAppVersionRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?php
/**
* Copyright 2022 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\UPhone\Apis;

use UCloud\Core\Request\Request;

class CreateUPhoneAppVersionRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "CreateUPhoneAppVersion"]);
$this->markRequired("Name");
$this->markRequired("AppId");
$this->markRequired("URL");
}



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

/**
* Name: 应用版本名称,最大字符长度为255。
*
* @return string|null
*/
public function getName()
{
return $this->get("Name");
}

/**
* Name: 应用版本名称,最大字符长度为255。
*
* @param string $name
*/
public function setName($name)
{
$this->set("Name", $name);
}

/**
* AppId: 应用的唯一标识ID。
*
* @return string|null
*/
public function getAppId()
{
return $this->get("AppId");
}

/**
* AppId: 应用的唯一标识ID。
*
* @param string $appId
*/
public function setAppId($appId)
{
$this->set("AppId", $appId);
}

/**
* URL: 应用版本相关的Apk文件存放的公网URL地址。
*
* @return string|null
*/
public function getURL()
{
return $this->get("URL");
}

/**
* URL: 应用版本相关的Apk文件存放的公网URL地址。
*
* @param string $url
*/
public function setURL($url)
{
$this->set("URL", $url);
}

/**
* Description: 应用版本描述。
*
* @return string|null
*/
public function getDescription()
{
return $this->get("Description");
}

/**
* Description: 应用版本描述。
*
* @param string $description
*/
public function setDescription($description)
{
$this->set("Description", $description);
}
}
44 changes: 44 additions & 0 deletions src/UPhone/Apis/CreateUPhoneAppVersionResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* Copyright 2022 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\UPhone\Apis;

use UCloud\Core\Response\Response;

class CreateUPhoneAppVersionResponse extends Response
{


/**
* AppVersionId: 应用版本的唯一标识ID
*
* @return string|null
*/
public function getAppVersionId()
{
return $this->get("AppVersionId");
}

/**
* AppVersionId: 应用版本的唯一标识ID
*
* @param string $appVersionId
*/
public function setAppVersionId($appVersionId)
{
$this->set("AppVersionId", $appVersionId);
}
}
Loading

0 comments on commit 8e4ff34

Please sign in to comment.