Skip to content

Commit

Permalink
Update API UpdateApplicationConfigs: update param ApplicationConfigs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 13, 2024
1 parent feeff1a commit 2148675
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 28 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-07-13 Version: 2.0.1
- Update API UpdateApplicationConfigs: update param ApplicationConfigs.


2024-07-04 Version: 2.0.0
- Support API CreateScript.
- Support API DeleteScript.
Expand Down
25 changes: 21 additions & 4 deletions src/Emr.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
use AlibabaCloud\SDK\Emr\V20210320\Models\UpdateScriptRequest;
use AlibabaCloud\SDK\Emr\V20210320\Models\UpdateScriptResponse;
use AlibabaCloud\SDK\Emr\V20210320\Models\UpdateScriptShrinkRequest;
use AlibabaCloud\Tea\Tea;
use AlibabaCloud\Tea\Utils\Utils;
use AlibabaCloud\Tea\Utils\Utils\RuntimeOptions;
use Darabonba\OpenApi\Models\OpenApiRequest;
Expand Down Expand Up @@ -427,6 +428,8 @@ public function createNodeGroup($request)
}

/**
* @summary Adds a bootstrap action or a common script of an E-MapReduce (EMR) cluster.
* *
* @param CreateScriptRequest $request CreateScriptRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
*
Expand Down Expand Up @@ -467,6 +470,8 @@ public function createScriptWithOptions($request, $runtime)
}

/**
* @summary Adds a bootstrap action or a common script of an E-MapReduce (EMR) cluster.
* *
* @param CreateScriptRequest $request CreateScriptRequest
*
* @return CreateScriptResponse CreateScriptResponse
Expand Down Expand Up @@ -640,6 +645,8 @@ public function deleteCluster($request)
}

/**
* @summary Deletes a bootstrap action or a common script of an E-MapReduce (EMR) cluster.
* *
* @param DeleteScriptRequest $request DeleteScriptRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
*
Expand Down Expand Up @@ -680,6 +687,8 @@ public function deleteScriptWithOptions($request, $runtime)
}

/**
* @summary Deletes a bootstrap action or a common script of an E-MapReduce (EMR) cluster.
* *
* @param DeleteScriptRequest $request DeleteScriptRequest
*
* @return DeleteScriptResponse DeleteScriptResponse
Expand Down Expand Up @@ -4251,9 +4260,6 @@ public function updateApplicationConfigsWithOptions($request, $runtime)
{
Utils::validateModel($request);
$query = [];
if (!Utils::isUnset($request->applicationConfigs)) {
$query['ApplicationConfigs'] = $request->applicationConfigs;
}
if (!Utils::isUnset($request->applicationName)) {
$query['ApplicationName'] = $request->applicationName;
}
Expand Down Expand Up @@ -4281,8 +4287,15 @@ public function updateApplicationConfigsWithOptions($request, $runtime)
if (!Utils::isUnset($request->regionId)) {
$query['RegionId'] = $request->regionId;
}
$req = new OpenApiRequest([
$body = [];
$bodyFlat = [];
if (!Utils::isUnset($request->applicationConfigs)) {
$bodyFlat['ApplicationConfigs'] = $request->applicationConfigs;
}
$body = Tea::merge($body, OpenApiUtilClient::query($bodyFlat));
$req = new OpenApiRequest([
'query' => OpenApiUtilClient::query($query),
'body' => OpenApiUtilClient::parseToMap($body),
]);
$params = new Params([
'action' => 'UpdateApplicationConfigs',
Expand Down Expand Up @@ -4312,6 +4325,8 @@ public function updateApplicationConfigs($request)
}

/**
* @summary Updates a bootstrap action or a common script of an E-MapReduce (EMR) cluster.
* *
* @param UpdateScriptRequest $tmpReq UpdateScriptRequest
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
*
Expand Down Expand Up @@ -4360,6 +4375,8 @@ public function updateScriptWithOptions($tmpReq, $runtime)
}

/**
* @summary Updates a bootstrap action or a common script of an E-MapReduce (EMR) cluster.
* *
* @param UpdateScriptRequest $request UpdateScriptRequest
*
* @return UpdateScriptResponse UpdateScriptResponse
Expand Down
11 changes: 7 additions & 4 deletions src/Models/CreateScriptRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class CreateScriptRequest extends Model
{
/**
* @description 集群ID。
* @description The cluster ID.
*
* This parameter is required.
* @example c-b933c5aac8fe****
Expand All @@ -19,7 +19,7 @@ class CreateScriptRequest extends Model
public $clusterId;

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

/**
* @description 集群脚本类型。
* @description The type of the script. Valid values:
*
* BOOTSTRAP: indicates a bootstrap action of the Elastic Compute Service (ECS) instance.
* NORMAL: indicates a common script.
*
* This parameter is required.
* @example BOOTSTRAP
Expand All @@ -39,7 +42,7 @@ class CreateScriptRequest extends Model
public $scriptType;

/**
* @description 集群脚本列表。
* @description The scripts.
*
* This parameter is required.
* @var Script[]
Expand Down
4 changes: 3 additions & 1 deletion src/Models/CreateScriptResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class CreateScriptResponseBody extends Model
{
/**
* @description 请求ID。
* @description The request ID.
*
* @example DD6B1B2A-5837-5237-ABE4-FF0C8944****
*
Expand All @@ -18,6 +18,8 @@ class CreateScriptResponseBody extends Model
public $requestId;

/**
* @description The script ID.
*
* @example cs-d6d6bc841c0d415fb81808bc6d09****
*
* @var string
Expand Down
11 changes: 7 additions & 4 deletions src/Models/DeleteScriptRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class DeleteScriptRequest extends Model
{
/**
* @description 集群ID。
* @description The cluster ID.
*
* This parameter is required.
* @example c-b933c5aac8fe****
Expand All @@ -19,7 +19,7 @@ class DeleteScriptRequest extends Model
public $clusterId;

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

/**
* @description 脚本ID。
* @description The script ID.
*
* This parameter is required.
* @example cs-da7476a7679a4d4c9cede62ebe09****
Expand All @@ -39,7 +39,10 @@ class DeleteScriptRequest extends Model
public $scriptId;

/**
* @description 集群脚本类型。
* @description The type of the script. Valid values:
*
* BOOTSTRAP: indicates a bootstrap action of the Elastic Compute Service (ECS) instance.
* NORMAL: indicates a common script.
*
* This parameter is required.
* @example BOOTSTRAP
Expand Down
2 changes: 1 addition & 1 deletion src/Models/DeleteScriptResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class DeleteScriptResponseBody extends Model
{
/**
* @description 请求ID。
* @description The request ID.
*
* @example DD6B1B2A-5837-5237-ABE4-FF0C8944****
*
Expand Down
4 changes: 1 addition & 3 deletions src/Models/UpdateApplicationConfigsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
class UpdateApplicationConfigsRequest extends Model
{
/**
* @description The application configurations.
* @description 应用配置列表。
*
* This parameter is required.
* @example CLUSTER
*
* @var UpdateApplicationConfig[]
*/
public $applicationConfigs;
Expand Down
13 changes: 8 additions & 5 deletions src/Models/UpdateScriptRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class UpdateScriptRequest extends Model
{
/**
* @description 集群ID。
* @description The cluster ID.
*
* This parameter is required.
* @example c-b933c5aac8fe****
Expand All @@ -19,7 +19,7 @@ class UpdateScriptRequest extends Model
public $clusterId;

/**
* @description 区域ID。
* @description The region ID.
*
* This parameter is required.
* @example cn-hangzhou
Expand All @@ -29,15 +29,15 @@ class UpdateScriptRequest extends Model
public $regionId;

/**
* @description 集群脚本。
* @description The script.
*
* This parameter is required.
* @var Script
*/
public $script;

/**
* @description 脚本ID。
* @description The script ID.
*
* This parameter is required.
* @example cs-da7476a7679a4d4c9cede62ebe09****
Expand All @@ -47,7 +47,10 @@ class UpdateScriptRequest extends Model
public $scriptId;

/**
* @description 集群脚本类型。
* @description The type of the script. Valid values:
*
* BOOTSTRAP: indicates a bootstrap action of the Elastic Compute Service (ECS) instance.
* NORMAL: indicates a common script.
*
* This parameter is required.
* @example BOOTSTRAP
Expand Down
2 changes: 1 addition & 1 deletion src/Models/UpdateScriptResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class UpdateScriptResponseBody extends Model
{
/**
* @description 请求ID。
* @description The request ID.
*
* @example DD6B1B2A-5837-5237-ABE4-FF0C8944****
*
Expand Down
13 changes: 8 additions & 5 deletions src/Models/UpdateScriptShrinkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class UpdateScriptShrinkRequest extends Model
{
/**
* @description 集群ID。
* @description The cluster ID.
*
* This parameter is required.
* @example c-b933c5aac8fe****
Expand All @@ -19,7 +19,7 @@ class UpdateScriptShrinkRequest extends Model
public $clusterId;

/**
* @description 区域ID。
* @description The region ID.
*
* This parameter is required.
* @example cn-hangzhou
Expand All @@ -29,15 +29,15 @@ class UpdateScriptShrinkRequest extends Model
public $regionId;

/**
* @description 集群脚本。
* @description The script.
*
* This parameter is required.
* @var string
*/
public $scriptShrink;

/**
* @description 脚本ID。
* @description The script ID.
*
* This parameter is required.
* @example cs-da7476a7679a4d4c9cede62ebe09****
Expand All @@ -47,7 +47,10 @@ class UpdateScriptShrinkRequest extends Model
public $scriptId;

/**
* @description 集群脚本类型。
* @description The type of the script. Valid values:
*
* BOOTSTRAP: indicates a bootstrap action of the Elastic Compute Service (ECS) instance.
* NORMAL: indicates a common script.
*
* This parameter is required.
* @example BOOTSTRAP
Expand Down

0 comments on commit 2148675

Please sign in to comment.