Skip to content

Commit

Permalink
Supported ecsDemand CreateDemand, ModifyDemand, DeleteDemand API.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 20, 2019
1 parent 45509f8 commit 27f6ded
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## 1.7.167 - 2019-11-20
- Supported ecsDemand CreateDemand, ModifyDemand, DeleteDemand API.
- Modify ecsDemand DescribesDemands API.


## 1.7.166 - 2019-11-20
- Generated 2019-01-01 for `HBase`.

Expand Down
164 changes: 164 additions & 0 deletions src/Ecs/V20140526/EcsApiResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* @method CreateAutoProvisioningGroup createAutoProvisioningGroup(array $options = [])
* @method CreateAutoSnapshotPolicy createAutoSnapshotPolicy(array $options = [])
* @method CreateCommand createCommand(array $options = [])
* @method CreateDemand createDemand(array $options = [])
* @method CreateDeploymentSet createDeploymentSet(array $options = [])
* @method CreateDisk createDisk(array $options = [])
* @method CreateForwardEntry createForwardEntry(array $options = [])
Expand Down Expand Up @@ -63,6 +64,7 @@
* @method DeleteAutoSnapshotPolicy deleteAutoSnapshotPolicy(array $options = [])
* @method DeleteBandwidthPackage deleteBandwidthPackage(array $options = [])
* @method DeleteCommand deleteCommand(array $options = [])
* @method DeleteDemand deleteDemand(array $options = [])
* @method DeleteDeploymentSet deleteDeploymentSet(array $options = [])
* @method DeleteDisk deleteDisk(array $options = [])
* @method DeleteForwardEntry deleteForwardEntry(array $options = [])
Expand Down Expand Up @@ -201,6 +203,7 @@
* @method ModifyDedicatedHostAttribute modifyDedicatedHostAttribute(array $options = [])
* @method ModifyDedicatedHostAutoReleaseTime modifyDedicatedHostAutoReleaseTime(array $options = [])
* @method ModifyDedicatedHostAutoRenewAttribute modifyDedicatedHostAutoRenewAttribute(array $options = [])
* @method ModifyDemand modifyDemand(array $options = [])
* @method ModifyDeploymentSetAttribute modifyDeploymentSetAttribute(array $options = [])
* @method ModifyDiskAttribute modifyDiskAttribute(array $options = [])
* @method ModifyDiskChargeType modifyDiskChargeType(array $options = [])
Expand Down Expand Up @@ -1183,6 +1186,42 @@ class CreateCommand extends Rpc
{
}

/**
* @method string getResourceOwnerId()
* @method $this withResourceOwnerId($value)
* @method string getClientToken()
* @method $this withClientToken($value)
* @method string getStartTime()
* @method $this withStartTime($value)
* @method string getDemandDescription()
* @method $this withDemandDescription($value)
* @method string getInstanceType()
* @method $this withInstanceType($value)
* @method string getInstanceChargeType()
* @method $this withInstanceChargeType($value)
* @method string getDemandName()
* @method $this withDemandName($value)
* @method string getAmount()
* @method $this withAmount($value)
* @method string getPeriod()
* @method $this withPeriod($value)
* @method string getResourceOwnerAccount()
* @method $this withResourceOwnerAccount($value)
* @method string getOwnerAccount()
* @method $this withOwnerAccount($value)
* @method string getEndTime()
* @method $this withEndTime($value)
* @method string getOwnerId()
* @method $this withOwnerId($value)
* @method string getPeriodUnit()
* @method $this withPeriodUnit($value)
* @method string getZoneId()
* @method $this withZoneId($value)
*/
class CreateDemand extends Rpc
{
}

/**
* @method string getResourceOwnerId()
* @method $this withResourceOwnerId($value)
Expand Down Expand Up @@ -2700,6 +2739,26 @@ class DeleteCommand extends Rpc
{
}

/**
* @method string getReason()
* @method $this withReason($value)
* @method string getResourceOwnerId()
* @method $this withResourceOwnerId($value)
* @method string getClientToken()
* @method $this withClientToken($value)
* @method string getResourceOwnerAccount()
* @method $this withResourceOwnerAccount($value)
* @method string getOwnerAccount()
* @method $this withOwnerAccount($value)
* @method string getOwnerId()
* @method $this withOwnerId($value)
* @method string getDemandId()
* @method $this withDemandId($value)
*/
class DeleteDemand extends Rpc
{
}

/**
* @method string getResourceOwnerId()
* @method $this withResourceOwnerId($value)
Expand Down Expand Up @@ -3628,8 +3687,12 @@ class DescribeDedicatedHostTypes extends Rpc
* @method string getOwnerId()
* @method $this withOwnerId($value)
* @method array getDemandStatus()
* @method string getDemandId()
* @method $this withDemandId($value)
* @method string getZoneId()
* @method $this withZoneId($value)
* @method string getDemandType()
* @method $this withDemandType($value)
*/
class DescribeDemands extends Rpc
{
Expand Down Expand Up @@ -5672,6 +5735,8 @@ public function withSystemDiskSize($value)
* @method $this withSpotStrategy($value)
* @method string getPriorityStrategy()
* @method $this withPriorityStrategy($value)
* @method string getInstanceFamilyLevel()
* @method $this withInstanceFamilyLevel($value)
* @method string getZoneId()
* @method $this withZoneId($value)
*/
Expand Down Expand Up @@ -7085,6 +7150,7 @@ class LeaveSecurityGroup extends Rpc
* @method $this withOwnerAccount($value)
* @method string getOwnerId()
* @method $this withOwnerId($value)
* @method array getTagFilter()
* @method string getResourceType()
* @method $this withResourceType($value)
*/
Expand Down Expand Up @@ -7121,6 +7187,24 @@ public function withResourceId(array $resourceId)

return $this;
}

