Skip to content

Commit

Permalink
Update API GetAutoScalingActivity: update response param.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 25, 2024
1 parent 9be0bd0 commit b30eeec
Show file tree
Hide file tree
Showing 55 changed files with 493 additions and 83 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2024-10-25 Version: 2.1.1
- Update API GetAutoScalingActivity: update response param.
- Update API ListAutoScalingActivities: add param ScalingPolicyType.
- Update API ListAutoScalingActivities: update response param.


2024-10-17 Version: 2.1.0
- Support API GetClusterCloneMeta.
- Support API RunCluster.
Expand Down
51 changes: 41 additions & 10 deletions src/Emr.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ public function getEndpoint($productId, $regionId, $endpointRule, $network, $suf
}

/**
* @summary Creates a predefined API operation template. The template contains information about an API operation, including the basic structure, request method, URL path, request parameters, and response format.
* *
* @param CreateApiTemplateRequest $request CreateApiTemplateRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
*
Expand Down Expand Up @@ -268,6 +270,8 @@ public function createApiTemplateWithOptions($request, $runtime)
}

/**
* @summary Creates a predefined API operation template. The template contains information about an API operation, including the basic structure, request method, URL path, request parameters, and response format.
* *
* @param CreateApiTemplateRequest $request CreateApiTemplateRequest
*
* @return CreateApiTemplateResponse CreateApiTemplateResponse
Expand Down Expand Up @@ -547,6 +551,8 @@ public function decreaseNodes($request)
}

/**
* @summary Deletes an API operation template.
* *
* @description 创建集群模板
* *
* @param DeleteApiTemplateRequest $request DeleteApiTemplateRequest
Expand Down Expand Up @@ -589,6 +595,8 @@ public function deleteApiTemplateWithOptions($request, $runtime)
}

/**
* @summary Deletes an API operation template.
* *
* @description 创建集群模板
* *
* @param DeleteApiTemplateRequest $request DeleteApiTemplateRequest
Expand Down Expand Up @@ -705,7 +713,7 @@ public function deleteScript($request)
}

/**
* @summary 获取API模板详情
* @summary Queries the detailed configuration information about an API operation template.
* *
* @param GetApiTemplateRequest $request GetApiTemplateRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
Expand Down Expand Up @@ -741,7 +749,7 @@ public function getApiTemplateWithOptions($request, $runtime)
}

/**
* @summary 获取API模板详情
* @summary Queries the detailed configuration information about an API operation template.
* *
* @param GetApiTemplateRequest $request GetApiTemplateRequest
*
Expand Down Expand Up @@ -808,7 +816,7 @@ public function getApplication($request)
}

/**
* @description 获取弹性伸缩活动详情。
* @summary 获取弹性伸缩活动详情。
* *
* @param GetAutoScalingActivityRequest $request GetAutoScalingActivityRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
Expand Down Expand Up @@ -847,7 +855,7 @@ public function getAutoScalingActivityWithOptions($request, $runtime)
}

/**
* @description 获取弹性伸缩活动详情。
* @summary 获取弹性伸缩活动详情。
* *
* @param GetAutoScalingActivityRequest $request GetAutoScalingActivityRequest
*
Expand Down Expand Up @@ -1187,7 +1195,9 @@ public function getDoctorHBaseCluster($request)
}

/**
* @description list Doctor HBaseRegions
* @summary Get HBase Region information.
* *
* @description List Doctor HBase Regions
* *
* @param GetDoctorHBaseRegionRequest $request GetDoctorHBaseRegionRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
Expand Down Expand Up @@ -1229,7 +1239,9 @@ public function getDoctorHBaseRegionWithOptions($request, $runtime)
}

/**
* @description list Doctor HBaseRegions
* @summary Get HBase Region information.
* *
* @description List Doctor HBase Regions
* *
* @param GetDoctorHBaseRegionRequest $request GetDoctorHBaseRegionRequest
*
Expand Down Expand Up @@ -1303,6 +1315,8 @@ public function getDoctorHBaseRegionServer($request)
}

/**
* @summary Get HBase Table information.
* *
* @description get Doctor HBaseTable
* *
* @param GetDoctorHBaseTableRequest $request GetDoctorHBaseTableRequest
Expand Down Expand Up @@ -1345,6 +1359,8 @@ public function getDoctorHBaseTableWithOptions($request, $runtime)
}

/**
* @summary Get HBase Table information.
* *
* @description get Doctor HBaseTable
* *
* @param GetDoctorHBaseTableRequest $request GetDoctorHBaseTableRequest
Expand Down Expand Up @@ -1773,7 +1789,9 @@ public function getDoctorJob($request)
}

/**
* @description get specify component's report analysis by emr doctor
* @summary Obtain the analysis result report of a specified component from EMR Doctor.
* *
* @description get specify component\\"s report analysis by EMR Doctor
* *
* @param GetDoctorReportComponentSummaryRequest $request GetDoctorReportComponentSummaryRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
Expand Down Expand Up @@ -1815,7 +1833,9 @@ public function getDoctorReportComponentSummaryWithOptions($request, $runtime)
}

/**
* @description get specify component's report analysis by emr doctor
* @summary Obtain the analysis result report of a specified component from EMR Doctor.
* *
* @description get specify component\\"s report analysis by EMR Doctor
* *
* @param GetDoctorReportComponentSummaryRequest $request GetDoctorReportComponentSummaryRequest
*
Expand Down Expand Up @@ -2266,7 +2286,7 @@ public function listApplications($request)
}

/**
* @description 查询弹性伸缩活动列表。
* @summary 查询弹性伸缩活动列表。
* *
* @param ListAutoScalingActivitiesRequest $request ListAutoScalingActivitiesRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
Expand Down Expand Up @@ -2301,6 +2321,9 @@ public function listAutoScalingActivitiesWithOptions($request, $runtime)
if (!Utils::isUnset($request->scalingActivityType)) {
$query['ScalingActivityType'] = $request->scalingActivityType;
}
if (!Utils::isUnset($request->scalingPolicyType)) {
$query['ScalingPolicyType'] = $request->scalingPolicyType;
}
if (!Utils::isUnset($request->scalingRuleName)) {
$query['ScalingRuleName'] = $request->scalingRuleName;
}
Expand All @@ -2326,7 +2349,7 @@ public function listAutoScalingActivitiesWithOptions($request, $runtime)
}

/**
* @description 查询弹性伸缩活动列表。
* @summary 查询弹性伸缩活动列表。
* *
* @param ListAutoScalingActivitiesRequest $request ListAutoScalingActivitiesRequest
*
Expand Down Expand Up @@ -3346,6 +3369,8 @@ public function listDoctorReports($request)
}

/**
* @summary Lists instance types.
* *
* @param ListInstanceTypesRequest $request ListInstanceTypesRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
*
Expand Down Expand Up @@ -3407,6 +3432,8 @@ public function listInstanceTypesWithOptions($request, $runtime)
}

/**
* @summary Lists instance types.
* *
* @param ListInstanceTypesRequest $request ListInstanceTypesRequest
*
* @return ListInstanceTypesResponse ListInstanceTypesResponse
Expand Down Expand Up @@ -3621,6 +3648,8 @@ public function listReleaseVersions($request)
}

/**
* @summary Queries the bootstrap actions or common scripts of an E-MapReduce (EMR) cluster.
* *
* @param ListScriptsRequest $request ListScriptsRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
*
Expand Down Expand Up @@ -3664,6 +3693,8 @@ public function listScriptsWithOptions($request, $runtime)
}

/**
* @summary Queries the bootstrap actions or common scripts of an E-MapReduce (EMR) cluster.
* *
* @param ListScriptsRequest $request ListScriptsRequest
*
* @return ListScriptsResponse ListScriptsResponse
Expand Down
8 changes: 4 additions & 4 deletions src/Models/CreateApiTemplateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CreateApiTemplateRequest extends Model
public $apiName;

/**
* @description The content of the cluster API operation template. Set the value to JSON strings of the request parameters of the [CreateCluster](https://help.aliyun.com/zh/emr/emr-on-ecs/developer-reference/api-emr-2021-03-20-createcluster) API operation for creating a cluster.
* @description The content of the cluster API operation template. Set the value to JSON strings of the request parameters of the [CreateCluster](https://help.aliyun.com/document_detail/454393.html) API operation for creating a cluster.
*
* This parameter is required.
* @example content
Expand All @@ -29,7 +29,7 @@ class CreateApiTemplateRequest extends Model
public $content;

/**
* @description 地域ID。
* @description The region ID.
*
* This parameter is required.
* @example cn-hangzhou
Expand All @@ -39,7 +39,7 @@ class CreateApiTemplateRequest extends Model
public $regionId;

/**
* @description 资源组ID。
* @description Resource group ID.
*
* @example rg-acfmzabjyop****
*
Expand All @@ -48,7 +48,7 @@ class CreateApiTemplateRequest extends Model
public $resourceGroupId;

/**
* @description 集群模板名字。
* @description Cluster template name.
*
* This parameter is required.
* @example DATALAKE模板
Expand Down
6 changes: 5 additions & 1 deletion src/Models/CreateApiTemplateResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class CreateApiTemplateResponseBody extends Model
{
/**
* @description 请求ID。
* @description Request ID.
*
* @example DD6B1B2A-5837-5237-ABE4-FF0C8944****
*
Expand All @@ -18,13 +18,17 @@ class CreateApiTemplateResponseBody extends Model
public $requestId;

/**
* @description Template ID (to be deprecated).
*
* @example at-41b4c6a0fc63****
*
* @var string
*/
public $success;

