@scaleway/sdk 0.1.0-beta.10 → 0.1.0-beta.11

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.
@@ -292,7 +292,7 @@ class DomainRegistrarV2Beta1GenAPI extends API {
292
292
  return _this.client.fetch({
293
293
  method: 'GET',
294
294
  path: `/domain/v2beta1/domains`,
295
- urlParams: urlParams(['is_external', request.isExternal], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId ?? _this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this.client.settings.defaultProjectId], ['registrar', request.registrar], ['status', request.status ?? 'status_unknown'])
295
+ urlParams: urlParams(['domain', request.domain], ['is_external', request.isExternal], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId ?? _this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId ?? _this.client.settings.defaultProjectId], ['registrar', request.registrar], ['status', request.status ?? 'status_unknown'])
296
296
  }, unmarshalListDomainsResponse);
297
297
  };
298
298
 
@@ -206,6 +206,17 @@ const unmarshalServerMaintenance = data => {
206
206
  return {};
207
207
  };
208
208
 
209
+ const unmarshalServerTypeCapabilities = data => {
210
+ if (!isJSONObject(data)) {
211
+ throw new TypeError(`Unmarshalling the type 'ServerTypeCapabilities' failed as data isn't a dictionary.`);
212
+ }
213
+
214
+ return {
215
+ blockStorage: data.block_storage,
216
+ bootTypes: data.boot_types
217
+ };
218
+ };
219
+
209
220
  const unmarshalServerTypeNetwork = data => {
210
221
  if (!isJSONObject(data)) {
211
222
  throw new TypeError(`Unmarshalling the type 'ServerTypeNetwork' failed as data isn't a dictionary.`);
@@ -438,6 +449,7 @@ const unmarshalServerType = data => {
438
449
  altNames: data.alt_names,
439
450
  arch: data.arch,
440
451
  baremetal: data.baremetal,
452
+ capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : undefined,
441
453
  gpu: data.gpu,
442
454
  hourlyPrice: data.hourly_price,
443
455
  monthlyPrice: data.monthly_price,
package/dist/index.cjs CHANGED
@@ -367,7 +367,7 @@ const assertValidSettings = obj => {
367
367
  if (typeof obj.userAgent !== 'string') throw new Error(`Invalid User-Agent`);
368
368
  };
369
369
 
370
- const version = 'v0.1.0-beta.9';
370
+ const version = 'v0.1.0-beta.10';
371
371
  const userAgent = `scaleway-sdk-js/${version}`;
372
372
 
373
373
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -5937,7 +5937,7 @@ class DomainRegistrarV2Beta1GenAPI extends API {
5937
5937
  pageOfListDomains = (request = {}) => this.client.fetch({
5938
5938
  method: 'GET',
5939
5939
  path: `/domain/v2beta1/domains`,
5940
- urlParams: urlParams(['is_external', request.isExternal], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['registrar', request.registrar], ['status', request.status ?? 'status_unknown'])
5940
+ urlParams: urlParams(['domain', request.domain], ['is_external', request.isExternal], ['order_by', request.orderBy ?? 'domain_asc'], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId], ['registrar', request.registrar], ['status', request.status ?? 'status_unknown'])
5941
5941
  }, unmarshalListDomainsResponse$1);
5942
5942
  /**
5943
5943
  * Returns a list of domains owned by the user.
@@ -8128,6 +8128,17 @@ const unmarshalServerMaintenance = data => {
8128
8128
  return {};
8129
8129
  };
8130
8130
 
8131
+ const unmarshalServerTypeCapabilities = data => {
8132
+ if (!isJSONObject(data)) {
8133
+ throw new TypeError(`Unmarshalling the type 'ServerTypeCapabilities' failed as data isn't a dictionary.`);
8134
+ }
8135
+
8136
+ return {
8137
+ blockStorage: data.block_storage,
8138
+ bootTypes: data.boot_types
8139
+ };
8140
+ };
8141
+
8131
8142
  const unmarshalServerTypeNetwork = data => {
8132
8143
  if (!isJSONObject(data)) {
8133
8144
  throw new TypeError(`Unmarshalling the type 'ServerTypeNetwork' failed as data isn't a dictionary.`);
@@ -8360,6 +8371,7 @@ const unmarshalServerType = data => {
8360
8371
  altNames: data.alt_names,
8361
8372
  arch: data.arch,
8362
8373
  baremetal: data.baremetal,
8374
+ capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : undefined,
8363
8375
  gpu: data.gpu,
8364
8376
  hourlyPrice: data.hourly_price,
8365
8377
  monthlyPrice: data.monthly_price,
package/dist/index.d.ts CHANGED
@@ -4078,6 +4078,7 @@ declare type RegistrarApiListDomainsRequest = {
4078
4078
  projectId?: string;
4079
4079
  organizationId?: string;
4080
4080
  isExternal?: boolean;
4081
+ domain?: string;
4081
4082
  };
4082
4083
  declare type RegistrarApiListRenewableDomainsRequest = {
4083
4084
  page?: number;
@@ -7598,6 +7599,15 @@ interface ServerType {
7598
7599
  baremetal: boolean;
7599
7600
  /** Network available for the instance */
7600
7601
  network?: ServerTypeNetwork;
7602
+ /** Capabilities */
7603
+ capabilities?: ServerTypeCapabilities;
7604
+ }
7605
+ /** Server type. capabilities */
7606
+ interface ServerTypeCapabilities {
7607
+ /** True if server supports block storage */
7608
+ blockStorage?: boolean;
7609
+ /** List of supported boot types */
7610
+ bootTypes: Array<BootType>;
7601
7611
  }
7602
7612
  /** Server type. network */
7603
7613
  interface ServerTypeNetwork {
@@ -9411,6 +9421,7 @@ type index$n_ServerLocation = ServerLocation;
9411
9421
  type index$n_ServerMaintenance = ServerMaintenance;
9412
9422
  type index$n_ServerSummary = ServerSummary;
9413
9423
  type index$n_ServerType = ServerType;
9424
+ type index$n_ServerTypeCapabilities = ServerTypeCapabilities;
9414
9425
  type index$n_ServerTypeNetwork = ServerTypeNetwork;
9415
9426
  type index$n_ServerTypeNetworkInterface = ServerTypeNetworkInterface;
9416
9427
  type index$n_ServerTypeVolumeConstraintSizes = ServerTypeVolumeConstraintSizes;
@@ -9580,6 +9591,7 @@ declare namespace index$n {
9580
9591
  index$n_ServerMaintenance as ServerMaintenance,
9581
9592
  index$n_ServerSummary as ServerSummary,
9582
9593
  index$n_ServerType as ServerType,
9594
+ index$n_ServerTypeCapabilities as ServerTypeCapabilities,
9583
9595
  index$n_ServerTypeNetwork as ServerTypeNetwork,
9584
9596
  index$n_ServerTypeNetworkInterface as ServerTypeNetworkInterface,
9585
9597
  index$n_ServerTypeVolumeConstraintSizes as ServerTypeVolumeConstraintSizes,
@@ -1,4 +1,4 @@
1
- const version = 'v0.1.0-beta.9';
1
+ const version = 'v0.1.0-beta.10';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "0.1.0-beta.10",
3
+ "version": "0.1.0-beta.11",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -36,5 +36,5 @@
36
36
  "bundledDependencies": [
37
37
  "@scaleway/random-name"
38
38
  ],
39
- "gitHead": "c1037f2bf765b40e864728cfe698192178da3690"
39
+ "gitHead": "32793641774c09c8bb19d7eaa3099acfd61d04d2"
40
40
  }