@alicloud/esa20240910 2.9.1 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +0 -81
- package/dist/client.js +16 -122
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +0 -149
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1727,101 +1727,6 @@ export class BlockObjectResponse extends $tea.Model {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
1729
|
|
|
1730
|
-
export class ChangeResourceGroupRequest extends $tea.Model {
|
|
1731
|
-
ownerId?: number;
|
|
1732
|
-
/**
|
|
1733
|
-
* @remarks
|
|
1734
|
-
* The ID of the resource group to which you want to move the website.
|
|
1735
|
-
*
|
|
1736
|
-
* This parameter is required.
|
|
1737
|
-
*
|
|
1738
|
-
* @example
|
|
1739
|
-
* rg-axxxxxx
|
|
1740
|
-
*/
|
|
1741
|
-
resourceGroupId?: string;
|
|
1742
|
-
securityToken?: string;
|
|
1743
|
-
/**
|
|
1744
|
-
* @remarks
|
|
1745
|
-
* The website ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation.
|
|
1746
|
-
*
|
|
1747
|
-
* @example
|
|
1748
|
-
* 123456****
|
|
1749
|
-
*/
|
|
1750
|
-
siteId?: number;
|
|
1751
|
-
static names(): { [key: string]: string } {
|
|
1752
|
-
return {
|
|
1753
|
-
ownerId: 'OwnerId',
|
|
1754
|
-
resourceGroupId: 'ResourceGroupId',
|
|
1755
|
-
securityToken: 'SecurityToken',
|
|
1756
|
-
siteId: 'SiteId',
|
|
1757
|
-
};
|
|
1758
|
-
}
|
|
1759
|
-
|
|
1760
|
-
static types(): { [key: string]: any } {
|
|
1761
|
-
return {
|
|
1762
|
-
ownerId: 'number',
|
|
1763
|
-
resourceGroupId: 'string',
|
|
1764
|
-
securityToken: 'string',
|
|
1765
|
-
siteId: 'number',
|
|
1766
|
-
};
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
constructor(map?: { [key: string]: any }) {
|
|
1770
|
-
super(map);
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
export class ChangeResourceGroupResponseBody extends $tea.Model {
|
|
1775
|
-
/**
|
|
1776
|
-
* @remarks
|
|
1777
|
-
* The request ID.
|
|
1778
|
-
*
|
|
1779
|
-
* @example
|
|
1780
|
-
* F8AA0364-0FDB-4AD5-AC74-D69FAB8924ED
|
|
1781
|
-
*/
|
|
1782
|
-
requestId?: string;
|
|
1783
|
-
static names(): { [key: string]: string } {
|
|
1784
|
-
return {
|
|
1785
|
-
requestId: 'RequestId',
|
|
1786
|
-
};
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
static types(): { [key: string]: any } {
|
|
1790
|
-
return {
|
|
1791
|
-
requestId: 'string',
|
|
1792
|
-
};
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
constructor(map?: { [key: string]: any }) {
|
|
1796
|
-
super(map);
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
|
|
1800
|
-
export class ChangeResourceGroupResponse extends $tea.Model {
|
|
1801
|
-
headers?: { [key: string]: string };
|
|
1802
|
-
statusCode?: number;
|
|
1803
|
-
body?: ChangeResourceGroupResponseBody;
|
|
1804
|
-
static names(): { [key: string]: string } {
|
|
1805
|
-
return {
|
|
1806
|
-
headers: 'headers',
|
|
1807
|
-
statusCode: 'statusCode',
|
|
1808
|
-
body: 'body',
|
|
1809
|
-
};
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
static types(): { [key: string]: any } {
|
|
1813
|
-
return {
|
|
1814
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1815
|
-
statusCode: 'number',
|
|
1816
|
-
body: ChangeResourceGroupResponseBody,
|
|
1817
|
-
};
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
constructor(map?: { [key: string]: any }) {
|
|
1821
|
-
super(map);
|
|
1822
|
-
}
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
1730
|
export class CheckSiteNameRequest extends $tea.Model {
|
|
1826
1731
|
/**
|
|
1827
1732
|
* @remarks
|
|
@@ -41501,60 +41406,6 @@ export default class Client extends OpenApi {
|
|
|
41501
41406
|
return await this.blockObjectWithOptions(request, runtime);
|
|
41502
41407
|
}
|
|
41503
41408
|
|
|
41504
|
-
/**
|
|
41505
|
-
* Moves a website from one resource group to another.
|
|
41506
|
-
*
|
|
41507
|
-
* @param request - ChangeResourceGroupRequest
|
|
41508
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
41509
|
-
* @returns ChangeResourceGroupResponse
|
|
41510
|
-
*/
|
|
41511
|
-
async changeResourceGroupWithOptions(request: ChangeResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<ChangeResourceGroupResponse> {
|
|
41512
|
-
Util.validateModel(request);
|
|
41513
|
-
let query = { };
|
|
41514
|
-
if (!Util.isUnset(request.ownerId)) {
|
|
41515
|
-
query["OwnerId"] = request.ownerId;
|
|
41516
|
-
}
|
|
41517
|
-
|
|
41518
|
-
if (!Util.isUnset(request.resourceGroupId)) {
|
|
41519
|
-
query["ResourceGroupId"] = request.resourceGroupId;
|
|
41520
|
-
}
|
|
41521
|
-
|
|
41522
|
-
if (!Util.isUnset(request.securityToken)) {
|
|
41523
|
-
query["SecurityToken"] = request.securityToken;
|
|
41524
|
-
}
|
|
41525
|
-
|
|
41526
|
-
if (!Util.isUnset(request.siteId)) {
|
|
41527
|
-
query["SiteId"] = request.siteId;
|
|
41528
|
-
}
|
|
41529
|
-
|
|
41530
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
41531
|
-
query: OpenApiUtil.query(query),
|
|
41532
|
-
});
|
|
41533
|
-
let params = new $OpenApi.Params({
|
|
41534
|
-
action: "ChangeResourceGroup",
|
|
41535
|
-
version: "2024-09-10",
|
|
41536
|
-
protocol: "HTTPS",
|
|
41537
|
-
pathname: "/",
|
|
41538
|
-
method: "POST",
|
|
41539
|
-
authType: "AK",
|
|
41540
|
-
style: "RPC",
|
|
41541
|
-
reqBodyType: "formData",
|
|
41542
|
-
bodyType: "json",
|
|
41543
|
-
});
|
|
41544
|
-
return $tea.cast<ChangeResourceGroupResponse>(await this.callApi(params, req, runtime), new ChangeResourceGroupResponse({}));
|
|
41545
|
-
}
|
|
41546
|
-
|
|
41547
|
-
/**
|
|
41548
|
-
* Moves a website from one resource group to another.
|
|
41549
|
-
*
|
|
41550
|
-
* @param request - ChangeResourceGroupRequest
|
|
41551
|
-
* @returns ChangeResourceGroupResponse
|
|
41552
|
-
*/
|
|
41553
|
-
async changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse> {
|
|
41554
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
41555
|
-
return await this.changeResourceGroupWithOptions(request, runtime);
|
|
41556
|
-
}
|
|
41557
|
-
|
|
41558
41409
|
/**
|
|
41559
41410
|
* Checks whether a specified website name is available.
|
|
41560
41411
|
*
|