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.19
0.3.20
82 changes: 40 additions & 42 deletions src/UKafka/Apis/CreateUKafkaInstanceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public function __construct()
$this->markRequired("Region");
$this->markRequired("Zone");
$this->markRequired("FrameworkVersion");
$this->markRequired("VPCId");
$this->markRequired("SubnetId");
$this->markRequired("ChargeType");
$this->markRequired("NodeType");
$this->markRequired("DiskSize");
Expand Down Expand Up @@ -116,46 +114,6 @@ public function setFrameworkVersion($frameworkVersion)
$this->set("FrameworkVersion", $frameworkVersion);
}

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

/**
* VPCId: VPCID
*
* @param string $vpcId
*/
public function setVPCId($vpcId)
{
$this->set("VPCId", $vpcId);
}

/**
* SubnetId: 子网 ID
*
* @return string|null
*/
public function getSubnetId()
{
return $this->get("SubnetId");
}

/**
* SubnetId: 子网 ID
*
* @param string $subnetId
*/
public function setSubnetId($subnetId)
{
$this->set("SubnetId", $subnetId);
}

/**
* ChargeType: 付费方式
*
Expand Down Expand Up @@ -236,6 +194,46 @@ public function setInstanceName($instanceName)
$this->set("InstanceName", $instanceName);
}

/**
* VPCId: VPCID,不填时为默认VPCID
*
* @return string|null
*/
public function getVPCId()
{
return $this->get("VPCId");
}

/**
* VPCId: VPCID,不填时为默认VPCID
*
* @param string $vpcId
*/
public function setVPCId($vpcId)
{
$this->set("VPCId", $vpcId);
}

/**
* SubnetId: 子网 ID,不填时为默认子网 ID
*
* @return string|null
*/
public function getSubnetId()
{
return $this->get("SubnetId");
}

/**
* SubnetId: 子网 ID,不填时为默认子网 ID
*
* @param string $subnetId
*/
public function setSubnetId($subnetId)
{
$this->set("SubnetId", $subnetId);
}

/**
* BusinessId: 业务组,默认Default
*
Expand Down
4 changes: 2 additions & 2 deletions src/UKafka/UKafkaClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ public function addUKafkaInstanceNode(AddUKafkaInstanceNodeRequest $request = nu
* "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
* "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
* "FrameworkVersion" => (string) kafka版本,支持的版本可通过ListUKafkaFrameworkVersion 接口返回字段的FrameworkVersions获取
* "VPCId" => (string) VPCID
* "SubnetId" => (string) 子网 ID
* "ChargeType" => (string) 付费方式
* "NodeType" => (string) 机型,支持的机型可通过GetUKafkaNodeType 接口返回的InstanceTypeSet[].InstanceTypeName
* "DiskSize" => (integer) 数据盘大小。支持范围根据GetUKafkaNodeType 接口返回的InstanceTypeSet[].MaxDiskSize 和MinDiskSize获取
* "InstanceName" => (string) 实例名,可自定义。只能包含中英文、数字以及- _ .
* "VPCId" => (string) VPCID,不填时为默认VPCID
* "SubnetId" => (string) 子网 ID,不填时为默认子网 ID
* "BusinessId" => (string) 业务组,默认Default
* "Quantity" => (string) 实例数量,默认 1
* "NodeCount" => (integer) 实例节点数量。默认 3 节点
Expand Down
Loading