Skip to content

Commit

Permalink
sdk: rolling update for 0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ucloud-bot committed Dec 14, 2023
1 parent 1b3ea64 commit 1189f59
Show file tree
Hide file tree
Showing 47 changed files with 2,378 additions and 58 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.3
0.3.4
70 changes: 70 additions & 0 deletions src/UGN/Apis/DescribeSimpleUGNRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php
/**
* Copyright 2023 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\UGN\Apis;

use UCloud\Core\Request\Request;

class DescribeSimpleUGNRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "DescribeSimpleUGN"]);
$this->markRequired("UGNID");
}



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

/**
* UGNID: UGN ID
*
* @return string|null
*/
public function getUGNID()
{
return $this->get("UGNID");
}

/**
* UGNID: UGN ID
*
* @param string $ugnid
*/
public function setUGNID($ugnid)
{
$this->set("UGNID", $ugnid);
}
}
144 changes: 144 additions & 0 deletions src/UGN/Apis/DescribeSimpleUGNResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<?php
/**
* Copyright 2023 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\UGN\Apis;

use UCloud\Core\Response\Response;
use UCloud\UGN\Models\UGN;
use UCloud\UGN\Models\SimpleNetwork;
use UCloud\UGN\Models\SimpleBwPackage;
use UCloud\UGN\Models\SimpleRoute;

class DescribeSimpleUGNResponse extends Response
{


/**
* UGN:
*
* @return UGN|null
*/
public function getUGN()
{
return new UGN($this->get("UGN"));
}

/**
* UGN:
*
* @param UGN $ugn
*/
public function setUGN(array $ugn)
{
$this->set("UGN", $ugn->getAll());
}

/**
* Networks:
*
* @return SimpleNetwork[]|null
*/
public function getNetworks()
{
$items = $this->get("Networks");
if ($items == null) {
return [];
}
$result = [];
foreach ($items as $i => $item) {
array_push($result, new SimpleNetwork($item));
}
return $result;
}

/**
* Networks:
*
* @param SimpleNetwork[] $networks
*/
public function setNetworks(array $networks)
{
$result = [];
foreach ($networks as $i => $item) {
array_push($result, $item->getAll());
}
return $result;
}

/**
* BwPackages:
*
* @return SimpleBwPackage[]|null
*/
public function getBwPackages()
{
$items = $this->get("BwPackages");
if ($items == null) {
return [];
}
$result = [];
foreach ($items as $i => $item) {
array_push($result, new SimpleBwPackage($item));
}
return $result;
}

/**
* BwPackages:
*
* @param SimpleBwPackage[] $bwPackages
*/
public function setBwPackages(array $bwPackages)
{
$result = [];
foreach ($bwPackages as $i => $item) {
array_push($result, $item->getAll());
}
return $result;
}

/**
* Routes:
*
* @return SimpleRoute[]|null
*/
public function getRoutes()
{
$items = $this->get("Routes");
if ($items == null) {
return [];
}
$result = [];
foreach ($items as $i => $item) {
array_push($result, new SimpleRoute($item));
}
return $result;
}

/**
* Routes:
*
* @param SimpleRoute[] $routes
*/
public function setRoutes(array $routes)
{
$result = [];
foreach ($routes as $i => $item) {
array_push($result, $item->getAll());
}
return $result;
}
}
111 changes: 111 additions & 0 deletions src/UGN/Apis/GetSimpleUGNBwPackagesRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?php
/**
* Copyright 2023 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\UGN\Apis;

use UCloud\Core\Request\Request;

class GetSimpleUGNBwPackagesRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "GetSimpleUGNBwPackages"]);
$this->markRequired("ProjectId");
$this->markRequired("UGNID");
}



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

/**
* UGNID:
*
* @return string|null
*/
public function getUGNID()
{
return $this->get("UGNID");
}

/**
* UGNID:
*
* @param string $ugnid
*/
public function setUGNID($ugnid)
{
$this->set("UGNID", $ugnid);
}

/**
* Offset: 偏移量,默认0
*
* @return integer|null
*/
public function getOffset()
{
return $this->get("Offset");
}

/**
* Offset: 偏移量,默认0
*
* @param int $offset
*/
public function setOffset($offset)
{
$this->set("Offset", $offset);
}

/**
* Limit: 分页大小,默认20
*
* @return integer|null
*/
public function getLimit()
{
return $this->get("Limit");
}

/**
* Limit: 分页大小,默认20
*
* @param int $limit
*/
public function setLimit($limit)
{
$this->set("Limit", $limit);
}
}
Loading

0 comments on commit 1189f59

Please sign in to comment.