@scaleway/sdk-autoscaling 2.17.3 → 2.18.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.
@@ -24,21 +24,30 @@ var API$1 = class extends API {
24
24
  this.waitForGroup = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!GROUP_GROUP_TRANSIENT_STATUSES.includes(res.status))), this.getGroup, request, options);
25
25
  this.createGroup = (request, options) => this.client.fetch({
26
26
  body: JSON.stringify(marshalCreateGroupRequest(request, this.client.settings)),
27
- headers: jsonContentHeaders,
27
+ headers: {
28
+ ...jsonContentHeaders,
29
+ ...options?.headers
30
+ },
28
31
  method: "POST",
29
32
  path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups`,
30
33
  signal: options?.signal
31
34
  }, unmarshalGroup);
32
35
  this.refreshGroup = (request, options) => this.client.fetch({
33
36
  body: "{}",
34
- headers: jsonContentHeaders,
37
+ headers: {
38
+ ...jsonContentHeaders,
39
+ ...options?.headers
40
+ },
35
41
  method: "POST",
36
42
  path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}/refresh`,
37
43
  signal: options?.signal
38
44
  }, unmarshalGroup);
39
45
  this.updateGroup = (request, options) => this.client.fetch({
40
46
  body: JSON.stringify(marshalUpdateGroupRequest(request, this.client.settings)),
41
- headers: jsonContentHeaders,
47
+ headers: {
48
+ ...jsonContentHeaders,
49
+ ...options?.headers
50
+ },
42
51
  method: "PATCH",
43
52
  path: `/autoscaling/v1alpha2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/groups/${validatePathParam("groupId", request.groupId)}`,
44
53
  signal: options?.signal
@@ -84,7 +93,10 @@ var API$1 = class extends API {
84
93
  "nl-ams-3",
85
94
  "pl-waw-1",
86
95
  "pl-waw-2",
87
- "pl-waw-3"
96
+ "pl-waw-3",
97
+ "it-mil-1",
98
+ "it-mil-2",
99
+ "it-mil-3"
88
100
  ] });
89
101
  }
90
102
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-autoscaling",
3
- "version": "2.17.3",
3
+ "version": "2.18.0",
4
4
  "description": "Scaleway SDK autoscaling",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {