@scaleway/sdk 2.4.2 → 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.
- package/dist/api/cockpit/v1beta1/api.gen.js +10 -0
- package/dist/api/iam/v1alpha1/api.gen.js +19 -1
- package/dist/api/k8s/v1/marshalling.gen.js +4 -1
- package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +3 -0
- package/dist/index.cjs +38 -4
- package/dist/index.d.ts +51 -12
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -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,
|
|
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)}`
|
|
@@ -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.
|
|
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,
|
|
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)}`
|
|
@@ -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
|
-
/**
|
|
3689
|
+
/** Data source. */
|
|
3690
3690
|
interface Datasource {
|
|
3691
|
-
/** ID of the
|
|
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
|
-
/**
|
|
3695
|
+
/** Data source name. */
|
|
3696
3696
|
name: string;
|
|
3697
|
-
/**
|
|
3697
|
+
/** Data source URL. */
|
|
3698
3698
|
url: string;
|
|
3699
|
-
/**
|
|
3699
|
+
/** Data source type. */
|
|
3700
3700
|
type: DatasourceType;
|
|
3701
3701
|
/**
|
|
3702
|
-
* Specifies that the
|
|
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
|
|
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
|
-
/**
|
|
3784
|
+
/** Data source name. */
|
|
3785
3785
|
name: string;
|
|
3786
|
-
/**
|
|
3786
|
+
/** Data source type. */
|
|
3787
3787
|
type?: DatasourceType;
|
|
3788
|
-
/** Specifies that the returned output is the default
|
|
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,
|
|
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
|
|
|
@@ -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. */
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
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": "
|
|
38
|
+
"gitHead": "990ef36b2c2ec729089434af154e9ebdb9808c91"
|
|
39
39
|
}
|