/**
* @description Template ID (it is recommended to use the parameter TemplateId).
*
* @example at-41b4c6a0fc63****
*
* @var string
Expand Down
14 changes: 8 additions & 6 deletions src/Models/CreateClusterRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
class CreateClusterRequest extends Model
{
/**
* @description The application configurations. You can specify a maximum of 1,000 items.
* @description The service configurations. Number of elements in the array: 1 to 1000.
*
* @var ApplicationConfig[]
*/
public $applicationConfigs;

/**
* @description The applications. You can specify a maximum of 100 items.
* @description The services. Number of elements in the array: 1 to 100.
*
* This parameter is required.
* @var Application[]
*/
public $applications;

/**
* @description The bootstrap actions. You can specify a maximum of 10 items.
* @description The bootstrap actions. Number of elements in the array: 1 to 10.
*
* @var Script[]
*/
Expand Down Expand Up @@ -79,20 +79,22 @@ class CreateClusterRequest extends Model
public $deployMode;

/**
* @example Emr cluster for ETL
*
* @var string
*/
public $description;

/**
* @description The attributes of all ECS instances.
* @description The attributes of all ECS instances. The basic attributes of all ECS instances in the cluster.
*
* This parameter is required.
* @var NodeAttributes
*/
public $nodeAttributes;

