@scaleway/sdk 1.10.1 → 1.12.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/README.md +1 -1
- package/dist/api/account/v2/api.gen.js +1 -0
- package/dist/api/account/v2/index.gen.js +1 -0
- package/dist/api/account/v2/marshalling.gen.js +1 -0
- package/dist/api/applesilicon/v1alpha1/api.gen.js +1 -0
- package/dist/api/applesilicon/v1alpha1/index.gen.js +1 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/baremetal/v1/api.gen.js +1 -0
- package/dist/api/baremetal/v1/marshalling.gen.js +1 -0
- package/dist/api/billing/v2alpha1/api.gen.js +1 -0
- package/dist/api/billing/v2alpha1/index.gen.js +1 -0
- package/dist/api/billing/v2alpha1/marshalling.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/index.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/container/v1beta1/api.gen.js +1 -0
- package/dist/api/container/v1beta1/index.gen.js +1 -0
- package/dist/api/container/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/domain/v2beta1/api.gen.js +3 -2
- package/dist/api/domain/v2beta1/index.gen.js +1 -0
- package/dist/api/domain/v2beta1/marshalling.gen.js +1 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.js +1 -0
- package/dist/api/flexibleip/v1alpha1/index.gen.js +1 -0
- package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/function/v1beta1/api.gen.js +1 -0
- package/dist/api/function/v1beta1/index.gen.js +1 -0
- package/dist/api/function/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/iam/v1alpha1/api.gen.js +19 -1
- package/dist/api/iam/v1alpha1/index.gen.js +1 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.js +6 -1
- package/dist/api/instance/v1/api.gen.js +1 -0
- package/dist/api/instance/v1/marshalling.gen.js +1 -0
- package/dist/api/iot/v1/api.gen.js +1 -0
- package/dist/api/iot/v1/index.gen.js +1 -0
- package/dist/api/iot/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/api.gen.js +49 -55
- package/dist/api/k8s/v1/marshalling.gen.js +4 -2
- package/dist/api/lb/v1/api.gen.js +1 -0
- package/dist/api/lb/v1/marshalling.gen.js +11 -0
- package/dist/api/marketplace/v1/api.gen.js +1 -0
- package/dist/api/marketplace/v1/index.gen.js +1 -0
- package/dist/api/marketplace/v1/marshalling.gen.js +1 -0
- package/dist/api/marketplace/v2/api.gen.js +1 -0
- package/dist/api/marketplace/v2/index.gen.js +1 -0
- package/dist/api/marketplace/v2/marshalling.gen.js +1 -0
- package/dist/api/mnq/v1alpha1/api.gen.js +1 -0
- package/dist/api/mnq/v1alpha1/index.gen.js +1 -0
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/rdb/v1/api.gen.js +1 -0
- package/dist/api/rdb/v1/index.gen.js +1 -0
- package/dist/api/rdb/v1/marshalling.gen.js +1 -0
- package/dist/api/redis/v1/api.gen.js +1 -0
- package/dist/api/redis/v1/index.gen.js +1 -0
- package/dist/api/redis/v1/marshalling.gen.js +1 -0
- package/dist/api/registry/v1/api.gen.js +1 -0
- package/dist/api/registry/v1/index.gen.js +1 -0
- package/dist/api/registry/v1/marshalling.gen.js +1 -0
- package/dist/api/secret/v1alpha1/api.gen.js +1 -0
- package/dist/api/secret/v1alpha1/index.gen.js +1 -0
- package/dist/api/secret/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/tem/v1alpha1/api.gen.js +11 -2
- package/dist/api/tem/v1alpha1/index.gen.js +1 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.js +2 -0
- package/dist/api/test/v1/api.gen.js +1 -0
- package/dist/api/test/v1/index.gen.js +1 -0
- package/dist/api/test/v1/marshalling.gen.js +1 -0
- package/dist/api/vpc/v1/api.gen.js +1 -0
- package/dist/api/vpc/v1/index.gen.js +1 -0
- package/dist/api/vpc/v1/marshalling.gen.js +1 -0
- package/dist/api/vpcgw/v1/api.gen.js +1 -0
- package/dist/api/vpcgw/v1/index.gen.js +1 -0
- package/dist/api/vpcgw/v1/marshalling.gen.js +1 -0
- package/dist/api/webhosting/v1alpha1/api.gen.js +1 -0
- package/dist/api/webhosting/v1alpha1/index.gen.js +1 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +1 -0
- package/dist/index.cjs +183 -68
- package/dist/index.d.ts +386 -306
- package/dist/scw/client-ini-profile.js +3 -3
- package/dist/scw/client.js +2 -2
- package/dist/scw/constants.js +1 -1
- package/dist/scw/custom-marshalling.js +5 -1
- package/dist/scw/fetch/resource-paginator.js +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This SDK enables you to interact with Scaleway APIs.
|
|
|
9
9
|
|
|
10
10
|
## Getting Started
|
|
11
11
|
|
|
12
|
-
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/
|
|
12
|
+
You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/) on how to retrieve them.
|
|
13
13
|
|
|
14
14
|
**A minimal setup** would look like this:
|
|
15
15
|
|
|
@@ -4,6 +4,7 @@ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
|
4
4
|
import { marshalCreateProjectRequest, unmarshalProject, unmarshalListProjectsResponse, marshalUpdateProjectRequest } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const jsonContentHeaders = {
|
|
8
9
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9
10
|
};
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalProject = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'Project' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { SERVER_TRANSIENT_STATUSES } from './content.gen.js';
|
|
|
6
6
|
import { unmarshalListServerTypesResponse, unmarshalServerType, marshalCreateServerRequest, unmarshalServer, unmarshalListServersResponse, unmarshalListOSResponse, unmarshalOS, marshalUpdateServerRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalServerTypeCPU = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'ServerTypeCPU' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { SERVER_TRANSIENT_STATUSES } from './content.gen.js';
|
|
|
6
6
|
import { marshalPrivateNetworkApiAddServerPrivateNetworkRequest, unmarshalServerPrivateNetwork, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, unmarshalSetServerPrivateNetworksResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalServer, marshalCreateServerRequest, marshalUpdateServerRequest, marshalInstallServerRequest, unmarshalGetServerMetricsResponse, marshalRebootServerRequest, marshalStartServerRequest, unmarshalListServerEventsResponse, marshalStartBMCAccessRequest, unmarshalBMCAccess, marshalUpdateIPRequest, unmarshalIP, marshalAddOptionServerRequest, unmarshalListOffersResponse, unmarshalOffer, unmarshalOption, unmarshalListOptionsResponse, unmarshalListSettingsResponse, marshalUpdateSettingRequest, unmarshalSetting, unmarshalListOSResponse, unmarshalOS } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -3,6 +3,7 @@ import { unmarshalMoney, unmarshalTimeSeries } from '../../../scw/custom-marshal
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalCPU = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'CPU' failed as data isn't a dictionary.`);
|
|
@@ -4,6 +4,7 @@ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
|
4
4
|
import { unmarshalGetConsumptionResponse, unmarshalListInvoicesResponse } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
/**
|
|
8
9
|
* Billing API.
|
|
9
10
|
*
|
|
@@ -3,6 +3,7 @@ import { unmarshalMoney } from '../../../scw/custom-marshalling.js';
|
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalGetConsumptionResponseConsumption = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'GetConsumptionResponseConsumption' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { COCKPIT_TRANSIENT_STATUSES } from './content.gen.js';
|
|
|
6
6
|
import { marshalActivateCockpitRequest, unmarshalCockpit, unmarshalCockpitMetrics, marshalDeactivateCockpitRequest, marshalResetCockpitGrafanaRequest, marshalCreateTokenRequest, unmarshalToken, unmarshalListTokensResponse, marshalCreateContactPointRequest, unmarshalContactPoint, unmarshalListContactPointsResponse, marshalDeleteContactPointRequest, marshalEnableManagedAlertsRequest, marshalDisableManagedAlertsRequest, marshalTriggerTestAlertRequest, marshalCreateGrafanaUserRequest, unmarshalGrafanaUser, unmarshalListGrafanaUsersResponse, marshalDeleteGrafanaUserRequest, marshalResetGrafanaUserPasswordRequest, unmarshalListPlansResponse, marshalSelectPlanRequest, unmarshalSelectPlanResponse } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -4,6 +4,7 @@ import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
|
4
4
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const unmarshalContactPointEmail = data => {
|
|
8
9
|
if (!isJSONObject(data)) {
|
|
9
10
|
throw new TypeError(`Unmarshalling the type 'ContactPointEmail' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { NAMESPACE_TRANSIENT_STATUSES, CONTAINER_TRANSIENT_STATUSES, CRON_TRANSI
|
|
|
6
6
|
import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListContainersResponse, unmarshalContainer, marshalCreateContainerRequest, marshalUpdateContainerRequest, unmarshalListCronsResponse, unmarshalCron, marshalCreateCronRequest, marshalUpdateCronRequest, unmarshalListLogsResponse, unmarshalListDomainsResponse, unmarshalDomain, marshalCreateDomainRequest, unmarshalToken, marshalCreateTokenRequest, unmarshalListTokensResponse } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -2,3 +2,4 @@ export { API } from './api.gen.js';
|
|
|
2
2
|
export { CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalSecretHashedValue = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'SecretHashedValue' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { SSL_CERTIFICATE_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES } from '.
|
|
|
6
6
|
import { unmarshalListDNSZonesResponse, marshalCreateDNSZoneRequest, unmarshalDNSZone, marshalUpdateDNSZoneRequest, marshalCloneDNSZoneRequest, unmarshalDeleteDNSZoneResponse, unmarshalListDNSZoneRecordsResponse, marshalUpdateDNSZoneRecordsRequest, unmarshalUpdateDNSZoneRecordsResponse, unmarshalListDNSZoneNameserversResponse, marshalUpdateDNSZoneNameserversRequest, unmarshalUpdateDNSZoneNameserversResponse, unmarshalClearDNSZoneRecordsResponse, marshalImportRawDNSZoneRequest, unmarshalImportRawDNSZoneResponse, marshalImportProviderDNSZoneRequest, unmarshalImportProviderDNSZoneResponse, marshalRefreshDNSZoneRequest, unmarshalRefreshDNSZoneResponse, unmarshalListDNSZoneVersionsResponse, unmarshalListDNSZoneVersionRecordsResponse, unmarshalGetDNSZoneVersionDiffResponse, unmarshalRestoreDNSZoneVersionResponse, unmarshalSSLCertificate, marshalCreateSSLCertificateRequest, unmarshalListSSLCertificatesResponse, unmarshalDeleteSSLCertificateResponse, unmarshalGetDNSZoneTsigKeyResponse, unmarshalListTasksResponse, marshalRegistrarApiBuyDomainsRequest, unmarshalOrderResponse, marshalRegistrarApiRenewDomainsRequest, marshalRegistrarApiTransferInDomainRequest, marshalRegistrarApiTradeDomainRequest, marshalRegistrarApiRegisterExternalDomainRequest, unmarshalRegisterExternalDomainResponse, unmarshalDeleteExternalDomainResponse, marshalRegistrarApiCheckContactsCompatibilityRequest, unmarshalCheckContactsCompatibilityResponse, unmarshalListContactsResponse, unmarshalContact, marshalRegistrarApiUpdateContactRequest, unmarshalListDomainsResponse, unmarshalListRenewableDomainsResponse, unmarshalDomain, marshalRegistrarApiUpdateDomainRequest, unmarshalGetDomainAuthCodeResponse, marshalRegistrarApiEnableDomainDNSSECRequest, unmarshalSearchAvailableDomainsResponse, marshalRegistrarApiCreateDomainHostRequest, unmarshalHost, unmarshalListDomainHostsResponse, marshalRegistrarApiUpdateDomainHostRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -342,9 +343,9 @@ class API extends API$1 {
|
|
|
342
343
|
}
|
|
343
344
|
|
|
344
345
|
/**
|
|
345
|
-
* Domains
|
|
346
|
+
* Domains and DNS - Registrar API.
|
|
346
347
|
*
|
|
347
|
-
* Domains
|
|
348
|
+
* Domains and DNS - Registrar API. Manage your domains and contacts.
|
|
348
349
|
*/
|
|
349
350
|
class RegistrarAPI extends API$1 {
|
|
350
351
|
constructor() {
|
|
@@ -2,3 +2,4 @@ export { API, RegistrarAPI } from './api.gen.js';
|
|
|
2
2
|
export { DNS_ZONE_TRANSIENT_STATUSES, DOMAIN_FEATURE_TRANSIENT_STATUSES, DOMAIN_REGISTRATION_STATUS_TRANSFER_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOST_TRANSIENT_STATUSES, SSL_CERTIFICATE_TRANSIENT_STATUSES, TASK_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -3,6 +3,7 @@ import { unmarshalMoney } from '../../../scw/custom-marshalling.js';
|
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf, unmarshalMapOfObject } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalDomainRecordGeoIPConfigMatch = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'DomainRecordGeoIPConfigMatch' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { FLEXIBLE_IP_TRANSIENT_STATUSES } from './content.gen.js';
|
|
|
6
6
|
import { marshalCreateFlexibleIPRequest, unmarshalFlexibleIP, unmarshalListFlexibleIPsResponse, marshalUpdateFlexibleIPRequest, marshalAttachFlexibleIPRequest, unmarshalAttachFlexibleIPsResponse, marshalDetachFlexibleIPRequest, unmarshalDetachFlexibleIPsResponse, marshalGenerateMACAddrRequest, marshalDuplicateMACAddrRequest, marshalMoveMACAddrRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -2,6 +2,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
2
2
|
import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
5
6
|
const unmarshalMACAddress = data => {
|
|
6
7
|
if (!isJSONObject(data)) {
|
|
7
8
|
throw new TypeError(`Unmarshalling the type 'MACAddress' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { NAMESPACE_TRANSIENT_STATUSES, FUNCTION_TRANSIENT_STATUSES, CRON_TRANSIE
|
|
|
6
6
|
import { unmarshalListNamespacesResponse, unmarshalNamespace, marshalCreateNamespaceRequest, marshalUpdateNamespaceRequest, unmarshalListFunctionsResponse, unmarshalFunction, marshalCreateFunctionRequest, marshalUpdateFunctionRequest, unmarshalListFunctionRuntimesResponse, unmarshalUploadURL, unmarshalDownloadURL, unmarshalListCronsResponse, unmarshalCron, marshalCreateCronRequest, marshalUpdateCronRequest, unmarshalListLogsResponse, unmarshalListDomainsResponse, unmarshalDomain, marshalCreateDomainRequest, unmarshalToken, marshalCreateTokenRequest, unmarshalListTokensResponse, marshalCreateTriggerRequest, unmarshalTrigger, unmarshalListTriggersResponse, marshalUpdateTriggerRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -2,3 +2,4 @@ export { API } from './api.gen.js';
|
|
|
2
2
|
export { CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, FUNCTION_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TOKEN_TRANSIENT_STATUSES, TRIGGER_TRANSIENT_STATUSES } from './content.gen.js';
|
|
3
3
|
|
|
4
4
|
// This file was automatically generated. DO NOT EDIT.
|
|
5
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalSecretHashedValue = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'SecretHashedValue' failed as data isn't a dictionary.`);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { API as API$1 } from '../../../scw/api.js';
|
|
2
2
|
import { urlParams, validatePathParam, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
3
3
|
import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
4
|
-
import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, unmarshalJWT } from './marshalling.gen.js';
|
|
4
|
+
import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, unmarshalJWT } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const jsonContentHeaders = {
|
|
8
9
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9
10
|
};
|
|
@@ -309,6 +310,23 @@ class API extends API$1 {
|
|
|
309
310
|
method: 'POST',
|
|
310
311
|
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-member`
|
|
311
312
|
}, unmarshalGroup);
|
|
313
|
+
/**
|
|
314
|
+
* Add multiple users and applications to a group. Add multiple users and
|
|
315
|
+
* applications to a group in a single call. You can specify an array of
|
|
316
|
+
* `user_id`s and `application_id`s. Note that any existing users and
|
|
317
|
+
* applications in the group will remain. To add new users/applications and
|
|
318
|
+
* delete pre-existing ones, use the [Overwrite users and applications of a
|
|
319
|
+
* group](#path-groups-overwrite-users-and-applications-of-a-group) method.
|
|
320
|
+
*
|
|
321
|
+
* @param request - The request {@link AddGroupMembersRequest}
|
|
322
|
+
* @returns A Promise of Group
|
|
323
|
+
*/
|
|
324
|
+
this.addGroupMembers = request => this.client.fetch({
|
|
325
|
+
body: JSON.stringify(marshalAddGroupMembersRequest(request, this.client.settings)),
|
|
326
|
+
headers: jsonContentHeaders,
|
|
327
|
+
method: 'POST',
|
|
328
|
+
path: `/iam/v1alpha1/groups/${validatePathParam('groupId', request.groupId)}/add-members`
|
|
329
|
+
}, unmarshalGroup);
|
|
312
330
|
/**
|
|
313
331
|
* Remove a user or an application from a group. Remove a user or an
|
|
314
332
|
* application from a group. You can specify a `user_id` and and
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalAPIKey = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'APIKey' failed as data isn't a dictionary.`);
|
|
@@ -274,6 +275,10 @@ const marshalAddGroupMemberRequest = (request, defaults) => ({
|
|
|
274
275
|
value: request.applicationId
|
|
275
276
|
}])
|
|
276
277
|
});
|
|
278
|
+
const marshalAddGroupMembersRequest = (request, defaults) => ({
|
|
279
|
+
application_ids: request.applicationIds,
|
|
280
|
+
user_ids: request.userIds
|
|
281
|
+
});
|
|
277
282
|
const marshalCreateAPIKeyRequest = (request, defaults) => ({
|
|
278
283
|
default_project_id: request.defaultProjectId,
|
|
279
284
|
description: request.description,
|
|
@@ -371,4 +376,4 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
|
|
|
371
376
|
name: request.name
|
|
372
377
|
});
|
|
373
378
|
|
|
374
|
-
export { marshalAddGroupMemberRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalRemoveGroupMemberRequest, marshalSetGroupMembersRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, unmarshalAPIKey, unmarshalApplication, unmarshalGroup, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListUsersResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSetRulesResponse, unmarshalUser };
|
|
379
|
+
export { marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalRemoveGroupMemberRequest, marshalSetGroupMembersRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, unmarshalAPIKey, unmarshalApplication, unmarshalGroup, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListUsersResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSetRulesResponse, unmarshalUser };
|
|
@@ -4,6 +4,7 @@ import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
|
|
|
4
4
|
import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse } from './marshalling.gen.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const jsonContentHeaders = {
|
|
8
9
|
'Content-Type': 'application/json; charset=utf-8'
|
|
9
10
|
};
|
|
@@ -3,6 +3,7 @@ import { isJSONObject } from '../../../helpers/json.js';
|
|
|
3
3
|
import { unmarshalDate, unmarshalMapOfObject, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
4
4
|
|
|
5
5
|
// This file was automatically generated. DO NOT EDIT.
|
|
6
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
6
7
|
const unmarshalServerSummary = data => {
|
|
7
8
|
if (!isJSONObject(data)) {
|
|
8
9
|
throw new TypeError(`Unmarshalling the type 'ServerSummary' failed as data isn't a dictionary.`);
|
|
@@ -6,6 +6,7 @@ import { HUB_TRANSIENT_STATUSES } from './content.gen.js';
|
|
|
6
6
|
import { unmarshalListHubsResponse, marshalCreateHubRequest, unmarshalHub, marshalUpdateHubRequest, unmarshalGetHubMetricsResponse, marshalSetHubCARequest, unmarshalGetHubCAResponse, unmarshalListDevicesResponse, marshalCreateDeviceRequest, unmarshalCreateDeviceResponse, unmarshalDevice, marshalUpdateDeviceRequest, unmarshalRenewDeviceCertificateResponse, marshalSetDeviceCertificateRequest, unmarshalSetDeviceCertificateResponse, unmarshalGetDeviceCertificateResponse, unmarshalGetDeviceMetricsResponse, unmarshalListRoutesResponse, marshalCreateRouteRequest, unmarshalRoute, marshalUpdateRouteRequest, unmarshalListNetworksResponse, marshalCreateNetworkRequest, unmarshalCreateNetworkResponse, unmarshalNetwork, unmarshalTwinDocument, marshalPutTwinDocumentRequest, marshalPatchTwinDocumentRequest, unmarshalListTwinDocumentsResponse } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
9
10
|
const jsonContentHeaders = {
|
|
10
11
|
'Content-Type': 'application/json; charset=utf-8'
|
|
11
12
|
};
|
|
@@ -4,6 +4,7 @@ import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
|
|
|
4
4
|
import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
|
|
5
5
|
|
|
6
6
|
// This file was automatically generated. DO NOT EDIT.
|
|
7
|
+
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
7
8
|
const unmarshalDeviceMessageFiltersRule = data => {
|
|
8
9
|
if (!isJSONObject(data)) {
|
|
9
10
|
throw new TypeError(`Unmarshalling the type 'DeviceMessageFiltersRule' failed as data isn't a dictionary.`);
|