@alicloud/gpdb20160503 3.3.0 → 3.4.0

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/src/client.ts CHANGED
@@ -10265,7 +10265,7 @@ export default class Client extends OpenApi {
10265
10265
  }
10266
10266
 
10267
10267
  /**
10268
- * Queries a list of API keys for a Supabase project.
10268
+ * Queries the API keys and JWT secrets of a Supabase instance.
10269
10269
  *
10270
10270
  * @remarks
10271
10271
  * You can call this operation to query a list of API keys for a Supabase project.
@@ -10303,7 +10303,7 @@ export default class Client extends OpenApi {
10303
10303
  }
10304
10304
 
10305
10305
  /**
10306
- * Queries a list of API keys for a Supabase project.
10306
+ * Queries the API keys and JWT secrets of a Supabase instance.
10307
10307
  *
10308
10308
  * @remarks
10309
10309
  * You can call this operation to query a list of API keys for a Supabase project.
@@ -13977,7 +13977,7 @@ export default class Client extends OpenApi {
13977
13977
  }
13978
13978
 
13979
13979
  /**
13980
- * 修改Supabase自动启停策略
13980
+ * Modify the auto pause/resume policy of Supabase.
13981
13981
  *
13982
13982
  * @param request - ModifySupabaseAutoScalePolicyRequest
13983
13983
  * @param runtime - runtime options for this request RuntimeOptions
@@ -14016,7 +14016,7 @@ export default class Client extends OpenApi {
14016
14016
  }
14017
14017
 
14018
14018
  /**
14019
- * 修改Supabase自动启停策略
14019
+ * Modify the auto pause/resume policy of Supabase.
14020
14020
  *
14021
14021
  * @param request - ModifySupabaseAutoScalePolicyRequest
14022
14022
  * @returns ModifySupabaseAutoScalePolicyResponse
@@ -14026,6 +14026,64 @@ export default class Client extends OpenApi {
14026
14026
  return await this.modifySupabaseAutoScalePolicyWithOptions(request, runtime);
14027
14027
  }
14028
14028
 
14029
+ /**
14030
+ * Modify the resources of a Supabase instance. You can upgrade or decrease the quota of compute resources and scale out storage resources (disk size).
14031
+ *
14032
+ * @param request - ModifySupabaseProjectResourceRequest
14033
+ * @param runtime - runtime options for this request RuntimeOptions
14034
+ * @returns ModifySupabaseProjectResourceResponse
14035
+ */
14036
+ async modifySupabaseProjectResourceWithOptions(request: $_model.ModifySupabaseProjectResourceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifySupabaseProjectResourceResponse> {
14037
+ request.validate();
14038
+ let query = { };
14039
+ if (!$dara.isNull(request.modifyType)) {
14040
+ query["ModifyType"] = request.modifyType;
14041
+ }
14042
+
14043
+ if (!$dara.isNull(request.projectId)) {
14044
+ query["ProjectId"] = request.projectId;
14045
+ }
14046
+
14047
+ if (!$dara.isNull(request.projectSpec)) {
14048
+ query["ProjectSpec"] = request.projectSpec;
14049
+ }
14050
+
14051
+ if (!$dara.isNull(request.regionId)) {
14052
+ query["RegionId"] = request.regionId;
14053
+ }
14054
+
14055
+ if (!$dara.isNull(request.storageSize)) {
14056
+ query["StorageSize"] = request.storageSize;
14057
+ }
14058
+
14059
+ let req = new $OpenApiUtil.OpenApiRequest({
14060
+ query: OpenApiUtil.query(query),
14061
+ });
14062
+ let params = new $OpenApiUtil.Params({
14063
+ action: "ModifySupabaseProjectResource",
14064
+ version: "2016-05-03",
14065
+ protocol: "HTTPS",
14066
+ pathname: "/",
14067
+ method: "POST",
14068
+ authType: "AK",
14069
+ style: "RPC",
14070
+ reqBodyType: "formData",
14071
+ bodyType: "json",
14072
+ });
14073
+ return $dara.cast<$_model.ModifySupabaseProjectResourceResponse>(await this.callApi(params, req, runtime), new $_model.ModifySupabaseProjectResourceResponse({}));
14074
+ }
14075
+
14076
+ /**
14077
+ * Modify the resources of a Supabase instance. You can upgrade or decrease the quota of compute resources and scale out storage resources (disk size).
14078
+ *
14079
+ * @param request - ModifySupabaseProjectResourceRequest
14080
+ * @returns ModifySupabaseProjectResourceResponse
14081
+ */
14082
+ async modifySupabaseProjectResource(request: $_model.ModifySupabaseProjectResourceRequest): Promise<$_model.ModifySupabaseProjectResourceResponse> {
14083
+ let runtime = new $dara.RuntimeOptions({ });
14084
+ return await this.modifySupabaseProjectResourceWithOptions(request, runtime);
14085
+ }
14086
+
14029
14087
  /**
14030
14088
  * Sets or replaces the IP address whitelist for a specified Supabase project.
14031
14089
  *
@@ -0,0 +1,65 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifySupabaseProjectResourceRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * UPGRADE,DOWNGRADE
12
+ */
13
+ modifyType?: string;
14
+ /**
15
+ * @remarks
16
+ * This parameter is required.
17
+ *
18
+ * @example
19
+ * sbp-tyarplz****
20
+ */
21
+ projectId?: string;
22
+ /**
23
+ * @example
24
+ * 2C4G
25
+ */
26
+ projectSpec?: string;
27
+ /**
28
+ * @example
29
+ * cn-hangzhou
30
+ */
31
+ regionId?: string;
32
+ /**
33
+ * @example
34
+ * 100
35
+ */
36
+ storageSize?: number;
37
+ static names(): { [key: string]: string } {
38
+ return {
39
+ modifyType: 'ModifyType',
40
+ projectId: 'ProjectId',
41
+ projectSpec: 'ProjectSpec',
42
+ regionId: 'RegionId',
43
+ storageSize: 'StorageSize',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ modifyType: 'string',
50
+ projectId: 'string',
51
+ projectSpec: 'string',
52
+ regionId: 'string',
53
+ storageSize: 'number',
54
+ };
55
+ }
56
+
57
+ validate() {
58
+ super.validate();
59
+ }
60
+
61
+ constructor(map?: { [key: string]: any }) {
62
+ super(map);
63
+ }
64
+ }
65
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ModifySupabaseProjectResourceResponseBody } from "./ModifySupabaseProjectResourceResponseBody";
4
+
5
+
6
+ export class ModifySupabaseProjectResourceResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ModifySupabaseProjectResourceResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: ModifySupabaseProjectResourceResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,45 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifySupabaseProjectResourceResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * *********
9
+ */
10
+ orderId?: string;
11
+ /**
12
+ * @example
13
+ * sbp-tyarplz****
14
+ */
15
+ projectId?: string;
16
+ /**
17
+ * @example
18
+ * ABB39CC3-4488-4857-905D-2E4A051D0521
19
+ */
20
+ requestId?: string;
21
+ static names(): { [key: string]: string } {
22
+ return {
23
+ orderId: 'OrderId',
24
+ projectId: 'ProjectId',
25
+ requestId: 'RequestId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ orderId: 'string',
32
+ projectId: 'string',
33
+ requestId: 'string',
34
+ };
35
+ }
36
+
37
+ validate() {
38
+ super.validate();
39
+ }
40
+
41
+ constructor(map?: { [key: string]: any }) {
42
+ super(map);
43
+ }
44
+ }
45
+
@@ -906,6 +906,9 @@ export { ModifyStreamingJobResponse } from './ModifyStreamingJobResponse';
906
906
  export { ModifySupabaseAutoScalePolicyRequest } from './ModifySupabaseAutoScalePolicyRequest';
907
907
  export { ModifySupabaseAutoScalePolicyResponseBody } from './ModifySupabaseAutoScalePolicyResponseBody';
908
908
  export { ModifySupabaseAutoScalePolicyResponse } from './ModifySupabaseAutoScalePolicyResponse';
909
+ export { ModifySupabaseProjectResourceRequest } from './ModifySupabaseProjectResourceRequest';
910
+ export { ModifySupabaseProjectResourceResponseBody } from './ModifySupabaseProjectResourceResponseBody';
911
+ export { ModifySupabaseProjectResourceResponse } from './ModifySupabaseProjectResourceResponse';
909
912
  export { ModifySupabaseProjectSecurityIpsRequest } from './ModifySupabaseProjectSecurityIpsRequest';
910
913
  export { ModifySupabaseProjectSecurityIpsResponseBody } from './ModifySupabaseProjectSecurityIpsResponseBody';
911
914
  export { ModifySupabaseProjectSecurityIpsResponse } from './ModifySupabaseProjectSecurityIpsResponse';