/**
* @description The node groups. You can specify a maximum of 100 items.
* @description The node groups. Number of elements in the array: 1 to 100.
*
* This parameter is required.
* @example NORMAL
Expand Down Expand Up @@ -163,7 +165,7 @@ class CreateClusterRequest extends Model
public $subscriptionConfig;

/**
* @description The tags. You can specify a maximum of 20 items.
* @description The list of tags. Number of elements in the array: 0 to 20.
*
* @example A7D960FA-6DBA-5E07-8746-A63E3E4D****
*
Expand Down
4 changes: 2 additions & 2 deletions src/Models/GetApiTemplateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class GetApiTemplateRequest extends Model
{
/**
* @description 区域ID。
* @description Region ID.
*
* This parameter is required.
* @example cn-hangzhou
Expand All @@ -19,7 +19,7 @@ class GetApiTemplateRequest extends Model
public $regionId;

/**
* @description 集群模板id。
* @description Cluster template ID.
*
* This parameter is required.
* @example at-41b4c6a0fc63****
Expand Down
2 changes: 1 addition & 1 deletion src/Models/GetApiTemplateResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GetApiTemplateResponseBody extends Model
public $data;

/**
* @description 请求ID。
* @description Request ID.
*
* @example DD6B1B2A-5837-5237-ABE4-FF0C8944****
*
Expand Down
12 changes: 12 additions & 0 deletions src/Models/GetAutoScalingActivityResponseBody/scalingActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ class scalingActivity extends Model
*/
public $operationId;

/**
* @var string
*/
public $policyType;

/**
* @description The description of the scaling rule.
*
Expand Down Expand Up @@ -151,6 +156,7 @@ class scalingActivity extends Model
'nodeGroupId' => 'NodeGroupId',
'nodeGroupName' => 'NodeGroupName',
'operationId' => 'OperationId',
'policyType' => 'PolicyType',
'ruleDetail' => 'RuleDetail',
'ruleName' => 'RuleName',
'startTime' => 'StartTime',
Expand Down Expand Up @@ -202,6 +208,9 @@ public function toMap()
if (null !== $this->operationId) {
$res['OperationId'] = $this->operationId;
}
if (null !== $this->policyType) {
$res['PolicyType'] = $this->policyType;
}
if (null !== $this->ruleDetail) {
$res['RuleDetail'] = null !== $this->ruleDetail ? $this->ruleDetail->toMap() : null;
}
Expand Down Expand Up @@ -262,6 +271,9 @@ public static function fromMap($map = [])
if (isset($map['OperationId'])) {
$model->operationId = $map['OperationId'];
}
if (isset($map['PolicyType'])) {
$model->policyType = $map['PolicyType'];
}
if (isset($map['RuleDetail'])) {
$model->ruleDetail = ScalingRule::fromMap($map['RuleDetail']);
}
Expand Down
Loading

0 comments on commit b30eeec

Please sign in to comment.