@scaleway/sdk-autoscaling 2.15.0 → 2.16.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateGroupRequest, DeleteGroupRequest, GetGroupRequest, Group, ListAlertsRequest, ListAlertsResponse, ListGroupsRequest, ListGroupsResponse, ListLogsRequest, ListLogsResponse, ListServersRequest, ListServersResponse, UpdateGroupRequest } from "./types.gen.js";
|
|
2
|
-
import { API, ApiLocality, WaitForOptions } from "@scaleway/sdk-client";
|
|
1
|
+
import { CreateGroupRequest, DeleteGroupRequest, GetGroupRequest, Group, ListAlertsRequest, ListAlertsResponse, ListGroupsRequest, ListGroupsResponse, ListLogsRequest, ListLogsResponse, ListServersRequest, ListServersResponse, RefreshGroupRequest, UpdateGroupRequest } from "./types.gen.js";
|
|
2
|
+
import { API, ApiLocality, RequestOptions, WaitForOptions } from "@scaleway/sdk-client";
|
|
3
3
|
//#region src/v1alpha2/api.gen.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Autoscaling Groups API.
|
|
@@ -16,7 +16,7 @@ declare class API$1 extends API {
|
|
|
16
16
|
* @param request - The request {@link ListGroupsRequest}
|
|
17
17
|
* @returns A Promise of ListGroupsResponse
|
|
18
18
|
*/
|
|
19
|
-
listGroups: (request?: Readonly<ListGroupsRequest
|
|
19
|
+
listGroups: (request?: Readonly<ListGroupsRequest>, options?: RequestOptions) => Promise<ListGroupsResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Get an autoscaling group. Get details of a specified autoscaling group including its
|
|
22
22
|
configuration, current size, and status.
|
|
@@ -24,7 +24,7 @@ declare class API$1 extends API {
|
|
|
24
24
|
* @param request - The request {@link GetGroupRequest}
|
|
25
25
|
* @returns A Promise of Group
|
|
26
26
|
*/
|
|
27
|
-
getGroup: (request: Readonly<GetGroupRequest
|
|
27
|
+
getGroup: (request: Readonly<GetGroupRequest>, options?: RequestOptions) => Promise<Group>;
|
|
28
28
|
/**
|
|
29
29
|
* Waits for {@link Group} to be in a final state.
|
|
30
30
|
*
|
|
@@ -41,7 +41,15 @@ declare class API$1 extends API {
|
|
|
41
41
|
* @param request - The request {@link CreateGroupRequest}
|
|
42
42
|
* @returns A Promise of Group
|
|
43
43
|
*/
|
|
44
|
-
createGroup: (request: Readonly<CreateGroupRequest
|
|
44
|
+
createGroup: (request: Readonly<CreateGroupRequest>, options?: RequestOptions) => Promise<Group>;
|
|
45
|
+
/**
|
|
46
|
+
* Refresh an autoscaling group. This will replace all the instances of the group.
|
|
47
|
+
Its main use case is applying changes if the instance template has been updated.
|
|
48
|
+
*
|
|
49
|
+
* @param request - The request {@link RefreshGroupRequest}
|
|
50
|
+
* @returns A Promise of Group
|
|
51
|
+
*/
|
|
52
|
+
refreshGroup: (request: Readonly<RefreshGroupRequest>, options?: RequestOptions) => Promise<Group>;
|
|
45
53
|
/**
|
|
46
54
|
* Update an autoscaling group. Update the configuration of a specified autoscaling group including
|
|
47
55
|
name, tags, template, scaling policy, and load balancer settings.
|
|
@@ -49,7 +57,7 @@ declare class API$1 extends API {
|
|
|
49
57
|
* @param request - The request {@link UpdateGroupRequest}
|
|
50
58
|
* @returns A Promise of Group
|
|
51
59
|
*/
|
|
52
|
-
updateGroup: (request: Readonly<UpdateGroupRequest
|
|
60
|
+
updateGroup: (request: Readonly<UpdateGroupRequest>, options?: RequestOptions) => Promise<Group>;
|
|
53
61
|
/**
|
|
54
62
|
* Delete an autoscaling group. Delete a specified autoscaling group and all its associated
|
|
55
63
|
resources.
|
|
@@ -57,7 +65,7 @@ declare class API$1 extends API {
|
|
|
57
65
|
* @param request - The request {@link DeleteGroupRequest}
|
|
58
66
|
* @returns A Promise of Group
|
|
59
67
|
*/
|
|
60
|
-
deleteGroup: (request: Readonly<DeleteGroupRequest
|
|
68
|
+
deleteGroup: (request: Readonly<DeleteGroupRequest>, options?: RequestOptions) => Promise<Group>;
|
|
61
69
|
/**
|
|
62
70
|
* List autoscaling group logs. List logs for a specified autoscaling group to view scaling events
|
|
63
71
|
and activities.
|
|
@@ -65,21 +73,21 @@ declare class API$1 extends API {
|
|
|
65
73
|
* @param request - The request {@link ListLogsRequest}
|
|
66
74
|
* @returns A Promise of ListLogsResponse
|
|
67
75
|
*/
|
|
68
|
-
listLogs: (request: Readonly<ListLogsRequest
|
|
76
|
+
listLogs: (request: Readonly<ListLogsRequest>, options?: RequestOptions) => Promise<ListLogsResponse>;
|
|
69
77
|
/**
|
|
70
78
|
* List autoscaling group servers. List all Instances belonging to a specified autoscaling group.
|
|
71
79
|
*
|
|
72
80
|
* @param request - The request {@link ListServersRequest}
|
|
73
81
|
* @returns A Promise of ListServersResponse
|
|
74
82
|
*/
|
|
75
|
-
listServers: (request: Readonly<ListServersRequest
|
|
83
|
+
listServers: (request: Readonly<ListServersRequest>, options?: RequestOptions) => Promise<ListServersResponse>;
|
|
76
84
|
/**
|
|
77
85
|
* List autoscaling group alerts. List active and historical alerts for a specified autoscaling group.
|
|
78
86
|
*
|
|
79
87
|
* @param request - The request {@link ListAlertsRequest}
|
|
80
88
|
* @returns A Promise of ListAlertsResponse
|
|
81
89
|
*/
|
|
82
|
-
listAlerts: (request?: Readonly<ListAlertsRequest
|
|
90
|
+
listAlerts: (request?: Readonly<ListAlertsRequest>, options?: RequestOptions) => Promise<ListAlertsResponse>;
|
|
83
91
|
}
|
|
84
92
|
//#endregion
|
|
85
93
|
export { API$1 as API };
|
package/dist/v1alpha2/api.gen.js
CHANGED
|
@@ -10,43 +10,57 @@ const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" }
|
|
|
10
10
|
var API$1 = class extends API {
|
|
11
11
|
constructor(..._args) {
|
|
12
12
|
super(..._args);
|
|
13
|
-
this.listGroups = (request = {}) => this.client.fetch({
|
|
13
|
+
this.listGroups = (request = {}, options) => this.client.fetch({
|
|
14
14
|
method: "GET",
|
|
15
15
|
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups`,
|
|
16
|
-
urlParams: urlParams(["load_balancer_id", request.loadBalancerId], ["order_by", request.orderBy], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["project_id", request.projectId ?? this.client.settings.defaultProjectId], ["template_id", request.templateId])
|
|
16
|
+
urlParams: urlParams(["load_balancer_id", request.loadBalancerId], ["order_by", request.orderBy], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["project_id", request.projectId ?? this.client.settings.defaultProjectId], ["template_id", request.templateId]),
|
|
17
|
+
signal: options?.signal
|
|
17
18
|
}, unmarshalListGroupsResponse);
|
|
18
|
-
this.getGroup = (request) => this.client.fetch({
|
|
19
|
+
this.getGroup = (request, options) => this.client.fetch({
|
|
19
20
|
method: "GET",
|
|
20
|
-
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}
|
|
21
|
+
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}`,
|
|
22
|
+
signal: options?.signal
|
|
21
23
|
}, unmarshalGroup);
|
|
22
24
|
this.waitForGroup = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!GROUP_GROUP_TRANSIENT_STATUSES.includes(res.status))), this.getGroup, request, options);
|
|
23
|
-
this.createGroup = (request) => this.client.fetch({
|
|
25
|
+
this.createGroup = (request, options) => this.client.fetch({
|
|
24
26
|
body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
|
|
25
27
|
headers: jsonContentHeaders,
|
|
26
28
|
method: "POST",
|
|
27
|
-
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups
|
|
29
|
+
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups`,
|
|
30
|
+
signal: options?.signal
|
|
31
|
+
}, unmarshalGroup);
|
|
32
|
+
this.refreshGroup = (request, options) => this.client.fetch({
|
|
33
|
+
body: "{}",
|
|
34
|
+
headers: jsonContentHeaders,
|
|
35
|
+
method: "POST",
|
|
36
|
+
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}/refresh`,
|
|
37
|
+
signal: options?.signal
|
|
28
38
|
}, unmarshalGroup);
|
|
29
|
-
this.updateGroup = (request) => this.client.fetch({
|
|
39
|
+
this.updateGroup = (request, options) => this.client.fetch({
|
|
30
40
|
body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
|
|
31
41
|
headers: jsonContentHeaders,
|
|
32
42
|
method: "PATCH",
|
|
33
|
-
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}
|
|
43
|
+
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}`,
|
|
44
|
+
signal: options?.signal
|
|
34
45
|
}, unmarshalGroup);
|
|
35
|
-
this.deleteGroup = (request) => this.client.fetch({
|
|
46
|
+
this.deleteGroup = (request, options) => this.client.fetch({
|
|
36
47
|
method: "DELETE",
|
|
37
|
-
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}
|
|
48
|
+
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}`,
|
|
49
|
+
signal: options?.signal
|
|
38
50
|
}, unmarshalGroup);
|
|
39
|
-
this.listLogs = (request) => this.client.fetch({
|
|
51
|
+
this.listLogs = (request, options) => this.client.fetch({
|
|
40
52
|
method: "GET",
|
|
41
53
|
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/logs`,
|
|
42
|
-
urlParams: urlParams(["end_time", request.endTime], ["group_id", request.groupId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["start_time", request.startTime])
|
|
54
|
+
urlParams: urlParams(["end_time", request.endTime], ["group_id", request.groupId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ["start_time", request.startTime]),
|
|
55
|
+
signal: options?.signal
|
|
43
56
|
}, unmarshalListLogsResponse);
|
|
44
|
-
this.listServers = (request) => this.client.fetch({
|
|
57
|
+
this.listServers = (request, options) => this.client.fetch({
|
|
45
58
|
method: "GET",
|
|
46
59
|
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`,
|
|
47
|
-
urlParams: urlParams(["group_id", request.groupId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken])
|
|
60
|
+
urlParams: urlParams(["group_id", request.groupId], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken]),
|
|
61
|
+
signal: options?.signal
|
|
48
62
|
}, unmarshalListServersResponse);
|
|
49
|
-
this.listAlerts = (request = {}) => this.client.fetch({
|
|
63
|
+
this.listAlerts = (request = {}, options) => this.client.fetch({
|
|
50
64
|
method: "GET",
|
|
51
65
|
path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/alerts`,
|
|
52
66
|
urlParams: urlParams(["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["page_token", request.pageToken], ...Object.entries(resolveOneOf([{
|
|
@@ -56,14 +70,21 @@ var API$1 = class extends API {
|
|
|
56
70
|
default: this.client.settings.defaultProjectId,
|
|
57
71
|
param: "project_id",
|
|
58
72
|
value: request.projectId
|
|
59
|
-
}])))
|
|
73
|
+
}]))),
|
|
74
|
+
signal: options?.signal
|
|
60
75
|
}, unmarshalListAlertsResponse);
|
|
61
76
|
}
|
|
62
77
|
static {
|
|
63
78
|
this.LOCALITY = toApiLocality({ zones: [
|
|
64
79
|
"fr-par-1",
|
|
65
80
|
"fr-par-2",
|
|
66
|
-
"fr-par-3"
|
|
81
|
+
"fr-par-3",
|
|
82
|
+
"nl-ams-1",
|
|
83
|
+
"nl-ams-2",
|
|
84
|
+
"nl-ams-3",
|
|
85
|
+
"pl-waw-1",
|
|
86
|
+
"pl-waw-2",
|
|
87
|
+
"pl-waw-3"
|
|
67
88
|
] });
|
|
68
89
|
}
|
|
69
90
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Alert, AlertAlertType, CreateGroupRequest, DeleteGroupRequest, GetGroupRequest, Group, GroupGroupStatus, GroupLoadBalancerConfiguration, GroupLoadBalancerConfigurationAutoHealing, GroupLoadBalancerConfigurationBackend, GroupLoadBalancerConfigurationBackendAddressFamily, GroupScalingPolicy, GroupScalingPolicyScalingPolicyCpuTarget, GroupScalingPolicyScalingPolicyFixedSize, GroupScalingPolicyScalingPolicyMemoryTarget, GroupSummary, GroupSummaryScalingPolicyTargetType, ListAlertsRequest, ListAlertsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListLogsRequest, ListLogsResponse, ListServersRequest, ListServersResponse, LoadBalancerConfigurationSpec, LoadBalancerConfigurationSpecAutoHealing, LoadBalancerConfigurationSpecBackend, Log, LogLogLevel, ScalingPolicySpec, Server, UpdateGroupRequest } from "./types.gen.js";
|
|
1
|
+
import { Alert, AlertAlertType, CreateGroupRequest, DeleteGroupRequest, GetGroupRequest, Group, GroupGroupStatus, GroupLoadBalancerConfiguration, GroupLoadBalancerConfigurationAutoHealing, GroupLoadBalancerConfigurationBackend, GroupLoadBalancerConfigurationBackendAddressFamily, GroupScalingPolicy, GroupScalingPolicyScalingPolicyCpuTarget, GroupScalingPolicyScalingPolicyFixedSize, GroupScalingPolicyScalingPolicyMemoryTarget, GroupSummary, GroupSummaryScalingPolicyTargetType, ListAlertsRequest, ListAlertsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListLogsRequest, ListLogsResponse, ListServersRequest, ListServersResponse, LoadBalancerConfigurationSpec, LoadBalancerConfigurationSpecAutoHealing, LoadBalancerConfigurationSpecBackend, Log, LogLogLevel, RefreshGroupRequest, ScalingPolicySpec, Server, UpdateGroupRequest } from "./types.gen.js";
|
|
2
2
|
import { API } from "./api.gen.js";
|
|
3
3
|
import { GROUP_GROUP_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
4
4
|
import { ALERT_ALERT_TYPES, GROUP_GROUP_STATUSES, GROUP_LOAD_BALANCER_CONFIGURATION_BACKEND_ADDRESS_FAMILIES, GROUP_SUMMARY_SCALING_POLICY_TARGET_TYPES, LIST_GROUPS_REQUEST_ORDER_BIES, LOG_LOG_LEVELS } from "./constants.gen.js";
|
|
5
5
|
import { marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse } from "./marshalling.gen.js";
|
|
6
6
|
import { validation_rules_gen_d_exports } from "./validation-rules.gen.js";
|
|
7
7
|
declare namespace index_gen_d_exports {
|
|
8
|
-
export { ALERT_ALERT_TYPES, API, Alert, AlertAlertType, CreateGroupRequest, DeleteGroupRequest, GROUP_GROUP_STATUSES, GROUP_GROUP_TRANSIENT_STATUSES, GROUP_LOAD_BALANCER_CONFIGURATION_BACKEND_ADDRESS_FAMILIES, GROUP_SUMMARY_SCALING_POLICY_TARGET_TYPES, GetGroupRequest, Group, GroupGroupStatus, GroupLoadBalancerConfiguration, GroupLoadBalancerConfigurationAutoHealing, GroupLoadBalancerConfigurationBackend, GroupLoadBalancerConfigurationBackendAddressFamily, GroupScalingPolicy, GroupScalingPolicyScalingPolicyCpuTarget, GroupScalingPolicyScalingPolicyFixedSize, GroupScalingPolicyScalingPolicyMemoryTarget, GroupSummary, GroupSummaryScalingPolicyTargetType, LIST_GROUPS_REQUEST_ORDER_BIES, LOG_LOG_LEVELS, ListAlertsRequest, ListAlertsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListLogsRequest, ListLogsResponse, ListServersRequest, ListServersResponse, LoadBalancerConfigurationSpec, LoadBalancerConfigurationSpecAutoHealing, LoadBalancerConfigurationSpecBackend, Log, LogLogLevel, ScalingPolicySpec, Server, UpdateGroupRequest, validation_rules_gen_d_exports as ValidationRules, marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse };
|
|
8
|
+
export { ALERT_ALERT_TYPES, API, Alert, AlertAlertType, CreateGroupRequest, DeleteGroupRequest, GROUP_GROUP_STATUSES, GROUP_GROUP_TRANSIENT_STATUSES, GROUP_LOAD_BALANCER_CONFIGURATION_BACKEND_ADDRESS_FAMILIES, GROUP_SUMMARY_SCALING_POLICY_TARGET_TYPES, GetGroupRequest, Group, GroupGroupStatus, GroupLoadBalancerConfiguration, GroupLoadBalancerConfigurationAutoHealing, GroupLoadBalancerConfigurationBackend, GroupLoadBalancerConfigurationBackendAddressFamily, GroupScalingPolicy, GroupScalingPolicyScalingPolicyCpuTarget, GroupScalingPolicyScalingPolicyFixedSize, GroupScalingPolicyScalingPolicyMemoryTarget, GroupSummary, GroupSummaryScalingPolicyTargetType, LIST_GROUPS_REQUEST_ORDER_BIES, LOG_LOG_LEVELS, ListAlertsRequest, ListAlertsResponse, ListGroupsRequest, ListGroupsRequestOrderBy, ListGroupsResponse, ListLogsRequest, ListLogsResponse, ListServersRequest, ListServersResponse, LoadBalancerConfigurationSpec, LoadBalancerConfigurationSpecAutoHealing, LoadBalancerConfigurationSpecBackend, Log, LogLogLevel, RefreshGroupRequest, ScalingPolicySpec, Server, UpdateGroupRequest, validation_rules_gen_d_exports as ValidationRules, marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse };
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
export { ALERT_ALERT_TYPES, API, type Alert, type AlertAlertType, type CreateGroupRequest, type DeleteGroupRequest, GROUP_GROUP_STATUSES, GROUP_GROUP_TRANSIENT_STATUSES, GROUP_LOAD_BALANCER_CONFIGURATION_BACKEND_ADDRESS_FAMILIES, GROUP_SUMMARY_SCALING_POLICY_TARGET_TYPES, type GetGroupRequest, type Group, type GroupGroupStatus, type GroupLoadBalancerConfiguration, type GroupLoadBalancerConfigurationAutoHealing, type GroupLoadBalancerConfigurationBackend, type GroupLoadBalancerConfigurationBackendAddressFamily, type GroupScalingPolicy, type GroupScalingPolicyScalingPolicyCpuTarget, type GroupScalingPolicyScalingPolicyFixedSize, type GroupScalingPolicyScalingPolicyMemoryTarget, type GroupSummary, type GroupSummaryScalingPolicyTargetType, LIST_GROUPS_REQUEST_ORDER_BIES, LOG_LOG_LEVELS, type ListAlertsRequest, type ListAlertsResponse, type ListGroupsRequest, type ListGroupsRequestOrderBy, type ListGroupsResponse, type ListLogsRequest, type ListLogsResponse, type ListServersRequest, type ListServersResponse, type LoadBalancerConfigurationSpec, type LoadBalancerConfigurationSpecAutoHealing, type LoadBalancerConfigurationSpecBackend, type Log, type LogLogLevel, type ScalingPolicySpec, type Server, type UpdateGroupRequest, validation_rules_gen_d_exports as ValidationRules, index_gen_d_exports, marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse };
|
|
11
|
+
export { ALERT_ALERT_TYPES, API, type Alert, type AlertAlertType, type CreateGroupRequest, type DeleteGroupRequest, GROUP_GROUP_STATUSES, GROUP_GROUP_TRANSIENT_STATUSES, GROUP_LOAD_BALANCER_CONFIGURATION_BACKEND_ADDRESS_FAMILIES, GROUP_SUMMARY_SCALING_POLICY_TARGET_TYPES, type GetGroupRequest, type Group, type GroupGroupStatus, type GroupLoadBalancerConfiguration, type GroupLoadBalancerConfigurationAutoHealing, type GroupLoadBalancerConfigurationBackend, type GroupLoadBalancerConfigurationBackendAddressFamily, type GroupScalingPolicy, type GroupScalingPolicyScalingPolicyCpuTarget, type GroupScalingPolicyScalingPolicyFixedSize, type GroupScalingPolicyScalingPolicyMemoryTarget, type GroupSummary, type GroupSummaryScalingPolicyTargetType, LIST_GROUPS_REQUEST_ORDER_BIES, LOG_LOG_LEVELS, type ListAlertsRequest, type ListAlertsResponse, type ListGroupsRequest, type ListGroupsRequestOrderBy, type ListGroupsResponse, type ListLogsRequest, type ListLogsResponse, type ListServersRequest, type ListServersResponse, type LoadBalancerConfigurationSpec, type LoadBalancerConfigurationSpecAutoHealing, type LoadBalancerConfigurationSpecBackend, type Log, type LogLogLevel, type RefreshGroupRequest, type ScalingPolicySpec, type Server, type UpdateGroupRequest, validation_rules_gen_d_exports as ValidationRules, index_gen_d_exports, marshalCreateGroupRequest, marshalUpdateGroupRequest, unmarshalGroup, unmarshalListAlertsResponse, unmarshalListGroupsResponse, unmarshalListLogsResponse, unmarshalListServersResponse };
|
|
@@ -474,6 +474,13 @@ export interface ListServersResponse {
|
|
|
474
474
|
*/
|
|
475
475
|
totalCount: number;
|
|
476
476
|
}
|
|
477
|
+
export type RefreshGroupRequest = {
|
|
478
|
+
/**
|
|
479
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
480
|
+
*/
|
|
481
|
+
zone?: Zone;
|
|
482
|
+
groupId: string;
|
|
483
|
+
};
|
|
477
484
|
export type UpdateGroupRequest = {
|
|
478
485
|
/**
|
|
479
486
|
* Zone to target. If none is passed will use default zone from the config.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-autoscaling",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Scaleway SDK autoscaling",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.9.
|
|
36
|
+
"@scaleway/sdk-std": "2.9.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@repo/configs": "^0.1.1",
|
|
40
|
-
"@scaleway/sdk-client": "^2.12.
|
|
40
|
+
"@scaleway/sdk-client": "^2.12.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@scaleway/sdk-client": "^2.12.
|
|
43
|
+
"@scaleway/sdk-client": "^2.12.1"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"package:check": "pnpm publint",
|