basyx-typescript-sdk 0.2.2 → 1.0.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 +19 -12
- package/bundle/index.js +15444 -866
- package/bundle/index.js.map +1 -1
- package/dist/clients/AasDiscoveryClient.d.ts +68 -0
- package/dist/clients/AasDiscoveryClient.js +115 -0
- package/dist/clients/AasRegistryClient.d.ts +164 -0
- package/dist/clients/AasRegistryClient.js +287 -0
- package/dist/clients/AasRepositoryClient.d.ts +791 -103
- package/dist/clients/AasRepositoryClient.js +1323 -215
- package/dist/clients/AasxFileClient.d.ts +82 -0
- package/dist/clients/AasxFileClient.js +148 -0
- package/dist/clients/ConceptDescriptionRepositoryClient.d.ts +84 -0
- package/dist/clients/ConceptDescriptionRepositoryClient.js +143 -0
- package/dist/clients/SubmodelRegistryClient.d.ts +78 -0
- package/dist/clients/SubmodelRegistryClient.js +138 -0
- package/dist/clients/SubmodelRepositoryClient.d.ts +355 -0
- package/dist/clients/SubmodelRepositoryClient.js +585 -0
- package/dist/clients/index.d.ts +6 -0
- package/dist/clients/index.js +6 -0
- package/dist/generated/AasDiscoveryService/apis/AssetAdministrationShellBasicDiscoveryAPIApi.d.ts +80 -0
- package/dist/generated/AasDiscoveryService/apis/AssetAdministrationShellBasicDiscoveryAPIApi.js +156 -0
- package/dist/generated/AasDiscoveryService/apis/DescriptionAPIApi.d.ts +26 -0
- package/dist/generated/AasDiscoveryService/apis/DescriptionAPIApi.js +40 -0
- package/dist/generated/AasDiscoveryService/apis/index.d.ts +2 -0
- package/dist/generated/AasDiscoveryService/apis/index.js +4 -0
- package/dist/generated/AasDiscoveryService/index.d.ts +2 -0
- package/dist/generated/AasDiscoveryService/index.js +4 -0
- package/dist/generated/AasDiscoveryService/models/index.d.ts +297 -0
- package/dist/generated/AasDiscoveryService/models/index.js +48 -0
- package/dist/generated/AasRegistryService/apis/AssetAdministrationShellRegistryAPIApi.d.ts +139 -0
- package/dist/generated/AasRegistryService/apis/AssetAdministrationShellRegistryAPIApi.js +312 -0
- package/dist/generated/AasRegistryService/apis/DescriptionAPIApi.d.ts +26 -0
- package/dist/generated/AasRegistryService/apis/DescriptionAPIApi.js +40 -0
- package/dist/generated/AasRegistryService/apis/index.d.ts +2 -0
- package/dist/generated/AasRegistryService/apis/index.js +4 -0
- package/dist/generated/AasRegistryService/index.d.ts +2 -0
- package/dist/generated/AasRegistryService/index.js +4 -0
- package/dist/generated/AasRegistryService/models/index.d.ts +1070 -0
- package/dist/generated/AasRegistryService/models/index.js +151 -0
- package/dist/generated/AasRepositoryService/apis/AssetAdministrationShellRepositoryAPIApi.d.ts +870 -0
- package/dist/generated/AasRepositoryService/apis/AssetAdministrationShellRepositoryAPIApi.js +1842 -0
- package/dist/generated/AasRepositoryService/apis/DescriptionAPIApi.d.ts +26 -0
- package/dist/generated/AasRepositoryService/apis/DescriptionAPIApi.js +40 -0
- package/dist/generated/AasRepositoryService/apis/SerializationAPIApi.d.ts +30 -0
- package/dist/generated/AasRepositoryService/apis/SerializationAPIApi.js +49 -0
- package/dist/generated/AasRepositoryService/apis/index.d.ts +3 -0
- package/dist/generated/AasRepositoryService/apis/index.js +5 -0
- package/dist/generated/AasRepositoryService/index.d.ts +2 -0
- package/dist/generated/AasRepositoryService/index.js +4 -0
- package/dist/generated/AasRepositoryService/models/index.d.ts +4585 -0
- package/dist/generated/AasRepositoryService/models/index.js +221 -0
- package/dist/generated/AasxFileService/apis/AASXFileServerAPIApi.d.ts +78 -0
- package/dist/generated/AasxFileService/apis/AASXFileServerAPIApi.js +184 -0
- package/dist/generated/AasxFileService/apis/index.d.ts +1 -0
- package/dist/generated/AasxFileService/apis/index.js +3 -0
- package/dist/generated/AasxFileService/index.d.ts +2 -0
- package/dist/generated/AasxFileService/index.js +4 -0
- package/dist/generated/AasxFileService/models/index.d.ts +80 -0
- package/dist/generated/AasxFileService/models/index.js +10 -0
- package/dist/generated/ConceptDescriptionRepositoryService/apis/ConceptDescriptionRepositoryAPIApi.d.ts +78 -0
- package/dist/generated/ConceptDescriptionRepositoryService/apis/ConceptDescriptionRepositoryAPIApi.js +164 -0
- package/dist/generated/ConceptDescriptionRepositoryService/apis/DescriptionAPIApi.d.ts +26 -0
- package/dist/generated/ConceptDescriptionRepositoryService/apis/DescriptionAPIApi.js +40 -0
- package/dist/generated/ConceptDescriptionRepositoryService/apis/SerializationAPIApi.d.ts +30 -0
- package/dist/generated/ConceptDescriptionRepositoryService/apis/SerializationAPIApi.js +49 -0
- package/dist/generated/ConceptDescriptionRepositoryService/apis/index.d.ts +3 -0
- package/dist/generated/ConceptDescriptionRepositoryService/apis/index.js +5 -0
- package/dist/generated/ConceptDescriptionRepositoryService/index.d.ts +2 -0
- package/dist/generated/ConceptDescriptionRepositoryService/index.js +3 -0
- package/dist/generated/ConceptDescriptionRepositoryService/models/index.d.ts +2869 -0
- package/dist/generated/ConceptDescriptionRepositoryService/models/index.js +209 -0
- package/dist/generated/SubmodelRegistryService/apis/DescriptionAPIApi.d.ts +26 -0
- package/dist/generated/SubmodelRegistryService/apis/DescriptionAPIApi.js +40 -0
- package/dist/generated/SubmodelRegistryService/apis/SubmodelRegistryAPIApi.d.ts +75 -0
- package/dist/generated/SubmodelRegistryService/apis/SubmodelRegistryAPIApi.js +155 -0
- package/dist/generated/SubmodelRegistryService/apis/index.d.ts +2 -0
- package/dist/generated/SubmodelRegistryService/apis/index.js +4 -0
- package/dist/generated/SubmodelRegistryService/index.d.ts +2 -0
- package/dist/generated/SubmodelRegistryService/index.js +4 -0
- package/dist/generated/SubmodelRegistryService/models/index.d.ts +924 -0
- package/dist/generated/SubmodelRegistryService/models/index.js +141 -0
- package/dist/generated/SubmodelRepositoryService/apis/DescriptionAPIApi.d.ts +26 -0
- package/dist/generated/SubmodelRepositoryService/apis/DescriptionAPIApi.js +40 -0
- package/dist/generated/SubmodelRepositoryService/apis/SerializationAPIApi.d.ts +30 -0
- package/dist/generated/SubmodelRepositoryService/apis/SerializationAPIApi.js +49 -0
- package/dist/generated/SubmodelRepositoryService/apis/SubmodelRepositoryAPIApi.d.ts +802 -0
- package/dist/generated/SubmodelRepositoryService/apis/SubmodelRepositoryAPIApi.js +1572 -0
- package/dist/generated/SubmodelRepositoryService/apis/index.d.ts +3 -0
- package/dist/generated/SubmodelRepositoryService/apis/index.js +5 -0
- package/dist/generated/SubmodelRepositoryService/index.d.ts +2 -0
- package/dist/generated/SubmodelRepositoryService/index.js +4 -0
- package/dist/generated/SubmodelRepositoryService/models/index.d.ts +4623 -0
- package/dist/generated/SubmodelRepositoryService/models/index.js +221 -0
- package/dist/generated/index.d.ts +9 -2
- package/dist/generated/index.js +9 -3
- package/dist/generated/runtime.d.ts +181 -0
- package/dist/generated/runtime.js +326 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/apiConfig.d.ts +2 -0
- package/dist/lib/apiConfig.js +23 -0
- package/dist/lib/base64Url.js +4 -0
- package/dist/lib/convertAasDescriptorTypes.d.ts +34 -0
- package/dist/lib/convertAasDescriptorTypes.js +76 -0
- package/dist/lib/convertAasDiscoveryTypes.d.ts +18 -0
- package/dist/lib/convertAasDiscoveryTypes.js +39 -0
- package/dist/lib/convertAasTypes.d.ts +7 -7
- package/dist/lib/convertAasTypes.js +5 -0
- package/dist/lib/convertConceptDescriptionTypes.d.ts +18 -0
- package/dist/lib/convertConceptDescriptionTypes.js +39 -0
- package/dist/lib/convertSubmodelTypes.d.ts +34 -0
- package/dist/lib/convertSubmodelTypes.js +69 -0
- package/dist/lib/descriptorJsonization.d.ts +12 -0
- package/dist/lib/descriptorJsonization.js +172 -0
- package/dist/lib/errorHandler.d.ts +9 -0
- package/dist/lib/errorHandler.js +94 -0
- package/dist/models/Descriptors.d.ts +51 -0
- package/dist/models/Descriptors.js +56 -0
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/utils/DescriptorUtils.d.ts +9 -0
- package/dist/utils/DescriptorUtils.js +37 -0
- package/dist/utils/KeyTypesUtil.d.ts +24 -0
- package/dist/utils/KeyTypesUtil.js +55 -0
- package/dist/utils/MultiLanguagePropertyUtils.d.ts +24 -0
- package/dist/utils/MultiLanguagePropertyUtils.js +46 -0
- package/dist/utils/ReferableUtils.d.ts +69 -0
- package/dist/utils/ReferableUtils.js +220 -0
- package/dist/utils/ReferenceUtil.d.ts +9 -0
- package/dist/utils/ReferenceUtil.js +22 -0
- package/dist/utils/SemanticIdUtils.d.ts +119 -0
- package/dist/utils/SemanticIdUtils.js +363 -0
- package/package.json +14 -11
- package/dist/generated/schemas.gen.d.ts +0 -2357
- package/dist/generated/schemas.gen.js +0 -2789
- package/dist/generated/sdk.gen.d.ts +0 -822
- package/dist/generated/sdk.gen.js +0 -2225
- package/dist/generated/types.gen.d.ts +0 -10829
- package/dist/generated/types.gen.js +0 -2
- package/dist/lib/createAasRepoClient.d.ts +0 -9
- package/dist/lib/createAasRepoClient.js +0 -15
- package/dist/models/aas-repository.d.ts +0 -65
- package/dist/models/aas-repository.js +0 -1
|
@@ -0,0 +1,1842 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DotAAS Part 2 | HTTP/REST | Asset Administration Shell Repository Service Specification
|
|
5
|
+
* The Full Profile of the Asset Administration Shell Repository Service Specification as part of the [Specification of the Asset Administration Shell: Part 2](https://industrialdigitaltwin.org/en/content-hub/aasspecifications). Copyright: Industrial Digital Twin Association (IDTA) 2025
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: V3.1.0_SSP-001
|
|
8
|
+
* Contact: info@idtwin.org
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import * as runtime from '../../runtime';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export class AssetAdministrationShellRepositoryAPIApi extends runtime.BaseAPI {
|
|
19
|
+
/**
|
|
20
|
+
* Deletes an Asset Administration Shell
|
|
21
|
+
*/
|
|
22
|
+
async deleteAssetAdministrationShellByIdRaw(requestParameters, initOverrides) {
|
|
23
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
24
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling deleteAssetAdministrationShellById().');
|
|
25
|
+
}
|
|
26
|
+
const queryParameters = {};
|
|
27
|
+
const headerParameters = {};
|
|
28
|
+
const response = await this.request({
|
|
29
|
+
path: `/shells/{aasIdentifier}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
30
|
+
method: 'DELETE',
|
|
31
|
+
headers: headerParameters,
|
|
32
|
+
query: queryParameters,
|
|
33
|
+
}, initOverrides);
|
|
34
|
+
return new runtime.VoidApiResponse(response);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Deletes an Asset Administration Shell
|
|
38
|
+
*/
|
|
39
|
+
async deleteAssetAdministrationShellById(requestParameters, initOverrides) {
|
|
40
|
+
await this.deleteAssetAdministrationShellByIdRaw(requestParameters, initOverrides);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
|
|
44
|
+
*/
|
|
45
|
+
async deleteFileByPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
46
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
47
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling deleteFileByPathAasRepository().');
|
|
48
|
+
}
|
|
49
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
50
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling deleteFileByPathAasRepository().');
|
|
51
|
+
}
|
|
52
|
+
if (requestParameters['idShortPath'] == null) {
|
|
53
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling deleteFileByPathAasRepository().');
|
|
54
|
+
}
|
|
55
|
+
const queryParameters = {};
|
|
56
|
+
const headerParameters = {};
|
|
57
|
+
const response = await this.request({
|
|
58
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
59
|
+
method: 'DELETE',
|
|
60
|
+
headers: headerParameters,
|
|
61
|
+
query: queryParameters,
|
|
62
|
+
}, initOverrides);
|
|
63
|
+
return new runtime.VoidApiResponse(response);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Deletes file content of an existing submodel element at a specified path within submodel elements hierarchy
|
|
67
|
+
*/
|
|
68
|
+
async deleteFileByPathAasRepository(requestParameters, initOverrides) {
|
|
69
|
+
await this.deleteFileByPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Deletes the submodel from the Asset Administration Shell and the Repository.
|
|
73
|
+
*/
|
|
74
|
+
async deleteSubmodelByIdAasRepositoryRaw(requestParameters, initOverrides) {
|
|
75
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling deleteSubmodelByIdAasRepository().');
|
|
77
|
+
}
|
|
78
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling deleteSubmodelByIdAasRepository().');
|
|
80
|
+
}
|
|
81
|
+
const queryParameters = {};
|
|
82
|
+
const headerParameters = {};
|
|
83
|
+
const response = await this.request({
|
|
84
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
85
|
+
method: 'DELETE',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
}, initOverrides);
|
|
89
|
+
return new runtime.VoidApiResponse(response);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Deletes the submodel from the Asset Administration Shell and the Repository.
|
|
93
|
+
*/
|
|
94
|
+
async deleteSubmodelByIdAasRepository(requestParameters, initOverrides) {
|
|
95
|
+
await this.deleteSubmodelByIdAasRepositoryRaw(requestParameters, initOverrides);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Deletes a submodel element at a specified path within the submodel elements hierarchy
|
|
99
|
+
*/
|
|
100
|
+
async deleteSubmodelElementByPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
101
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
102
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling deleteSubmodelElementByPathAasRepository().');
|
|
103
|
+
}
|
|
104
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
105
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling deleteSubmodelElementByPathAasRepository().');
|
|
106
|
+
}
|
|
107
|
+
if (requestParameters['idShortPath'] == null) {
|
|
108
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling deleteSubmodelElementByPathAasRepository().');
|
|
109
|
+
}
|
|
110
|
+
const queryParameters = {};
|
|
111
|
+
const headerParameters = {};
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
114
|
+
method: 'DELETE',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
return new runtime.VoidApiResponse(response);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Deletes a submodel element at a specified path within the submodel elements hierarchy
|
|
122
|
+
*/
|
|
123
|
+
async deleteSubmodelElementByPathAasRepository(requestParameters, initOverrides) {
|
|
124
|
+
await this.deleteSubmodelElementByPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Deletes the submodel reference from the Asset Administration Shell. Does not delete the submodel itself!
|
|
128
|
+
*/
|
|
129
|
+
async deleteSubmodelReferenceAasRepositoryRaw(requestParameters, initOverrides) {
|
|
130
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
131
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling deleteSubmodelReferenceAasRepository().');
|
|
132
|
+
}
|
|
133
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling deleteSubmodelReferenceAasRepository().');
|
|
135
|
+
}
|
|
136
|
+
const queryParameters = {};
|
|
137
|
+
const headerParameters = {};
|
|
138
|
+
const response = await this.request({
|
|
139
|
+
path: `/shells/{aasIdentifier}/submodel-refs/{submodelIdentifier}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
140
|
+
method: 'DELETE',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
}, initOverrides);
|
|
144
|
+
return new runtime.VoidApiResponse(response);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Deletes the submodel reference from the Asset Administration Shell. Does not delete the submodel itself!
|
|
148
|
+
*/
|
|
149
|
+
async deleteSubmodelReferenceAasRepository(requestParameters, initOverrides) {
|
|
150
|
+
await this.deleteSubmodelReferenceAasRepositoryRaw(requestParameters, initOverrides);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
*/
|
|
154
|
+
async deleteThumbnailAasRepositoryRaw(requestParameters, initOverrides) {
|
|
155
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
156
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling deleteThumbnailAasRepository().');
|
|
157
|
+
}
|
|
158
|
+
const queryParameters = {};
|
|
159
|
+
const headerParameters = {};
|
|
160
|
+
const response = await this.request({
|
|
161
|
+
path: `/shells/{aasIdentifier}/asset-information/thumbnail`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
162
|
+
method: 'DELETE',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
}, initOverrides);
|
|
166
|
+
return new runtime.VoidApiResponse(response);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
*/
|
|
170
|
+
async deleteThumbnailAasRepository(requestParameters, initOverrides) {
|
|
171
|
+
await this.deleteThumbnailAasRepositoryRaw(requestParameters, initOverrides);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Returns all Asset Administration Shells
|
|
175
|
+
*/
|
|
176
|
+
async getAllAssetAdministrationShellsRaw(requestParameters, initOverrides) {
|
|
177
|
+
const queryParameters = {};
|
|
178
|
+
if (requestParameters['assetIds'] != null) {
|
|
179
|
+
queryParameters['assetIds'] = requestParameters['assetIds'];
|
|
180
|
+
}
|
|
181
|
+
if (requestParameters['idShort'] != null) {
|
|
182
|
+
queryParameters['idShort'] = requestParameters['idShort'];
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters['limit'] != null) {
|
|
185
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['cursor'] != null) {
|
|
188
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
189
|
+
}
|
|
190
|
+
const headerParameters = {};
|
|
191
|
+
const response = await this.request({
|
|
192
|
+
path: `/shells`,
|
|
193
|
+
method: 'GET',
|
|
194
|
+
headers: headerParameters,
|
|
195
|
+
query: queryParameters,
|
|
196
|
+
}, initOverrides);
|
|
197
|
+
return new runtime.JSONApiResponse(response);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Returns all Asset Administration Shells
|
|
201
|
+
*/
|
|
202
|
+
async getAllAssetAdministrationShells(requestParameters = {}, initOverrides) {
|
|
203
|
+
const response = await this.getAllAssetAdministrationShellsRaw(requestParameters, initOverrides);
|
|
204
|
+
return await response.value();
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Returns References to all Asset Administration Shells
|
|
208
|
+
*/
|
|
209
|
+
async getAllAssetAdministrationShellsReferenceRaw(requestParameters, initOverrides) {
|
|
210
|
+
const queryParameters = {};
|
|
211
|
+
if (requestParameters['assetIds'] != null) {
|
|
212
|
+
queryParameters['assetIds'] = requestParameters['assetIds'];
|
|
213
|
+
}
|
|
214
|
+
if (requestParameters['idShort'] != null) {
|
|
215
|
+
queryParameters['idShort'] = requestParameters['idShort'];
|
|
216
|
+
}
|
|
217
|
+
if (requestParameters['limit'] != null) {
|
|
218
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
219
|
+
}
|
|
220
|
+
if (requestParameters['cursor'] != null) {
|
|
221
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
222
|
+
}
|
|
223
|
+
const headerParameters = {};
|
|
224
|
+
const response = await this.request({
|
|
225
|
+
path: `/shells/$reference`,
|
|
226
|
+
method: 'GET',
|
|
227
|
+
headers: headerParameters,
|
|
228
|
+
query: queryParameters,
|
|
229
|
+
}, initOverrides);
|
|
230
|
+
return new runtime.JSONApiResponse(response);
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Returns References to all Asset Administration Shells
|
|
234
|
+
*/
|
|
235
|
+
async getAllAssetAdministrationShellsReference(requestParameters = {}, initOverrides) {
|
|
236
|
+
const response = await this.getAllAssetAdministrationShellsReferenceRaw(requestParameters, initOverrides);
|
|
237
|
+
return await response.value();
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Returns all submodel elements including their hierarchy
|
|
241
|
+
*/
|
|
242
|
+
async getAllSubmodelElementsAasRepositoryRaw(requestParameters, initOverrides) {
|
|
243
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
244
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAllSubmodelElementsAasRepository().');
|
|
245
|
+
}
|
|
246
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
247
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getAllSubmodelElementsAasRepository().');
|
|
248
|
+
}
|
|
249
|
+
const queryParameters = {};
|
|
250
|
+
if (requestParameters['limit'] != null) {
|
|
251
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
252
|
+
}
|
|
253
|
+
if (requestParameters['cursor'] != null) {
|
|
254
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
255
|
+
}
|
|
256
|
+
if (requestParameters['level'] != null) {
|
|
257
|
+
queryParameters['level'] = requestParameters['level'];
|
|
258
|
+
}
|
|
259
|
+
if (requestParameters['extent'] != null) {
|
|
260
|
+
queryParameters['extent'] = requestParameters['extent'];
|
|
261
|
+
}
|
|
262
|
+
const headerParameters = {};
|
|
263
|
+
const response = await this.request({
|
|
264
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
265
|
+
method: 'GET',
|
|
266
|
+
headers: headerParameters,
|
|
267
|
+
query: queryParameters,
|
|
268
|
+
}, initOverrides);
|
|
269
|
+
return new runtime.JSONApiResponse(response);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Returns all submodel elements including their hierarchy
|
|
273
|
+
*/
|
|
274
|
+
async getAllSubmodelElementsAasRepository(requestParameters, initOverrides) {
|
|
275
|
+
const response = await this.getAllSubmodelElementsAasRepositoryRaw(requestParameters, initOverrides);
|
|
276
|
+
return await response.value();
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Returns all submodel elements including their hierarchy
|
|
280
|
+
*/
|
|
281
|
+
async getAllSubmodelElementsMetadataAasRepositoryRaw(requestParameters, initOverrides) {
|
|
282
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
283
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAllSubmodelElementsMetadataAasRepository().');
|
|
284
|
+
}
|
|
285
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
286
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getAllSubmodelElementsMetadataAasRepository().');
|
|
287
|
+
}
|
|
288
|
+
const queryParameters = {};
|
|
289
|
+
if (requestParameters['limit'] != null) {
|
|
290
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
291
|
+
}
|
|
292
|
+
if (requestParameters['cursor'] != null) {
|
|
293
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
294
|
+
}
|
|
295
|
+
const headerParameters = {};
|
|
296
|
+
const response = await this.request({
|
|
297
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$metadata`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
298
|
+
method: 'GET',
|
|
299
|
+
headers: headerParameters,
|
|
300
|
+
query: queryParameters,
|
|
301
|
+
}, initOverrides);
|
|
302
|
+
return new runtime.JSONApiResponse(response);
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Returns all submodel elements including their hierarchy
|
|
306
|
+
*/
|
|
307
|
+
async getAllSubmodelElementsMetadataAasRepository(requestParameters, initOverrides) {
|
|
308
|
+
const response = await this.getAllSubmodelElementsMetadataAasRepositoryRaw(requestParameters, initOverrides);
|
|
309
|
+
return await response.value();
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Returns all submodel elements including their hierarchy
|
|
313
|
+
*/
|
|
314
|
+
async getAllSubmodelElementsPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
315
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
316
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAllSubmodelElementsPathAasRepository().');
|
|
317
|
+
}
|
|
318
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
319
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getAllSubmodelElementsPathAasRepository().');
|
|
320
|
+
}
|
|
321
|
+
const queryParameters = {};
|
|
322
|
+
if (requestParameters['limit'] != null) {
|
|
323
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
324
|
+
}
|
|
325
|
+
if (requestParameters['cursor'] != null) {
|
|
326
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
327
|
+
}
|
|
328
|
+
if (requestParameters['level'] != null) {
|
|
329
|
+
queryParameters['level'] = requestParameters['level'];
|
|
330
|
+
}
|
|
331
|
+
if (requestParameters['extent'] != null) {
|
|
332
|
+
queryParameters['extent'] = requestParameters['extent'];
|
|
333
|
+
}
|
|
334
|
+
const headerParameters = {};
|
|
335
|
+
const response = await this.request({
|
|
336
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$path`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
337
|
+
method: 'GET',
|
|
338
|
+
headers: headerParameters,
|
|
339
|
+
query: queryParameters,
|
|
340
|
+
}, initOverrides);
|
|
341
|
+
return new runtime.JSONApiResponse(response);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Returns all submodel elements including their hierarchy
|
|
345
|
+
*/
|
|
346
|
+
async getAllSubmodelElementsPathAasRepository(requestParameters, initOverrides) {
|
|
347
|
+
const response = await this.getAllSubmodelElementsPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
348
|
+
return await response.value();
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Returns all submodel elements as a list of References
|
|
352
|
+
*/
|
|
353
|
+
async getAllSubmodelElementsReferenceAasRepositoryRaw(requestParameters, initOverrides) {
|
|
354
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
355
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAllSubmodelElementsReferenceAasRepository().');
|
|
356
|
+
}
|
|
357
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
358
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getAllSubmodelElementsReferenceAasRepository().');
|
|
359
|
+
}
|
|
360
|
+
const queryParameters = {};
|
|
361
|
+
if (requestParameters['limit'] != null) {
|
|
362
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
363
|
+
}
|
|
364
|
+
if (requestParameters['cursor'] != null) {
|
|
365
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
366
|
+
}
|
|
367
|
+
if (requestParameters['level'] != null) {
|
|
368
|
+
queryParameters['level'] = requestParameters['level'];
|
|
369
|
+
}
|
|
370
|
+
const headerParameters = {};
|
|
371
|
+
const response = await this.request({
|
|
372
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$reference`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
373
|
+
method: 'GET',
|
|
374
|
+
headers: headerParameters,
|
|
375
|
+
query: queryParameters,
|
|
376
|
+
}, initOverrides);
|
|
377
|
+
return new runtime.JSONApiResponse(response);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Returns all submodel elements as a list of References
|
|
381
|
+
*/
|
|
382
|
+
async getAllSubmodelElementsReferenceAasRepository(requestParameters, initOverrides) {
|
|
383
|
+
const response = await this.getAllSubmodelElementsReferenceAasRepositoryRaw(requestParameters, initOverrides);
|
|
384
|
+
return await response.value();
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Returns all submodel elements including their hierarchy in the ValueOnly representation
|
|
388
|
+
*/
|
|
389
|
+
async getAllSubmodelElementsValueOnlyAasRepositoryRaw(requestParameters, initOverrides) {
|
|
390
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
391
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAllSubmodelElementsValueOnlyAasRepository().');
|
|
392
|
+
}
|
|
393
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
394
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getAllSubmodelElementsValueOnlyAasRepository().');
|
|
395
|
+
}
|
|
396
|
+
const queryParameters = {};
|
|
397
|
+
if (requestParameters['limit'] != null) {
|
|
398
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
399
|
+
}
|
|
400
|
+
if (requestParameters['cursor'] != null) {
|
|
401
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
402
|
+
}
|
|
403
|
+
if (requestParameters['level'] != null) {
|
|
404
|
+
queryParameters['level'] = requestParameters['level'];
|
|
405
|
+
}
|
|
406
|
+
const headerParameters = {};
|
|
407
|
+
const response = await this.request({
|
|
408
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
409
|
+
method: 'GET',
|
|
410
|
+
headers: headerParameters,
|
|
411
|
+
query: queryParameters,
|
|
412
|
+
}, initOverrides);
|
|
413
|
+
return new runtime.JSONApiResponse(response);
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Returns all submodel elements including their hierarchy in the ValueOnly representation
|
|
417
|
+
*/
|
|
418
|
+
async getAllSubmodelElementsValueOnlyAasRepository(requestParameters, initOverrides) {
|
|
419
|
+
const response = await this.getAllSubmodelElementsValueOnlyAasRepositoryRaw(requestParameters, initOverrides);
|
|
420
|
+
return await response.value();
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Returns all submodel references
|
|
424
|
+
*/
|
|
425
|
+
async getAllSubmodelReferencesAasRepositoryRaw(requestParameters, initOverrides) {
|
|
426
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
427
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAllSubmodelReferencesAasRepository().');
|
|
428
|
+
}
|
|
429
|
+
const queryParameters = {};
|
|
430
|
+
if (requestParameters['limit'] != null) {
|
|
431
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
432
|
+
}
|
|
433
|
+
if (requestParameters['cursor'] != null) {
|
|
434
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
435
|
+
}
|
|
436
|
+
const headerParameters = {};
|
|
437
|
+
const response = await this.request({
|
|
438
|
+
path: `/shells/{aasIdentifier}/submodel-refs`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
439
|
+
method: 'GET',
|
|
440
|
+
headers: headerParameters,
|
|
441
|
+
query: queryParameters,
|
|
442
|
+
}, initOverrides);
|
|
443
|
+
return new runtime.JSONApiResponse(response);
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Returns all submodel references
|
|
447
|
+
*/
|
|
448
|
+
async getAllSubmodelReferencesAasRepository(requestParameters, initOverrides) {
|
|
449
|
+
const response = await this.getAllSubmodelReferencesAasRepositoryRaw(requestParameters, initOverrides);
|
|
450
|
+
return await response.value();
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Returns a specific Asset Administration Shell
|
|
454
|
+
*/
|
|
455
|
+
async getAssetAdministrationShellByIdRaw(requestParameters, initOverrides) {
|
|
456
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
457
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAssetAdministrationShellById().');
|
|
458
|
+
}
|
|
459
|
+
const queryParameters = {};
|
|
460
|
+
const headerParameters = {};
|
|
461
|
+
const response = await this.request({
|
|
462
|
+
path: `/shells/{aasIdentifier}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
463
|
+
method: 'GET',
|
|
464
|
+
headers: headerParameters,
|
|
465
|
+
query: queryParameters,
|
|
466
|
+
}, initOverrides);
|
|
467
|
+
return new runtime.JSONApiResponse(response);
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Returns a specific Asset Administration Shell
|
|
471
|
+
*/
|
|
472
|
+
async getAssetAdministrationShellById(requestParameters, initOverrides) {
|
|
473
|
+
const response = await this.getAssetAdministrationShellByIdRaw(requestParameters, initOverrides);
|
|
474
|
+
return await response.value();
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Returns a specific Asset Administration Shell as a Reference
|
|
478
|
+
*/
|
|
479
|
+
async getAssetAdministrationShellByIdReferenceAasRepositoryRaw(requestParameters, initOverrides) {
|
|
480
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
481
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAssetAdministrationShellByIdReferenceAasRepository().');
|
|
482
|
+
}
|
|
483
|
+
const queryParameters = {};
|
|
484
|
+
const headerParameters = {};
|
|
485
|
+
const response = await this.request({
|
|
486
|
+
path: `/shells/{aasIdentifier}/$reference`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
487
|
+
method: 'GET',
|
|
488
|
+
headers: headerParameters,
|
|
489
|
+
query: queryParameters,
|
|
490
|
+
}, initOverrides);
|
|
491
|
+
return new runtime.JSONApiResponse(response);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Returns a specific Asset Administration Shell as a Reference
|
|
495
|
+
*/
|
|
496
|
+
async getAssetAdministrationShellByIdReferenceAasRepository(requestParameters, initOverrides) {
|
|
497
|
+
const response = await this.getAssetAdministrationShellByIdReferenceAasRepositoryRaw(requestParameters, initOverrides);
|
|
498
|
+
return await response.value();
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Returns the Asset Information
|
|
502
|
+
*/
|
|
503
|
+
async getAssetInformationAasRepositoryRaw(requestParameters, initOverrides) {
|
|
504
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
505
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getAssetInformationAasRepository().');
|
|
506
|
+
}
|
|
507
|
+
const queryParameters = {};
|
|
508
|
+
const headerParameters = {};
|
|
509
|
+
const response = await this.request({
|
|
510
|
+
path: `/shells/{aasIdentifier}/asset-information`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
511
|
+
method: 'GET',
|
|
512
|
+
headers: headerParameters,
|
|
513
|
+
query: queryParameters,
|
|
514
|
+
}, initOverrides);
|
|
515
|
+
return new runtime.JSONApiResponse(response);
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Returns the Asset Information
|
|
519
|
+
*/
|
|
520
|
+
async getAssetInformationAasRepository(requestParameters, initOverrides) {
|
|
521
|
+
const response = await this.getAssetInformationAasRepositoryRaw(requestParameters, initOverrides);
|
|
522
|
+
return await response.value();
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Downloads file content from a specific submodel element from the Submodel at a specified path
|
|
526
|
+
*/
|
|
527
|
+
async getFileByPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
528
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
529
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getFileByPathAasRepository().');
|
|
530
|
+
}
|
|
531
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
532
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getFileByPathAasRepository().');
|
|
533
|
+
}
|
|
534
|
+
if (requestParameters['idShortPath'] == null) {
|
|
535
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getFileByPathAasRepository().');
|
|
536
|
+
}
|
|
537
|
+
const queryParameters = {};
|
|
538
|
+
const headerParameters = {};
|
|
539
|
+
const response = await this.request({
|
|
540
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
541
|
+
method: 'GET',
|
|
542
|
+
headers: headerParameters,
|
|
543
|
+
query: queryParameters,
|
|
544
|
+
}, initOverrides);
|
|
545
|
+
return new runtime.BlobApiResponse(response);
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Downloads file content from a specific submodel element from the Submodel at a specified path
|
|
549
|
+
*/
|
|
550
|
+
async getFileByPathAasRepository(requestParameters, initOverrides) {
|
|
551
|
+
const response = await this.getFileByPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
552
|
+
return await response.value();
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Returns the Operation result of an asynchronous invoked Operation
|
|
556
|
+
*/
|
|
557
|
+
async getOperationAsyncResultAasRepositoryRaw(requestParameters, initOverrides) {
|
|
558
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
559
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getOperationAsyncResultAasRepository().');
|
|
560
|
+
}
|
|
561
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
562
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getOperationAsyncResultAasRepository().');
|
|
563
|
+
}
|
|
564
|
+
if (requestParameters['idShortPath'] == null) {
|
|
565
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getOperationAsyncResultAasRepository().');
|
|
566
|
+
}
|
|
567
|
+
if (requestParameters['handleId'] == null) {
|
|
568
|
+
throw new runtime.RequiredError('handleId', 'Required parameter "handleId" was null or undefined when calling getOperationAsyncResultAasRepository().');
|
|
569
|
+
}
|
|
570
|
+
const queryParameters = {};
|
|
571
|
+
const headerParameters = {};
|
|
572
|
+
const response = await this.request({
|
|
573
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))).replace(`{${"handleId"}}`, encodeURIComponent(String(requestParameters['handleId']))),
|
|
574
|
+
method: 'GET',
|
|
575
|
+
headers: headerParameters,
|
|
576
|
+
query: queryParameters,
|
|
577
|
+
}, initOverrides);
|
|
578
|
+
return new runtime.JSONApiResponse(response);
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Returns the Operation result of an asynchronous invoked Operation
|
|
582
|
+
*/
|
|
583
|
+
async getOperationAsyncResultAasRepository(requestParameters, initOverrides) {
|
|
584
|
+
const response = await this.getOperationAsyncResultAasRepositoryRaw(requestParameters, initOverrides);
|
|
585
|
+
return await response.value();
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Returns the ValueOnly notation of the Operation result of an asynchronous invoked Operation
|
|
589
|
+
*/
|
|
590
|
+
async getOperationAsyncResultValueOnlyAasRepositoryRaw(requestParameters, initOverrides) {
|
|
591
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
592
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getOperationAsyncResultValueOnlyAasRepository().');
|
|
593
|
+
}
|
|
594
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
595
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getOperationAsyncResultValueOnlyAasRepository().');
|
|
596
|
+
}
|
|
597
|
+
if (requestParameters['idShortPath'] == null) {
|
|
598
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getOperationAsyncResultValueOnlyAasRepository().');
|
|
599
|
+
}
|
|
600
|
+
if (requestParameters['handleId'] == null) {
|
|
601
|
+
throw new runtime.RequiredError('handleId', 'Required parameter "handleId" was null or undefined when calling getOperationAsyncResultValueOnlyAasRepository().');
|
|
602
|
+
}
|
|
603
|
+
const queryParameters = {};
|
|
604
|
+
const headerParameters = {};
|
|
605
|
+
const response = await this.request({
|
|
606
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-results/{handleId}/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))).replace(`{${"handleId"}}`, encodeURIComponent(String(requestParameters['handleId']))),
|
|
607
|
+
method: 'GET',
|
|
608
|
+
headers: headerParameters,
|
|
609
|
+
query: queryParameters,
|
|
610
|
+
}, initOverrides);
|
|
611
|
+
return new runtime.JSONApiResponse(response);
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Returns the ValueOnly notation of the Operation result of an asynchronous invoked Operation
|
|
615
|
+
*/
|
|
616
|
+
async getOperationAsyncResultValueOnlyAasRepository(requestParameters, initOverrides) {
|
|
617
|
+
const response = await this.getOperationAsyncResultValueOnlyAasRepositoryRaw(requestParameters, initOverrides);
|
|
618
|
+
return await response.value();
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Returns the Operation status of an asynchronous invoked Operation
|
|
622
|
+
*/
|
|
623
|
+
async getOperationAsyncStatusAasRepositoryRaw(requestParameters, initOverrides) {
|
|
624
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
625
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getOperationAsyncStatusAasRepository().');
|
|
626
|
+
}
|
|
627
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
628
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getOperationAsyncStatusAasRepository().');
|
|
629
|
+
}
|
|
630
|
+
if (requestParameters['idShortPath'] == null) {
|
|
631
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getOperationAsyncStatusAasRepository().');
|
|
632
|
+
}
|
|
633
|
+
if (requestParameters['handleId'] == null) {
|
|
634
|
+
throw new runtime.RequiredError('handleId', 'Required parameter "handleId" was null or undefined when calling getOperationAsyncStatusAasRepository().');
|
|
635
|
+
}
|
|
636
|
+
const queryParameters = {};
|
|
637
|
+
const headerParameters = {};
|
|
638
|
+
const response = await this.request({
|
|
639
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/operation-status/{handleId}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))).replace(`{${"handleId"}}`, encodeURIComponent(String(requestParameters['handleId']))),
|
|
640
|
+
method: 'GET',
|
|
641
|
+
headers: headerParameters,
|
|
642
|
+
query: queryParameters,
|
|
643
|
+
}, initOverrides);
|
|
644
|
+
return new runtime.JSONApiResponse(response);
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Returns the Operation status of an asynchronous invoked Operation
|
|
648
|
+
*/
|
|
649
|
+
async getOperationAsyncStatusAasRepository(requestParameters, initOverrides) {
|
|
650
|
+
const response = await this.getOperationAsyncStatusAasRepositoryRaw(requestParameters, initOverrides);
|
|
651
|
+
return await response.value();
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Returns the Submodel
|
|
655
|
+
*/
|
|
656
|
+
async getSubmodelByIdAasRepositoryRaw(requestParameters, initOverrides) {
|
|
657
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
658
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelByIdAasRepository().');
|
|
659
|
+
}
|
|
660
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
661
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelByIdAasRepository().');
|
|
662
|
+
}
|
|
663
|
+
const queryParameters = {};
|
|
664
|
+
if (requestParameters['level'] != null) {
|
|
665
|
+
queryParameters['level'] = requestParameters['level'];
|
|
666
|
+
}
|
|
667
|
+
if (requestParameters['extent'] != null) {
|
|
668
|
+
queryParameters['extent'] = requestParameters['extent'];
|
|
669
|
+
}
|
|
670
|
+
const headerParameters = {};
|
|
671
|
+
const response = await this.request({
|
|
672
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
673
|
+
method: 'GET',
|
|
674
|
+
headers: headerParameters,
|
|
675
|
+
query: queryParameters,
|
|
676
|
+
}, initOverrides);
|
|
677
|
+
return new runtime.JSONApiResponse(response);
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* Returns the Submodel
|
|
681
|
+
*/
|
|
682
|
+
async getSubmodelByIdAasRepository(requestParameters, initOverrides) {
|
|
683
|
+
const response = await this.getSubmodelByIdAasRepositoryRaw(requestParameters, initOverrides);
|
|
684
|
+
return await response.value();
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* Returns the Submodel\'s metadata elements
|
|
688
|
+
*/
|
|
689
|
+
async getSubmodelByIdMetadataAasRepositoryRaw(requestParameters, initOverrides) {
|
|
690
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
691
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelByIdMetadataAasRepository().');
|
|
692
|
+
}
|
|
693
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
694
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelByIdMetadataAasRepository().');
|
|
695
|
+
}
|
|
696
|
+
const queryParameters = {};
|
|
697
|
+
const headerParameters = {};
|
|
698
|
+
const response = await this.request({
|
|
699
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
700
|
+
method: 'GET',
|
|
701
|
+
headers: headerParameters,
|
|
702
|
+
query: queryParameters,
|
|
703
|
+
}, initOverrides);
|
|
704
|
+
return new runtime.JSONApiResponse(response);
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Returns the Submodel\'s metadata elements
|
|
708
|
+
*/
|
|
709
|
+
async getSubmodelByIdMetadataAasRepository(requestParameters, initOverrides) {
|
|
710
|
+
const response = await this.getSubmodelByIdMetadataAasRepositoryRaw(requestParameters, initOverrides);
|
|
711
|
+
return await response.value();
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Returns the elements of this submodel in path notation.
|
|
715
|
+
*/
|
|
716
|
+
async getSubmodelByIdPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
717
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
718
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelByIdPathAasRepository().');
|
|
719
|
+
}
|
|
720
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
721
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelByIdPathAasRepository().');
|
|
722
|
+
}
|
|
723
|
+
const queryParameters = {};
|
|
724
|
+
if (requestParameters['level'] != null) {
|
|
725
|
+
queryParameters['level'] = requestParameters['level'];
|
|
726
|
+
}
|
|
727
|
+
const headerParameters = {};
|
|
728
|
+
const response = await this.request({
|
|
729
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$path`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
730
|
+
method: 'GET',
|
|
731
|
+
headers: headerParameters,
|
|
732
|
+
query: queryParameters,
|
|
733
|
+
}, initOverrides);
|
|
734
|
+
return new runtime.JSONApiResponse(response);
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Returns the elements of this submodel in path notation.
|
|
738
|
+
*/
|
|
739
|
+
async getSubmodelByIdPathAasRepository(requestParameters, initOverrides) {
|
|
740
|
+
const response = await this.getSubmodelByIdPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
741
|
+
return await response.value();
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Returns the Submodel as a Reference
|
|
745
|
+
*/
|
|
746
|
+
async getSubmodelByIdReferenceAasRepositoryRaw(requestParameters, initOverrides) {
|
|
747
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
748
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelByIdReferenceAasRepository().');
|
|
749
|
+
}
|
|
750
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
751
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelByIdReferenceAasRepository().');
|
|
752
|
+
}
|
|
753
|
+
const queryParameters = {};
|
|
754
|
+
const headerParameters = {};
|
|
755
|
+
const response = await this.request({
|
|
756
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$reference`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
757
|
+
method: 'GET',
|
|
758
|
+
headers: headerParameters,
|
|
759
|
+
query: queryParameters,
|
|
760
|
+
}, initOverrides);
|
|
761
|
+
return new runtime.JSONApiResponse(response);
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Returns the Submodel as a Reference
|
|
765
|
+
*/
|
|
766
|
+
async getSubmodelByIdReferenceAasRepository(requestParameters, initOverrides) {
|
|
767
|
+
const response = await this.getSubmodelByIdReferenceAasRepositoryRaw(requestParameters, initOverrides);
|
|
768
|
+
return await response.value();
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Returns the Submodel\'s ValueOnly representation
|
|
772
|
+
*/
|
|
773
|
+
async getSubmodelByIdValueOnlyAasRepositoryRaw(requestParameters, initOverrides) {
|
|
774
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
775
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelByIdValueOnlyAasRepository().');
|
|
776
|
+
}
|
|
777
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
778
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelByIdValueOnlyAasRepository().');
|
|
779
|
+
}
|
|
780
|
+
const queryParameters = {};
|
|
781
|
+
if (requestParameters['level'] != null) {
|
|
782
|
+
queryParameters['level'] = requestParameters['level'];
|
|
783
|
+
}
|
|
784
|
+
if (requestParameters['extent'] != null) {
|
|
785
|
+
queryParameters['extent'] = requestParameters['extent'];
|
|
786
|
+
}
|
|
787
|
+
const headerParameters = {};
|
|
788
|
+
const response = await this.request({
|
|
789
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
790
|
+
method: 'GET',
|
|
791
|
+
headers: headerParameters,
|
|
792
|
+
query: queryParameters,
|
|
793
|
+
}, initOverrides);
|
|
794
|
+
return new runtime.JSONApiResponse(response);
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Returns the Submodel\'s ValueOnly representation
|
|
798
|
+
*/
|
|
799
|
+
async getSubmodelByIdValueOnlyAasRepository(requestParameters, initOverrides) {
|
|
800
|
+
const response = await this.getSubmodelByIdValueOnlyAasRepositoryRaw(requestParameters, initOverrides);
|
|
801
|
+
return await response.value();
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Returns a specific submodel element from the Submodel at a specified path
|
|
805
|
+
*/
|
|
806
|
+
async getSubmodelElementByPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
807
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
808
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelElementByPathAasRepository().');
|
|
809
|
+
}
|
|
810
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
811
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelElementByPathAasRepository().');
|
|
812
|
+
}
|
|
813
|
+
if (requestParameters['idShortPath'] == null) {
|
|
814
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getSubmodelElementByPathAasRepository().');
|
|
815
|
+
}
|
|
816
|
+
const queryParameters = {};
|
|
817
|
+
if (requestParameters['level'] != null) {
|
|
818
|
+
queryParameters['level'] = requestParameters['level'];
|
|
819
|
+
}
|
|
820
|
+
if (requestParameters['extent'] != null) {
|
|
821
|
+
queryParameters['extent'] = requestParameters['extent'];
|
|
822
|
+
}
|
|
823
|
+
const headerParameters = {};
|
|
824
|
+
const response = await this.request({
|
|
825
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
826
|
+
method: 'GET',
|
|
827
|
+
headers: headerParameters,
|
|
828
|
+
query: queryParameters,
|
|
829
|
+
}, initOverrides);
|
|
830
|
+
return new runtime.JSONApiResponse(response);
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* Returns a specific submodel element from the Submodel at a specified path
|
|
834
|
+
*/
|
|
835
|
+
async getSubmodelElementByPathAasRepository(requestParameters, initOverrides) {
|
|
836
|
+
const response = await this.getSubmodelElementByPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
837
|
+
return await response.value();
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Returns the metadata attributes if a specific submodel element from the Submodel at a specified path
|
|
841
|
+
*/
|
|
842
|
+
async getSubmodelElementByPathMetadataAasRepositoryRaw(requestParameters, initOverrides) {
|
|
843
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
844
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelElementByPathMetadataAasRepository().');
|
|
845
|
+
}
|
|
846
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
847
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelElementByPathMetadataAasRepository().');
|
|
848
|
+
}
|
|
849
|
+
if (requestParameters['idShortPath'] == null) {
|
|
850
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getSubmodelElementByPathMetadataAasRepository().');
|
|
851
|
+
}
|
|
852
|
+
const queryParameters = {};
|
|
853
|
+
const headerParameters = {};
|
|
854
|
+
const response = await this.request({
|
|
855
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
856
|
+
method: 'GET',
|
|
857
|
+
headers: headerParameters,
|
|
858
|
+
query: queryParameters,
|
|
859
|
+
}, initOverrides);
|
|
860
|
+
return new runtime.JSONApiResponse(response);
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Returns the metadata attributes if a specific submodel element from the Submodel at a specified path
|
|
864
|
+
*/
|
|
865
|
+
async getSubmodelElementByPathMetadataAasRepository(requestParameters, initOverrides) {
|
|
866
|
+
const response = await this.getSubmodelElementByPathMetadataAasRepositoryRaw(requestParameters, initOverrides);
|
|
867
|
+
return await response.value();
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* Returns a specific submodel element from the Submodel at a specified path in the Path notation
|
|
871
|
+
*/
|
|
872
|
+
async getSubmodelElementByPathPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
873
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
874
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelElementByPathPathAasRepository().');
|
|
875
|
+
}
|
|
876
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
877
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelElementByPathPathAasRepository().');
|
|
878
|
+
}
|
|
879
|
+
if (requestParameters['idShortPath'] == null) {
|
|
880
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getSubmodelElementByPathPathAasRepository().');
|
|
881
|
+
}
|
|
882
|
+
const queryParameters = {};
|
|
883
|
+
if (requestParameters['level'] != null) {
|
|
884
|
+
queryParameters['level'] = requestParameters['level'];
|
|
885
|
+
}
|
|
886
|
+
const headerParameters = {};
|
|
887
|
+
const response = await this.request({
|
|
888
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$path`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
889
|
+
method: 'GET',
|
|
890
|
+
headers: headerParameters,
|
|
891
|
+
query: queryParameters,
|
|
892
|
+
}, initOverrides);
|
|
893
|
+
return new runtime.JSONApiResponse(response);
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Returns a specific submodel element from the Submodel at a specified path in the Path notation
|
|
897
|
+
*/
|
|
898
|
+
async getSubmodelElementByPathPathAasRepository(requestParameters, initOverrides) {
|
|
899
|
+
const response = await this.getSubmodelElementByPathPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
900
|
+
return await response.value();
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Returns the Reference of a specific submodel element from the Submodel at a specified path
|
|
904
|
+
*/
|
|
905
|
+
async getSubmodelElementByPathReferenceAasRepositoryRaw(requestParameters, initOverrides) {
|
|
906
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
907
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelElementByPathReferenceAasRepository().');
|
|
908
|
+
}
|
|
909
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
910
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelElementByPathReferenceAasRepository().');
|
|
911
|
+
}
|
|
912
|
+
if (requestParameters['idShortPath'] == null) {
|
|
913
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getSubmodelElementByPathReferenceAasRepository().');
|
|
914
|
+
}
|
|
915
|
+
const queryParameters = {};
|
|
916
|
+
if (requestParameters['level'] != null) {
|
|
917
|
+
queryParameters['level'] = requestParameters['level'];
|
|
918
|
+
}
|
|
919
|
+
const headerParameters = {};
|
|
920
|
+
const response = await this.request({
|
|
921
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$reference`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
922
|
+
method: 'GET',
|
|
923
|
+
headers: headerParameters,
|
|
924
|
+
query: queryParameters,
|
|
925
|
+
}, initOverrides);
|
|
926
|
+
return new runtime.JSONApiResponse(response);
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Returns the Reference of a specific submodel element from the Submodel at a specified path
|
|
930
|
+
*/
|
|
931
|
+
async getSubmodelElementByPathReferenceAasRepository(requestParameters, initOverrides) {
|
|
932
|
+
const response = await this.getSubmodelElementByPathReferenceAasRepositoryRaw(requestParameters, initOverrides);
|
|
933
|
+
return await response.value();
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
|
|
937
|
+
*/
|
|
938
|
+
async getSubmodelElementByPathValueOnlyAasRepositoryRaw(requestParameters, initOverrides) {
|
|
939
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
940
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getSubmodelElementByPathValueOnlyAasRepository().');
|
|
941
|
+
}
|
|
942
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
943
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling getSubmodelElementByPathValueOnlyAasRepository().');
|
|
944
|
+
}
|
|
945
|
+
if (requestParameters['idShortPath'] == null) {
|
|
946
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling getSubmodelElementByPathValueOnlyAasRepository().');
|
|
947
|
+
}
|
|
948
|
+
const queryParameters = {};
|
|
949
|
+
if (requestParameters['level'] != null) {
|
|
950
|
+
queryParameters['level'] = requestParameters['level'];
|
|
951
|
+
}
|
|
952
|
+
if (requestParameters['extent'] != null) {
|
|
953
|
+
queryParameters['extent'] = requestParameters['extent'];
|
|
954
|
+
}
|
|
955
|
+
const headerParameters = {};
|
|
956
|
+
const response = await this.request({
|
|
957
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
958
|
+
method: 'GET',
|
|
959
|
+
headers: headerParameters,
|
|
960
|
+
query: queryParameters,
|
|
961
|
+
}, initOverrides);
|
|
962
|
+
return new runtime.JSONApiResponse(response);
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Returns a specific submodel element from the Submodel at a specified path in the ValueOnly representation
|
|
966
|
+
*/
|
|
967
|
+
async getSubmodelElementByPathValueOnlyAasRepository(requestParameters, initOverrides) {
|
|
968
|
+
const response = await this.getSubmodelElementByPathValueOnlyAasRepositoryRaw(requestParameters, initOverrides);
|
|
969
|
+
return await response.value();
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
*/
|
|
973
|
+
async getThumbnailAasRepositoryRaw(requestParameters, initOverrides) {
|
|
974
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
975
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling getThumbnailAasRepository().');
|
|
976
|
+
}
|
|
977
|
+
const queryParameters = {};
|
|
978
|
+
const headerParameters = {};
|
|
979
|
+
const response = await this.request({
|
|
980
|
+
path: `/shells/{aasIdentifier}/asset-information/thumbnail`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
981
|
+
method: 'GET',
|
|
982
|
+
headers: headerParameters,
|
|
983
|
+
query: queryParameters,
|
|
984
|
+
}, initOverrides);
|
|
985
|
+
return new runtime.BlobApiResponse(response);
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
*/
|
|
989
|
+
async getThumbnailAasRepository(requestParameters, initOverrides) {
|
|
990
|
+
const response = await this.getThumbnailAasRepositoryRaw(requestParameters, initOverrides);
|
|
991
|
+
return await response.value();
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
* Synchronously invokes an Operation at a specified path
|
|
995
|
+
*/
|
|
996
|
+
async invokeOperationAasRepositoryRaw(requestParameters, initOverrides) {
|
|
997
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
998
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling invokeOperationAasRepository().');
|
|
999
|
+
}
|
|
1000
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1001
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling invokeOperationAasRepository().');
|
|
1002
|
+
}
|
|
1003
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1004
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling invokeOperationAasRepository().');
|
|
1005
|
+
}
|
|
1006
|
+
if (requestParameters['operationRequest'] == null) {
|
|
1007
|
+
throw new runtime.RequiredError('operationRequest', 'Required parameter "operationRequest" was null or undefined when calling invokeOperationAasRepository().');
|
|
1008
|
+
}
|
|
1009
|
+
const queryParameters = {};
|
|
1010
|
+
const headerParameters = {};
|
|
1011
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1012
|
+
const response = await this.request({
|
|
1013
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1014
|
+
method: 'POST',
|
|
1015
|
+
headers: headerParameters,
|
|
1016
|
+
query: queryParameters,
|
|
1017
|
+
body: requestParameters['operationRequest'],
|
|
1018
|
+
}, initOverrides);
|
|
1019
|
+
return new runtime.JSONApiResponse(response);
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Synchronously invokes an Operation at a specified path
|
|
1023
|
+
*/
|
|
1024
|
+
async invokeOperationAasRepository(requestParameters, initOverrides) {
|
|
1025
|
+
const response = await this.invokeOperationAasRepositoryRaw(requestParameters, initOverrides);
|
|
1026
|
+
return await response.value();
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Asynchronously invokes an Operation at a specified path
|
|
1030
|
+
*/
|
|
1031
|
+
async invokeOperationAsyncAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1032
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1033
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling invokeOperationAsyncAasRepository().');
|
|
1034
|
+
}
|
|
1035
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1036
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling invokeOperationAsyncAasRepository().');
|
|
1037
|
+
}
|
|
1038
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1039
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling invokeOperationAsyncAasRepository().');
|
|
1040
|
+
}
|
|
1041
|
+
if (requestParameters['operationRequest'] == null) {
|
|
1042
|
+
throw new runtime.RequiredError('operationRequest', 'Required parameter "operationRequest" was null or undefined when calling invokeOperationAsyncAasRepository().');
|
|
1043
|
+
}
|
|
1044
|
+
const queryParameters = {};
|
|
1045
|
+
const headerParameters = {};
|
|
1046
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1047
|
+
const response = await this.request({
|
|
1048
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1049
|
+
method: 'POST',
|
|
1050
|
+
headers: headerParameters,
|
|
1051
|
+
query: queryParameters,
|
|
1052
|
+
body: requestParameters['operationRequest'],
|
|
1053
|
+
}, initOverrides);
|
|
1054
|
+
return new runtime.VoidApiResponse(response);
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* Asynchronously invokes an Operation at a specified path
|
|
1058
|
+
*/
|
|
1059
|
+
async invokeOperationAsyncAasRepository(requestParameters, initOverrides) {
|
|
1060
|
+
await this.invokeOperationAsyncAasRepositoryRaw(requestParameters, initOverrides);
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Asynchronously invokes an Operation at a specified path
|
|
1064
|
+
*/
|
|
1065
|
+
async invokeOperationAsyncValueOnlyAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1066
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1067
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling invokeOperationAsyncValueOnlyAasRepository().');
|
|
1068
|
+
}
|
|
1069
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1070
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling invokeOperationAsyncValueOnlyAasRepository().');
|
|
1071
|
+
}
|
|
1072
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1073
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling invokeOperationAsyncValueOnlyAasRepository().');
|
|
1074
|
+
}
|
|
1075
|
+
if (requestParameters['operationRequestValueOnly'] == null) {
|
|
1076
|
+
throw new runtime.RequiredError('operationRequestValueOnly', 'Required parameter "operationRequestValueOnly" was null or undefined when calling invokeOperationAsyncValueOnlyAasRepository().');
|
|
1077
|
+
}
|
|
1078
|
+
const queryParameters = {};
|
|
1079
|
+
const headerParameters = {};
|
|
1080
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1081
|
+
const response = await this.request({
|
|
1082
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke-async/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1083
|
+
method: 'POST',
|
|
1084
|
+
headers: headerParameters,
|
|
1085
|
+
query: queryParameters,
|
|
1086
|
+
body: requestParameters['operationRequestValueOnly'],
|
|
1087
|
+
}, initOverrides);
|
|
1088
|
+
return new runtime.VoidApiResponse(response);
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* Asynchronously invokes an Operation at a specified path
|
|
1092
|
+
*/
|
|
1093
|
+
async invokeOperationAsyncValueOnlyAasRepository(requestParameters, initOverrides) {
|
|
1094
|
+
await this.invokeOperationAsyncValueOnlyAasRepositoryRaw(requestParameters, initOverrides);
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Synchronously invokes an Operation at a specified path
|
|
1098
|
+
*/
|
|
1099
|
+
async invokeOperationValueOnlyAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1100
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1101
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling invokeOperationValueOnlyAasRepository().');
|
|
1102
|
+
}
|
|
1103
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1104
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling invokeOperationValueOnlyAasRepository().');
|
|
1105
|
+
}
|
|
1106
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1107
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling invokeOperationValueOnlyAasRepository().');
|
|
1108
|
+
}
|
|
1109
|
+
if (requestParameters['operationRequestValueOnly'] == null) {
|
|
1110
|
+
throw new runtime.RequiredError('operationRequestValueOnly', 'Required parameter "operationRequestValueOnly" was null or undefined when calling invokeOperationValueOnlyAasRepository().');
|
|
1111
|
+
}
|
|
1112
|
+
const queryParameters = {};
|
|
1113
|
+
const headerParameters = {};
|
|
1114
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1115
|
+
const response = await this.request({
|
|
1116
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/invoke/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1117
|
+
method: 'POST',
|
|
1118
|
+
headers: headerParameters,
|
|
1119
|
+
query: queryParameters,
|
|
1120
|
+
body: requestParameters['operationRequestValueOnly'],
|
|
1121
|
+
}, initOverrides);
|
|
1122
|
+
return new runtime.JSONApiResponse(response);
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Synchronously invokes an Operation at a specified path
|
|
1126
|
+
*/
|
|
1127
|
+
async invokeOperationValueOnlyAasRepository(requestParameters, initOverrides) {
|
|
1128
|
+
const response = await this.invokeOperationValueOnlyAasRepositoryRaw(requestParameters, initOverrides);
|
|
1129
|
+
return await response.value();
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Updates the Submodel
|
|
1133
|
+
*/
|
|
1134
|
+
async patchSubmodelAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1135
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1136
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling patchSubmodelAasRepository().');
|
|
1137
|
+
}
|
|
1138
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1139
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling patchSubmodelAasRepository().');
|
|
1140
|
+
}
|
|
1141
|
+
if (requestParameters['submodel'] == null) {
|
|
1142
|
+
throw new runtime.RequiredError('submodel', 'Required parameter "submodel" was null or undefined when calling patchSubmodelAasRepository().');
|
|
1143
|
+
}
|
|
1144
|
+
const queryParameters = {};
|
|
1145
|
+
if (requestParameters['level'] != null) {
|
|
1146
|
+
queryParameters['level'] = requestParameters['level'];
|
|
1147
|
+
}
|
|
1148
|
+
const headerParameters = {};
|
|
1149
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1150
|
+
const response = await this.request({
|
|
1151
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
1152
|
+
method: 'PATCH',
|
|
1153
|
+
headers: headerParameters,
|
|
1154
|
+
query: queryParameters,
|
|
1155
|
+
body: requestParameters['submodel'],
|
|
1156
|
+
}, initOverrides);
|
|
1157
|
+
return new runtime.VoidApiResponse(response);
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Updates the Submodel
|
|
1161
|
+
*/
|
|
1162
|
+
async patchSubmodelAasRepository(requestParameters, initOverrides) {
|
|
1163
|
+
await this.patchSubmodelAasRepositoryRaw(requestParameters, initOverrides);
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Updates the metadata attributes of the Submodel
|
|
1167
|
+
*/
|
|
1168
|
+
async patchSubmodelByIdMetadataAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1169
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1170
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling patchSubmodelByIdMetadataAasRepository().');
|
|
1171
|
+
}
|
|
1172
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1173
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling patchSubmodelByIdMetadataAasRepository().');
|
|
1174
|
+
}
|
|
1175
|
+
if (requestParameters['submodelMetadata'] == null) {
|
|
1176
|
+
throw new runtime.RequiredError('submodelMetadata', 'Required parameter "submodelMetadata" was null or undefined when calling patchSubmodelByIdMetadataAasRepository().');
|
|
1177
|
+
}
|
|
1178
|
+
const queryParameters = {};
|
|
1179
|
+
const headerParameters = {};
|
|
1180
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1181
|
+
const response = await this.request({
|
|
1182
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$metadata`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
1183
|
+
method: 'PATCH',
|
|
1184
|
+
headers: headerParameters,
|
|
1185
|
+
query: queryParameters,
|
|
1186
|
+
body: requestParameters['submodelMetadata'],
|
|
1187
|
+
}, initOverrides);
|
|
1188
|
+
return new runtime.VoidApiResponse(response);
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Updates the metadata attributes of the Submodel
|
|
1192
|
+
*/
|
|
1193
|
+
async patchSubmodelByIdMetadataAasRepository(requestParameters, initOverrides) {
|
|
1194
|
+
await this.patchSubmodelByIdMetadataAasRepositoryRaw(requestParameters, initOverrides);
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Updates the values of the Submodel
|
|
1198
|
+
*/
|
|
1199
|
+
async patchSubmodelByIdValueOnlyAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1200
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1201
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling patchSubmodelByIdValueOnlyAasRepository().');
|
|
1202
|
+
}
|
|
1203
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1204
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling patchSubmodelByIdValueOnlyAasRepository().');
|
|
1205
|
+
}
|
|
1206
|
+
if (requestParameters['body'] == null) {
|
|
1207
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling patchSubmodelByIdValueOnlyAasRepository().');
|
|
1208
|
+
}
|
|
1209
|
+
const queryParameters = {};
|
|
1210
|
+
if (requestParameters['level'] != null) {
|
|
1211
|
+
queryParameters['level'] = requestParameters['level'];
|
|
1212
|
+
}
|
|
1213
|
+
const headerParameters = {};
|
|
1214
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1215
|
+
const response = await this.request({
|
|
1216
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
1217
|
+
method: 'PATCH',
|
|
1218
|
+
headers: headerParameters,
|
|
1219
|
+
query: queryParameters,
|
|
1220
|
+
body: requestParameters['body'],
|
|
1221
|
+
}, initOverrides);
|
|
1222
|
+
return new runtime.VoidApiResponse(response);
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Updates the values of the Submodel
|
|
1226
|
+
*/
|
|
1227
|
+
async patchSubmodelByIdValueOnlyAasRepository(requestParameters, initOverrides) {
|
|
1228
|
+
await this.patchSubmodelByIdValueOnlyAasRepositoryRaw(requestParameters, initOverrides);
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Updates an existing submodel element value at a specified path within submodel elements hierarchy
|
|
1232
|
+
*/
|
|
1233
|
+
async patchSubmodelElementValueByPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1234
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1235
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling patchSubmodelElementValueByPathAasRepository().');
|
|
1236
|
+
}
|
|
1237
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1238
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling patchSubmodelElementValueByPathAasRepository().');
|
|
1239
|
+
}
|
|
1240
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1241
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling patchSubmodelElementValueByPathAasRepository().');
|
|
1242
|
+
}
|
|
1243
|
+
if (requestParameters['submodelElement'] == null) {
|
|
1244
|
+
throw new runtime.RequiredError('submodelElement', 'Required parameter "submodelElement" was null or undefined when calling patchSubmodelElementValueByPathAasRepository().');
|
|
1245
|
+
}
|
|
1246
|
+
const queryParameters = {};
|
|
1247
|
+
if (requestParameters['level'] != null) {
|
|
1248
|
+
queryParameters['level'] = requestParameters['level'];
|
|
1249
|
+
}
|
|
1250
|
+
const headerParameters = {};
|
|
1251
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1252
|
+
const response = await this.request({
|
|
1253
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1254
|
+
method: 'PATCH',
|
|
1255
|
+
headers: headerParameters,
|
|
1256
|
+
query: queryParameters,
|
|
1257
|
+
body: requestParameters['submodelElement'],
|
|
1258
|
+
}, initOverrides);
|
|
1259
|
+
return new runtime.VoidApiResponse(response);
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* Updates an existing submodel element value at a specified path within submodel elements hierarchy
|
|
1263
|
+
*/
|
|
1264
|
+
async patchSubmodelElementValueByPathAasRepository(requestParameters, initOverrides) {
|
|
1265
|
+
await this.patchSubmodelElementValueByPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Updates the metadata attributes of an existing submodel element value at a specified path within submodel elements hierarchy
|
|
1269
|
+
*/
|
|
1270
|
+
async patchSubmodelElementValueByPathMetadataRaw(requestParameters, initOverrides) {
|
|
1271
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1272
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling patchSubmodelElementValueByPathMetadata().');
|
|
1273
|
+
}
|
|
1274
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1275
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling patchSubmodelElementValueByPathMetadata().');
|
|
1276
|
+
}
|
|
1277
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1278
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling patchSubmodelElementValueByPathMetadata().');
|
|
1279
|
+
}
|
|
1280
|
+
if (requestParameters['submodelElementMetadata'] == null) {
|
|
1281
|
+
throw new runtime.RequiredError('submodelElementMetadata', 'Required parameter "submodelElementMetadata" was null or undefined when calling patchSubmodelElementValueByPathMetadata().');
|
|
1282
|
+
}
|
|
1283
|
+
const queryParameters = {};
|
|
1284
|
+
const headerParameters = {};
|
|
1285
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1286
|
+
const response = await this.request({
|
|
1287
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$metadata`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1288
|
+
method: 'PATCH',
|
|
1289
|
+
headers: headerParameters,
|
|
1290
|
+
query: queryParameters,
|
|
1291
|
+
body: requestParameters['submodelElementMetadata'],
|
|
1292
|
+
}, initOverrides);
|
|
1293
|
+
return new runtime.VoidApiResponse(response);
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Updates the metadata attributes of an existing submodel element value at a specified path within submodel elements hierarchy
|
|
1297
|
+
*/
|
|
1298
|
+
async patchSubmodelElementValueByPathMetadata(requestParameters, initOverrides) {
|
|
1299
|
+
await this.patchSubmodelElementValueByPathMetadataRaw(requestParameters, initOverrides);
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Updates the value of an existing submodel element value at a specified path within submodel elements hierarchy
|
|
1303
|
+
*/
|
|
1304
|
+
async patchSubmodelElementValueByPathValueOnlyRaw(requestParameters, initOverrides) {
|
|
1305
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1306
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling patchSubmodelElementValueByPathValueOnly().');
|
|
1307
|
+
}
|
|
1308
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1309
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling patchSubmodelElementValueByPathValueOnly().');
|
|
1310
|
+
}
|
|
1311
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1312
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling patchSubmodelElementValueByPathValueOnly().');
|
|
1313
|
+
}
|
|
1314
|
+
if (requestParameters['submodelElementValue'] == null) {
|
|
1315
|
+
throw new runtime.RequiredError('submodelElementValue', 'Required parameter "submodelElementValue" was null or undefined when calling patchSubmodelElementValueByPathValueOnly().');
|
|
1316
|
+
}
|
|
1317
|
+
const queryParameters = {};
|
|
1318
|
+
if (requestParameters['level'] != null) {
|
|
1319
|
+
queryParameters['level'] = requestParameters['level'];
|
|
1320
|
+
}
|
|
1321
|
+
const headerParameters = {};
|
|
1322
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1323
|
+
const response = await this.request({
|
|
1324
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1325
|
+
method: 'PATCH',
|
|
1326
|
+
headers: headerParameters,
|
|
1327
|
+
query: queryParameters,
|
|
1328
|
+
body: requestParameters['submodelElementValue'],
|
|
1329
|
+
}, initOverrides);
|
|
1330
|
+
return new runtime.VoidApiResponse(response);
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Updates the value of an existing submodel element value at a specified path within submodel elements hierarchy
|
|
1334
|
+
*/
|
|
1335
|
+
async patchSubmodelElementValueByPathValueOnly(requestParameters, initOverrides) {
|
|
1336
|
+
await this.patchSubmodelElementValueByPathValueOnlyRaw(requestParameters, initOverrides);
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Creates a new Asset Administration Shell
|
|
1340
|
+
*/
|
|
1341
|
+
async postAssetAdministrationShellRaw(requestParameters, initOverrides) {
|
|
1342
|
+
if (requestParameters['assetAdministrationShell'] == null) {
|
|
1343
|
+
throw new runtime.RequiredError('assetAdministrationShell', 'Required parameter "assetAdministrationShell" was null or undefined when calling postAssetAdministrationShell().');
|
|
1344
|
+
}
|
|
1345
|
+
const queryParameters = {};
|
|
1346
|
+
const headerParameters = {};
|
|
1347
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1348
|
+
const response = await this.request({
|
|
1349
|
+
path: `/shells`,
|
|
1350
|
+
method: 'POST',
|
|
1351
|
+
headers: headerParameters,
|
|
1352
|
+
query: queryParameters,
|
|
1353
|
+
body: requestParameters['assetAdministrationShell'],
|
|
1354
|
+
}, initOverrides);
|
|
1355
|
+
return new runtime.JSONApiResponse(response);
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Creates a new Asset Administration Shell
|
|
1359
|
+
*/
|
|
1360
|
+
async postAssetAdministrationShell(requestParameters, initOverrides) {
|
|
1361
|
+
const response = await this.postAssetAdministrationShellRaw(requestParameters, initOverrides);
|
|
1362
|
+
return await response.value();
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Creates a new submodel element
|
|
1366
|
+
*/
|
|
1367
|
+
async postSubmodelElementAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1368
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1369
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling postSubmodelElementAasRepository().');
|
|
1370
|
+
}
|
|
1371
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1372
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling postSubmodelElementAasRepository().');
|
|
1373
|
+
}
|
|
1374
|
+
if (requestParameters['submodelElement'] == null) {
|
|
1375
|
+
throw new runtime.RequiredError('submodelElement', 'Required parameter "submodelElement" was null or undefined when calling postSubmodelElementAasRepository().');
|
|
1376
|
+
}
|
|
1377
|
+
const queryParameters = {};
|
|
1378
|
+
const headerParameters = {};
|
|
1379
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1380
|
+
const response = await this.request({
|
|
1381
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
1382
|
+
method: 'POST',
|
|
1383
|
+
headers: headerParameters,
|
|
1384
|
+
query: queryParameters,
|
|
1385
|
+
body: requestParameters['submodelElement'],
|
|
1386
|
+
}, initOverrides);
|
|
1387
|
+
return new runtime.JSONApiResponse(response);
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Creates a new submodel element
|
|
1391
|
+
*/
|
|
1392
|
+
async postSubmodelElementAasRepository(requestParameters, initOverrides) {
|
|
1393
|
+
const response = await this.postSubmodelElementAasRepositoryRaw(requestParameters, initOverrides);
|
|
1394
|
+
return await response.value();
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Creates a new submodel element at a specified path within submodel elements hierarchy
|
|
1398
|
+
*/
|
|
1399
|
+
async postSubmodelElementByPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1400
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1401
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling postSubmodelElementByPathAasRepository().');
|
|
1402
|
+
}
|
|
1403
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1404
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling postSubmodelElementByPathAasRepository().');
|
|
1405
|
+
}
|
|
1406
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1407
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling postSubmodelElementByPathAasRepository().');
|
|
1408
|
+
}
|
|
1409
|
+
if (requestParameters['submodelElement'] == null) {
|
|
1410
|
+
throw new runtime.RequiredError('submodelElement', 'Required parameter "submodelElement" was null or undefined when calling postSubmodelElementByPathAasRepository().');
|
|
1411
|
+
}
|
|
1412
|
+
const queryParameters = {};
|
|
1413
|
+
const headerParameters = {};
|
|
1414
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1415
|
+
const response = await this.request({
|
|
1416
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1417
|
+
method: 'POST',
|
|
1418
|
+
headers: headerParameters,
|
|
1419
|
+
query: queryParameters,
|
|
1420
|
+
body: requestParameters['submodelElement'],
|
|
1421
|
+
}, initOverrides);
|
|
1422
|
+
return new runtime.JSONApiResponse(response);
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
* Creates a new submodel element at a specified path within submodel elements hierarchy
|
|
1426
|
+
*/
|
|
1427
|
+
async postSubmodelElementByPathAasRepository(requestParameters, initOverrides) {
|
|
1428
|
+
const response = await this.postSubmodelElementByPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
1429
|
+
return await response.value();
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* Creates a submodel reference at the Asset Administration Shell
|
|
1433
|
+
*/
|
|
1434
|
+
async postSubmodelReferenceAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1435
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1436
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling postSubmodelReferenceAasRepository().');
|
|
1437
|
+
}
|
|
1438
|
+
if (requestParameters['reference'] == null) {
|
|
1439
|
+
throw new runtime.RequiredError('reference', 'Required parameter "reference" was null or undefined when calling postSubmodelReferenceAasRepository().');
|
|
1440
|
+
}
|
|
1441
|
+
const queryParameters = {};
|
|
1442
|
+
const headerParameters = {};
|
|
1443
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1444
|
+
const response = await this.request({
|
|
1445
|
+
path: `/shells/{aasIdentifier}/submodel-refs`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
1446
|
+
method: 'POST',
|
|
1447
|
+
headers: headerParameters,
|
|
1448
|
+
query: queryParameters,
|
|
1449
|
+
body: requestParameters['reference'],
|
|
1450
|
+
}, initOverrides);
|
|
1451
|
+
return new runtime.JSONApiResponse(response);
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Creates a submodel reference at the Asset Administration Shell
|
|
1455
|
+
*/
|
|
1456
|
+
async postSubmodelReferenceAasRepository(requestParameters, initOverrides) {
|
|
1457
|
+
const response = await this.postSubmodelReferenceAasRepositoryRaw(requestParameters, initOverrides);
|
|
1458
|
+
return await response.value();
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Creates or updates an existing Asset Administration Shell
|
|
1462
|
+
*/
|
|
1463
|
+
async putAssetAdministrationShellByIdRaw(requestParameters, initOverrides) {
|
|
1464
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1465
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling putAssetAdministrationShellById().');
|
|
1466
|
+
}
|
|
1467
|
+
if (requestParameters['assetAdministrationShell'] == null) {
|
|
1468
|
+
throw new runtime.RequiredError('assetAdministrationShell', 'Required parameter "assetAdministrationShell" was null or undefined when calling putAssetAdministrationShellById().');
|
|
1469
|
+
}
|
|
1470
|
+
const queryParameters = {};
|
|
1471
|
+
const headerParameters = {};
|
|
1472
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1473
|
+
const response = await this.request({
|
|
1474
|
+
path: `/shells/{aasIdentifier}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
1475
|
+
method: 'PUT',
|
|
1476
|
+
headers: headerParameters,
|
|
1477
|
+
query: queryParameters,
|
|
1478
|
+
body: requestParameters['assetAdministrationShell'],
|
|
1479
|
+
}, initOverrides);
|
|
1480
|
+
return new runtime.JSONApiResponse(response);
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Creates or updates an existing Asset Administration Shell
|
|
1484
|
+
*/
|
|
1485
|
+
async putAssetAdministrationShellById(requestParameters, initOverrides) {
|
|
1486
|
+
const response = await this.putAssetAdministrationShellByIdRaw(requestParameters, initOverrides);
|
|
1487
|
+
switch (response.raw.status) {
|
|
1488
|
+
case 201:
|
|
1489
|
+
return await response.value();
|
|
1490
|
+
case 204:
|
|
1491
|
+
return null;
|
|
1492
|
+
default:
|
|
1493
|
+
return await response.value();
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Updates the Asset Information
|
|
1498
|
+
*/
|
|
1499
|
+
async putAssetInformationAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1500
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1501
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling putAssetInformationAasRepository().');
|
|
1502
|
+
}
|
|
1503
|
+
if (requestParameters['assetInformation'] == null) {
|
|
1504
|
+
throw new runtime.RequiredError('assetInformation', 'Required parameter "assetInformation" was null or undefined when calling putAssetInformationAasRepository().');
|
|
1505
|
+
}
|
|
1506
|
+
const queryParameters = {};
|
|
1507
|
+
const headerParameters = {};
|
|
1508
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1509
|
+
const response = await this.request({
|
|
1510
|
+
path: `/shells/{aasIdentifier}/asset-information`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
1511
|
+
method: 'PUT',
|
|
1512
|
+
headers: headerParameters,
|
|
1513
|
+
query: queryParameters,
|
|
1514
|
+
body: requestParameters['assetInformation'],
|
|
1515
|
+
}, initOverrides);
|
|
1516
|
+
return new runtime.VoidApiResponse(response);
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Updates the Asset Information
|
|
1520
|
+
*/
|
|
1521
|
+
async putAssetInformationAasRepository(requestParameters, initOverrides) {
|
|
1522
|
+
await this.putAssetInformationAasRepositoryRaw(requestParameters, initOverrides);
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
|
|
1526
|
+
*/
|
|
1527
|
+
async putFileByPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1528
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1529
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling putFileByPathAasRepository().');
|
|
1530
|
+
}
|
|
1531
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1532
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling putFileByPathAasRepository().');
|
|
1533
|
+
}
|
|
1534
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1535
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling putFileByPathAasRepository().');
|
|
1536
|
+
}
|
|
1537
|
+
const queryParameters = {};
|
|
1538
|
+
const headerParameters = {};
|
|
1539
|
+
const consumes = [
|
|
1540
|
+
{ contentType: 'multipart/form-data' },
|
|
1541
|
+
];
|
|
1542
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1543
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1544
|
+
let formParams;
|
|
1545
|
+
let useForm = false;
|
|
1546
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1547
|
+
useForm = canConsumeForm;
|
|
1548
|
+
if (useForm) {
|
|
1549
|
+
formParams = new FormData();
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
formParams = new URLSearchParams();
|
|
1553
|
+
}
|
|
1554
|
+
if (requestParameters['fileName'] != null) {
|
|
1555
|
+
formParams.append('fileName', requestParameters['fileName']);
|
|
1556
|
+
}
|
|
1557
|
+
if (requestParameters['file'] != null) {
|
|
1558
|
+
formParams.append('file', requestParameters['file']);
|
|
1559
|
+
}
|
|
1560
|
+
const response = await this.request({
|
|
1561
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/attachment`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1562
|
+
method: 'PUT',
|
|
1563
|
+
headers: headerParameters,
|
|
1564
|
+
query: queryParameters,
|
|
1565
|
+
body: formParams,
|
|
1566
|
+
}, initOverrides);
|
|
1567
|
+
return new runtime.VoidApiResponse(response);
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Uploads file content to an existing submodel element at a specified path within submodel elements hierarchy
|
|
1571
|
+
*/
|
|
1572
|
+
async putFileByPathAasRepository(requestParameters, initOverrides) {
|
|
1573
|
+
await this.putFileByPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* Creates or updates the Submodel
|
|
1577
|
+
*/
|
|
1578
|
+
async putSubmodelByIdAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1579
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1580
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling putSubmodelByIdAasRepository().');
|
|
1581
|
+
}
|
|
1582
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1583
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling putSubmodelByIdAasRepository().');
|
|
1584
|
+
}
|
|
1585
|
+
if (requestParameters['submodel'] == null) {
|
|
1586
|
+
throw new runtime.RequiredError('submodel', 'Required parameter "submodel" was null or undefined when calling putSubmodelByIdAasRepository().');
|
|
1587
|
+
}
|
|
1588
|
+
const queryParameters = {};
|
|
1589
|
+
const headerParameters = {};
|
|
1590
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1591
|
+
const response = await this.request({
|
|
1592
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))),
|
|
1593
|
+
method: 'PUT',
|
|
1594
|
+
headers: headerParameters,
|
|
1595
|
+
query: queryParameters,
|
|
1596
|
+
body: requestParameters['submodel'],
|
|
1597
|
+
}, initOverrides);
|
|
1598
|
+
return new runtime.JSONApiResponse(response);
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* Creates or updates the Submodel
|
|
1602
|
+
*/
|
|
1603
|
+
async putSubmodelByIdAasRepository(requestParameters, initOverrides) {
|
|
1604
|
+
const response = await this.putSubmodelByIdAasRepositoryRaw(requestParameters, initOverrides);
|
|
1605
|
+
switch (response.raw.status) {
|
|
1606
|
+
case 201:
|
|
1607
|
+
return await response.value();
|
|
1608
|
+
case 204:
|
|
1609
|
+
return null;
|
|
1610
|
+
default:
|
|
1611
|
+
return await response.value();
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* Creates or updates an existing submodel element at a specified path within submodel elements hierarchy
|
|
1616
|
+
*/
|
|
1617
|
+
async putSubmodelElementByPathAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1618
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1619
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling putSubmodelElementByPathAasRepository().');
|
|
1620
|
+
}
|
|
1621
|
+
if (requestParameters['submodelIdentifier'] == null) {
|
|
1622
|
+
throw new runtime.RequiredError('submodelIdentifier', 'Required parameter "submodelIdentifier" was null or undefined when calling putSubmodelElementByPathAasRepository().');
|
|
1623
|
+
}
|
|
1624
|
+
if (requestParameters['idShortPath'] == null) {
|
|
1625
|
+
throw new runtime.RequiredError('idShortPath', 'Required parameter "idShortPath" was null or undefined when calling putSubmodelElementByPathAasRepository().');
|
|
1626
|
+
}
|
|
1627
|
+
if (requestParameters['submodelElement'] == null) {
|
|
1628
|
+
throw new runtime.RequiredError('submodelElement', 'Required parameter "submodelElement" was null or undefined when calling putSubmodelElementByPathAasRepository().');
|
|
1629
|
+
}
|
|
1630
|
+
const queryParameters = {};
|
|
1631
|
+
const headerParameters = {};
|
|
1632
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1633
|
+
const response = await this.request({
|
|
1634
|
+
path: `/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))).replace(`{${"submodelIdentifier"}}`, encodeURIComponent(String(requestParameters['submodelIdentifier']))).replace(`{${"idShortPath"}}`, encodeURIComponent(String(requestParameters['idShortPath']))),
|
|
1635
|
+
method: 'PUT',
|
|
1636
|
+
headers: headerParameters,
|
|
1637
|
+
query: queryParameters,
|
|
1638
|
+
body: requestParameters['submodelElement'],
|
|
1639
|
+
}, initOverrides);
|
|
1640
|
+
return new runtime.JSONApiResponse(response);
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* Creates or updates an existing submodel element at a specified path within submodel elements hierarchy
|
|
1644
|
+
*/
|
|
1645
|
+
async putSubmodelElementByPathAasRepository(requestParameters, initOverrides) {
|
|
1646
|
+
const response = await this.putSubmodelElementByPathAasRepositoryRaw(requestParameters, initOverrides);
|
|
1647
|
+
switch (response.raw.status) {
|
|
1648
|
+
case 201:
|
|
1649
|
+
return await response.value();
|
|
1650
|
+
case 204:
|
|
1651
|
+
return null;
|
|
1652
|
+
default:
|
|
1653
|
+
return await response.value();
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1657
|
+
*/
|
|
1658
|
+
async putThumbnailAasRepositoryRaw(requestParameters, initOverrides) {
|
|
1659
|
+
if (requestParameters['aasIdentifier'] == null) {
|
|
1660
|
+
throw new runtime.RequiredError('aasIdentifier', 'Required parameter "aasIdentifier" was null or undefined when calling putThumbnailAasRepository().');
|
|
1661
|
+
}
|
|
1662
|
+
const queryParameters = {};
|
|
1663
|
+
const headerParameters = {};
|
|
1664
|
+
const consumes = [
|
|
1665
|
+
{ contentType: 'multipart/form-data' },
|
|
1666
|
+
];
|
|
1667
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1668
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1669
|
+
let formParams;
|
|
1670
|
+
let useForm = false;
|
|
1671
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1672
|
+
useForm = canConsumeForm;
|
|
1673
|
+
if (useForm) {
|
|
1674
|
+
formParams = new FormData();
|
|
1675
|
+
}
|
|
1676
|
+
else {
|
|
1677
|
+
formParams = new URLSearchParams();
|
|
1678
|
+
}
|
|
1679
|
+
if (requestParameters['fileName'] != null) {
|
|
1680
|
+
formParams.append('fileName', requestParameters['fileName']);
|
|
1681
|
+
}
|
|
1682
|
+
if (requestParameters['file'] != null) {
|
|
1683
|
+
formParams.append('file', requestParameters['file']);
|
|
1684
|
+
}
|
|
1685
|
+
const response = await this.request({
|
|
1686
|
+
path: `/shells/{aasIdentifier}/asset-information/thumbnail`.replace(`{${"aasIdentifier"}}`, encodeURIComponent(String(requestParameters['aasIdentifier']))),
|
|
1687
|
+
method: 'PUT',
|
|
1688
|
+
headers: headerParameters,
|
|
1689
|
+
query: queryParameters,
|
|
1690
|
+
body: formParams,
|
|
1691
|
+
}, initOverrides);
|
|
1692
|
+
return new runtime.VoidApiResponse(response);
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
*/
|
|
1696
|
+
async putThumbnailAasRepository(requestParameters, initOverrides) {
|
|
1697
|
+
await this.putThumbnailAasRepositoryRaw(requestParameters, initOverrides);
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* @export
|
|
1702
|
+
*/
|
|
1703
|
+
export const GetAllSubmodelElementsAasRepositoryLevelEnum = {
|
|
1704
|
+
Deep: 'deep',
|
|
1705
|
+
Core: 'core'
|
|
1706
|
+
};
|
|
1707
|
+
/**
|
|
1708
|
+
* @export
|
|
1709
|
+
*/
|
|
1710
|
+
export const GetAllSubmodelElementsAasRepositoryExtentEnum = {
|
|
1711
|
+
WithBlobValue: 'withBlobValue',
|
|
1712
|
+
WithoutBlobValue: 'withoutBlobValue'
|
|
1713
|
+
};
|
|
1714
|
+
/**
|
|
1715
|
+
* @export
|
|
1716
|
+
*/
|
|
1717
|
+
export const GetAllSubmodelElementsPathAasRepositoryLevelEnum = {
|
|
1718
|
+
Deep: 'deep',
|
|
1719
|
+
Core: 'core'
|
|
1720
|
+
};
|
|
1721
|
+
/**
|
|
1722
|
+
* @export
|
|
1723
|
+
*/
|
|
1724
|
+
export const GetAllSubmodelElementsPathAasRepositoryExtentEnum = {
|
|
1725
|
+
WithBlobValue: 'withBlobValue',
|
|
1726
|
+
WithoutBlobValue: 'withoutBlobValue'
|
|
1727
|
+
};
|
|
1728
|
+
/**
|
|
1729
|
+
* @export
|
|
1730
|
+
*/
|
|
1731
|
+
export const GetAllSubmodelElementsReferenceAasRepositoryLevelEnum = {
|
|
1732
|
+
Core: 'core'
|
|
1733
|
+
};
|
|
1734
|
+
/**
|
|
1735
|
+
* @export
|
|
1736
|
+
*/
|
|
1737
|
+
export const GetAllSubmodelElementsValueOnlyAasRepositoryLevelEnum = {
|
|
1738
|
+
Deep: 'deep',
|
|
1739
|
+
Core: 'core'
|
|
1740
|
+
};
|
|
1741
|
+
/**
|
|
1742
|
+
* @export
|
|
1743
|
+
*/
|
|
1744
|
+
export const GetSubmodelByIdAasRepositoryLevelEnum = {
|
|
1745
|
+
Deep: 'deep',
|
|
1746
|
+
Core: 'core'
|
|
1747
|
+
};
|
|
1748
|
+
/**
|
|
1749
|
+
* @export
|
|
1750
|
+
*/
|
|
1751
|
+
export const GetSubmodelByIdAasRepositoryExtentEnum = {
|
|
1752
|
+
WithBlobValue: 'withBlobValue',
|
|
1753
|
+
WithoutBlobValue: 'withoutBlobValue'
|
|
1754
|
+
};
|
|
1755
|
+
/**
|
|
1756
|
+
* @export
|
|
1757
|
+
*/
|
|
1758
|
+
export const GetSubmodelByIdPathAasRepositoryLevelEnum = {
|
|
1759
|
+
Deep: 'deep',
|
|
1760
|
+
Core: 'core'
|
|
1761
|
+
};
|
|
1762
|
+
/**
|
|
1763
|
+
* @export
|
|
1764
|
+
*/
|
|
1765
|
+
export const GetSubmodelByIdValueOnlyAasRepositoryLevelEnum = {
|
|
1766
|
+
Deep: 'deep',
|
|
1767
|
+
Core: 'core'
|
|
1768
|
+
};
|
|
1769
|
+
/**
|
|
1770
|
+
* @export
|
|
1771
|
+
*/
|
|
1772
|
+
export const GetSubmodelByIdValueOnlyAasRepositoryExtentEnum = {
|
|
1773
|
+
WithBlobValue: 'withBlobValue',
|
|
1774
|
+
WithoutBlobValue: 'withoutBlobValue'
|
|
1775
|
+
};
|
|
1776
|
+
/**
|
|
1777
|
+
* @export
|
|
1778
|
+
*/
|
|
1779
|
+
export const GetSubmodelElementByPathAasRepositoryLevelEnum = {
|
|
1780
|
+
Deep: 'deep',
|
|
1781
|
+
Core: 'core'
|
|
1782
|
+
};
|
|
1783
|
+
/**
|
|
1784
|
+
* @export
|
|
1785
|
+
*/
|
|
1786
|
+
export const GetSubmodelElementByPathAasRepositoryExtentEnum = {
|
|
1787
|
+
WithBlobValue: 'withBlobValue',
|
|
1788
|
+
WithoutBlobValue: 'withoutBlobValue'
|
|
1789
|
+
};
|
|
1790
|
+
/**
|
|
1791
|
+
* @export
|
|
1792
|
+
*/
|
|
1793
|
+
export const GetSubmodelElementByPathPathAasRepositoryLevelEnum = {
|
|
1794
|
+
Deep: 'deep',
|
|
1795
|
+
Core: 'core'
|
|
1796
|
+
};
|
|
1797
|
+
/**
|
|
1798
|
+
* @export
|
|
1799
|
+
*/
|
|
1800
|
+
export const GetSubmodelElementByPathReferenceAasRepositoryLevelEnum = {
|
|
1801
|
+
Core: 'core'
|
|
1802
|
+
};
|
|
1803
|
+
/**
|
|
1804
|
+
* @export
|
|
1805
|
+
*/
|
|
1806
|
+
export const GetSubmodelElementByPathValueOnlyAasRepositoryLevelEnum = {
|
|
1807
|
+
Deep: 'deep',
|
|
1808
|
+
Core: 'core'
|
|
1809
|
+
};
|
|
1810
|
+
/**
|
|
1811
|
+
* @export
|
|
1812
|
+
*/
|
|
1813
|
+
export const GetSubmodelElementByPathValueOnlyAasRepositoryExtentEnum = {
|
|
1814
|
+
WithBlobValue: 'withBlobValue',
|
|
1815
|
+
WithoutBlobValue: 'withoutBlobValue'
|
|
1816
|
+
};
|
|
1817
|
+
/**
|
|
1818
|
+
* @export
|
|
1819
|
+
*/
|
|
1820
|
+
export const PatchSubmodelAasRepositoryLevelEnum = {
|
|
1821
|
+
Core: 'core'
|
|
1822
|
+
};
|
|
1823
|
+
/**
|
|
1824
|
+
* @export
|
|
1825
|
+
*/
|
|
1826
|
+
export const PatchSubmodelByIdValueOnlyAasRepositoryLevelEnum = {
|
|
1827
|
+
Core: 'core'
|
|
1828
|
+
};
|
|
1829
|
+
/**
|
|
1830
|
+
* @export
|
|
1831
|
+
*/
|
|
1832
|
+
export const PatchSubmodelElementValueByPathAasRepositoryLevelEnum = {
|
|
1833
|
+
Deep: 'deep',
|
|
1834
|
+
Core: 'core'
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* @export
|
|
1838
|
+
*/
|
|
1839
|
+
export const PatchSubmodelElementValueByPathValueOnlyLevelEnum = {
|
|
1840
|
+
Deep: 'deep',
|
|
1841
|
+
Core: 'core'
|
|
1842
|
+
};
|