@alicloud/cloudapi20160714 2.2.1 → 2.2.3

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 CHANGED
@@ -516,7 +516,10 @@ export declare class CreateApiStageVariableResponse extends $tea.Model {
516
516
  });
517
517
  }
518
518
  export declare class CreateAppRequest extends $tea.Model {
519
+ appCode?: string;
520
+ appKey?: string;
519
521
  appName?: string;
522
+ appSecret?: string;
520
523
  description?: string;
521
524
  securityToken?: string;
522
525
  source?: string;
@@ -5493,6 +5496,7 @@ export declare class ModifyInstanceSpecRequest extends $tea.Model {
5493
5496
  autoPay?: boolean;
5494
5497
  instanceId?: string;
5495
5498
  instanceSpec?: string;
5499
+ modifyAction?: string;
5496
5500
  token?: string;
5497
5501
  static names(): {
5498
5502
  [key: string]: string;
@@ -6312,6 +6316,7 @@ export declare class RemoveVpcAccessAndAbolishApisResponse extends $tea.Model {
6312
6316
  }
6313
6317
  export declare class ResetAppCodeRequest extends $tea.Model {
6314
6318
  appCode?: string;
6319
+ newAppCode?: string;
6315
6320
  securityToken?: string;
6316
6321
  static names(): {
6317
6322
  [key: string]: string;
@@ -6353,6 +6358,7 @@ export declare class ResetAppCodeResponse extends $tea.Model {
6353
6358
  }
6354
6359
  export declare class ResetAppSecretRequest extends $tea.Model {
6355
6360
  appKey?: string;
6361
+ newAppSecret?: string;
6356
6362
  securityToken?: string;
6357
6363
  static names(): {
6358
6364
  [key: string]: string;
@@ -6521,6 +6527,48 @@ export declare class SdkGenerateByGroupResponse extends $tea.Model {
6521
6527
  [key: string]: any;
6522
6528
  });
6523
6529
  }
6530
+ export declare class SetAccessControlListAttributeRequest extends $tea.Model {
6531
+ aclId?: string;
6532
+ aclName?: string;
6533
+ securityToken?: string;
6534
+ static names(): {
6535
+ [key: string]: string;
6536
+ };
6537
+ static types(): {
6538
+ [key: string]: any;
6539
+ };
6540
+ constructor(map?: {
6541
+ [key: string]: any;
6542
+ });
6543
+ }
6544
+ export declare class SetAccessControlListAttributeResponseBody extends $tea.Model {
6545
+ requestId?: string;
6546
+ static names(): {
6547
+ [key: string]: string;
6548
+ };
6549
+ static types(): {
6550
+ [key: string]: any;
6551
+ };
6552
+ constructor(map?: {
6553
+ [key: string]: any;
6554
+ });
6555
+ }
6556
+ export declare class SetAccessControlListAttributeResponse extends $tea.Model {
6557
+ headers: {
6558
+ [key: string]: string;
6559
+ };
6560
+ statusCode: number;
6561
+ body: SetAccessControlListAttributeResponseBody;
6562
+ static names(): {
6563
+ [key: string]: string;
6564
+ };
6565
+ static types(): {
6566
+ [key: string]: any;
6567
+ };
6568
+ constructor(map?: {
6569
+ [key: string]: any;
6570
+ });
6571
+ }
6524
6572
  export declare class SetApisAuthoritiesRequest extends $tea.Model {
6525
6573
  apiIds?: string;
6526
6574
  appId?: number;
@@ -7885,6 +7933,7 @@ export declare class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends
7885
7933
  domainName?: string;
7886
7934
  domainRemark?: string;
7887
7935
  domainWebSocketStatus?: string;
7936
+ isHttpRedirectToHttps?: boolean;
7888
7937
  wildcardDomainPatterns?: string;
7889
7938
  static names(): {
7890
7939
  [key: string]: string;
@@ -11027,6 +11076,8 @@ export default class Client extends OpenApi {
11027
11076
  sdkGenerateByAppForRegion(request: SdkGenerateByAppForRegionRequest): Promise<SdkGenerateByAppForRegionResponse>;
11028
11077
  sdkGenerateByGroupWithOptions(request: SdkGenerateByGroupRequest, runtime: $Util.RuntimeOptions): Promise<SdkGenerateByGroupResponse>;
11029
11078
  sdkGenerateByGroup(request: SdkGenerateByGroupRequest): Promise<SdkGenerateByGroupResponse>;
11079
+ setAccessControlListAttributeWithOptions(request: SetAccessControlListAttributeRequest, runtime: $Util.RuntimeOptions): Promise<SetAccessControlListAttributeResponse>;
11080
+ setAccessControlListAttribute(request: SetAccessControlListAttributeRequest): Promise<SetAccessControlListAttributeResponse>;
11030
11081
  setApisAuthoritiesWithOptions(request: SetApisAuthoritiesRequest, runtime: $Util.RuntimeOptions): Promise<SetApisAuthoritiesResponse>;
11031
11082
  setApisAuthorities(request: SetApisAuthoritiesRequest): Promise<SetApisAuthoritiesResponse>;
11032
11083
  setAppsAuthoritiesWithOptions(request: SetAppsAuthoritiesRequest, runtime: $Util.RuntimeOptions): Promise<SetAppsAuthoritiesResponse>;
package/dist/client.js CHANGED
@@ -739,7 +739,10 @@ class CreateAppRequest extends $tea.Model {
739
739
  }
740
740
  static names() {
741
741
  return {
742
+ appCode: 'AppCode',
743
+ appKey: 'AppKey',
742
744
  appName: 'AppName',
745
+ appSecret: 'AppSecret',
743
746
  description: 'Description',
744
747
  securityToken: 'SecurityToken',
745
748
  source: 'Source',
@@ -748,7 +751,10 @@ class CreateAppRequest extends $tea.Model {
748
751
  }
749
752
  static types() {
750
753
  return {
754
+ appCode: 'string',
755
+ appKey: 'string',
751
756
  appName: 'string',
757
+ appSecret: 'string',
752
758
  description: 'string',
753
759
  securityToken: 'string',
754
760
  source: 'string',
@@ -7754,6 +7760,7 @@ class ModifyInstanceSpecRequest extends $tea.Model {
7754
7760
  autoPay: 'AutoPay',
7755
7761
  instanceId: 'InstanceId',
7756
7762
  instanceSpec: 'InstanceSpec',
7763
+ modifyAction: 'ModifyAction',
7757
7764
  token: 'Token',
7758
7765
  };
7759
7766
  }
@@ -7762,6 +7769,7 @@ class ModifyInstanceSpecRequest extends $tea.Model {
7762
7769
  autoPay: 'boolean',
7763
7770
  instanceId: 'string',
7764
7771
  instanceSpec: 'string',
7772
+ modifyAction: 'string',
7765
7773
  token: 'string',
7766
7774
  };
7767
7775
  }
@@ -8870,12 +8878,14 @@ class ResetAppCodeRequest extends $tea.Model {
8870
8878
  static names() {
8871
8879
  return {
8872
8880
  appCode: 'AppCode',
8881
+ newAppCode: 'NewAppCode',
8873
8882
  securityToken: 'SecurityToken',
8874
8883
  };
8875
8884
  }
8876
8885
  static types() {
8877
8886
  return {
8878
8887
  appCode: 'string',
8888
+ newAppCode: 'string',
8879
8889
  securityToken: 'string',
8880
8890
  };
8881
8891
  }
@@ -8924,12 +8934,14 @@ class ResetAppSecretRequest extends $tea.Model {
8924
8934
  static names() {
8925
8935
  return {
8926
8936
  appKey: 'AppKey',
8937
+ newAppSecret: 'NewAppSecret',
8927
8938
  securityToken: 'SecurityToken',
8928
8939
  };
8929
8940
  }
8930
8941
  static types() {
8931
8942
  return {
8932
8943
  appKey: 'string',
8944
+ newAppSecret: 'string',
8933
8945
  securityToken: 'string',
8934
8946
  };
8935
8947
  }
@@ -9145,6 +9157,62 @@ class SdkGenerateByGroupResponse extends $tea.Model {
9145
9157
  }
9146
9158
  }
9147
9159
  exports.SdkGenerateByGroupResponse = SdkGenerateByGroupResponse;
9160
+ class SetAccessControlListAttributeRequest extends $tea.Model {
9161
+ constructor(map) {
9162
+ super(map);
9163
+ }
9164
+ static names() {
9165
+ return {
9166
+ aclId: 'AclId',
9167
+ aclName: 'AclName',
9168
+ securityToken: 'SecurityToken',
9169
+ };
9170
+ }
9171
+ static types() {
9172
+ return {
9173
+ aclId: 'string',
9174
+ aclName: 'string',
9175
+ securityToken: 'string',
9176
+ };
9177
+ }
9178
+ }
9179
+ exports.SetAccessControlListAttributeRequest = SetAccessControlListAttributeRequest;
9180
+ class SetAccessControlListAttributeResponseBody extends $tea.Model {
9181
+ constructor(map) {
9182
+ super(map);
9183
+ }
9184
+ static names() {
9185
+ return {
9186
+ requestId: 'RequestId',
9187
+ };
9188
+ }
9189
+ static types() {
9190
+ return {
9191
+ requestId: 'string',
9192
+ };
9193
+ }
9194
+ }
9195
+ exports.SetAccessControlListAttributeResponseBody = SetAccessControlListAttributeResponseBody;
9196
+ class SetAccessControlListAttributeResponse extends $tea.Model {
9197
+ constructor(map) {
9198
+ super(map);
9199
+ }
9200
+ static names() {
9201
+ return {
9202
+ headers: 'headers',
9203
+ statusCode: 'statusCode',
9204
+ body: 'body',
9205
+ };
9206
+ }
9207
+ static types() {
9208
+ return {
9209
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
9210
+ statusCode: 'number',
9211
+ body: SetAccessControlListAttributeResponseBody,
9212
+ };
9213
+ }
9214
+ }
9215
+ exports.SetAccessControlListAttributeResponse = SetAccessControlListAttributeResponse;
9148
9216
  class SetApisAuthoritiesRequest extends $tea.Model {
9149
9217
  constructor(map) {
9150
9218
  super(map);
@@ -11087,6 +11155,7 @@ class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Model {
11087
11155
  domainName: 'DomainName',
11088
11156
  domainRemark: 'DomainRemark',
11089
11157
  domainWebSocketStatus: 'DomainWebSocketStatus',
11158
+ isHttpRedirectToHttps: 'IsHttpRedirectToHttps',
11090
11159
  wildcardDomainPatterns: 'WildcardDomainPatterns',
11091
11160
  };
11092
11161
  }
@@ -11102,6 +11171,7 @@ class DescribeApiGroupResponseBodyCustomDomainsDomainItem extends $tea.Model {
11102
11171
  domainName: 'string',
11103
11172
  domainRemark: 'string',
11104
11173
  domainWebSocketStatus: 'string',
11174
+ isHttpRedirectToHttps: 'boolean',
11105
11175
  wildcardDomainPatterns: 'string',
11106
11176
  };
11107
11177
  }
@@ -15759,9 +15829,18 @@ class Client extends openapi_client_1.default {
15759
15829
  async createAppWithOptions(request, runtime) {
15760
15830
  tea_util_1.default.validateModel(request);
15761
15831
  let query = {};
15832
+ if (!tea_util_1.default.isUnset(request.appCode)) {
15833
+ query["AppCode"] = request.appCode;
15834
+ }
15835
+ if (!tea_util_1.default.isUnset(request.appKey)) {
15836
+ query["AppKey"] = request.appKey;
15837
+ }
15762
15838
  if (!tea_util_1.default.isUnset(request.appName)) {
15763
15839
  query["AppName"] = request.appName;
15764
15840
  }
15841
+ if (!tea_util_1.default.isUnset(request.appSecret)) {
15842
+ query["AppSecret"] = request.appSecret;
15843
+ }
15765
15844
  if (!tea_util_1.default.isUnset(request.description)) {
15766
15845
  query["Description"] = request.description;
15767
15846
  }
@@ -19725,6 +19804,9 @@ class Client extends openapi_client_1.default {
19725
19804
  if (!tea_util_1.default.isUnset(request.instanceSpec)) {
19726
19805
  query["InstanceSpec"] = request.instanceSpec;
19727
19806
  }
19807
+ if (!tea_util_1.default.isUnset(request.modifyAction)) {
19808
+ query["ModifyAction"] = request.modifyAction;
19809
+ }
19728
19810
  if (!tea_util_1.default.isUnset(request.token)) {
19729
19811
  query["Token"] = request.token;
19730
19812
  }
@@ -20410,6 +20492,9 @@ class Client extends openapi_client_1.default {
20410
20492
  if (!tea_util_1.default.isUnset(request.appCode)) {
20411
20493
  query["AppCode"] = request.appCode;
20412
20494
  }
20495
+ if (!tea_util_1.default.isUnset(request.newAppCode)) {
20496
+ query["NewAppCode"] = request.newAppCode;
20497
+ }
20413
20498
  if (!tea_util_1.default.isUnset(request.securityToken)) {
20414
20499
  query["SecurityToken"] = request.securityToken;
20415
20500
  }
@@ -20439,6 +20524,9 @@ class Client extends openapi_client_1.default {
20439
20524
  if (!tea_util_1.default.isUnset(request.appKey)) {
20440
20525
  query["AppKey"] = request.appKey;
20441
20526
  }
20527
+ if (!tea_util_1.default.isUnset(request.newAppSecret)) {
20528
+ query["NewAppSecret"] = request.newAppSecret;
20529
+ }
20442
20530
  if (!tea_util_1.default.isUnset(request.securityToken)) {
20443
20531
  query["SecurityToken"] = request.securityToken;
20444
20532
  }
@@ -20558,6 +20646,38 @@ class Client extends openapi_client_1.default {
20558
20646
  let runtime = new $Util.RuntimeOptions({});
20559
20647
  return await this.sdkGenerateByGroupWithOptions(request, runtime);
20560
20648
  }
20649
+ async setAccessControlListAttributeWithOptions(request, runtime) {
20650
+ tea_util_1.default.validateModel(request);
20651
+ let query = {};
20652
+ if (!tea_util_1.default.isUnset(request.aclId)) {
20653
+ query["AclId"] = request.aclId;
20654
+ }
20655
+ if (!tea_util_1.default.isUnset(request.aclName)) {
20656
+ query["AclName"] = request.aclName;
20657
+ }
20658
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
20659
+ query["SecurityToken"] = request.securityToken;
20660
+ }
20661
+ let req = new $OpenApi.OpenApiRequest({
20662
+ query: openapi_util_1.default.query(query),
20663
+ });
20664
+ let params = new $OpenApi.Params({
20665
+ action: "SetAccessControlListAttribute",
20666
+ version: "2016-07-14",
20667
+ protocol: "HTTPS",
20668
+ pathname: "/",
20669
+ method: "POST",
20670
+ authType: "AK",
20671
+ style: "RPC",
20672
+ reqBodyType: "formData",
20673
+ bodyType: "json",
20674
+ });
20675
+ return $tea.cast(await this.callApi(params, req, runtime), new SetAccessControlListAttributeResponse({}));
20676
+ }
20677
+ async setAccessControlListAttribute(request) {
20678
+ let runtime = new $Util.RuntimeOptions({});
20679
+ return await this.setAccessControlListAttributeWithOptions(request, runtime);
20680
+ }
20561
20681
  async setApisAuthoritiesWithOptions(request, runtime) {
20562
20682
  tea_util_1.default.validateModel(request);
20563
20683
  let query = {};