@scaleway/sdk-autoscaling 2.4.0 → 2.5.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/.vite/license.md +3 -0
- package/dist/metadata.gen.d.ts +6 -6
- package/dist/metadata.gen.js +6 -2
- package/dist/v1alpha1/api.gen.js +88 -178
- package/dist/v1alpha1/marshalling.gen.js +29 -29
- package/dist/v1alpha1/metadata.gen.js +1 -1
- package/dist/v1alpha1/validation-rules.gen.js +15 -15
- package/package.json +15 -14
- package/LICENSE +0 -191
- package/dist/metadata.gen.json +0 -6
- package/dist/metadata2.gen.js +0 -8
package/dist/metadata.gen.d.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* This file is automatically generated
|
|
3
3
|
* PLEASE DO NOT EDIT HERE
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
name:
|
|
7
|
-
namespace:
|
|
8
|
-
displayName:
|
|
9
|
-
versions:
|
|
5
|
+
export declare const pkgMetadata: {
|
|
6
|
+
readonly name: "@scaleway/sdk-autoscaling";
|
|
7
|
+
readonly namespace: "autoscaling";
|
|
8
|
+
readonly displayName: "Autoscaling";
|
|
9
|
+
readonly versions: readonly ["v1alpha1"];
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type Metadata = typeof pkgMetadata;
|
|
12
12
|
export default pkgMetadata;
|
package/dist/metadata.gen.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import metadata_gen_default from "./metadata2.gen.js";
|
|
2
1
|
//#region src/metadata.gen.ts
|
|
3
2
|
/**
|
|
4
3
|
* This file is automatically generated
|
|
5
4
|
* PLEASE DO NOT EDIT HERE
|
|
6
5
|
*/
|
|
7
|
-
|
|
6
|
+
const pkgMetadata = {
|
|
7
|
+
name: "@scaleway/sdk-autoscaling",
|
|
8
|
+
namespace: "autoscaling",
|
|
9
|
+
displayName: "Autoscaling",
|
|
10
|
+
versions: ["v1alpha1"]
|
|
11
|
+
};
|
|
8
12
|
//#endregion
|
|
9
13
|
export { pkgMetadata as default, pkgMetadata };
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,188 +1,98 @@
|
|
|
1
1
|
import { marshalCreateInstanceGroupRequest, marshalCreateInstancePolicyRequest, marshalCreateInstanceTemplateRequest, marshalUpdateInstanceGroupRequest, marshalUpdateInstancePolicyRequest, marshalUpdateInstanceTemplateRequest, unmarshalInstanceGroup, unmarshalInstancePolicy, unmarshalInstanceTemplate, unmarshalListInstanceGroupEventsResponse, unmarshalListInstanceGroupsResponse, unmarshalListInstancePoliciesResponse, unmarshalListInstanceTemplatesResponse } from "./marshalling.gen.js";
|
|
2
2
|
import { API as API$1, enrichForPagination, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
3
|
//#region src/v1alpha1/api.gen.ts
|
|
4
|
-
|
|
4
|
+
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
5
|
/**
|
|
6
6
|
* Instance Scaling Groups API.
|
|
7
7
|
*/
|
|
8
8
|
var API = class extends API$1 {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-templates/${validatePathParam("templateId", request.templateId)}`
|
|
97
|
-
}, unmarshalInstanceTemplate);
|
|
98
|
-
/**
|
|
99
|
-
* Delete Instance template. Delete an existing Instance template. This action is permanent and cannot be undone.
|
|
100
|
-
*
|
|
101
|
-
* @param request - The request {@link DeleteInstanceTemplateRequest}
|
|
102
|
-
*/
|
|
103
|
-
deleteInstanceTemplate = (request) => this.client.fetch({
|
|
104
|
-
method: "DELETE",
|
|
105
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-templates/${validatePathParam("templateId", request.templateId)}`
|
|
106
|
-
});
|
|
107
|
-
pageOfListInstanceTemplates = (request = {}) => this.client.fetch({
|
|
108
|
-
method: "GET",
|
|
109
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-templates`,
|
|
110
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
111
|
-
}, unmarshalListInstanceTemplatesResponse);
|
|
112
|
-
/**
|
|
113
|
-
* List Instance templates. List all Instance templates, for a Scaleway Organization or Scaleway Project. By default, the Instance templates returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
|
|
114
|
-
*
|
|
115
|
-
* @param request - The request {@link ListInstanceTemplatesRequest}
|
|
116
|
-
* @returns A Promise of ListInstanceTemplatesResponse
|
|
117
|
-
*/
|
|
118
|
-
listInstanceTemplates = (request = {}) => enrichForPagination("instanceTemplates", this.pageOfListInstanceTemplates, request);
|
|
119
|
-
/**
|
|
120
|
-
* Create scaling policy. Create a new scaling policy. You must specify a `policy_id`, capacity and Load Balancer object.
|
|
121
|
-
*
|
|
122
|
-
* @param request - The request {@link CreateInstancePolicyRequest}
|
|
123
|
-
* @returns A Promise of InstancePolicy
|
|
124
|
-
*/
|
|
125
|
-
createInstancePolicy = (request) => this.client.fetch({
|
|
126
|
-
body: JSON.stringify(marshalCreateInstancePolicyRequest(request, this.client.settings)),
|
|
127
|
-
headers: jsonContentHeaders,
|
|
128
|
-
method: "POST",
|
|
129
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies`
|
|
130
|
-
}, unmarshalInstancePolicy);
|
|
131
|
-
/**
|
|
132
|
-
* Update scaling policy. Update the parameters of an existing scaling policy, specified by its `policy_id`.
|
|
133
|
-
*
|
|
134
|
-
* @param request - The request {@link UpdateInstancePolicyRequest}
|
|
135
|
-
* @returns A Promise of InstancePolicy
|
|
136
|
-
*/
|
|
137
|
-
updateInstancePolicy = (request) => this.client.fetch({
|
|
138
|
-
body: JSON.stringify(marshalUpdateInstancePolicyRequest(request, this.client.settings)),
|
|
139
|
-
headers: jsonContentHeaders,
|
|
140
|
-
method: "PATCH",
|
|
141
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies/${validatePathParam("policyId", request.policyId)}`
|
|
142
|
-
}, unmarshalInstancePolicy);
|
|
143
|
-
pageOfListInstancePolicies = (request) => this.client.fetch({
|
|
144
|
-
method: "GET",
|
|
145
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies`,
|
|
146
|
-
urlParams: urlParams(["instance_group_id", request.instanceGroupId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
147
|
-
}, unmarshalListInstancePoliciesResponse);
|
|
148
|
-
/**
|
|
149
|
-
* List scaling policies. List all scaling policies, for a Scaleway Organization or Scaleway Project. By default, the policies returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
|
|
150
|
-
*
|
|
151
|
-
* @param request - The request {@link ListInstancePoliciesRequest}
|
|
152
|
-
* @returns A Promise of ListInstancePoliciesResponse
|
|
153
|
-
*/
|
|
154
|
-
listInstancePolicies = (request) => enrichForPagination("policies", this.pageOfListInstancePolicies, request);
|
|
155
|
-
/**
|
|
156
|
-
* Get scaling policy. Retrieve information about an existing scaling policy, specified by its `policy_id`. Its full details are returned in the response object.
|
|
157
|
-
*
|
|
158
|
-
* @param request - The request {@link GetInstancePolicyRequest}
|
|
159
|
-
* @returns A Promise of InstancePolicy
|
|
160
|
-
*/
|
|
161
|
-
getInstancePolicy = (request) => this.client.fetch({
|
|
162
|
-
method: "GET",
|
|
163
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies/${validatePathParam("policyId", request.policyId)}`
|
|
164
|
-
}, unmarshalInstancePolicy);
|
|
165
|
-
/**
|
|
166
|
-
* Delete scaling policy. Delete an existing scaling policy, specified by its `policy_id`. Deleting a scaling policy is permanent, and cannot be undone.
|
|
167
|
-
*
|
|
168
|
-
* @param request - The request {@link DeleteInstancePolicyRequest}
|
|
169
|
-
*/
|
|
170
|
-
deleteInstancePolicy = (request) => this.client.fetch({
|
|
171
|
-
method: "DELETE",
|
|
172
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies/${validatePathParam("policyId", request.policyId)}`
|
|
173
|
-
});
|
|
174
|
-
pageOfListInstanceGroupEvents = (request) => this.client.fetch({
|
|
175
|
-
method: "GET",
|
|
176
|
-
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-groups/${validatePathParam("instanceGroupId", request.instanceGroupId)}/events`,
|
|
177
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
178
|
-
}, unmarshalListInstanceGroupEventsResponse);
|
|
179
|
-
/**
|
|
180
|
-
* List events. List all events for a given Instance group. By default, the events are ordered by creation date in descending order, though this can be modified via the `order_by` field.
|
|
181
|
-
*
|
|
182
|
-
* @param request - The request {@link ListInstanceGroupEventsRequest}
|
|
183
|
-
* @returns A Promise of ListInstanceGroupEventsResponse
|
|
184
|
-
*/
|
|
185
|
-
listInstanceGroupEvents = (request) => enrichForPagination("instanceEvents", this.pageOfListInstanceGroupEvents, request);
|
|
9
|
+
constructor(..._args) {
|
|
10
|
+
super(..._args);
|
|
11
|
+
this.getInstanceGroup = (request) => this.client.fetch({
|
|
12
|
+
method: "GET",
|
|
13
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-groups/${validatePathParam("instanceGroupId", request.instanceGroupId)}`
|
|
14
|
+
}, unmarshalInstanceGroup);
|
|
15
|
+
this.createInstanceGroup = (request) => this.client.fetch({
|
|
16
|
+
body: JSON.stringify(marshalCreateInstanceGroupRequest(request, this.client.settings)),
|
|
17
|
+
headers: jsonContentHeaders,
|
|
18
|
+
method: "POST",
|
|
19
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-groups`
|
|
20
|
+
}, unmarshalInstanceGroup);
|
|
21
|
+
this.pageOfListInstanceGroups = (request = {}) => this.client.fetch({
|
|
22
|
+
method: "GET",
|
|
23
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-groups`,
|
|
24
|
+
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
25
|
+
}, unmarshalListInstanceGroupsResponse);
|
|
26
|
+
this.listInstanceGroups = (request = {}) => enrichForPagination("instanceGroups", this.pageOfListInstanceGroups, request);
|
|
27
|
+
this.updateInstanceGroup = (request) => this.client.fetch({
|
|
28
|
+
body: JSON.stringify(marshalUpdateInstanceGroupRequest(request, this.client.settings)),
|
|
29
|
+
headers: jsonContentHeaders,
|
|
30
|
+
method: "PATCH",
|
|
31
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-groups/${validatePathParam("instanceGroupId", request.instanceGroupId)}`
|
|
32
|
+
}, unmarshalInstanceGroup);
|
|
33
|
+
this.deleteInstanceGroup = (request) => this.client.fetch({
|
|
34
|
+
method: "DELETE",
|
|
35
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-groups/${validatePathParam("instanceGroupId", request.instanceGroupId)}`
|
|
36
|
+
});
|
|
37
|
+
this.createInstanceTemplate = (request) => this.client.fetch({
|
|
38
|
+
body: JSON.stringify(marshalCreateInstanceTemplateRequest(request, this.client.settings)),
|
|
39
|
+
headers: jsonContentHeaders,
|
|
40
|
+
method: "POST",
|
|
41
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-templates`
|
|
42
|
+
}, unmarshalInstanceTemplate);
|
|
43
|
+
this.updateInstanceTemplate = (request) => this.client.fetch({
|
|
44
|
+
body: JSON.stringify(marshalUpdateInstanceTemplateRequest(request, this.client.settings)),
|
|
45
|
+
headers: jsonContentHeaders,
|
|
46
|
+
method: "PATCH",
|
|
47
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-templates/${validatePathParam("templateId", request.templateId)}`
|
|
48
|
+
}, unmarshalInstanceTemplate);
|
|
49
|
+
this.getInstanceTemplate = (request) => this.client.fetch({
|
|
50
|
+
method: "GET",
|
|
51
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-templates/${validatePathParam("templateId", request.templateId)}`
|
|
52
|
+
}, unmarshalInstanceTemplate);
|
|
53
|
+
this.deleteInstanceTemplate = (request) => this.client.fetch({
|
|
54
|
+
method: "DELETE",
|
|
55
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-templates/${validatePathParam("templateId", request.templateId)}`
|
|
56
|
+
});
|
|
57
|
+
this.pageOfListInstanceTemplates = (request = {}) => this.client.fetch({
|
|
58
|
+
method: "GET",
|
|
59
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-templates`,
|
|
60
|
+
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
61
|
+
}, unmarshalListInstanceTemplatesResponse);
|
|
62
|
+
this.listInstanceTemplates = (request = {}) => enrichForPagination("instanceTemplates", this.pageOfListInstanceTemplates, request);
|
|
63
|
+
this.createInstancePolicy = (request) => this.client.fetch({
|
|
64
|
+
body: JSON.stringify(marshalCreateInstancePolicyRequest(request, this.client.settings)),
|
|
65
|
+
headers: jsonContentHeaders,
|
|
66
|
+
method: "POST",
|
|
67
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies`
|
|
68
|
+
}, unmarshalInstancePolicy);
|
|
69
|
+
this.updateInstancePolicy = (request) => this.client.fetch({
|
|
70
|
+
body: JSON.stringify(marshalUpdateInstancePolicyRequest(request, this.client.settings)),
|
|
71
|
+
headers: jsonContentHeaders,
|
|
72
|
+
method: "PATCH",
|
|
73
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies/${validatePathParam("policyId", request.policyId)}`
|
|
74
|
+
}, unmarshalInstancePolicy);
|
|
75
|
+
this.pageOfListInstancePolicies = (request) => this.client.fetch({
|
|
76
|
+
method: "GET",
|
|
77
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies`,
|
|
78
|
+
urlParams: urlParams(["instance_group_id", request.instanceGroupId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
79
|
+
}, unmarshalListInstancePoliciesResponse);
|
|
80
|
+
this.listInstancePolicies = (request) => enrichForPagination("policies", this.pageOfListInstancePolicies, request);
|
|
81
|
+
this.getInstancePolicy = (request) => this.client.fetch({
|
|
82
|
+
method: "GET",
|
|
83
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies/${validatePathParam("policyId", request.policyId)}`
|
|
84
|
+
}, unmarshalInstancePolicy);
|
|
85
|
+
this.deleteInstancePolicy = (request) => this.client.fetch({
|
|
86
|
+
method: "DELETE",
|
|
87
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-policies/${validatePathParam("policyId", request.policyId)}`
|
|
88
|
+
});
|
|
89
|
+
this.pageOfListInstanceGroupEvents = (request) => this.client.fetch({
|
|
90
|
+
method: "GET",
|
|
91
|
+
path: `/autoscaling/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/instance-groups/${validatePathParam("instanceGroupId", request.instanceGroupId)}/events`,
|
|
92
|
+
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
93
|
+
}, unmarshalListInstanceGroupEventsResponse);
|
|
94
|
+
this.listInstanceGroupEvents = (request) => enrichForPagination("instanceEvents", this.pageOfListInstanceGroupEvents, request);
|
|
95
|
+
}
|
|
186
96
|
};
|
|
187
97
|
//#endregion
|
|
188
98
|
export { API };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject } from "@scaleway/sdk-client";
|
|
2
2
|
//#region src/v1alpha1/marshalling.gen.ts
|
|
3
|
-
|
|
3
|
+
const unmarshalCapacity = (data) => {
|
|
4
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Capacity' failed as data isn't a dictionary.`);
|
|
5
5
|
return {
|
|
6
6
|
cooldownDelay: data.cooldown_delay,
|
|
@@ -8,7 +8,7 @@ var unmarshalCapacity = (data) => {
|
|
|
8
8
|
minReplicas: data.min_replicas
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
const unmarshalLoadbalancer = (data) => {
|
|
12
12
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Loadbalancer' failed as data isn't a dictionary.`);
|
|
13
13
|
return {
|
|
14
14
|
backendIds: data.backend_ids,
|
|
@@ -16,7 +16,7 @@ var unmarshalLoadbalancer = (data) => {
|
|
|
16
16
|
privateNetworkId: data.private_network_id
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const unmarshalInstanceGroup = (data) => {
|
|
20
20
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstanceGroup' failed as data isn't a dictionary.`);
|
|
21
21
|
return {
|
|
22
22
|
capacity: unmarshalCapacity(data.capacity),
|
|
@@ -32,7 +32,7 @@ var unmarshalInstanceGroup = (data) => {
|
|
|
32
32
|
zone: data.zone
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
const unmarshalMetric = (data) => {
|
|
36
36
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Metric' failed as data isn't a dictionary.`);
|
|
37
37
|
return {
|
|
38
38
|
aggregate: data.aggregate,
|
|
@@ -44,7 +44,7 @@ var unmarshalMetric = (data) => {
|
|
|
44
44
|
threshold: data.threshold
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
const unmarshalInstancePolicy = (data) => {
|
|
48
48
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstancePolicy' failed as data isn't a dictionary.`);
|
|
49
49
|
return {
|
|
50
50
|
action: data.action,
|
|
@@ -58,18 +58,18 @@ var unmarshalInstancePolicy = (data) => {
|
|
|
58
58
|
zone: data.zone
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
const unmarshalVolumeInstanceTemplateFromEmpty = (data) => {
|
|
62
62
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VolumeInstanceTemplateFromEmpty' failed as data isn't a dictionary.`);
|
|
63
63
|
return { size: data.size };
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
const unmarshalVolumeInstanceTemplateFromSnapshot = (data) => {
|
|
66
66
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VolumeInstanceTemplateFromSnapshot' failed as data isn't a dictionary.`);
|
|
67
67
|
return {
|
|
68
68
|
size: data.size,
|
|
69
69
|
snapshotId: data.snapshot_id
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
const unmarshalVolumeInstanceTemplate = (data) => {
|
|
73
73
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'VolumeInstanceTemplate' failed as data isn't a dictionary.`);
|
|
74
74
|
return {
|
|
75
75
|
boot: data.boot,
|
|
@@ -81,7 +81,7 @@ var unmarshalVolumeInstanceTemplate = (data) => {
|
|
|
81
81
|
volumeType: data.volume_type
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
const unmarshalInstanceTemplate = (data) => {
|
|
85
85
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstanceTemplate' failed as data isn't a dictionary.`);
|
|
86
86
|
return {
|
|
87
87
|
cloudInit: data.cloud_init,
|
|
@@ -103,7 +103,7 @@ var unmarshalInstanceTemplate = (data) => {
|
|
|
103
103
|
zone: data.zone
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
|
|
106
|
+
const unmarshalInstanceGroupEvent = (data) => {
|
|
107
107
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstanceGroupEvent' failed as data isn't a dictionary.`);
|
|
108
108
|
return {
|
|
109
109
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -114,45 +114,45 @@ var unmarshalInstanceGroupEvent = (data) => {
|
|
|
114
114
|
source: data.source
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
const unmarshalListInstanceGroupEventsResponse = (data) => {
|
|
118
118
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstanceGroupEventsResponse' failed as data isn't a dictionary.`);
|
|
119
119
|
return {
|
|
120
120
|
instanceEvents: unmarshalArrayOfObject(data.instance_events, unmarshalInstanceGroupEvent),
|
|
121
121
|
totalCount: data.total_count
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
const unmarshalListInstanceGroupsResponse = (data) => {
|
|
125
125
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstanceGroupsResponse' failed as data isn't a dictionary.`);
|
|
126
126
|
return {
|
|
127
127
|
instanceGroups: unmarshalArrayOfObject(data.instance_groups, unmarshalInstanceGroup),
|
|
128
128
|
totalCount: data.total_count
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
|
-
|
|
131
|
+
const unmarshalListInstancePoliciesResponse = (data) => {
|
|
132
132
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstancePoliciesResponse' failed as data isn't a dictionary.`);
|
|
133
133
|
return {
|
|
134
134
|
policies: unmarshalArrayOfObject(data.policies, unmarshalInstancePolicy),
|
|
135
135
|
totalCount: data.total_count
|
|
136
136
|
};
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
const unmarshalListInstanceTemplatesResponse = (data) => {
|
|
139
139
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstanceTemplatesResponse' failed as data isn't a dictionary.`);
|
|
140
140
|
return {
|
|
141
141
|
instanceTemplates: unmarshalArrayOfObject(data.instance_templates, unmarshalInstanceTemplate),
|
|
142
142
|
totalCount: data.total_count
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
const marshalCapacity = (request, defaults) => ({
|
|
146
146
|
cooldown_delay: request.cooldownDelay,
|
|
147
147
|
max_replicas: request.maxReplicas,
|
|
148
148
|
min_replicas: request.minReplicas
|
|
149
149
|
});
|
|
150
|
-
|
|
150
|
+
const marshalLoadbalancer = (request, defaults) => ({
|
|
151
151
|
backend_ids: request.backendIds,
|
|
152
152
|
id: request.id,
|
|
153
153
|
private_network_id: request.privateNetworkId
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
const marshalCreateInstanceGroupRequest = (request, defaults) => ({
|
|
156
156
|
capacity: marshalCapacity(request.capacity, defaults),
|
|
157
157
|
loadbalancer: marshalLoadbalancer(request.loadbalancer, defaults),
|
|
158
158
|
name: request.name,
|
|
@@ -160,7 +160,7 @@ var marshalCreateInstanceGroupRequest = (request, defaults) => ({
|
|
|
160
160
|
tags: request.tags,
|
|
161
161
|
template_id: request.templateId
|
|
162
162
|
});
|
|
163
|
-
|
|
163
|
+
const marshalMetric = (request, defaults) => ({
|
|
164
164
|
aggregate: request.aggregate,
|
|
165
165
|
name: request.name,
|
|
166
166
|
operator: request.operator,
|
|
@@ -174,7 +174,7 @@ var marshalMetric = (request, defaults) => ({
|
|
|
174
174
|
value: request.cockpitMetricName
|
|
175
175
|
}])
|
|
176
176
|
});
|
|
177
|
-
|
|
177
|
+
const marshalCreateInstancePolicyRequest = (request, defaults) => ({
|
|
178
178
|
action: request.action,
|
|
179
179
|
instance_group_id: request.instanceGroupId,
|
|
180
180
|
name: request.name,
|
|
@@ -186,12 +186,12 @@ var marshalCreateInstancePolicyRequest = (request, defaults) => ({
|
|
|
186
186
|
value: request.metric !== void 0 ? marshalMetric(request.metric, defaults) : void 0
|
|
187
187
|
}])
|
|
188
188
|
});
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
const marshalVolumeInstanceTemplateFromEmpty = (request, defaults) => ({ size: request.size });
|
|
190
|
+
const marshalVolumeInstanceTemplateFromSnapshot = (request, defaults) => ({
|
|
191
191
|
size: request.size,
|
|
192
192
|
snapshot_id: request.snapshotId
|
|
193
193
|
});
|
|
194
|
-
|
|
194
|
+
const marshalVolumeInstanceTemplate = (request, defaults) => ({
|
|
195
195
|
boot: request.boot,
|
|
196
196
|
name: request.name,
|
|
197
197
|
tags: request.tags,
|
|
@@ -208,7 +208,7 @@ var marshalVolumeInstanceTemplate = (request, defaults) => ({
|
|
|
208
208
|
value: request.perfIops
|
|
209
209
|
}])
|
|
210
210
|
});
|
|
211
|
-
|
|
211
|
+
const marshalCreateInstanceTemplateRequest = (request, defaults) => ({
|
|
212
212
|
cloud_init: request.cloudInit,
|
|
213
213
|
commercial_type: request.commercialType,
|
|
214
214
|
image_id: request.imageId,
|
|
@@ -225,19 +225,19 @@ var marshalCreateInstanceTemplateRequest = (request, defaults) => ({
|
|
|
225
225
|
[key]: marshalVolumeInstanceTemplate(value, defaults)
|
|
226
226
|
}), {})
|
|
227
227
|
});
|
|
228
|
-
|
|
228
|
+
const marshalUpdateInstanceGroupRequestCapacity = (request, defaults) => ({
|
|
229
229
|
cooldown_delay: request.cooldownDelay,
|
|
230
230
|
max_replicas: request.maxReplicas,
|
|
231
231
|
min_replicas: request.minReplicas
|
|
232
232
|
});
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
const marshalUpdateInstanceGroupRequestLoadbalancer = (request, defaults) => ({ backend_ids: request.backendIds });
|
|
234
|
+
const marshalUpdateInstanceGroupRequest = (request, defaults) => ({
|
|
235
235
|
capacity: request.capacity !== void 0 ? marshalUpdateInstanceGroupRequestCapacity(request.capacity, defaults) : void 0,
|
|
236
236
|
loadbalancer: request.loadbalancer !== void 0 ? marshalUpdateInstanceGroupRequestLoadbalancer(request.loadbalancer, defaults) : void 0,
|
|
237
237
|
name: request.name,
|
|
238
238
|
tags: request.tags
|
|
239
239
|
});
|
|
240
|
-
|
|
240
|
+
const marshalUpdateInstancePolicyRequestMetric = (request, defaults) => ({
|
|
241
241
|
aggregate: request.aggregate,
|
|
242
242
|
name: request.name,
|
|
243
243
|
operator: request.operator,
|
|
@@ -251,7 +251,7 @@ var marshalUpdateInstancePolicyRequestMetric = (request, defaults) => ({
|
|
|
251
251
|
value: request.cockpitMetricName
|
|
252
252
|
}])
|
|
253
253
|
});
|
|
254
|
-
|
|
254
|
+
const marshalUpdateInstancePolicyRequest = (request, defaults) => ({
|
|
255
255
|
action: request.action,
|
|
256
256
|
name: request.name,
|
|
257
257
|
priority: request.priority,
|
|
@@ -262,7 +262,7 @@ var marshalUpdateInstancePolicyRequest = (request, defaults) => ({
|
|
|
262
262
|
value: request.metric !== void 0 ? marshalUpdateInstancePolicyRequestMetric(request.metric, defaults) : void 0
|
|
263
263
|
}])
|
|
264
264
|
});
|
|
265
|
-
|
|
265
|
+
const marshalUpdateInstanceTemplateRequest = (request, defaults) => ({
|
|
266
266
|
cloud_init: request.cloudInit,
|
|
267
267
|
commercial_type: request.commercialType,
|
|
268
268
|
image_id: request.imageId,
|
|
@@ -17,54 +17,54 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
17
17
|
UpdateInstanceTemplateRequest: () => UpdateInstanceTemplateRequest,
|
|
18
18
|
VolumeInstanceTemplate: () => VolumeInstanceTemplate
|
|
19
19
|
});
|
|
20
|
-
|
|
20
|
+
const Capacity = {
|
|
21
21
|
maxReplicas: { greaterThanOrEqual: 2 },
|
|
22
22
|
minReplicas: { greaterThanOrEqual: 1 }
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
const CreateInstanceGroupRequest = { name: {
|
|
25
25
|
maxLength: 255,
|
|
26
26
|
minLength: 1
|
|
27
27
|
} };
|
|
28
|
-
|
|
28
|
+
const CreateInstancePolicyRequest = {
|
|
29
29
|
name: {
|
|
30
30
|
maxLength: 255,
|
|
31
31
|
minLength: 1
|
|
32
32
|
},
|
|
33
33
|
value: { greaterThanOrEqual: 1 }
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
const CreateInstanceTemplateRequest = { name: {
|
|
36
36
|
maxLength: 255,
|
|
37
37
|
minLength: 1
|
|
38
38
|
} };
|
|
39
|
-
|
|
39
|
+
const ListInstanceGroupEventsRequest = {
|
|
40
40
|
page: { greaterThanOrEqual: 1 },
|
|
41
41
|
pageSize: {
|
|
42
42
|
greaterThanOrEqual: 1,
|
|
43
43
|
lessThanOrEqual: 1e3
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
const ListInstanceGroupsRequest = {
|
|
47
47
|
page: { greaterThanOrEqual: 1 },
|
|
48
48
|
pageSize: {
|
|
49
49
|
greaterThanOrEqual: 1,
|
|
50
50
|
lessThanOrEqual: 1e3
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
const ListInstancePoliciesRequest = {
|
|
54
54
|
page: { greaterThanOrEqual: 1 },
|
|
55
55
|
pageSize: {
|
|
56
56
|
greaterThanOrEqual: 1,
|
|
57
57
|
lessThanOrEqual: 1e3
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
const ListInstanceTemplatesRequest = {
|
|
61
61
|
page: { greaterThanOrEqual: 1 },
|
|
62
62
|
pageSize: {
|
|
63
63
|
greaterThanOrEqual: 1,
|
|
64
64
|
lessThanOrEqual: 1e3
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
const Metric = {
|
|
68
68
|
name: {
|
|
69
69
|
maxLength: 255,
|
|
70
70
|
minLength: 1
|
|
@@ -74,22 +74,22 @@ var Metric = {
|
|
|
74
74
|
lessThanOrEqual: 60
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
const UpdateInstanceGroupRequest = { name: {
|
|
78
78
|
maxLength: 255,
|
|
79
79
|
minLength: 1
|
|
80
80
|
} };
|
|
81
|
-
|
|
81
|
+
const UpdateInstanceGroupRequestCapacity = {
|
|
82
82
|
maxReplicas: { greaterThanOrEqual: 2 },
|
|
83
83
|
minReplicas: { greaterThanOrEqual: 1 }
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
const UpdateInstancePolicyRequest = {
|
|
86
86
|
name: {
|
|
87
87
|
maxLength: 255,
|
|
88
88
|
minLength: 1
|
|
89
89
|
},
|
|
90
90
|
value: { greaterThanOrEqual: 1 }
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
const UpdateInstancePolicyRequestMetric = {
|
|
93
93
|
name: {
|
|
94
94
|
maxLength: 255,
|
|
95
95
|
minLength: 1
|
|
@@ -99,10 +99,10 @@ var UpdateInstancePolicyRequestMetric = {
|
|
|
99
99
|
lessThanOrEqual: 60
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
const UpdateInstanceTemplateRequest = { name: {
|
|
103
103
|
maxLength: 255,
|
|
104
104
|
minLength: 1
|
|
105
105
|
} };
|
|
106
|
-
|
|
106
|
+
const VolumeInstanceTemplate = { name: { minLength: 1 } };
|
|
107
107
|
//#endregion
|
|
108
108
|
export { Capacity, CreateInstanceGroupRequest, CreateInstancePolicyRequest, CreateInstanceTemplateRequest, ListInstanceGroupEventsRequest, ListInstanceGroupsRequest, ListInstancePoliciesRequest, ListInstanceTemplatesRequest, Metric, UpdateInstanceGroupRequest, UpdateInstanceGroupRequestCapacity, UpdateInstancePolicyRequest, UpdateInstancePolicyRequestMetric, UpdateInstanceTemplateRequest, VolumeInstanceTemplate, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-autoscaling",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Scaleway SDK autoscaling",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"directory": "packages_generated/autoscaling"
|
|
9
|
+
},
|
|
6
10
|
"files": [
|
|
7
11
|
"README.md",
|
|
8
12
|
"dist"
|
|
@@ -26,27 +30,24 @@
|
|
|
26
30
|
"default": "./dist/*/metadata.gen.js"
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"directory": "packages_generated/autoscaling"
|
|
32
|
-
},
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=20.19.6"
|
|
35
|
-
},
|
|
36
33
|
"dependencies": {
|
|
37
34
|
"@scaleway/random-name": "5.1.4",
|
|
38
|
-
"@scaleway/sdk-std": "2.
|
|
35
|
+
"@scaleway/sdk-std": "2.4.1"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@repo/configs": "^0.1.1",
|
|
39
|
+
"@scaleway/sdk-client": "^2.3.1"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@scaleway/sdk-client": "^2.
|
|
42
|
+
"@scaleway/sdk-client": "^2.3.1"
|
|
42
43
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=20.19.6"
|
|
45
46
|
},
|
|
46
47
|
"scripts": {
|
|
47
48
|
"package:check": "pnpm publint",
|
|
48
|
-
"typecheck": "
|
|
49
|
-
"type:generate": "
|
|
49
|
+
"typecheck": "tsgo --noEmit",
|
|
50
|
+
"type:generate": "tsgo --declaration -p tsconfig.build.json",
|
|
50
51
|
"build": "vite build --config vite.config.ts && pnpm run type:generate",
|
|
51
52
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
|
|
52
53
|
}
|
package/LICENSE
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
https://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
Copyright 2019 Scaleway.
|
|
180
|
-
|
|
181
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
-
you may not use this file except in compliance with the License.
|
|
183
|
-
You may obtain a copy of the License at
|
|
184
|
-
|
|
185
|
-
https://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
-
|
|
187
|
-
Unless required by applicable law or agreed to in writing, software
|
|
188
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
-
See the License for the specific language governing permissions and
|
|
191
|
-
limitations under the License.
|
package/dist/metadata.gen.json
DELETED