@scaleway/sdk 2.4.1 → 2.5.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.
@@ -130,6 +130,16 @@ class API extends API$1 {
130
130
  method: 'POST',
131
131
  path: `/cockpit/v1beta1/datasources`
132
132
  }, unmarshalDatasource);
133
+
134
+ /**
135
+ * Delete the datasource associated with the specified datasource ID.
136
+ *
137
+ * @param request - The request {@link DeleteDatasourceRequest}
138
+ */
139
+ deleteDatasource = request => this.client.fetch({
140
+ method: 'DELETE',
141
+ path: `/cockpit/v1beta1/datasources/${validatePathParam('datasourceId', request.datasourceId)}`
142
+ });
133
143
  pageOfListDatasources = (() => {
134
144
  var _this6 = this;
135
145
  return function (request) {
@@ -717,7 +717,7 @@ class API extends API$1 {
717
717
 
718
718
  /**
719
719
  * Get a quota in the Organization. Retrieve information about a resource
720
- * quota, speficified by the `quotum_name` parameter. The quota's `limit`, or
720
+ * quota, specified by the `quotum_name` parameter. The quota's `limit`, or
721
721
  * whether it is unlimited, is returned in the response.
722
722
  *
723
723
  * @param request - The request {@link GetQuotumRequest}
@@ -791,6 +791,14 @@ class API extends API$1 {
791
791
  }, unmarshalListLogsResponse);
792
792
  };
793
793
  })();
794
+
795
+ /**
796
+ * List logs. List logs available for given Organization. You must define the
797
+ * `organization_id` in the query path of your request.
798
+ *
799
+ * @param request - The request {@link ListLogsRequest}
800
+ * @returns A Promise of ListLogsResponse
801
+ */
794
802
  listLogs = (() => {
795
803
  var _this20 = this;
796
804
  return function (request) {
@@ -800,6 +808,16 @@ class API extends API$1 {
800
808
  return enrichForPagination('logs', _this20.pageOfListLogs, request);
801
809
  };
802
810
  })();
811
+
812
+ /**
813
+ * Get a log. Retrieve information about a log, specified by the `log_id`
814
+ * parameter. The log's full details, including `id`, `ip`, `user_agent`,
815
+ * `action`, `bearer_id`, `resource_type` and `resource_id` are returned in
816
+ * the response.
817
+ *
818
+ * @param request - The request {@link GetLogRequest}
819
+ * @returns A Promise of Log
820
+ */
803
821
  getLog = request => this.client.fetch({
804
822
  method: 'GET',
805
823
  path: `/iam/v1alpha1/logs/${validatePathParam('logId', request.logId)}`
@@ -34,7 +34,7 @@ class API extends API$1 {
34
34
  }, unmarshalJobDefinition);
35
35
  getJobDefinition = request => this.client.fetch({
36
36
  method: 'GET',
37
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
37
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
38
38
  }, unmarshalJobDefinition);
39
39
  pageOfListJobDefinitions = (() => {
40
40
  var _this2 = this;
@@ -62,27 +62,27 @@ class API extends API$1 {
62
62
  body: JSON.stringify(marshalUpdateJobDefinitionRequest(request, this.client.settings)),
63
63
  headers: jsonContentHeaders,
64
64
  method: 'PATCH',
65
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
65
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
66
66
  }, unmarshalJobDefinition);
67
67
  deleteJobDefinition = request => this.client.fetch({
68
68
  method: 'DELETE',
69
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
69
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
70
70
  });
71
71
  startJobDefinition = request => this.client.fetch({
72
72
  body: '{}',
73
73
  headers: jsonContentHeaders,
74
74
  method: 'POST',
75
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}/start`
75
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}/start`
76
76
  }, unmarshalJobRun);
77
77
  getJobRun = request => this.client.fetch({
78
78
  method: 'GET',
79
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}`
79
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('jobRunId', request.jobRunId)}`
80
80
  }, unmarshalJobRun);
81
81
  stopJobRun = request => this.client.fetch({
82
82
  body: '{}',
83
83
  headers: jsonContentHeaders,
84
84
  method: 'POST',
85
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}/stop`
85
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('jobRunId', request.jobRunId)}/stop`
86
86
  }, unmarshalJobRun);
87
87
  pageOfListJobRuns = (() => {
88
88
  var _this4 = this;
@@ -93,7 +93,7 @@ class API extends API$1 {
93
93
  return _this4.client.fetch({
94
94
  method: 'GET',
95
95
  path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? _this4.client.settings.defaultRegion)}/job-runs`,
96
- urlParams: urlParams(['id', request.id], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize], ['project_id', request.projectId])
96
+ urlParams: urlParams(['job_definition_id', request.jobDefinitionId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize], ['project_id', request.projectId])
97
97
  }, unmarshalListJobRunsResponse);
98
98
  };
99
99
  })();
@@ -168,12 +168,15 @@ const unmarshalExternalNode = data => {
168
168
  return {
169
169
  clusterCa: data.cluster_ca,
170
170
  clusterUrl: data.cluster_url,
171
+ cniPluginsVersion: data.cni_plugins_version,
172
+ containerdVersion: data.containerd_version,
171
173
  externalIp: data.external_ip,
172
174
  id: data.id,
173
175
  kubeToken: data.kube_token,
174
176
  kubeletConfig: data.kubelet_config,
175
177
  name: data.name,
176
- poolVersion: data.pool_version
178
+ poolVersion: data.pool_version,
179
+ runcVersion: data.runc_version
177
180
  };
178
181
  };
179
182
  const unmarshalClusterType = data => {
@@ -151,7 +151,7 @@ class API extends API$1 {
151
151
  listOffers = request => this.client.fetch({
152
152
  method: 'GET',
153
153
  path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/offers`,
154
- urlParams: urlParams(['hosting_id', request.hostingId], ['only_options', request.onlyOptions], ['order_by', request.orderBy], ['without_options', request.withoutOptions])
154
+ urlParams: urlParams(['control_panels', request.controlPanels], ['hosting_id', request.hostingId], ['only_options', request.onlyOptions], ['order_by', request.orderBy], ['without_options', request.withoutOptions])
155
155
  }, unmarshalListOffersResponse);
156
156
  pageOfListControlPanels = (() => {
157
157
  var _this3 = this;
@@ -33,11 +33,14 @@ const unmarshalHosting = data => {
33
33
  dnsStatus: data.dns_status,
34
34
  domain: data.domain,
35
35
  id: data.id,
36
+ ipv4: data.ipv4,
37
+ ipv6: data.ipv6,
36
38
  offerEndOfLife: data.offer_end_of_life,
37
39
  offerId: data.offer_id,
38
40
  offerName: data.offer_name,
39
41
  options: unmarshalArrayOfObject(data.options, unmarshalHostingOption),
40
42
  organizationId: data.organization_id,
43
+ platformGroup: data.platform_group,
41
44
  platformHostname: data.platform_hostname,
42
45
  platformNumber: data.platform_number,
43
46
  projectId: data.project_id,
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v2.4.0';
500
+ const version = 'v2.4.2';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () =>
@@ -4628,6 +4628,16 @@ let API$p = class API extends API$v {
4628
4628
  method: 'POST',
4629
4629
  path: `/cockpit/v1beta1/datasources`
4630
4630
  }, unmarshalDatasource);
4631
+
4632
+ /**
4633
+ * Delete the datasource associated with the specified datasource ID.
4634
+ *
4635
+ * @param request - The request {@link DeleteDatasourceRequest}
4636
+ */
4637
+ deleteDatasource = request => this.client.fetch({
4638
+ method: 'DELETE',
4639
+ path: `/cockpit/v1beta1/datasources/${validatePathParam('datasourceId', request.datasourceId)}`
4640
+ });
4631
4641
  pageOfListDatasources = (request = {}) => this.client.fetch({
4632
4642
  method: 'GET',
4633
4643
  path: `/cockpit/v1beta1/datasources`,
@@ -11546,7 +11556,7 @@ let API$j = class API extends API$v {
11546
11556
 
11547
11557
  /**
11548
11558
  * Get a quota in the Organization. Retrieve information about a resource
11549
- * quota, speficified by the `quotum_name` parameter. The quota's `limit`, or
11559
+ * quota, specified by the `quotum_name` parameter. The quota's `limit`, or
11550
11560
  * whether it is unlimited, is returned in the response.
11551
11561
  *
11552
11562
  * @param request - The request {@link GetQuotumRequest}
@@ -11596,7 +11606,25 @@ let API$j = class API extends API$v {
11596
11606
  path: `/iam/v1alpha1/logs`,
11597
11607
  urlParams: urlParams(['action', request.action], ['created_after', request.createdAfter], ['created_before', request.createdBefore], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['resource_type', request.resourceType], ['search', request.search])
11598
11608
  }, unmarshalListLogsResponse);
11609
+
11610
+ /**
11611
+ * List logs. List logs available for given Organization. You must define the
11612
+ * `organization_id` in the query path of your request.
11613
+ *
11614
+ * @param request - The request {@link ListLogsRequest}
11615
+ * @returns A Promise of ListLogsResponse
11616
+ */
11599
11617
  listLogs = (request = {}) => enrichForPagination('logs', this.pageOfListLogs, request);
11618
+
11619
+ /**
11620
+ * Get a log. Retrieve information about a log, specified by the `log_id`
11621
+ * parameter. The log's full details, including `id`, `ip`, `user_agent`,
11622
+ * `action`, `bearer_id`, `resource_type` and `resource_id` are returned in
11623
+ * the response.
11624
+ *
11625
+ * @param request - The request {@link GetLogRequest}
11626
+ * @returns A Promise of Log
11627
+ */
11600
11628
  getLog = request => this.client.fetch({
11601
11629
  method: 'GET',
11602
11630
  path: `/iam/v1alpha1/logs/${validatePathParam('logId', request.logId)}`
@@ -16287,7 +16315,7 @@ let API$e = class API extends API$v {
16287
16315
  }, unmarshalJobDefinition);
16288
16316
  getJobDefinition = request => this.client.fetch({
16289
16317
  method: 'GET',
16290
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
16318
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
16291
16319
  }, unmarshalJobDefinition);
16292
16320
  pageOfListJobDefinitions = (request = {}) => this.client.fetch({
16293
16321
  method: 'GET',
@@ -16299,32 +16327,32 @@ let API$e = class API extends API$v {
16299
16327
  body: JSON.stringify(marshalUpdateJobDefinitionRequest(request, this.client.settings)),
16300
16328
  headers: jsonContentHeaders$d,
16301
16329
  method: 'PATCH',
16302
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
16330
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
16303
16331
  }, unmarshalJobDefinition);
16304
16332
  deleteJobDefinition = request => this.client.fetch({
16305
16333
  method: 'DELETE',
16306
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}`
16334
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}`
16307
16335
  });
16308
16336
  startJobDefinition = request => this.client.fetch({
16309
16337
  body: '{}',
16310
16338
  headers: jsonContentHeaders$d,
16311
16339
  method: 'POST',
16312
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('id', request.id)}/start`
16340
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}/start`
16313
16341
  }, unmarshalJobRun);
16314
16342
  getJobRun = request => this.client.fetch({
16315
16343
  method: 'GET',
16316
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}`
16344
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('jobRunId', request.jobRunId)}`
16317
16345
  }, unmarshalJobRun);
16318
16346
  stopJobRun = request => this.client.fetch({
16319
16347
  body: '{}',
16320
16348
  headers: jsonContentHeaders$d,
16321
16349
  method: 'POST',
16322
- path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('id', request.id)}/stop`
16350
+ path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs/${validatePathParam('jobRunId', request.jobRunId)}/stop`
16323
16351
  }, unmarshalJobRun);
16324
16352
  pageOfListJobRuns = (request = {}) => this.client.fetch({
16325
16353
  method: 'GET',
16326
16354
  path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-runs`,
16327
- urlParams: urlParams(['id', request.id], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
16355
+ urlParams: urlParams(['job_definition_id', request.jobDefinitionId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
16328
16356
  }, unmarshalListJobRunsResponse);
16329
16357
  listJobRuns = (request = {}) => enrichForPagination('jobRuns', this.pageOfListJobRuns, request);
16330
16358
  };
@@ -16586,12 +16614,15 @@ const unmarshalExternalNode = data => {
16586
16614
  return {
16587
16615
  clusterCa: data.cluster_ca,
16588
16616
  clusterUrl: data.cluster_url,
16617
+ cniPluginsVersion: data.cni_plugins_version,
16618
+ containerdVersion: data.containerd_version,
16589
16619
  externalIp: data.external_ip,
16590
16620
  id: data.id,
16591
16621
  kubeToken: data.kube_token,
16592
16622
  kubeletConfig: data.kubelet_config,
16593
16623
  name: data.name,
16594
- poolVersion: data.pool_version
16624
+ poolVersion: data.pool_version,
16625
+ runcVersion: data.runc_version
16595
16626
  };
16596
16627
  };
16597
16628
  const unmarshalClusterType = data => {
@@ -26345,11 +26376,14 @@ const unmarshalHosting = data => {
26345
26376
  dnsStatus: data.dns_status,
26346
26377
  domain: data.domain,
26347
26378
  id: data.id,
26379
+ ipv4: data.ipv4,
26380
+ ipv6: data.ipv6,
26348
26381
  offerEndOfLife: data.offer_end_of_life,
26349
26382
  offerId: data.offer_id,
26350
26383
  offerName: data.offer_name,
26351
26384
  options: unmarshalArrayOfObject(data.options, unmarshalHostingOption),
26352
26385
  organizationId: data.organization_id,
26386
+ platformGroup: data.platform_group,
26353
26387
  platformHostname: data.platform_hostname,
26354
26388
  platformNumber: data.platform_number,
26355
26389
  projectId: data.project_id,
@@ -26606,7 +26640,7 @@ class API extends API$v {
26606
26640
  listOffers = request => this.client.fetch({
26607
26641
  method: 'GET',
26608
26642
  path: `/webhosting/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/offers`,
26609
- urlParams: urlParams(['hosting_id', request.hostingId], ['only_options', request.onlyOptions], ['order_by', request.orderBy], ['without_options', request.withoutOptions])
26643
+ urlParams: urlParams(['control_panels', request.controlPanels], ['hosting_id', request.hostingId], ['only_options', request.onlyOptions], ['order_by', request.orderBy], ['without_options', request.withoutOptions])
26610
26644
  }, unmarshalListOffersResponse);
26611
26645
  pageOfListControlPanels = (request = {}) => this.client.fetch({
26612
26646
  method: 'GET',
package/dist/index.d.ts CHANGED
@@ -3686,20 +3686,20 @@ interface ContactPoint {
3686
3686
  */
3687
3687
  email?: ContactPointEmail;
3688
3688
  }
3689
- /** Datasource. */
3689
+ /** Data source. */
3690
3690
  interface Datasource {
3691
- /** ID of the datasource. */
3691
+ /** ID of the data source. */
3692
3692
  id: string;
3693
3693
  /** ID of the Project the Cockpit belongs to. */
3694
3694
  projectId: string;
3695
- /** Datasource name. */
3695
+ /** Data source name. */
3696
3696
  name: string;
3697
- /** Datasource URL. */
3697
+ /** Data source URL. */
3698
3698
  url: string;
3699
- /** Datasource type. */
3699
+ /** Data source type. */
3700
3700
  type: DatasourceType;
3701
3701
  /**
3702
- * Specifies that the datasource receives data from Scaleway products and is
3702
+ * Specifies that the data source receives data from Scaleway products and is
3703
3703
  * managed by Scaleway.
3704
3704
  */
3705
3705
  isManagedByScaleway: boolean;
@@ -3777,15 +3777,15 @@ type CreateContactPointRequest = {
3777
3777
  /** Contact point to create. */
3778
3778
  contactPoint?: ContactPoint;
3779
3779
  };
3780
- /** Request to create a datasource. */
3780
+ /** Request to create a data source. */
3781
3781
  type CreateDatasourceRequest = {
3782
3782
  /** ID of the Project the Cockpit belongs to. */
3783
3783
  projectId?: string;
3784
- /** Datasource name. */
3784
+ /** Data source name. */
3785
3785
  name: string;
3786
- /** Datasource type. */
3786
+ /** Data source type. */
3787
3787
  type?: DatasourceType;
3788
- /** Specifies that the returned output is the default datasource per type. */
3788
+ /** Specifies that the returned output is the default data source per type. */
3789
3789
  isDefault: boolean;
3790
3790
  };
3791
3791
  /** Request to create a Grafana user. */
@@ -3816,6 +3816,11 @@ type DeleteContactPointRequest = {
3816
3816
  /** Contact point to delete. */
3817
3817
  contactPoint?: ContactPoint;
3818
3818
  };
3819
+ /** Request to delete a data source. */
3820
+ type DeleteDatasourceRequest = {
3821
+ /** ID of the data source. */
3822
+ datasourceId: string;
3823
+ };
3819
3824
  /** Request to delete a Grafana user. */
3820
3825
  type DeleteGrafanaUserRequest = {
3821
3826
  /** ID of the Grafana user. */
@@ -4044,6 +4049,12 @@ declare class API$p extends API$v {
4044
4049
  * @returns A Promise of Datasource
4045
4050
  */
4046
4051
  createDatasource: (request: Readonly<CreateDatasourceRequest>) => Promise<Datasource>;
4052
+ /**
4053
+ * Delete the datasource associated with the specified datasource ID.
4054
+ *
4055
+ * @param request - The request {@link DeleteDatasourceRequest}
4056
+ */
4057
+ deleteDatasource: (request: Readonly<DeleteDatasourceRequest>) => Promise<void>;
4047
4058
  protected pageOfListDatasources: (request?: Readonly<ListDatasourcesRequest>) => Promise<ListDatasourcesResponse>;
4048
4059
  /**
4049
4060
  * Get a list of datasources for the specified Project ID.
@@ -4222,6 +4233,7 @@ type index_gen$o_Datasource = Datasource;
4222
4233
  type index_gen$o_DatasourceType = DatasourceType;
4223
4234
  type index_gen$o_DeactivateCockpitRequest = DeactivateCockpitRequest;
4224
4235
  type index_gen$o_DeleteContactPointRequest = DeleteContactPointRequest;
4236
+ type index_gen$o_DeleteDatasourceRequest = DeleteDatasourceRequest;
4225
4237
  type index_gen$o_DeleteGrafanaUserRequest = DeleteGrafanaUserRequest;
4226
4238
  type index_gen$o_DisableManagedAlertsRequest = DisableManagedAlertsRequest;
4227
4239
  type index_gen$o_EnableManagedAlertsRequest = EnableManagedAlertsRequest;
@@ -4252,7 +4264,7 @@ type index_gen$o_SelectPlanResponse = SelectPlanResponse;
4252
4264
  type index_gen$o_TokenScopes = TokenScopes;
4253
4265
  type index_gen$o_TriggerTestAlertRequest = TriggerTestAlertRequest;
4254
4266
  declare namespace index_gen$o {
4255
- export { API$p as API, type index_gen$o_ActivateCockpitRequest as ActivateCockpitRequest, index_gen$o_COCKPIT_TRANSIENT_STATUSES as COCKPIT_TRANSIENT_STATUSES, type index_gen$o_Cockpit as Cockpit, type index_gen$o_CockpitEndpoints as CockpitEndpoints, type index_gen$o_CockpitMetrics as CockpitMetrics, type index_gen$o_CockpitStatus as CockpitStatus, type index_gen$o_ContactPoint as ContactPoint, type index_gen$o_ContactPointEmail as ContactPointEmail, type index_gen$o_CreateContactPointRequest as CreateContactPointRequest, type index_gen$o_CreateDatasourceRequest as CreateDatasourceRequest, type index_gen$o_CreateGrafanaUserRequest as CreateGrafanaUserRequest, type CreateTokenRequest$2 as CreateTokenRequest, type index_gen$o_Datasource as Datasource, type index_gen$o_DatasourceType as DatasourceType, type index_gen$o_DeactivateCockpitRequest as DeactivateCockpitRequest, type index_gen$o_DeleteContactPointRequest as DeleteContactPointRequest, type index_gen$o_DeleteGrafanaUserRequest as DeleteGrafanaUserRequest, type DeleteTokenRequest$2 as DeleteTokenRequest, type index_gen$o_DisableManagedAlertsRequest as DisableManagedAlertsRequest, type index_gen$o_EnableManagedAlertsRequest as EnableManagedAlertsRequest, type index_gen$o_GetCockpitMetricsRequest as GetCockpitMetricsRequest, type index_gen$o_GetCockpitRequest as GetCockpitRequest, type index_gen$o_GetGrafanaProductDashboardRequest as GetGrafanaProductDashboardRequest, type GetTokenRequest$2 as GetTokenRequest, type index_gen$o_GrafanaProductDashboard as GrafanaProductDashboard, type index_gen$o_GrafanaUser as GrafanaUser, type index_gen$o_GrafanaUserRole as GrafanaUserRole, type index_gen$o_ListContactPointsRequest as ListContactPointsRequest, type index_gen$o_ListContactPointsResponse as ListContactPointsResponse, type index_gen$o_ListDatasourcesRequest as ListDatasourcesRequest, type index_gen$o_ListDatasourcesRequestOrderBy as ListDatasourcesRequestOrderBy, type index_gen$o_ListDatasourcesResponse as ListDatasourcesResponse, type index_gen$o_ListGrafanaProductDashboardsRequest as ListGrafanaProductDashboardsRequest, type index_gen$o_ListGrafanaProductDashboardsResponse as ListGrafanaProductDashboardsResponse, type index_gen$o_ListGrafanaUsersRequest as ListGrafanaUsersRequest, type index_gen$o_ListGrafanaUsersRequestOrderBy as ListGrafanaUsersRequestOrderBy, type index_gen$o_ListGrafanaUsersResponse as ListGrafanaUsersResponse, type index_gen$o_ListPlansRequest as ListPlansRequest, type index_gen$o_ListPlansRequestOrderBy as ListPlansRequestOrderBy, type index_gen$o_ListPlansResponse as ListPlansResponse, type ListTokensRequest$2 as ListTokensRequest, type ListTokensRequestOrderBy$2 as ListTokensRequestOrderBy, type ListTokensResponse$2 as ListTokensResponse, type index_gen$o_Plan as Plan, type index_gen$o_PlanName as PlanName, type index_gen$o_ResetGrafanaUserPasswordRequest as ResetGrafanaUserPasswordRequest, type index_gen$o_SelectPlanRequest as SelectPlanRequest, type index_gen$o_SelectPlanResponse as SelectPlanResponse, type Token$2 as Token, type index_gen$o_TokenScopes as TokenScopes, type index_gen$o_TriggerTestAlertRequest as TriggerTestAlertRequest };
4267
+ export { API$p as API, type index_gen$o_ActivateCockpitRequest as ActivateCockpitRequest, index_gen$o_COCKPIT_TRANSIENT_STATUSES as COCKPIT_TRANSIENT_STATUSES, type index_gen$o_Cockpit as Cockpit, type index_gen$o_CockpitEndpoints as CockpitEndpoints, type index_gen$o_CockpitMetrics as CockpitMetrics, type index_gen$o_CockpitStatus as CockpitStatus, type index_gen$o_ContactPoint as ContactPoint, type index_gen$o_ContactPointEmail as ContactPointEmail, type index_gen$o_CreateContactPointRequest as CreateContactPointRequest, type index_gen$o_CreateDatasourceRequest as CreateDatasourceRequest, type index_gen$o_CreateGrafanaUserRequest as CreateGrafanaUserRequest, type CreateTokenRequest$2 as CreateTokenRequest, type index_gen$o_Datasource as Datasource, type index_gen$o_DatasourceType as DatasourceType, type index_gen$o_DeactivateCockpitRequest as DeactivateCockpitRequest, type index_gen$o_DeleteContactPointRequest as DeleteContactPointRequest, type index_gen$o_DeleteDatasourceRequest as DeleteDatasourceRequest, type index_gen$o_DeleteGrafanaUserRequest as DeleteGrafanaUserRequest, type DeleteTokenRequest$2 as DeleteTokenRequest, type index_gen$o_DisableManagedAlertsRequest as DisableManagedAlertsRequest, type index_gen$o_EnableManagedAlertsRequest as EnableManagedAlertsRequest, type index_gen$o_GetCockpitMetricsRequest as GetCockpitMetricsRequest, type index_gen$o_GetCockpitRequest as GetCockpitRequest, type index_gen$o_GetGrafanaProductDashboardRequest as GetGrafanaProductDashboardRequest, type GetTokenRequest$2 as GetTokenRequest, type index_gen$o_GrafanaProductDashboard as GrafanaProductDashboard, type index_gen$o_GrafanaUser as GrafanaUser, type index_gen$o_GrafanaUserRole as GrafanaUserRole, type index_gen$o_ListContactPointsRequest as ListContactPointsRequest, type index_gen$o_ListContactPointsResponse as ListContactPointsResponse, type index_gen$o_ListDatasourcesRequest as ListDatasourcesRequest, type index_gen$o_ListDatasourcesRequestOrderBy as ListDatasourcesRequestOrderBy, type index_gen$o_ListDatasourcesResponse as ListDatasourcesResponse, type index_gen$o_ListGrafanaProductDashboardsRequest as ListGrafanaProductDashboardsRequest, type index_gen$o_ListGrafanaProductDashboardsResponse as ListGrafanaProductDashboardsResponse, type index_gen$o_ListGrafanaUsersRequest as ListGrafanaUsersRequest, type index_gen$o_ListGrafanaUsersRequestOrderBy as ListGrafanaUsersRequestOrderBy, type index_gen$o_ListGrafanaUsersResponse as ListGrafanaUsersResponse, type index_gen$o_ListPlansRequest as ListPlansRequest, type index_gen$o_ListPlansRequestOrderBy as ListPlansRequestOrderBy, type index_gen$o_ListPlansResponse as ListPlansResponse, type ListTokensRequest$2 as ListTokensRequest, type ListTokensRequestOrderBy$2 as ListTokensRequestOrderBy, type ListTokensResponse$2 as ListTokensResponse, type index_gen$o_Plan as Plan, type index_gen$o_PlanName as PlanName, type index_gen$o_ResetGrafanaUserPasswordRequest as ResetGrafanaUserPasswordRequest, type index_gen$o_SelectPlanRequest as SelectPlanRequest, type index_gen$o_SelectPlanResponse as SelectPlanResponse, type Token$2 as Token, type index_gen$o_TokenScopes as TokenScopes, type index_gen$o_TriggerTestAlertRequest as TriggerTestAlertRequest };
4256
4268
  }
4257
4269
 
4258
4270
  declare namespace index$r {
@@ -11922,7 +11934,7 @@ declare class API$j extends API$v {
11922
11934
  };
11923
11935
  /**
11924
11936
  * Get a quota in the Organization. Retrieve information about a resource
11925
- * quota, speficified by the `quotum_name` parameter. The quota's `limit`, or
11937
+ * quota, specified by the `quotum_name` parameter. The quota's `limit`, or
11926
11938
  * whether it is unlimited, is returned in the response.
11927
11939
  *
11928
11940
  * @param request - The request {@link GetQuotumRequest}
@@ -11954,10 +11966,26 @@ declare class API$j extends API$v {
11954
11966
  */
11955
11967
  deleteJWT: (request: Readonly<DeleteJWTRequest>) => Promise<void>;
11956
11968
  protected pageOfListLogs: (request?: Readonly<ListLogsRequest$1>) => Promise<ListLogsResponse>;
11969
+ /**
11970
+ * List logs. List logs available for given Organization. You must define the
11971
+ * `organization_id` in the query path of your request.
11972
+ *
11973
+ * @param request - The request {@link ListLogsRequest}
11974
+ * @returns A Promise of ListLogsResponse
11975
+ */
11957
11976
  listLogs: (request?: Readonly<ListLogsRequest$1>) => Promise<ListLogsResponse> & {
11958
11977
  all: () => Promise<Log[]>;
11959
11978
  [Symbol.asyncIterator]: () => AsyncGenerator<Log[], void, void>;
11960
11979
  };
11980
+ /**
11981
+ * Get a log. Retrieve information about a log, specified by the `log_id`
11982
+ * parameter. The log's full details, including `id`, `ip`, `user_agent`,
11983
+ * `action`, `bearer_id`, `resource_type` and `resource_id` are returned in
11984
+ * the response.
11985
+ *
11986
+ * @param request - The request {@link GetLogRequest}
11987
+ * @returns A Promise of Log
11988
+ */
11961
11989
  getLog: (request: Readonly<GetLogRequest>) => Promise<Log>;
11962
11990
  }
11963
11991
 
@@ -17254,7 +17282,7 @@ type DeleteJobDefinitionRequest = {
17254
17282
  * config.
17255
17283
  */
17256
17284
  region?: Region;
17257
- id: string;
17285
+ jobDefinitionId: string;
17258
17286
  };
17259
17287
  type GetJobDefinitionRequest = {
17260
17288
  /**
@@ -17262,7 +17290,7 @@ type GetJobDefinitionRequest = {
17262
17290
  * config.
17263
17291
  */
17264
17292
  region?: Region;
17265
- id: string;
17293
+ jobDefinitionId: string;
17266
17294
  };
17267
17295
  type GetJobRunRequest = {
17268
17296
  /**
@@ -17270,7 +17298,7 @@ type GetJobRunRequest = {
17270
17298
  * config.
17271
17299
  */
17272
17300
  region?: Region;
17273
- id: string;
17301
+ jobRunId: string;
17274
17302
  };
17275
17303
  type GetServiceInfoRequest = {
17276
17304
  /**
@@ -17303,7 +17331,7 @@ type ListJobRunsRequest$1 = {
17303
17331
  page?: number;
17304
17332
  pageSize?: number;
17305
17333
  orderBy?: ListJobRunsRequestOrderBy;
17306
- id?: string;
17334
+ jobDefinitionId?: string;
17307
17335
  projectId?: string;
17308
17336
  };
17309
17337
  interface ListJobRunsResponse {
@@ -17316,7 +17344,7 @@ type StartJobDefinitionRequest = {
17316
17344
  * config.
17317
17345
  */
17318
17346
  region?: Region;
17319
- id: string;
17347
+ jobDefinitionId: string;
17320
17348
  };
17321
17349
  type StopJobRunRequest = {
17322
17350
  /**
@@ -17324,7 +17352,7 @@ type StopJobRunRequest = {
17324
17352
  * config.
17325
17353
  */
17326
17354
  region?: Region;
17327
- id: string;
17355
+ jobRunId: string;
17328
17356
  };
17329
17357
  type UpdateJobDefinitionRequest$1 = {
17330
17358
  /**
@@ -17332,7 +17360,7 @@ type UpdateJobDefinitionRequest$1 = {
17332
17360
  * config.
17333
17361
  */
17334
17362
  region?: Region;
17335
- id: string;
17363
+ jobDefinitionId: string;
17336
17364
  name?: string;
17337
17365
  cpuLimit?: number;
17338
17366
  memoryLimit?: number;
@@ -18212,6 +18240,9 @@ interface ExternalNode {
18212
18240
  kubeToken: string;
18213
18241
  kubeletConfig: string;
18214
18242
  externalIp: string;
18243
+ containerdVersion: string;
18244
+ runcVersion: string;
18245
+ cniPluginsVersion: string;
18215
18246
  }
18216
18247
  type GetClusterKubeConfigRequest$1 = {
18217
18248
  /**
@@ -31310,6 +31341,12 @@ interface Hosting {
31310
31341
  offerEndOfLife: boolean;
31311
31342
  /** Name of the control panel. */
31312
31343
  controlPanelName: string;
31344
+ /** Group of the hosting's host server/platform. */
31345
+ platformGroup: string;
31346
+ /** IPv4 address of the hosting's host server. */
31347
+ ipv4: string;
31348
+ /** IPv6 address of the hosting's host server. */
31349
+ ipv6: string;
31313
31350
  /** Region where the Web Hosting plan is hosted. */
31314
31351
  region: Region;
31315
31352
  }
@@ -31492,6 +31529,8 @@ type ListOffersRequest = {
31492
31529
  * case of wanting to update the plan).
31493
31530
  */
31494
31531
  hostingId?: string;
31532
+ /** Name of the control panel to filter for. */
31533
+ controlPanels?: string[];
31495
31534
  };
31496
31535
  interface ListOffersResponse {
31497
31536
  /** List of offers. */
@@ -1,4 +1,4 @@
1
- const version = 'v2.4.0';
1
+ const version = 'v2.4.2';
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": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -35,5 +35,5 @@
35
35
  "bundledDependencies": [
36
36
  "@scaleway/random-name"
37
37
  ],
38
- "gitHead": "fc423c5b5257068a58ccbaa28f241473f625b0f6"
38
+ "gitHead": "990ef36b2c2ec729089434af154e9ebdb9808c91"
39
39
  }