@scaleway/sdk 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,7 @@ class API extends API$1 {
58
58
  return _this3.client.fetch({
59
59
  method: 'GET',
60
60
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? _this3.client.settings.defaultZone)}/volumes`,
61
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['product_resource_id', request.productResourceId], ['project_id', request.projectId])
61
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['product_resource_id', request.productResourceId], ['project_id', request.projectId])
62
62
  }, unmarshalListVolumesResponse);
63
63
  };
64
64
  })();
@@ -155,7 +155,7 @@ class API extends API$1 {
155
155
  return _this5.client.fetch({
156
156
  method: 'GET',
157
157
  path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? _this5.client.settings.defaultZone)}/snapshots`,
158
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize], ['project_id', request.projectId], ['volume_id', request.volumeId])
158
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize], ['project_id', request.projectId], ['volume_id', request.volumeId])
159
159
  }, unmarshalListSnapshotsResponse);
160
160
  };
161
161
  })();
@@ -123,6 +123,7 @@ const unmarshalDNSZone = data => {
123
123
  }
124
124
  return {
125
125
  domain: data.domain,
126
+ linkedProducts: data.linked_products,
126
127
  message: data.message,
127
128
  ns: data.ns,
128
129
  nsDefault: data.ns_default,
@@ -296,6 +297,7 @@ const unmarshalDomain = data => {
296
297
  expiredAt: unmarshalDate(data.expired_at),
297
298
  externalDomainRegistrationStatus: data.external_domain_registration_status ? unmarshalDomainRegistrationStatusExternalDomain(data.external_domain_registration_status) : undefined,
298
299
  isExternal: data.is_external,
300
+ linkedProducts: data.linked_products,
299
301
  organizationId: data.organization_id,
300
302
  ownerContact: data.owner_contact ? unmarshalContact(data.owner_contact) : undefined,
301
303
  projectId: data.project_id,
@@ -105,7 +105,7 @@ class API extends API$1 {
105
105
  return _this3.client.fetch({
106
106
  method: 'GET',
107
107
  path: `/iam/v1alpha1/users`,
108
- urlParams: urlParams(['mfa', request.mfa], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this3.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['user_ids', request.userIds])
108
+ urlParams: urlParams(['mfa', request.mfa], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this3.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['tag', request.tag], ['user_ids', request.userIds])
109
109
  }, unmarshalListUsersResponse);
110
110
  };
111
111
  })();
@@ -179,7 +179,7 @@ class API extends API$1 {
179
179
  return _this5.client.fetch({
180
180
  method: 'GET',
181
181
  path: `/iam/v1alpha1/applications`,
182
- urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this5.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize])
182
+ urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this5.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this5.client.settings.defaultPageSize], ['tag', request.tag])
183
183
  }, unmarshalListApplicationsResponse);
184
184
  };
185
185
  })();
@@ -268,7 +268,7 @@ class API extends API$1 {
268
268
  return _this7.client.fetch({
269
269
  method: 'GET',
270
270
  path: `/iam/v1alpha1/groups`,
271
- urlParams: urlParams(['application_ids', request.applicationIds], ['group_ids', request.groupIds], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this7.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this7.client.settings.defaultPageSize], ['user_ids', request.userIds])
271
+ urlParams: urlParams(['application_ids', request.applicationIds], ['group_ids', request.groupIds], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this7.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this7.client.settings.defaultPageSize], ['tag', request.tag], ['user_ids', request.userIds])
272
272
  }, unmarshalListGroupsResponse);
273
273
  };
274
274
  })();
@@ -421,7 +421,7 @@ class API extends API$1 {
421
421
  return _this9.client.fetch({
422
422
  method: 'GET',
423
423
  path: `/iam/v1alpha1/policies`,
424
- urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['group_ids', request.groupIds], ['no_principal', request.noPrincipal], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this9.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this9.client.settings.defaultPageSize], ['policy_name', request.policyName], ['user_ids', request.userIds])
424
+ urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['group_ids', request.groupIds], ['no_principal', request.noPrincipal], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? _this9.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this9.client.settings.defaultPageSize], ['policy_name', request.policyName], ['tag', request.tag], ['user_ids', request.userIds])
425
425
  }, unmarshalListPoliciesResponse);
426
426
  };
427
427
  })();
@@ -49,6 +49,7 @@ const unmarshalApplication = data => {
49
49
  name: data.name,
50
50
  nbApiKeys: data.nb_api_keys,
51
51
  organizationId: data.organization_id,
52
+ tags: data.tags,
52
53
  updatedAt: unmarshalDate(data.updated_at)
53
54
  };
54
55
  };
@@ -63,6 +64,7 @@ const unmarshalGroup = data => {
63
64
  id: data.id,
64
65
  name: data.name,
65
66
  organizationId: data.organization_id,
67
+ tags: data.tags,
66
68
  updatedAt: unmarshalDate(data.updated_at),
67
69
  userIds: data.user_ids
68
70
  };
@@ -100,6 +102,7 @@ const unmarshalPolicy = data => {
100
102
  nbScopes: data.nb_scopes,
101
103
  noPrincipal: data.no_principal,
102
104
  organizationId: data.organization_id,
105
+ tags: data.tags,
103
106
  updatedAt: unmarshalDate(data.updated_at),
104
107
  userId: data.user_id
105
108
  };
