@scaleway/sdk-mongodb 2.6.0 → 2.8.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,15 +1,15 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
2
  import randomName from "@scaleway/random-name";
3
3
  //#region src/v1alpha1/marshalling.gen.ts
4
- var unmarshalEndpointPrivateNetworkDetails = (data) => {
4
+ const unmarshalEndpointPrivateNetworkDetails = (data) => {
5
5
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EndpointPrivateNetworkDetails' failed as data isn't a dictionary.`);
6
6
  return { privateNetworkId: data.private_network_id };
7
7
  };
8
- var unmarshalEndpointPublicDetails = (data) => {
8
+ const unmarshalEndpointPublicDetails = (data) => {
9
9
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EndpointPublicDetails' failed as data isn't a dictionary.`);
10
10
  return {};
11
11
  };
12
- var unmarshalEndpoint = (data) => {
12
+ const unmarshalEndpoint = (data) => {
13
13
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`);
14
14
  return {
15
15
  dnsRecords: data.dns_records,
@@ -20,14 +20,14 @@ var unmarshalEndpoint = (data) => {
20
20
  public: data.public ? unmarshalEndpointPublicDetails(data.public) : void 0
21
21
  };
22
22
  };
23
- var unmarshalInstanceSetting = (data) => {
23
+ const unmarshalInstanceSetting = (data) => {
24
24
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstanceSetting' failed as data isn't a dictionary.`);
25
25
  return {
26
26
  name: data.name,
27
27
  value: data.value
28
28
  };
29
29
  };