/**
* @param array $tagFilter
*
* @return $this
*/
public function withTagFilter(array $tagFilter)
{
$this->data['TagFilter'] = $tagFilter;
foreach ($tagFilter as $depth1 => $depth1Value) {
$this->options['query']['TagFilter.' . ($depth1 + 1) . '.TagKey'] = $depth1Value['TagKey'];
foreach ($depth1Value['TagValues'] as $i => $iValue) {
$this->options['query']['TagFilter.' . ($depth1 + 1) . '.TagValues.' . ($i + 1)] = $iValue;
}
}

return $this;
}
}

/**
Expand Down Expand Up @@ -7405,6 +7489,44 @@ class ModifyDedicatedHostAutoRenewAttribute extends Rpc
{
}

/**
* @method string getResourceOwnerId()
* @method $this withResourceOwnerId($value)
* @method string getClientToken()
* @method $this withClientToken($value)
* @method string getStartTime()
* @method $this withStartTime($value)
* @method string getDemandDescription()
* @method $this withDemandDescription($value)
* @method string getInstanceType()
* @method $this withInstanceType($value)
* @method string getInstanceChargeType()
* @method $this withInstanceChargeType($value)
* @method string getDemandName()
* @method $this withDemandName($value)
* @method string getAmount()
* @method $this withAmount($value)
* @method string getPeriod()
* @method $this withPeriod($value)
* @method string getResourceOwnerAccount()
* @method $this withResourceOwnerAccount($value)
* @method string getOwnerAccount()
* @method $this withOwnerAccount($value)
* @method string getEndTime()
* @method $this withEndTime($value)
* @method string getOwnerId()
* @method $this withOwnerId($value)
* @method string getPeriodUnit()
* @method $this withPeriodUnit($value)
* @method string getDemandId()
* @method $this withDemandId($value)
* @method string getZoneId()
* @method $this withZoneId($value)
*/
class ModifyDemand extends Rpc
{
}

/**
* @method string getResourceOwnerId()
* @method $this withResourceOwnerId($value)
Expand Down Expand Up @@ -9215,6 +9337,7 @@ public function withInstanceId(array $instanceId)
* @method string getSystemDiskAutoSnapshotPolicyId()
* @method string getAutoRenewPeriod()
* @method $this withAutoRenewPeriod($value)
* @method string getCpuOptionsCore()
* @method string getPeriod()
* @method $this withPeriod($value)
* @method string getDryRun()
Expand All @@ -9223,6 +9346,7 @@ public function withInstanceId(array $instanceId)
* @method $this withLaunchTemplateId($value)
* @method string getIpv6AddressCount()
* @method $this withIpv6AddressCount($value)
* @method string getCpuOptionsNuma()
* @method string getOwnerId()
* @method $this withOwnerId($value)
* @method string getCapacityReservationPreference()
Expand Down Expand Up @@ -9262,6 +9386,7 @@ public function withInstanceId(array $instanceId)
* @method $this withInternetMaxBandwidthOut($value)
* @method string getDescription()
* @method $this withDescription($value)
* @method string getCpuOptionsThreadsPerCore()
* @method string getSystemDiskCategory()
* @method string getCapacityReservationId()
* @method $this withCapacityReservationId($value)
Expand Down Expand Up @@ -9339,6 +9464,32 @@ public function withSystemDiskAutoSnapshotPolicyId($value)
return $this;
}

/**
* @param string $value
*
* @return $this
*/
public function withCpuOptionsCore($value)
{
$this->data['CpuOptionsCore'] = $value;
$this->options['query']['CpuOptions.Core'] = $value;

return $this;
}

/**
* @param string $value
*
* @return $this
*/
public function withCpuOptionsNuma($value)
{
$this->data['CpuOptionsNuma'] = $value;
$this->options['query']['CpuOptions.Numa'] = $value;

return $this;
}

/**
* @param array $ipv6Address
*
Expand All @@ -9354,6 +9505,19 @@ public function withIpv6Address(array $ipv6Address)
return $this;
}

/**
* @param string $value
*
* @return $this
*/
public function withCpuOptionsThreadsPerCore($value)
{
$this->data['CpuOptionsThreadsPerCore'] = $value;
$this->options['query']['CpuOptions.ThreadsPerCore'] = $value;

return $this;
}

/**
* @param string $value
*
Expand Down
2 changes: 1 addition & 1 deletion src/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Release
/**
* Version of the SDK
*/
const VERSION = '1.7.166';
const VERSION = '1.7.167';

/**
* @param Event $event
Expand Down

0 comments on commit 27f6ded

Please sign in to comment.