@@ -144,6 +147,7 @@ const unmarshalUser = data => {
144
147
  mfa: data.mfa,
145
148
  organizationId: data.organization_id,
146
149
  status: data.status,
150
+ tags: data.tags,
147
151
  twoFactorEnabled: data.two_factor_enabled,
148
152
  type: data.type,
149
153
  updatedAt: unmarshalDate(data.updated_at)
@@ -309,12 +313,14 @@ const marshalCreateAPIKeyRequest = (request, defaults) => ({
309
313
  const marshalCreateApplicationRequest = (request, defaults) => ({
310
314
  description: request.description,
311
315
  name: request.name || randomName('app'),
312
- organization_id: request.organizationId ?? defaults.defaultOrganizationId
316
+ organization_id: request.organizationId ?? defaults.defaultOrganizationId,
317
+ tags: request.tags
313
318
  });
314
319
  const marshalCreateGroupRequest = (request, defaults) => ({
315
320
  description: request.description,
316
321
  name: request.name || randomName('grp'),
317
- organization_id: request.organizationId ?? defaults.defaultOrganizationId
322
+ organization_id: request.organizationId ?? defaults.defaultOrganizationId,
323
+ tags: request.tags
318
324
  });
319
325
  const marshalRuleSpecs = (request, defaults) => ({
320
326
  permission_set_names: request.permissionSetNames,
@@ -331,6 +337,7 @@ const marshalCreatePolicyRequest = (request, defaults) => ({
331
337
  name: request.name || randomName('pol'),
332
338
  organization_id: request.organizationId ?? defaults.defaultOrganizationId,
333
339
  rules: request.rules !== undefined ? request.rules.map(elt => marshalRuleSpecs(elt)) : undefined,
340
+ tags: request.tags,
334
341
  ...resolveOneOf([{
335
342
  param: 'user_id',
336
343
  value: request.userId
@@ -352,7 +359,8 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
352
359
  });
353
360
  const marshalCreateUserRequest = (request, defaults) => ({
354
361
  email: request.email,
355
- organization_id: request.organizationId ?? defaults.defaultOrganizationId
362
+ organization_id: request.organizationId ?? defaults.defaultOrganizationId,
363
+ tags: request.tags
356
364
  });
357
365
  const marshalRemoveGroupMemberRequest = (request, defaults) => ({
358
366
  ...resolveOneOf([{
@@ -377,15 +385,18 @@ const marshalUpdateAPIKeyRequest = (request, defaults) => ({
377
385
  });
378
386
  const marshalUpdateApplicationRequest = (request, defaults) => ({
379
387
  description: request.description,
380
- name: request.name
388
+ name: request.name,
389
+ tags: request.tags
381
390
  });
382
391
  const marshalUpdateGroupRequest = (request, defaults) => ({
383
392
  description: request.description,
384
- name: request.name
393
+ name: request.name,
394
+ tags: request.tags
385
395
  });
386
396
  const marshalUpdatePolicyRequest = (request, defaults) => ({
387
397
  description: request.description,
388
398
  name: request.name,
399
+ tags: request.tags,
389
400
  ...resolveOneOf([{
390
401
  param: 'user_id',
391
402
  value: request.userId
@@ -1109,9 +1109,6 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
1109
1109
  ...resolveOneOf([{
1110
1110
  param: 'size',
1111
1111
  value: request.size
1112
- }, {
1113
- param: 'base_volume',
1114
- value: request.baseVolume
1115
1112
  }, {
1116
1113
  param: 'base_snapshot',
1117
1114
  value: request.baseSnapshot
@@ -5,11 +5,14 @@ const CreateJobDefinitionRequest = {
5
5
  cpuLimit: {
6
6
  greaterThan: 0
7
7
  },
8
+ imageUri: {
9
+ pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::([\w][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
10
+ },
8
11
  memoryLimit: {
9
12
  greaterThan: 0
10
13
  },
11
14
  name: {
12
- minLength: 3
15
+ pattern: /^[A-Za-z0-9-_]{3,50}$/
13
16
  }
14
17
  };
15
18
  const ListJobDefinitionsRequest = {
@@ -34,11 +37,14 @@ const UpdateJobDefinitionRequest = {
34
37
  cpuLimit: {
35
38
  greaterThan: 0
36
39
  },
40
+ imageUri: {
41
+ pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::([\w][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
42
+ },
37
43
  memoryLimit: {
38
44
  greaterThan: 0
39
45
  },
40
46
  name: {
41
- minLength: 3
47
+ pattern: /^[A-Za-z0-9-_]{3,50}$/
42
48
  }
43
49
  };
44
50
 
@@ -1,4 +1,2 @@
1
- import * as index_gen from './v1alpha1/index.gen.js';
2
- export { index_gen as v1alpha1 };
3
- import * as index_gen$1 from './v1beta1/index.gen.js';
4
- export { index_gen$1 as v1beta1 };
1
+ import * as index_gen from './v1beta1/index.gen.js';
2
+ export { index_gen as v1beta1 };