@scaleway/sdk 1.38.0 → 1.39.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/billing/v2alpha1/api.gen.js +32 -1
- package/dist/api/billing/v2alpha1/marshalling.gen.js +46 -1
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +3 -1
- package/dist/api/function/v1beta1/api.gen.js +36 -0
- package/dist/api/iam/v1alpha1/api.gen.js +27 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +26 -1
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +10 -1
- package/dist/api/instance/v1/content.gen.js +4 -1
- package/dist/api/instance/v1/index.js +1 -1
- package/dist/api/instance/v1/marshalling.gen.js +2 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +0 -7
- package/dist/api/rdb/v1/marshalling.gen.js +7 -0
- package/dist/api/tem/v1alpha1/api.gen.js +8 -2
- package/dist/api/vpcgw/v1/marshalling.gen.js +9 -3
- package/dist/index.cjs +183 -22
- package/dist/index.d.ts +314 -69
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v1.
|
|
500
|
+
const version = 'v1.38.1';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -3640,6 +3640,42 @@ var index$t = /*#__PURE__*/Object.freeze({
|
|
|
3640
3640
|
|
|
3641
3641
|
// This file was automatically generated. DO NOT EDIT.
|
|
3642
3642
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
3643
|
+
const unmarshalDiscountCoupon = data => {
|
|
3644
|
+
if (!isJSONObject(data)) {
|
|
3645
|
+
throw new TypeError(`Unmarshalling the type 'DiscountCoupon' failed as data isn't a dictionary.`);
|
|
3646
|
+
}
|
|
3647
|
+
return {
|
|
3648
|
+
description: data.description
|
|
3649
|
+
};
|
|
3650
|
+
};
|
|
3651
|
+
const unmarshalDiscountFilter = data => {
|
|
3652
|
+
if (!isJSONObject(data)) {
|
|
3653
|
+
throw new TypeError(`Unmarshalling the type 'DiscountFilter' failed as data isn't a dictionary.`);
|
|
3654
|
+
}
|
|
3655
|
+
return {
|
|
3656
|
+
type: data.type,
|
|
3657
|
+
value: data.value
|
|
3658
|
+
};
|
|
3659
|
+
};
|
|
3660
|
+
const unmarshalDiscount = data => {
|
|
3661
|
+
if (!isJSONObject(data)) {
|
|
3662
|
+
throw new TypeError(`Unmarshalling the type 'Discount' failed as data isn't a dictionary.`);
|
|
3663
|
+
}
|
|
3664
|
+
return {
|
|
3665
|
+
coupon: data.coupon ? unmarshalDiscountCoupon(data.coupon) : undefined,
|
|
3666
|
+
creationDate: unmarshalDate(data.creation_date),
|
|
3667
|
+
description: data.description,
|
|
3668
|
+
filters: unmarshalArrayOfObject(data.filters, unmarshalDiscountFilter),
|
|
3669
|
+
id: data.id,
|
|
3670
|
+
mode: data.mode,
|
|
3671
|
+
organizationId: data.organization_id,
|
|
3672
|
+
startDate: unmarshalDate(data.start_date),
|
|
3673
|
+
stopDate: unmarshalDate(data.stop_date),
|
|
3674
|
+
value: data.value,
|
|
3675
|
+
valueRemaining: data.value_remaining,
|
|
3676
|
+
valueUsed: data.value_used
|
|
3677
|
+
};
|
|
3678
|
+
};
|
|
3643
3679
|
const unmarshalGetConsumptionResponseConsumption = data => {
|
|
3644
3680
|
if (!isJSONObject(data)) {
|
|
3645
3681
|
throw new TypeError(`Unmarshalling the type 'GetConsumptionResponseConsumption' failed as data isn't a dictionary.`);
|
|
@@ -3676,6 +3712,15 @@ const unmarshalGetConsumptionResponse = data => {
|
|
|
3676
3712
|
updatedAt: unmarshalDate(data.updated_at)
|
|
3677
3713
|
};
|
|
3678
3714
|
};
|
|
3715
|
+
const unmarshalListDiscountsResponse = data => {
|
|
3716
|
+
if (!isJSONObject(data)) {
|
|
3717
|
+
throw new TypeError(`Unmarshalling the type 'ListDiscountsResponse' failed as data isn't a dictionary.`);
|
|
3718
|
+
}
|
|
3719
|
+
return {
|
|
3720
|
+
discounts: unmarshalArrayOfObject(data.discounts, unmarshalDiscount),
|
|
3721
|
+
totalCount: data.total_count
|
|
3722
|
+
};
|
|
3723
|
+
};
|
|
3679
3724
|
const unmarshalListInvoicesResponse = data => {
|
|
3680
3725
|
if (!isJSONObject(data)) {
|
|
3681
3726
|
throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
|
|
@@ -3734,6 +3779,21 @@ let API$r = class API extends API$v {
|
|
|
3734
3779
|
urlParams: urlParams(['dl', 1], ['file_type', request.fileType ?? 'pdf']),
|
|
3735
3780
|
responseType: 'blob'
|
|
3736
3781
|
});
|
|
3782
|
+
pageOfListDiscounts = (request = {}) => this.client.fetch({
|
|
3783
|
+
method: 'GET',
|
|
3784
|
+
path: `/billing/v2alpha1/discounts`,
|
|
3785
|
+
urlParams: urlParams(['order_by', request.orderBy ?? 'creation_date_desc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
3786
|
+
}, unmarshalListDiscountsResponse);
|
|
3787
|
+
|
|
3788
|
+
/**
|
|
3789
|
+
* List all user's discounts. List all discounts for an organization and
|
|
3790
|
+
* usable categories/products/offers/references/regions/zones where the
|
|
3791
|
+
* discount can be applied.
|
|
3792
|
+
*
|
|
3793
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
3794
|
+
* @returns A Promise of ListDiscountsResponse
|
|
3795
|
+
*/
|
|
3796
|
+
listDiscounts = (request = {}) => enrichForPagination('discounts', this.pageOfListDiscounts, request);
|
|
3737
3797
|
};
|
|
3738
3798
|
|
|
3739
3799
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4303,7 +4363,9 @@ const unmarshalPlan = data => {
|
|
|
4303
4363
|
retentionLogsInterval: data.retention_logs_interval,
|
|
4304
4364
|
retentionMetricsInterval: data.retention_metrics_interval,
|
|
4305
4365
|
retentionPrice: data.retention_price,
|
|
4306
|
-
|
|
4366
|
+
retentionTracesInterval: data.retention_traces_interval,
|
|
4367
|
+
sampleIngestionPrice: data.sample_ingestion_price,
|
|
4368
|
+
tracesIngestionPrice: data.traces_ingestion_price
|
|
4307
4369
|
};
|
|
4308
4370
|
};
|
|
4309
4371
|
const unmarshalToken$2 = data => {
|
|
@@ -4955,7 +5017,7 @@ const unmarshalDomain$3 = data => {
|
|
|
4955
5017
|
url: data.url
|
|
4956
5018
|
};
|
|
4957
5019
|
};
|
|
4958
|
-
const unmarshalLog$
|
|
5020
|
+
const unmarshalLog$2 = data => {
|
|
4959
5021
|
if (!isJSONObject(data)) {
|
|
4960
5022
|
throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
|
|
4961
5023
|
}
|
|
@@ -5046,12 +5108,12 @@ const unmarshalListDomainsResponse$3 = data => {
|
|
|
5046
5108
|
totalCount: data.total_count
|
|
5047
5109
|
};
|
|
5048
5110
|
};
|
|
5049
|
-
const unmarshalListLogsResponse$
|
|
5111
|
+
const unmarshalListLogsResponse$2 = data => {
|
|
5050
5112
|
if (!isJSONObject(data)) {
|
|
5051
5113
|
throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
|
|
5052
5114
|
}
|
|
5053
5115
|
return {
|
|
5054
|
-
logs: unmarshalArrayOfObject(data.logs, unmarshalLog$
|
|
5116
|
+
logs: unmarshalArrayOfObject(data.logs, unmarshalLog$2),
|
|
5055
5117
|
totalCount: data.total_count
|
|
5056
5118
|
};
|
|
5057
5119
|
};
|
|
@@ -5447,7 +5509,7 @@ let API$o = class API extends API$v {
|
|
|
5447
5509
|
method: 'GET',
|
|
5448
5510
|
path: `/containers/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/containers/${validatePathParam('containerId', request.containerId)}/logs`,
|
|
5449
5511
|
urlParams: urlParams(['order_by', request.orderBy ?? 'timestamp_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
5450
|
-
}, unmarshalListLogsResponse$
|
|
5512
|
+
}, unmarshalListLogsResponse$2);
|
|
5451
5513
|
|
|
5452
5514
|
/**
|
|
5453
5515
|
* List your container logs. List the logs of the container with the specified
|
|
@@ -9618,7 +9680,7 @@ const unmarshalFunction = data => {
|
|
|
9618
9680
|
timeout: data.timeout
|
|
9619
9681
|
};
|
|
9620
9682
|
};
|
|
9621
|
-
const unmarshalLog = data => {
|
|
9683
|
+
const unmarshalLog$1 = data => {
|
|
9622
9684
|
if (!isJSONObject(data)) {
|
|
9623
9685
|
throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
|
|
9624
9686
|
}
|
|
@@ -9744,12 +9806,12 @@ const unmarshalListFunctionsResponse = data => {
|
|
|
9744
9806
|
totalCount: data.total_count
|
|
9745
9807
|
};
|
|
9746
9808
|
};
|
|
9747
|
-
const unmarshalListLogsResponse = data => {
|
|
9809
|
+
const unmarshalListLogsResponse$1 = data => {
|
|
9748
9810
|
if (!isJSONObject(data)) {
|
|
9749
9811
|
throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
|
|
9750
9812
|
}
|
|
9751
9813
|
return {
|
|
9752
|
-
logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
|
|
9814
|
+
logs: unmarshalArrayOfObject(data.logs, unmarshalLog$1),
|
|
9753
9815
|
totalCount: data.total_count
|
|
9754
9816
|
};
|
|
9755
9817
|
};
|
|
@@ -10188,7 +10250,7 @@ let API$k = class API extends API$v {
|
|
|
10188
10250
|
method: 'GET',
|
|
10189
10251
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/functions/${validatePathParam('functionId', request.functionId)}/logs`,
|
|
10190
10252
|
urlParams: urlParams(['order_by', request.orderBy ?? 'timestamp_desc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
10191
|
-
}, unmarshalListLogsResponse);
|
|
10253
|
+
}, unmarshalListLogsResponse$1);
|
|
10192
10254
|
|
|
10193
10255
|
/**
|
|
10194
10256
|
* List application logs. List the application logs of the function with the
|
|
@@ -10333,12 +10395,26 @@ let API$k = class API extends API$v {
|
|
|
10333
10395
|
method: 'DELETE',
|
|
10334
10396
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tokens/${validatePathParam('tokenId', request.tokenId)}`
|
|
10335
10397
|
}, unmarshalToken);
|
|
10398
|
+
|
|
10399
|
+
/**
|
|
10400
|
+
* Create a trigger. Create a new trigger for a specified function.
|
|
10401
|
+
*
|
|
10402
|
+
* @param request - The request {@link CreateTriggerRequest}
|
|
10403
|
+
* @returns A Promise of Trigger
|
|
10404
|
+
*/
|
|
10336
10405
|
createTrigger = request => this.client.fetch({
|
|
10337
10406
|
body: JSON.stringify(marshalCreateTriggerRequest(request, this.client.settings)),
|
|
10338
10407
|
headers: jsonContentHeaders$j,
|
|
10339
10408
|
method: 'POST',
|
|
10340
10409
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers`
|
|
10341
10410
|
}, unmarshalTrigger);
|
|
10411
|
+
|
|
10412
|
+
/**
|
|
10413
|
+
* Get a trigger. Get a trigger with a specified ID.
|
|
10414
|
+
*
|
|
10415
|
+
* @param request - The request {@link GetTriggerRequest}
|
|
10416
|
+
* @returns A Promise of Trigger
|
|
10417
|
+
*/
|
|
10342
10418
|
getTrigger = request => this.client.fetch({
|
|
10343
10419
|
method: 'GET',
|
|
10344
10420
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
@@ -10367,13 +10443,35 @@ let API$k = class API extends API$v {
|
|
|
10367
10443
|
value: request.namespaceId
|
|
10368
10444
|
}])))
|
|
10369
10445
|
}, unmarshalListTriggersResponse);
|
|
10446
|
+
|
|
10447
|
+
/**
|
|
10448
|
+
* List all triggers. List all triggers belonging to a specified Organization
|
|
10449
|
+
* or Project.
|
|
10450
|
+
*
|
|
10451
|
+
* @param request - The request {@link ListTriggersRequest}
|
|
10452
|
+
* @returns A Promise of ListTriggersResponse
|
|
10453
|
+
*/
|
|
10370
10454
|
listTriggers = (request = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request);
|
|
10455
|
+
|
|
10456
|
+
/**
|
|
10457
|
+
* Update a trigger. Update a trigger with a specified ID.
|
|
10458
|
+
*
|
|
10459
|
+
* @param request - The request {@link UpdateTriggerRequest}
|
|
10460
|
+
* @returns A Promise of Trigger
|
|
10461
|
+
*/
|
|
10371
10462
|
updateTrigger = request => this.client.fetch({
|
|
10372
10463
|
body: JSON.stringify(marshalUpdateTriggerRequest(request, this.client.settings)),
|
|
10373
10464
|
headers: jsonContentHeaders$j,
|
|
10374
10465
|
method: 'PATCH',
|
|
10375
10466
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
10376
10467
|
}, unmarshalTrigger);
|
|
10468
|
+
|
|
10469
|
+
/**
|
|
10470
|
+
* Delete a trigger. Delete a trigger with a specified ID.
|
|
10471
|
+
*
|
|
10472
|
+
* @param request - The request {@link DeleteTriggerRequest}
|
|
10473
|
+
* @returns A Promise of Trigger
|
|
10474
|
+
*/
|
|
10377
10475
|
deleteTrigger = request => this.client.fetch({
|
|
10378
10476
|
method: 'DELETE',
|
|
10379
10477
|
path: `/functions/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/triggers/${validatePathParam('triggerId', request.triggerId)}`
|
|
@@ -10516,6 +10614,22 @@ const unmarshalJWT = data => {
|
|
|
10516
10614
|
userAgent: data.user_agent
|
|
10517
10615
|
};
|
|
10518
10616
|
};
|
|
10617
|
+
const unmarshalLog = data => {
|
|
10618
|
+
if (!isJSONObject(data)) {
|
|
10619
|
+
throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
|
|
10620
|
+
}
|
|
10621
|
+
return {
|
|
10622
|
+
action: data.action,
|
|
10623
|
+
bearerId: data.bearer_id,
|
|
10624
|
+
createdAt: unmarshalDate(data.created_at),
|
|
10625
|
+
id: data.id,
|
|
10626
|
+
ip: data.ip,
|
|
10627
|
+
organizationId: data.organization_id,
|
|
10628
|
+
resourceId: data.resource_id,
|
|
10629
|
+
resourceType: data.resource_type,
|
|
10630
|
+
userAgent: data.user_agent
|
|
10631
|
+
};
|
|
10632
|
+
};
|
|
10519
10633
|
const unmarshalPermissionSet = data => {
|
|
10520
10634
|
if (!isJSONObject(data)) {
|
|
10521
10635
|
throw new TypeError(`Unmarshalling the type 'PermissionSet' failed as data isn't a dictionary.`);
|
|
@@ -10643,6 +10757,15 @@ const unmarshalListJWTsResponse = data => {
|
|
|
10643
10757
|
totalCount: data.total_count
|
|
10644
10758
|
};
|
|
10645
10759
|
};
|
|
10760
|
+
const unmarshalListLogsResponse = data => {
|
|
10761
|
+
if (!isJSONObject(data)) {
|
|
10762
|
+
throw new TypeError(`Unmarshalling the type 'ListLogsResponse' failed as data isn't a dictionary.`);
|
|
10763
|
+
}
|
|
10764
|
+
return {
|
|
10765
|
+
logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
|
|
10766
|
+
totalCount: data.total_count
|
|
10767
|
+
};
|
|
10768
|
+
};
|
|
10646
10769
|
const unmarshalListPermissionSetsResponse = data => {
|
|
10647
10770
|
if (!isJSONObject(data)) {
|
|
10648
10771
|
throw new TypeError(`Unmarshalling the type 'ListPermissionSetsResponse' failed as data isn't a dictionary.`);
|
|
@@ -11460,6 +11583,16 @@ let API$j = class API extends API$v {
|
|
|
11460
11583
|
method: 'DELETE',
|
|
11461
11584
|
path: `/iam/v1alpha1/jwts/${validatePathParam('jti', request.jti)}`
|
|
11462
11585
|
});
|
|
11586
|
+
pageOfListLogs = (request = {}) => this.client.fetch({
|
|
11587
|
+
method: 'GET',
|
|
11588
|
+
path: `/iam/v1alpha1/logs`,
|
|
11589
|
+
urlParams: urlParams(['action', request.action ?? 'unknown_action'], ['created_after', request.createdAfter], ['created_before', request.createdBefore], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['resource_type', request.resourceType ?? 'unknown_resource_type'], ['search', request.search])
|
|
11590
|
+
}, unmarshalListLogsResponse);
|
|
11591
|
+
listLogs = (request = {}) => enrichForPagination('logs', this.pageOfListLogs, request);
|
|
11592
|
+
getLog = request => this.client.fetch({
|
|
11593
|
+
method: 'GET',
|
|
11594
|
+
path: `/iam/v1alpha1/logs/${validatePathParam('logId', request.logId)}`
|
|
11595
|
+
}, unmarshalLog);
|
|
11463
11596
|
};
|
|
11464
11597
|
|
|
11465
11598
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -11566,6 +11699,15 @@ const ListJWTsRequest = {
|
|
|
11566
11699
|
lessThanOrEqual: 100
|
|
11567
11700
|
}
|
|
11568
11701
|
};
|
|
11702
|
+
const ListLogsRequest = {
|
|
11703
|
+
page: {
|
|
11704
|
+
greaterThan: 0
|
|
11705
|
+
},
|
|
11706
|
+
pageSize: {
|
|
11707
|
+
greaterThanOrEqual: 1,
|
|
11708
|
+
lessThanOrEqual: 100
|
|
11709
|
+
}
|
|
11710
|
+
};
|
|
11569
11711
|
const ListPermissionSetsRequest = {
|
|
11570
11712
|
page: {
|
|
11571
11713
|
greaterThan: 0
|
|
@@ -11680,6 +11822,7 @@ var validationRules_gen$5 = /*#__PURE__*/Object.freeze({
|
|
|
11680
11822
|
ListApplicationsRequest: ListApplicationsRequest,
|
|
11681
11823
|
ListGroupsRequest: ListGroupsRequest,
|
|
11682
11824
|
ListJWTsRequest: ListJWTsRequest,
|
|
11825
|
+
ListLogsRequest: ListLogsRequest,
|
|
11683
11826
|
ListPermissionSetsRequest: ListPermissionSetsRequest,
|
|
11684
11827
|
ListPoliciesRequest: ListPoliciesRequest,
|
|
11685
11828
|
ListQuotaRequest: ListQuotaRequest,
|
|
@@ -11858,6 +12001,7 @@ const unmarshalServerIp = data => {
|
|
|
11858
12001
|
id: data.id,
|
|
11859
12002
|
netmask: data.netmask,
|
|
11860
12003
|
provisioningMode: data.provisioning_mode,
|
|
12004
|
+
state: data.state,
|
|
11861
12005
|
tags: data.tags
|
|
11862
12006
|
};
|
|
11863
12007
|
};
|
|
@@ -12698,6 +12842,7 @@ const marshalServerIp = (request, defaults) => ({
|
|
|
12698
12842
|
id: request.id,
|
|
12699
12843
|
netmask: request.netmask,
|
|
12700
12844
|
provisioning_mode: request.provisioningMode,
|
|
12845
|
+
state: request.state,
|
|
12701
12846
|
tags: request.tags
|
|
12702
12847
|
});
|
|
12703
12848
|
const marshalServerIpv6 = (request, defaults) => ({
|
|
@@ -13898,6 +14043,9 @@ const PRIVATE_NIC_TRANSIENT_STATUSES = ['syncing'];
|
|
|
13898
14043
|
/** Lists transient statutes of the enum {@link SecurityGroupState}. */
|
|
13899
14044
|
const SECURITY_GROUP_TRANSIENT_STATUSES = ['syncing'];
|
|
13900
14045
|
|
|
14046
|
+
/** Lists transient statutes of the enum {@link ServerIpState}. */
|
|
14047
|
+
const SERVER_IP_TRANSIENT_STATUSES = ['pending'];
|
|
14048
|
+
|
|
13901
14049
|
/** Lists transient statutes of the enum {@link ServerState}. */
|
|
13902
14050
|
const SERVER_TRANSIENT_STATUSES = ['starting', 'stopping'];
|
|
13903
14051
|
|
|
@@ -14340,6 +14488,7 @@ var index$j = /*#__PURE__*/Object.freeze({
|
|
|
14340
14488
|
IP_TRANSIENT_STATUSES: IP_TRANSIENT_STATUSES,
|
|
14341
14489
|
PRIVATE_NIC_TRANSIENT_STATUSES: PRIVATE_NIC_TRANSIENT_STATUSES,
|
|
14342
14490
|
SECURITY_GROUP_TRANSIENT_STATUSES: SECURITY_GROUP_TRANSIENT_STATUSES,
|
|
14491
|
+
SERVER_IP_TRANSIENT_STATUSES: SERVER_IP_TRANSIENT_STATUSES,
|
|
14343
14492
|
SERVER_TRANSIENT_STATUSES: SERVER_TRANSIENT_STATUSES,
|
|
14344
14493
|
SNAPSHOT_TRANSIENT_STATUSES: SNAPSHOT_TRANSIENT_STATUSES$1,
|
|
14345
14494
|
TASK_TRANSIENT_STATUSES: TASK_TRANSIENT_STATUSES,
|
|
@@ -15635,20 +15784,14 @@ const unmarshalReplacePinResponse = data => {
|
|
|
15635
15784
|
pin: data.pin ? unmarshalPin(data.pin) : undefined
|
|
15636
15785
|
};
|
|
15637
15786
|
};
|
|
15638
|
-
const marshalPinOptions = (request, defaults) => ({
|
|
15639
|
-
replication_count: request.replicationCount,
|
|
15640
|
-
required_zones: request.requiredZones
|
|
15641
|
-
});
|
|
15642
15787
|
const marshalCreatePinByCIDRequest = (request, defaults) => ({
|
|
15643
15788
|
cid: request.cid,
|
|
15644
15789
|
name: request.name,
|
|
15645
15790
|
origins: request.origins,
|
|
15646
|
-
pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
|
|
15647
15791
|
volume_id: request.volumeId
|
|
15648
15792
|
});
|
|
15649
15793
|
const marshalCreatePinByURLRequest = (request, defaults) => ({
|
|
15650
15794
|
name: request.name,
|
|
15651
|
-
pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
|
|
15652
15795
|
url: request.url,
|
|
15653
15796
|
volume_id: request.volumeId
|
|
15654
15797
|
});
|
|
@@ -15676,7 +15819,6 @@ const marshalReplacePinRequest = (request, defaults) => ({
|
|
|
15676
15819
|
cid: request.cid,
|
|
15677
15820
|
name: request.name,
|
|
15678
15821
|
origins: request.origins,
|
|
15679
|
-
pin_options: request.pinOptions ? marshalPinOptions(request.pinOptions) : undefined,
|
|
15680
15822
|
volume_id: request.volumeId
|
|
15681
15823
|
});
|
|
15682
15824
|
const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
@@ -21465,6 +21607,10 @@ const marshalReadReplicaEndpointSpec = (request, defaults) => ({
|
|
|
21465
21607
|
value: request.privateNetwork ? marshalReadReplicaEndpointSpecPrivateNetwork(request.privateNetwork) : undefined
|
|
21466
21608
|
}])
|
|
21467
21609
|
});
|
|
21610
|
+
const marshalUpgradeInstanceRequestMajorUpgradeWorkflow = (request, defaults) => ({
|
|
21611
|
+
upgradable_version_id: request.upgradableVersionId,
|
|
21612
|
+
with_endpoints: request.withEndpoints
|
|
21613
|
+
});
|
|
21468
21614
|
const marshalAddInstanceACLRulesRequest = (request, defaults) => ({
|
|
21469
21615
|
rules: request.rules.map(elt => marshalACLRuleRequest(elt))
|
|
21470
21616
|
});
|
|
@@ -21602,6 +21748,9 @@ const marshalUpgradeInstanceRequest = (request, defaults) => ({
|
|
|
21602
21748
|
}, {
|
|
21603
21749
|
param: 'upgradable_version_id',
|
|
21604
21750
|
value: request.upgradableVersionId
|
|
21751
|
+
}, {
|
|
21752
|
+
param: 'major_upgrade_workflow',
|
|
21753
|
+
value: request.majorUpgradeWorkflow ? marshalUpgradeInstanceRequestMajorUpgradeWorkflow(request.majorUpgradeWorkflow) : undefined
|
|
21605
21754
|
}])
|
|
21606
21755
|
});
|
|
21607
21756
|
|
|
@@ -24592,7 +24741,13 @@ let API$4 = class API extends API$v {
|
|
|
24592
24741
|
|
|
24593
24742
|
/**
|
|
24594
24743
|
* Get information about a domain. Retrieve information about a specific
|
|
24595
|
-
* domain using the `region` and `domain_id` parameters.
|
|
24744
|
+
* domain using the `region` and `domain_id` parameters. Monitor your domain's
|
|
24745
|
+
* reputation and improve **average** and **bad** reputation statuses, using
|
|
24746
|
+
* your domain's **Email activity** tab on the [Scaleway
|
|
24747
|
+
* console](https://console.scaleway.com/transactional-email/domains) to get a
|
|
24748
|
+
* more detailed report. Check out our [dedicated
|
|
24749
|
+
* documentation](https://www.scaleway.com/en/docs/managed-services/transactional-email/reference-content/understanding-tem-reputation-score/)
|
|
24750
|
+
* to improve your domain's reputation.
|
|
24596
24751
|
*
|
|
24597
24752
|
* @param request - The request {@link GetDomainRequest}
|
|
24598
24753
|
* @returns A Promise of Domain
|
|
@@ -24617,7 +24772,7 @@ let API$4 = class API extends API$v {
|
|
|
24617
24772
|
}, unmarshalListDomainsResponse);
|
|
24618
24773
|
|
|
24619
24774
|
/**
|
|
24620
|
-
* List domains. Retrieve domains in a specific
|
|
24775
|
+
* List domains. Retrieve domains in a specific Project or in a specific
|
|
24621
24776
|
* Organization using the `region` parameter.
|
|
24622
24777
|
*
|
|
24623
24778
|
* @param request - The request {@link ListDomainsRequest}
|
|
@@ -25212,6 +25367,7 @@ const unmarshalIpamConfig = data => {
|
|
|
25212
25367
|
throw new TypeError(`Unmarshalling the type 'IpamConfig' failed as data isn't a dictionary.`);
|
|
25213
25368
|
}
|
|
25214
25369
|
return {
|
|
25370
|
+
ipamIpId: data.ipam_ip_id,
|
|
25215
25371
|
pushDefaultRoute: data.push_default_route
|
|
25216
25372
|
};
|
|
25217
25373
|
};
|
|
@@ -25414,7 +25570,8 @@ const marshalCreateDHCPRequest = (request, defaults) => ({
|
|
|
25414
25570
|
subnet: request.subnet,
|
|
25415
25571
|
valid_lifetime: request.validLifetime
|
|
25416
25572
|
});
|
|
25417
|
-
const
|
|
25573
|
+
const marshalCreateGatewayNetworkRequestIpamConfig = (request, defaults) => ({
|
|
25574
|
+
ipam_ip_id: request.ipamIpId,
|
|
25418
25575
|
push_default_route: request.pushDefaultRoute
|
|
25419
25576
|
});
|
|
25420
25577
|
const marshalSetDHCPEntriesRequestEntry = (request, defaults) => ({
|
|
@@ -25427,6 +25584,10 @@ const marshalSetPATRulesRequestRule = (request, defaults) => ({
|
|
|
25427
25584
|
protocol: request.protocol,
|
|
25428
25585
|
public_port: request.publicPort
|
|
25429
25586
|
});
|
|
25587
|
+
const marshalUpdateGatewayNetworkRequestIpamConfig = (request, defaults) => ({
|
|
25588
|
+
ipam_ip_id: request.ipamIpId,
|
|
25589
|
+
push_default_route: request.pushDefaultRoute
|
|
25590
|
+
});
|
|
25430
25591
|
const marshalCreateDHCPEntryRequest = (request, defaults) => ({
|
|
25431
25592
|
gateway_network_id: request.gatewayNetworkId,
|
|
25432
25593
|
ip_address: request.ipAddress,
|
|
@@ -25448,7 +25609,7 @@ const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
|
|
|
25448
25609
|
value: request.address
|
|
25449
25610
|
}, {
|
|
25450
25611
|
param: 'ipam_config',
|
|
25451
|
-
value: request.ipamConfig ?
|
|
25612
|
+
value: request.ipamConfig ? marshalCreateGatewayNetworkRequestIpamConfig(request.ipamConfig) : undefined
|
|
25452
25613
|
}])
|
|
25453
25614
|
});
|
|
25454
25615
|
const marshalCreateGatewayRequest = (request, defaults) => ({
|
|
@@ -25510,7 +25671,7 @@ const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
|
|
|
25510
25671
|
value: request.address
|
|
25511
25672
|
}, {
|
|
25512
25673
|
param: 'ipam_config',
|
|
25513
|
-
value: request.ipamConfig ?
|
|
25674
|
+
value: request.ipamConfig ? marshalUpdateGatewayNetworkRequestIpamConfig(request.ipamConfig) : undefined
|
|
25514
25675
|
}])
|
|
25515
25676
|
});
|
|
25516
25677
|
const marshalUpdateGatewayRequest = (request, defaults) => ({
|