@scaleway/sdk-audit-trail 1.6.0 → 2.1.1
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 +96 -0
- package/dist/v1alpha1/api.gen.d.ts +1 -1
- package/dist/v1alpha1/api.gen.js +21 -41
- package/dist/v1alpha1/index.gen.d.ts +2 -2
- package/dist/v1alpha1/marshalling.gen.js +129 -10
- package/dist/v1alpha1/types.gen.d.ts +116 -26
- package/dist/v1alpha1/validation-rules.gen.js +1 -1
- package/package.json +6 -9
- package/dist/index.gen.cjs +0 -4
- package/dist/v1alpha1/api.gen.cjs +0 -168
- package/dist/v1alpha1/index.gen.cjs +0 -16
- package/dist/v1alpha1/marshalling.gen.cjs +0 -504
- package/dist/v1alpha1/validation-rules.gen.cjs +0 -63
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# @scaleway/sdk-audit-trail
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@scaleway/sdk-audit-trail)
|
|
4
|
+
[](https://www.npmjs.com/package/@scaleway/sdk-audit-trail)
|
|
5
|
+
[](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE)
|
|
6
|
+
|
|
7
|
+
Scaleway SDK for Audit Trail API.
|
|
8
|
+
|
|
9
|
+
> **Note**
|
|
10
|
+
> This is an automatically generated package that is part of the [Scaleway SDK for JavaScript](https://github.com/scaleway/scaleway-sdk-js).
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @scaleway/sdk-audit-trail @scaleway/sdk-client
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
or with pnpm:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pnpm add @scaleway/sdk-audit-trail @scaleway/sdk-client
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
or with yarn:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
yarn add @scaleway/sdk-audit-trail @scaleway/sdk-client
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Getting Started
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
### Basic Usage
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { createClient } from '@scaleway/sdk-client'
|
|
38
|
+
import { AuditTrail } from '@scaleway/sdk-audit-trail'
|
|
39
|
+
|
|
40
|
+
const client = createClient({
|
|
41
|
+
accessKey: 'SCWXXXXXXXXXXXXXXXXX',
|
|
42
|
+
secretKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
|
|
43
|
+
defaultProjectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
|
|
44
|
+
defaultRegion: 'fr-par',
|
|
45
|
+
defaultZone: 'fr-par-1',
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
const api = new AuditTrail.v1.API(client)
|
|
49
|
+
|
|
50
|
+
// Use the API
|
|
51
|
+
// Example: await api.listServers()
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Using Configuration Loader
|
|
55
|
+
|
|
56
|
+
For a simpler setup, you can load credentials from the configuration file or environment variables:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { createClient } from '@scaleway/sdk-client'
|
|
60
|
+
import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
|
|
61
|
+
import { AuditTrail } from '@scaleway/sdk-audit-trail'
|
|
62
|
+
|
|
63
|
+
const profile = loadProfileFromConfigurationFile()
|
|
64
|
+
const client = createClient(profile)
|
|
65
|
+
const api = new AuditTrail.v1.API(client)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Documentation
|
|
69
|
+
|
|
70
|
+
- 📚 [Scaleway SDK Reference Documentation](https://scaleway.github.io/scaleway-sdk-js)
|
|
71
|
+
- 🌐 [Scaleway Audit Trail API Documentation](https://www.scaleway.com/en/developers/api/audit-trail/)
|
|
72
|
+
- 📖 [Main Repository](https://github.com/scaleway/scaleway-sdk-js)
|
|
73
|
+
- 💡 [Example Projects](https://github.com/scaleway/scaleway-sdk-js/tree/master/examples)
|
|
74
|
+
|
|
75
|
+
## Features
|
|
76
|
+
|
|
77
|
+
- ✅ Full TypeScript support with complete type definitions
|
|
78
|
+
- ✅ Promise-based API
|
|
79
|
+
- ✅ Automatic pagination helpers
|
|
80
|
+
- ✅ Built-in error handling
|
|
81
|
+
- ✅ Compatible with Node.js ≥ 20
|
|
82
|
+
|
|
83
|
+
## Support
|
|
84
|
+
|
|
85
|
+
We love feedback! Feel free to reach us on:
|
|
86
|
+
- [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
|
|
87
|
+
- [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
|
|
88
|
+
|
|
89
|
+
## Contributing
|
|
90
|
+
|
|
91
|
+
This repository is at its early stage and is still in active development. If you are looking for a way to contribute, please read [CONTRIBUTING.md](https://github.com/scaleway/scaleway-sdk-js/blob/master/CONTRIBUTING.md).
|
|
92
|
+
|
|
93
|
+
## License
|
|
94
|
+
|
|
95
|
+
This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
|
|
96
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
1
|
import type { ApiLocality } from '@scaleway/sdk-client';
|
|
2
|
+
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
3
3
|
import type { CreateExportJobRequest, DeleteExportJobRequest, ExportJob, ListAuthenticationEventsRequest, ListAuthenticationEventsResponse, ListCombinedEventsRequest, ListCombinedEventsResponse, ListEventsRequest, ListEventsResponse, ListExportJobsRequest, ListExportJobsResponse, ListProductsRequest, ListProductsResponse } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Audit Trail API.
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -9,7 +9,10 @@ class API extends API$1 {
|
|
|
9
9
|
* type ∈ {'zone','region','global','unspecified'}
|
|
10
10
|
*/
|
|
11
11
|
static LOCALITY = toApiLocality({
|
|
12
|
-
regions: [
|
|
12
|
+
regions: [
|
|
13
|
+
"fr-par",
|
|
14
|
+
"nl-ams"
|
|
15
|
+
]
|
|
13
16
|
});
|
|
14
17
|
/**
|
|
15
18
|
* List events. Retrieve the list of Audit Trail events for a Scaleway Organization and/or Project. You must specify the `organization_id` and optionally, the `project_id`.
|
|
@@ -24,14 +27,8 @@ class API extends API$1 {
|
|
|
24
27
|
urlParams: urlParams(
|
|
25
28
|
["method_name", request.methodName],
|
|
26
29
|
["order_by", request.orderBy],
|
|
27
|
-
[
|
|
28
|
-
|
|
29
|
-
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
30
|
-
],
|
|
31
|
-
[
|
|
32
|
-
"page_size",
|
|
33
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
34
|
-
],
|
|
30
|
+
["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId],
|
|
31
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
35
32
|
["page_token", request.pageToken],
|
|
36
33
|
["principal_id", request.principalId],
|
|
37
34
|
["product_name", request.productName],
|
|
@@ -59,14 +56,8 @@ class API extends API$1 {
|
|
|
59
56
|
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/authentication-events`,
|
|
60
57
|
urlParams: urlParams(
|
|
61
58
|
["order_by", request.orderBy],
|
|
62
|
-
[
|
|
63
|
-
|
|
64
|
-
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
65
|
-
],
|
|
66
|
-
[
|
|
67
|
-
"page_size",
|
|
68
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
69
|
-
],
|
|
59
|
+
["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId],
|
|
60
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
70
61
|
["page_token", request.pageToken],
|
|
71
62
|
["recorded_after", request.recordedAfter],
|
|
72
63
|
["recorded_before", request.recordedBefore]
|
|
@@ -80,14 +71,8 @@ class API extends API$1 {
|
|
|
80
71
|
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/combined-events`,
|
|
81
72
|
urlParams: urlParams(
|
|
82
73
|
["order_by", request.orderBy],
|
|
83
|
-
[
|
|
84
|
-
|
|
85
|
-
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
86
|
-
],
|
|
87
|
-
[
|
|
88
|
-
"page_size",
|
|
89
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
90
|
-
],
|
|
74
|
+
["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId],
|
|
75
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
91
76
|
["page_token", request.pageToken],
|
|
92
77
|
["project_id", request.projectId],
|
|
93
78
|
["recorded_after", request.recordedAfter],
|
|
@@ -107,10 +92,9 @@ class API extends API$1 {
|
|
|
107
92
|
{
|
|
108
93
|
method: "GET",
|
|
109
94
|
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/products`,
|
|
110
|
-
urlParams: urlParams(
|
|
111
|
-
"organization_id",
|
|
112
|
-
|
|
113
|
-
])
|
|
95
|
+
urlParams: urlParams(
|
|
96
|
+
["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId]
|
|
97
|
+
)
|
|
114
98
|
},
|
|
115
99
|
unmarshalListProductsResponse
|
|
116
100
|
);
|
|
@@ -136,10 +120,12 @@ class API extends API$1 {
|
|
|
136
120
|
*
|
|
137
121
|
* @param request - The request {@link DeleteExportJobRequest}
|
|
138
122
|
*/
|
|
139
|
-
deleteExportJob = (request) => this.client.fetch(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
123
|
+
deleteExportJob = (request) => this.client.fetch(
|
|
124
|
+
{
|
|
125
|
+
method: "DELETE",
|
|
126
|
+
path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/export-jobs/${validatePathParam("exportJobId", request.exportJobId)}`
|
|
127
|
+
}
|
|
128
|
+
);
|
|
143
129
|
pageOfListExportJobs = (request = {}) => this.client.fetch(
|
|
144
130
|
{
|
|
145
131
|
method: "GET",
|
|
@@ -147,15 +133,9 @@ class API extends API$1 {
|
|
|
147
133
|
urlParams: urlParams(
|
|
148
134
|
["name", request.name],
|
|
149
135
|
["order_by", request.orderBy],
|
|
150
|
-
[
|
|
151
|
-
"organization_id",
|
|
152
|
-
request.organizationId ?? this.client.settings.defaultOrganizationId
|
|
153
|
-
],
|
|
136
|
+
["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId],
|
|
154
137
|
["page", request.page],
|
|
155
|
-
[
|
|
156
|
-
"page_size",
|
|
157
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
158
|
-
],
|
|
138
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
159
139
|
["tags", request.tags]
|
|
160
140
|
)
|
|
161
141
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { API } from './api.gen.js';
|
|
1
|
+
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './marshalling.gen.js';
|
|
3
|
-
export type { AccountOrganizationInfo, AccountProjectInfo, AccountUserInfo, AppleSiliconServerInfo, AuthenticationEvent, AuthenticationEventFailureReason,
|
|
3
|
+
export type { AccountContractSignatureInfo, AccountContractSignatureInfoAccountContractInfo, AccountOrganizationInfo, AccountProjectInfo, AccountUserInfo, AppleSiliconServerInfo, AuthenticationEvent, AuthenticationEventFailureReason, AuthenticationEventMethod, AuthenticationEventMFAType, AuthenticationEventOrigin, AuthenticationEventResult, BaremetalServerInfo, BaremetalSettingInfo, CreateExportJobRequest, DeleteExportJobRequest, EdgeServicesBackendStageInfo, EdgeServicesCacheStageInfo, EdgeServicesDNSStageInfo, EdgeServicesPipelineInfo, EdgeServicesPlanInfo, EdgeServicesRouteRulesInfo, EdgeServicesRouteStageInfo, EdgeServicesTLSStageInfo, EdgeServicesWAFStageInfo, Event, EventPrincipal, ExportJob, ExportJobS3, ExportJobStatus, ExportJobStatusCode, InstanceServerInfo, IpamIpInfo, KeyManagerKeyInfo, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListAuthenticationEventsRequest, ListAuthenticationEventsRequestOrderBy, ListAuthenticationEventsResponse, ListCombinedEventsRequest, ListCombinedEventsRequestOrderBy, ListCombinedEventsResponse, ListCombinedEventsResponseCombinedEvent, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListExportJobsRequest, ListExportJobsRequestOrderBy, ListExportJobsResponse, ListProductsRequest, ListProductsResponse, LoadBalancerAclInfo, LoadBalancerBackendInfo, LoadBalancerCertificateInfo, LoadBalancerFrontendInfo, LoadBalancerIpInfo, LoadBalancerLbInfo, LoadBalancerRouteInfo, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, SystemEvent, SystemEventKind, } from './types.gen.js';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -40,6 +40,34 @@ const unmarshalExportJob = (data) => {
|
|
|
40
40
|
tags: data.tags
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
+
const unmarshalAccountContractSignatureInfoAccountContractInfo = (data) => {
|
|
44
|
+
if (!isJSONObject(data)) {
|
|
45
|
+
throw new TypeError(
|
|
46
|
+
`Unmarshalling the type 'AccountContractSignatureInfoAccountContractInfo' failed as data isn't a dictionary.`
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
createdAt: unmarshalDate(data.created_at),
|
|
51
|
+
id: data.id,
|
|
52
|
+
name: data.name,
|
|
53
|
+
type: data.type,
|
|
54
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
55
|
+
version: data.version
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
const unmarshalAccountContractSignatureInfo = (data) => {
|
|
59
|
+
if (!isJSONObject(data)) {
|
|
60
|
+
throw new TypeError(
|
|
61
|
+
`Unmarshalling the type 'AccountContractSignatureInfo' failed as data isn't a dictionary.`
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
contract: data.contract ? unmarshalAccountContractSignatureInfoAccountContractInfo(data.contract) : void 0,
|
|
66
|
+
expiresAt: unmarshalDate(data.expires_at),
|
|
67
|
+
signedAt: unmarshalDate(data.signed_at),
|
|
68
|
+
signedByAccountRootUserId: data.signed_by_account_root_user_id
|
|
69
|
+
};
|
|
70
|
+
};
|
|
43
71
|
const unmarshalAccountOrganizationInfo = (data) => {
|
|
44
72
|
if (!isJSONObject(data)) {
|
|
45
73
|
throw new TypeError(
|
|
@@ -101,6 +129,94 @@ const unmarshalBaremetalSettingInfo = (data) => {
|
|
|
101
129
|
type: data.type
|
|
102
130
|
};
|
|
103
131
|
};
|
|
132
|
+
const unmarshalEdgeServicesBackendStageInfo = (data) => {
|
|
133
|
+
if (!isJSONObject(data)) {
|
|
134
|
+
throw new TypeError(
|
|
135
|
+
`Unmarshalling the type 'EdgeServicesBackendStageInfo' failed as data isn't a dictionary.`
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
pipelineId: data.pipeline_id
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
const unmarshalEdgeServicesCacheStageInfo = (data) => {
|
|
143
|
+
if (!isJSONObject(data)) {
|
|
144
|
+
throw new TypeError(
|
|
145
|
+
`Unmarshalling the type 'EdgeServicesCacheStageInfo' failed as data isn't a dictionary.`
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
return {
|
|
149
|
+
pipelineId: data.pipeline_id
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
const unmarshalEdgeServicesDNSStageInfo = (data) => {
|
|
153
|
+
if (!isJSONObject(data)) {
|
|
154
|
+
throw new TypeError(
|
|
155
|
+
`Unmarshalling the type 'EdgeServicesDNSStageInfo' failed as data isn't a dictionary.`
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
return {
|
|
159
|
+
pipelineId: data.pipeline_id
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
const unmarshalEdgeServicesPipelineInfo = (data) => {
|
|
163
|
+
if (!isJSONObject(data)) {
|
|
164
|
+
throw new TypeError(
|
|
165
|
+
`Unmarshalling the type 'EdgeServicesPipelineInfo' failed as data isn't a dictionary.`
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
name: data.name
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
const unmarshalEdgeServicesPlanInfo = (data) => {
|
|
173
|
+
if (!isJSONObject(data)) {
|
|
174
|
+
throw new TypeError(
|
|
175
|
+
`Unmarshalling the type 'EdgeServicesPlanInfo' failed as data isn't a dictionary.`
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
return {};
|
|
179
|
+
};
|
|
180
|
+
const unmarshalEdgeServicesRouteRulesInfo = (data) => {
|
|
181
|
+
if (!isJSONObject(data)) {
|
|
182
|
+
throw new TypeError(
|
|
183
|
+
`Unmarshalling the type 'EdgeServicesRouteRulesInfo' failed as data isn't a dictionary.`
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
routeStageId: data.route_stage_id
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const unmarshalEdgeServicesRouteStageInfo = (data) => {
|
|
191
|
+
if (!isJSONObject(data)) {
|
|
192
|
+
throw new TypeError(
|
|
193
|
+
`Unmarshalling the type 'EdgeServicesRouteStageInfo' failed as data isn't a dictionary.`
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
pipelineId: data.pipeline_id
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
const unmarshalEdgeServicesTLSStageInfo = (data) => {
|
|
201
|
+
if (!isJSONObject(data)) {
|
|
202
|
+
throw new TypeError(
|
|
203
|
+
`Unmarshalling the type 'EdgeServicesTLSStageInfo' failed as data isn't a dictionary.`
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
return {
|
|
207
|
+
pipelineId: data.pipeline_id
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
const unmarshalEdgeServicesWAFStageInfo = (data) => {
|
|
211
|
+
if (!isJSONObject(data)) {
|
|
212
|
+
throw new TypeError(
|
|
213
|
+
`Unmarshalling the type 'EdgeServicesWAFStageInfo' failed as data isn't a dictionary.`
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
return {
|
|
217
|
+
pipelineId: data.pipeline_id
|
|
218
|
+
};
|
|
219
|
+
};
|
|
104
220
|
const unmarshalInstanceServerInfo = (data) => {
|
|
105
221
|
if (!isJSONObject(data)) {
|
|
106
222
|
throw new TypeError(
|
|
@@ -270,6 +386,7 @@ const unmarshalResource = (data) => {
|
|
|
270
386
|
);
|
|
271
387
|
}
|
|
272
388
|
return {
|
|
389
|
+
accountContractSignatureInfo: data.account_contract_signature_info ? unmarshalAccountContractSignatureInfo(data.account_contract_signature_info) : void 0,
|
|
273
390
|
accountOrganizationInfo: data.account_organization_info ? unmarshalAccountOrganizationInfo(data.account_organization_info) : void 0,
|
|
274
391
|
accountProjectInfo: data.account_project_info ? unmarshalAccountProjectInfo(data.account_project_info) : void 0,
|
|
275
392
|
accountUserInfo: data.account_user_info ? unmarshalAccountUserInfo(data.account_user_info) : void 0,
|
|
@@ -278,6 +395,15 @@ const unmarshalResource = (data) => {
|
|
|
278
395
|
baremetalSettingInfo: data.baremetal_setting_info ? unmarshalBaremetalSettingInfo(data.baremetal_setting_info) : void 0,
|
|
279
396
|
createdAt: unmarshalDate(data.created_at),
|
|
280
397
|
deletedAt: unmarshalDate(data.deleted_at),
|
|
398
|
+
edgeServicesBackendStageInfo: data.edge_services_backend_stage_info ? unmarshalEdgeServicesBackendStageInfo(data.edge_services_backend_stage_info) : void 0,
|
|
399
|
+
edgeServicesCacheStageInfo: data.edge_services_cache_stage_info ? unmarshalEdgeServicesCacheStageInfo(data.edge_services_cache_stage_info) : void 0,
|
|
400
|
+
edgeServicesDnsStageInfo: data.edge_services_dns_stage_info ? unmarshalEdgeServicesDNSStageInfo(data.edge_services_dns_stage_info) : void 0,
|
|
401
|
+
edgeServicesPipelineInfo: data.edge_services_pipeline_info ? unmarshalEdgeServicesPipelineInfo(data.edge_services_pipeline_info) : void 0,
|
|
402
|
+
edgeServicesPlanInfo: data.edge_services_plan_info ? unmarshalEdgeServicesPlanInfo(data.edge_services_plan_info) : void 0,
|
|
403
|
+
edgeServicesRouteRulesInfo: data.edge_services_route_rules_info ? unmarshalEdgeServicesRouteRulesInfo(data.edge_services_route_rules_info) : void 0,
|
|
404
|
+
edgeServicesRouteStageInfo: data.edge_services_route_stage_info ? unmarshalEdgeServicesRouteStageInfo(data.edge_services_route_stage_info) : void 0,
|
|
405
|
+
edgeServicesTlsStageInfo: data.edge_services_tls_stage_info ? unmarshalEdgeServicesTLSStageInfo(data.edge_services_tls_stage_info) : void 0,
|
|
406
|
+
edgeServicesWafStageInfo: data.edge_services_waf_stage_info ? unmarshalEdgeServicesWAFStageInfo(data.edge_services_waf_stage_info) : void 0,
|
|
281
407
|
id: data.id,
|
|
282
408
|
instanceServerInfo: data.instance_server_info ? unmarshalInstanceServerInfo(data.instance_server_info) : void 0,
|
|
283
409
|
ipamIpInfo: data.ipam_ip_info ? unmarshalIpamIpInfo(data.ipam_ip_info) : void 0,
|
|
@@ -289,9 +415,7 @@ const unmarshalResource = (data) => {
|
|
|
289
415
|
kubePoolInfo: data.kube_pool_info ? unmarshalKubernetesPoolInfo(data.kube_pool_info) : void 0,
|
|
290
416
|
loadBalancerAclInfo: data.load_balancer_acl_info ? unmarshalLoadBalancerAclInfo(data.load_balancer_acl_info) : void 0,
|
|
291
417
|
loadBalancerBackendInfo: data.load_balancer_backend_info ? unmarshalLoadBalancerBackendInfo(data.load_balancer_backend_info) : void 0,
|
|
292
|
-
loadBalancerCertificateInfo: data.load_balancer_certificate_info ? unmarshalLoadBalancerCertificateInfo(
|
|
293
|
-
data.load_balancer_certificate_info
|
|
294
|
-
) : void 0,
|
|
418
|
+
loadBalancerCertificateInfo: data.load_balancer_certificate_info ? unmarshalLoadBalancerCertificateInfo(data.load_balancer_certificate_info) : void 0,
|
|
295
419
|
loadBalancerFrontendInfo: data.load_balancer_frontend_info ? unmarshalLoadBalancerFrontendInfo(data.load_balancer_frontend_info) : void 0,
|
|
296
420
|
loadBalancerIpInfo: data.load_balancer_ip_info ? unmarshalLoadBalancerIpInfo(data.load_balancer_ip_info) : void 0,
|
|
297
421
|
loadBalancerLbInfo: data.load_balancer_lb_info ? unmarshalLoadBalancerLbInfo(data.load_balancer_lb_info) : void 0,
|
|
@@ -300,9 +424,7 @@ const unmarshalResource = (data) => {
|
|
|
300
424
|
secmSecretInfo: data.secm_secret_info ? unmarshalSecretManagerSecretInfo(data.secm_secret_info) : void 0,
|
|
301
425
|
secmSecretVersionInfo: data.secm_secret_version_info ? unmarshalSecretManagerSecretVersionInfo(data.secm_secret_version_info) : void 0,
|
|
302
426
|
secretManagerSecretInfo: data.secret_manager_secret_info ? unmarshalSecretManagerSecretInfo(data.secret_manager_secret_info) : void 0,
|
|
303
|
-
secretManagerVersionInfo: data.secret_manager_version_info ? unmarshalSecretManagerSecretVersionInfo(
|
|
304
|
-
data.secret_manager_version_info
|
|
305
|
-
) : void 0,
|
|
427
|
+
secretManagerVersionInfo: data.secret_manager_version_info ? unmarshalSecretManagerSecretVersionInfo(data.secret_manager_version_info) : void 0,
|
|
306
428
|
type: data.type,
|
|
307
429
|
updatedAt: unmarshalDate(data.updated_at)
|
|
308
430
|
};
|
|
@@ -411,10 +533,7 @@ const unmarshalListCombinedEventsResponse = (data) => {
|
|
|
411
533
|
);
|
|
412
534
|
}
|
|
413
535
|
return {
|
|
414
|
-
events: unmarshalArrayOfObject(
|
|
415
|
-
data.events,
|
|
416
|
-
unmarshalListCombinedEventsResponseCombinedEvent
|
|
417
|
-
),
|
|
536
|
+
events: unmarshalArrayOfObject(data.events, unmarshalListCombinedEventsResponseCombinedEvent),
|
|
418
537
|
nextPageToken: data.next_page_token
|
|
419
538
|
};
|
|
420
539
|
};
|