30
- var unmarshalInstanceSnapshotSchedule = (data) => {
30
+ const unmarshalInstanceSnapshotSchedule = (data) => {
31
31
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InstanceSnapshotSchedule' failed as data isn't a dictionary.`);
32
32
  return {
33
33
  enabled: data.enabled,
@@ -37,14 +37,14 @@ var unmarshalInstanceSnapshotSchedule = (data) => {
37
37
  retentionDays: data.retention_days
38
38
  };
39
39
  };
40
- var unmarshalVolume = (data) => {
40
+ const unmarshalVolume = (data) => {
41
41
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
42
42
  return {
43
43
  size: data.size,
44
44
  type: data.type
45
45
  };
46
46
  };
47
- var unmarshalInstance = (data) => {
47
+ const unmarshalInstance = (data) => {
48
48
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Instance' failed as data isn't a dictionary.`);
49
49
  return {
50
50
  createdAt: unmarshalDate(data.created_at),
@@ -63,11 +63,11 @@ var unmarshalInstance = (data) => {
63
63
  volume: data.volume ? unmarshalVolume(data.volume) : void 0
64
64
  };
65
65
  };
66
- var unmarshalSnapshotVolumeType = (data) => {
66
+ const unmarshalSnapshotVolumeType = (data) => {
67
67
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SnapshotVolumeType' failed as data isn't a dictionary.`);
68
68
  return { type: data.type };
69
69
  };
70
- var unmarshalSnapshot = (data) => {
70
+ const unmarshalSnapshot = (data) => {
71
71
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`);
72
72
  return {
73
73
  createdAt: unmarshalDate(data.created_at),
@@ -84,7 +84,7 @@ var unmarshalSnapshot = (data) => {
84
84
  volumeType: data.volume_type ? unmarshalSnapshotVolumeType(data.volume_type) : void 0
85
85
  };
86
86
  };
87
- var unmarshalUserRole = (data) => {
87
+ const unmarshalUserRole = (data) => {
88
88
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'UserRole' failed as data isn't a dictionary.`);
89
89
  return {
90
90
  anyDatabase: data.any_database,
@@ -92,21 +92,21 @@ var unmarshalUserRole = (data) => {
92
92
  role: data.role
93
93
  };
94
94
  };
95
- var unmarshalUser = (data) => {
95
+ const unmarshalUser = (data) => {
96
96
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'User' failed as data isn't a dictionary.`);
97
97
  return {
98
98
  name: data.name,
99
99
  roles: unmarshalArrayOfObject(data.roles, unmarshalUserRole)
100
100
  };
101
101
  };
102
- var unmarshalListInstancesResponse = (data) => {
102
+ const unmarshalListInstancesResponse = (data) => {
103
103
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInstancesResponse' failed as data isn't a dictionary.`);
104
104
  return {
105
105
  instances: unmarshalArrayOfObject(data.instances, unmarshalInstance),
106
106
  totalCount: data.total_count
107
107
  };
108
108
  };
109
- var unmarshalNodeTypeVolumeType = (data) => {
109
+ const unmarshalNodeTypeVolumeType = (data) => {
110
110
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NodeTypeVolumeType' failed as data isn't a dictionary.`);
111
111
  return {
112
112
  chunkSize: data.chunk_size,
@@ -116,7 +116,7 @@ var unmarshalNodeTypeVolumeType = (data) => {
116
116
  type: data.type
117
117
  };
118
118
  };
119
- var unmarshalNodeType = (data) => {
119
+ const unmarshalNodeType = (data) => {
120
120
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NodeType' failed as data isn't a dictionary.`);
121
121
  return {
122
122
  availableVolumeTypes: unmarshalArrayOfObject(data.available_volume_types, unmarshalNodeTypeVolumeType),
@@ -130,28 +130,28 @@ var unmarshalNodeType = (data) => {
130
130
  vcpus: data.vcpus
131
131
  };
132
132
  };
133
- var unmarshalListNodeTypesResponse = (data) => {
133
+ const unmarshalListNodeTypesResponse = (data) => {
134
134
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodeTypesResponse' failed as data isn't a dictionary.`);
135
135
  return {
136
136
  nodeTypes: unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
137
137
  totalCount: data.total_count
138
138
  };
139
139
  };
140
- var unmarshalListSnapshotsResponse = (data) => {
140
+ const unmarshalListSnapshotsResponse = (data) => {
141
141
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSnapshotsResponse' failed as data isn't a dictionary.`);
142
142
  return {
143
143
  snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
144
144
  totalCount: data.total_count
145
145
  };
146
146
  };
147
- var unmarshalListUsersResponse = (data) => {
147
+ const unmarshalListUsersResponse = (data) => {
148
148
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListUsersResponse' failed as data isn't a dictionary.`);
149
149
  return {
150
150
  totalCount: data.total_count,
151
151
  users: unmarshalArrayOfObject(data.users, unmarshalUser)
152
152
  };
153
153
  };
154
- var unmarshalSetting = (data) => {
154
+ const unmarshalSetting = (data) => {
155
155
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Setting' failed as data isn't a dictionary.`);
156
156
  return {
157
157
  defaultValue: data.default_value,
@@ -167,7 +167,7 @@ var unmarshalSetting = (data) => {
167
167
  unit: data.unit
168
168
  };
169
169
  };
170
- var unmarshalVersion = (data) => {
170
+ const unmarshalVersion = (data) => {
171
171
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Version' failed as data isn't a dictionary.`);
172
172
  return {
173
173
  availableSettings: unmarshalArrayOfObject(data.available_settings, unmarshalSetting),
@@ -175,31 +175,31 @@ var unmarshalVersion = (data) => {
175
175
  version: data.version
176
176
  };
177
177
  };
178
- var unmarshalListVersionsResponse = (data) => {
178
+ const unmarshalListVersionsResponse = (data) => {
179
179
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
180
180
  return {
181
181
  totalCount: data.total_count,
182
182
  versions: unmarshalArrayOfObject(data.versions, unmarshalVersion)
183
183
  };
184
184
  };
185
- var marshalEndpointSpecPrivateNetworkDetails = (request, defaults) => ({ private_network_id: request.privateNetworkId });
186
- var marshalEndpointSpecPublicDetails = (request, defaults) => ({});
187
- var marshalEndpointSpec = (request, defaults) => ({ ...resolveOneOf([{
185
+ const marshalEndpointSpecPrivateNetworkDetails = (request, defaults) => ({ private_network_id: request.privateNetworkId });
186
+ const marshalEndpointSpecPublicDetails = (request, defaults) => ({});
187
+ const marshalEndpointSpec = (request, defaults) => ({ ...resolveOneOf([{
188
188
  param: "public",
189
189
  value: request.public !== void 0 ? marshalEndpointSpecPublicDetails(request.public, defaults) : void 0
190
190
  }, {
191
191
  param: "private_network",
192
192
  value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkDetails(request.privateNetwork, defaults) : void 0
193
193
  }]) });
194
- var marshalCreateEndpointRequest = (request, defaults) => ({
194
+ const marshalCreateEndpointRequest = (request, defaults) => ({
195
195
  endpoint: marshalEndpointSpec(request.endpoint, defaults),
196
196
  instance_id: request.instanceId
197
197
  });
198
- var marshalCreateInstanceRequestVolumeDetails = (request, defaults) => ({
198
+ const marshalCreateInstanceRequestVolumeDetails = (request, defaults) => ({
199
199
  volume_size: request.volumeSize,
200
200
  volume_type: request.volumeType
201
201
  });
202
- var marshalCreateInstanceRequest = (request, defaults) => ({
202
+ const marshalCreateInstanceRequest = (request, defaults) => ({
203
203
  endpoints: request.endpoints !== void 0 ? request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) : void 0,
204
204
  name: request.name || randomName("mgdb"),
205
205
  node_number: request.nodeNumber,
@@ -211,22 +211,22 @@ var marshalCreateInstanceRequest = (request, defaults) => ({
211
211
  version: request.version,
212
212
  volume: request.volume !== void 0 ? marshalCreateInstanceRequestVolumeDetails(request.volume, defaults) : void 0
213
213
  });
214
- var marshalCreateSnapshotRequest = (request, defaults) => ({
214
+ const marshalCreateSnapshotRequest = (request, defaults) => ({
215
215
  expires_at: request.expiresAt,
216
216
  name: request.name
217
217
  });
218
- var marshalCreateUserRequest = (request, defaults) => ({
218
+ const marshalCreateUserRequest = (request, defaults) => ({
219
219
  name: request.name,
220
220
  password: request.password
221
221
  });
222
- var marshalRestoreSnapshotRequestVolumeDetails = (request, defaults) => ({ volume_type: request.volumeType });
223
- var marshalRestoreSnapshotRequest = (request, defaults) => ({
222
+ const marshalRestoreSnapshotRequestVolumeDetails = (request, defaults) => ({ volume_type: request.volumeType });
223
+ const marshalRestoreSnapshotRequest = (request, defaults) => ({
224
224
  instance_name: request.instanceName,
225
225
  node_number: request.nodeNumber,
226
226
  node_type: request.nodeType,
227
227
  volume: marshalRestoreSnapshotRequestVolumeDetails(request.volume, defaults)
228
228
  });
229
- var marshalUserRole = (request, defaults) => ({
229
+ const marshalUserRole = (request, defaults) => ({
230
230
  role: request.role,
231
231
  ...resolveOneOf([{
232
232
  param: "database",
@@ -236,20 +236,20 @@ var marshalUserRole = (request, defaults) => ({
236
236
  value: request.anyDatabase
237
237
  }])
238
238
  });
239
- var marshalSetUserRoleRequest = (request, defaults) => ({
239
+ const marshalSetUserRoleRequest = (request, defaults) => ({
240
240
  roles: request.roles !== void 0 ? request.roles.map((elt) => marshalUserRole(elt, defaults)) : void 0,
241
241
  user_name: request.userName
242
242
  });
243
- var marshalUpdateInstanceRequest = (request, defaults) => ({
243
+ const marshalUpdateInstanceRequest = (request, defaults) => ({
244
244
  name: request.name,
245
245
  tags: request.tags
246
246
  });
247
- var marshalUpdateSnapshotRequest = (request, defaults) => ({
247
+ const marshalUpdateSnapshotRequest = (request, defaults) => ({
248
248
  expires_at: request.expiresAt,
249
249
  name: request.name
250
250
  });
251
- var marshalUpdateUserRequest = (request, defaults) => ({ password: request.password });
252
- var marshalUpgradeInstanceRequest = (request, defaults) => ({ ...resolveOneOf([{
251
+ const marshalUpdateUserRequest = (request, defaults) => ({ password: request.password });
252
+ const marshalUpgradeInstanceRequest = (request, defaults) => ({ ...resolveOneOf([{
253
253
  param: "volume_size",
254
254
  value: request.volumeSize
255
255
  }]) });
@@ -1,5 +1,5 @@
1
1
  //#region src/v1alpha1/metadata.gen.ts
2
- var queriesMetadata = {
2
+ const queriesMetadata = {
3
3
  namespace: "mongodb",
4
4
  version: "v1alpha1",
5
5
  folderName: "mongodbv1alpha1",
@@ -16,7 +16,7 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
16
16
  UpdateSnapshotRequest: () => UpdateSnapshotRequest,
17
17
  UpdateUserRequest: () => UpdateUserRequest
18
18
  });
19
- var CreateInstanceRequest = {
19
+ const CreateInstanceRequest = {
20
20
  name: {
21
21
  maxLength: 255,
22
22
  minLength: 1,
@@ -42,12 +42,12 @@ var CreateInstanceRequest = {
42
42
  },
43
43
  version: { pattern: /^[0-9]+\.[0-9]+\.[0-9]+$/ }
44
44
  };
45
- var CreateSnapshotRequest = { name: {
45
+ const CreateSnapshotRequest = { name: {
46
46
  maxLength: 255,
47
47
  minLength: 1,
48
48
  pattern: /^[A-Za-z0-9\-_]+$/
49
49
  } };
50
- var CreateUserRequest = {
50
+ const CreateUserRequest = {
51
51
  name: {
52
52
  maxLength: 63,
53
53
  minLength: 1,
@@ -58,12 +58,12 @@ var CreateUserRequest = {
58
58
  minLength: 8
59
59
  }
60
60
  };
61
- var DeleteUserRequest = { name: {
61
+ const DeleteUserRequest = { name: {
62
62
  maxLength: 63,
63
63
  minLength: 1,
64
64
  pattern: /^[a-zA-Z0-9_\-]*$/
65
65
  } };
66
- var ListInstancesRequest = {
66
+ const ListInstancesRequest = {
67
67
  name: {
68
68
  maxLength: 255,
69
69
  minLength: 1,
@@ -75,14 +75,14 @@ var ListInstancesRequest = {
75
75
  lessThanOrEqual: 100
76
76
  }
77
77
  };
78
- var ListNodeTypesRequest = {
78
+ const ListNodeTypesRequest = {
79
79
  page: { greaterThanOrEqual: 1 },
80
80
  pageSize: {
81
81
  greaterThanOrEqual: 1,
82
82
  lessThanOrEqual: 100
83
83
  }
84
84
  };
85
- var ListSnapshotsRequest = {
85
+ const ListSnapshotsRequest = {
86
86
  name: {
87
87
  maxLength: 255,
88
88
  minLength: 1,
@@ -94,7 +94,7 @@ var ListSnapshotsRequest = {
94
94
  lessThanOrEqual: 100
95
95
  }
96
96
  };
97
- var ListUsersRequest = {
97
+ const ListUsersRequest = {
98
98
  name: {
99
99
  maxLength: 63,
100
100
  minLength: 1,
@@ -106,7 +106,7 @@ var ListUsersRequest = {
106
106
  lessThanOrEqual: 100
107
107
  }
108
108
  };
109
- var ListVersionsRequest = {
109
+ const ListVersionsRequest = {
110
110
  page: { greaterThanOrEqual: 1 },
111
111
  pageSize: {
112
112
  greaterThanOrEqual: 1,
@@ -114,7 +114,7 @@ var ListVersionsRequest = {
114
114
  },
115
115
  version: { pattern: /^[0-9]+\.[0-9]+\.[0-9]+$/ }
116
116
  };
117
- var RestoreSnapshotRequest = {
117
+ const RestoreSnapshotRequest = {
118
118
  instanceName: {
119
119
  maxLength: 255,
120
120
  minLength: 1,
@@ -125,22 +125,22 @@ var RestoreSnapshotRequest = {
125
125
  lessThanOrEqual: 3
126
126
  }
127
127
  };
128
- var SetUserRoleRequest = { userName: {
128
+ const SetUserRoleRequest = { userName: {
129
129
  maxLength: 63,
130
130
  minLength: 1,
131
131
  pattern: /^[a-zA-Z0-9_\-]*$/
132
132
  } };
133
- var UpdateInstanceRequest = { name: {
133
+ const UpdateInstanceRequest = { name: {
134
134
  maxLength: 255,
135
135
  minLength: 1,
136
136
  pattern: /^[A-Za-z0-9\-_]+$/
137
137
  } };
138
- var UpdateSnapshotRequest = { name: {
138
+ const UpdateSnapshotRequest = { name: {
139
139
  maxLength: 255,
140
140
  minLength: 1,
141
141
  pattern: /^[A-Za-z0-9\-_]+$/
142
142
  } };
143
- var UpdateUserRequest = {
143
+ const UpdateUserRequest = {
144
144
  name: {
145
145
  maxLength: 63,
146
146
  minLength: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-mongodb",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "Scaleway SDK mongodb",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -16,6 +16,14 @@
16
16
  "./*": {
17
17
  "types": "./dist/*/index.gen.d.ts",
18
18
  "default": "./dist/*/index.gen.js"
19
+ },
20
+ "./metadata": {
21
+ "types": "./dist/metadata.gen.d.ts",
22
+ "default": "./dist/metadata.gen.js"
23
+ },
24
+ "./*/metadata": {
25
+ "types": "./dist/*/metadata.gen.d.ts",
26
+ "default": "./dist/*/metadata.gen.js"
19
27
  }
20
28
  },
21
29
  "repository": {
@@ -27,18 +35,20 @@
27
35
  },
28
36
  "dependencies": {
29
37
  "@scaleway/random-name": "5.1.4",
30
- "@scaleway/sdk-std": "2.2.2"
38
+ "@scaleway/sdk-std": "2.4.0"
31
39
  },
32
40
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.2"
41
+ "@repo/configs": "^0.1.1",
42
+ "@scaleway/sdk-client": "^2.3.0"
34
43
  },
35
44
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.2"
45
+ "@repo/configs": "^0.1.1",
46
+ "@scaleway/sdk-client": "^2.3.0"
37
47
  },
38
48
  "scripts": {
39
49
  "package:check": "pnpm publint",
40
- "typecheck": "tsc --noEmit",
41
- "type:generate": "tsc --declaration -p tsconfig.build.json",
50
+ "typecheck": "tsgo --noEmit",
51
+ "type:generate": "tsgo --declaration -p tsconfig.build.json",
42
52
  "build": "vite build --config vite.config.ts && pnpm run type:generate",
43
53
  "build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
44
54
  }
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.