@leavepulse/control-sdk 0.3.54 → 0.3.55

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/client.ts CHANGED
@@ -14,6 +14,7 @@ import { ControlDcimAcceptance } from "./resources/ControlDcimAcceptance";
14
14
  import { ControlDcimCable } from "./resources/ControlDcimCable";
15
15
  import { ControlDcimComponent } from "./resources/ControlDcimComponent";
16
16
  import { ControlDcimComponentType } from "./resources/ControlDcimComponentType";
17
+ import { ControlDcimConnectorType } from "./resources/ControlDcimConnectorType";
17
18
  import { ControlDcimDevice } from "./resources/ControlDcimDevice";
18
19
  import { ControlDcimDeviceType } from "./resources/ControlDcimDeviceType";
19
20
  import { ControlDcimFeed } from "./resources/ControlDcimFeed";
@@ -23,6 +24,9 @@ import { ControlDcimOutlet } from "./resources/ControlDcimOutlet";
23
24
  import { ControlDcimPdu } from "./resources/ControlDcimPdu";
24
25
  import { ControlDcimPhoto } from "./resources/ControlDcimPhoto";
25
26
  import { ControlDcimPort } from "./resources/ControlDcimPort";
27
+ import { ControlDcimPowerConnection } from "./resources/ControlDcimPowerConnection";
28
+ import { ControlDcimPowerGroup } from "./resources/ControlDcimPowerGroup";
29
+ import { ControlDcimPowerInterface } from "./resources/ControlDcimPowerInterface";
26
30
  import { ControlDcimPowerLink } from "./resources/ControlDcimPowerLink";
27
31
  import { ControlDcimRack } from "./resources/ControlDcimRack";
28
32
  import { ControlDcimStorageNode } from "./resources/ControlDcimStorageNode";
@@ -142,6 +146,24 @@ export class LeavePulse {
142
146
  ) as ControlDcimComponentType;
143
147
  }
144
148
 
149
+ controldcimconnectortype(
150
+ connectorTypeId: string,
151
+ matesWithId: string,
152
+ ): ControlDcimConnectorType {
153
+ return this.ctx.cache.ensure(
154
+ "ControlDcimConnectorType",
155
+ matesWithId,
156
+ () =>
157
+ new ControlDcimConnectorType(
158
+ {
159
+ connector_type_id: connectorTypeId,
160
+ mates_with_id: matesWithId,
161
+ } as never,
162
+ this.ctx,
163
+ ),
164
+ ) as ControlDcimConnectorType;
165
+ }
166
+
145
167
  controldcimdevice(id: string): ControlDcimDevice {
146
168
  return this.ctx.cache.ensure(
147
169
  "ControlDcimDevice",
@@ -214,6 +236,30 @@ export class LeavePulse {
214
236
  ) as ControlDcimPort;
215
237
  }
216
238
 
239
+ controldcimpowerconnection(id: string): ControlDcimPowerConnection {
240
+ return this.ctx.cache.ensure(
241
+ "ControlDcimPowerConnection",
242
+ id,
243
+ () => new ControlDcimPowerConnection({ id } as never, this.ctx),
244
+ ) as ControlDcimPowerConnection;
245
+ }
246
+
247
+ controldcimpowergroup(id: string): ControlDcimPowerGroup {
248
+ return this.ctx.cache.ensure(
249
+ "ControlDcimPowerGroup",
250
+ id,
251
+ () => new ControlDcimPowerGroup({ id } as never, this.ctx),
252
+ ) as ControlDcimPowerGroup;
253
+ }
254
+
255
+ controldcimpowerinterface(id: string): ControlDcimPowerInterface {
256
+ return this.ctx.cache.ensure(
257
+ "ControlDcimPowerInterface",
258
+ id,
259
+ () => new ControlDcimPowerInterface({ id } as never, this.ctx),
260
+ ) as ControlDcimPowerInterface;
261
+ }
262
+
217
263
  controldcimpowerlink(id: string): ControlDcimPowerLink {
218
264
  return this.ctx.cache.ensure(
219
265
  "ControlDcimPowerLink",
@@ -335,6 +381,8 @@ export class LeavePulse {
335
381
  new ControlDcimComponent(d as never, this.ctx),
336
382
  ControlDcimComponentType: (d) =>
337
383
  new ControlDcimComponentType(d as never, this.ctx),
384
+ ControlDcimConnectorType: (d) =>
385
+ new ControlDcimConnectorType(d as never, this.ctx),
338
386
  ControlDcimDevice: (d) => new ControlDcimDevice(d as never, this.ctx),
339
387
  ControlDcimDeviceType: (d) =>
340
388
  new ControlDcimDeviceType(d as never, this.ctx),
@@ -346,6 +394,12 @@ export class LeavePulse {
346
394
  ControlDcimPdu: (d) => new ControlDcimPdu(d as never, this.ctx),
347
395
  ControlDcimPhoto: (d) => new ControlDcimPhoto(d as never, this.ctx),
348
396
  ControlDcimPort: (d) => new ControlDcimPort(d as never, this.ctx),
397
+ ControlDcimPowerConnection: (d) =>
398
+ new ControlDcimPowerConnection(d as never, this.ctx),
399
+ ControlDcimPowerGroup: (d) =>
400
+ new ControlDcimPowerGroup(d as never, this.ctx),
401
+ ControlDcimPowerInterface: (d) =>
402
+ new ControlDcimPowerInterface(d as never, this.ctx),
349
403
  ControlDcimPowerLink: (d) =>
350
404
  new ControlDcimPowerLink(d as never, this.ctx),
351
405
  ControlDcimRack: (d) => new ControlDcimRack(d as never, this.ctx),
package/index.ts CHANGED
@@ -10,6 +10,7 @@ export { ControlDcimAcceptance } from "./resources/ControlDcimAcceptance";
10
10
  export { ControlDcimCable } from "./resources/ControlDcimCable";
11
11
  export { ControlDcimComponent } from "./resources/ControlDcimComponent";
12
12
  export { ControlDcimComponentType } from "./resources/ControlDcimComponentType";
13
+ export { ControlDcimConnectorType } from "./resources/ControlDcimConnectorType";
13
14
  export { ControlDcimDevice } from "./resources/ControlDcimDevice";
14
15
  export { ControlDcimDeviceType } from "./resources/ControlDcimDeviceType";
15
16
  export { ControlDcimFeed } from "./resources/ControlDcimFeed";
@@ -19,6 +20,9 @@ export { ControlDcimOutlet } from "./resources/ControlDcimOutlet";
19
20
  export { ControlDcimPdu } from "./resources/ControlDcimPdu";
20
21
  export { ControlDcimPhoto } from "./resources/ControlDcimPhoto";
21
22
  export { ControlDcimPort } from "./resources/ControlDcimPort";
23
+ export { ControlDcimPowerConnection } from "./resources/ControlDcimPowerConnection";
24
+ export { ControlDcimPowerGroup } from "./resources/ControlDcimPowerGroup";
25
+ export { ControlDcimPowerInterface } from "./resources/ControlDcimPowerInterface";
22
26
  export { ControlDcimPowerLink } from "./resources/ControlDcimPowerLink";
23
27
  export { ControlDcimRack } from "./resources/ControlDcimRack";
24
28
  export { ControlDcimStorageNode } from "./resources/ControlDcimStorageNode";
package/models.ts CHANGED
@@ -36,7 +36,14 @@ export type ComponentTypeListResponse =
36
36
  components["schemas"]["ComponentTypeListResponse"];
37
37
  export type ComposePreviewDTO = components["schemas"]["ComposePreviewDTO"];
38
38
  export type ConfigFileDTO = components["schemas"]["ConfigFileDTO"];
39
+ export type ConnectPowerInterfaceRequest =
40
+ components["schemas"]["ConnectPowerInterfaceRequest"];
39
41
  export type ConnectPowerRequest = components["schemas"]["ConnectPowerRequest"];
42
+ export type ConnectPowerResponse =
43
+ components["schemas"]["ConnectPowerResponse"];
44
+ export type ConnectorTypeDTO = components["schemas"]["ConnectorTypeDTO"];
45
+ export type ConnectorTypeListResponse =
46
+ components["schemas"]["ConnectorTypeListResponse"];
40
47
  export type ContainerActionRequest =
41
48
  components["schemas"]["ContainerActionRequest"];
42
49
  export type ContainerActionResponse =
@@ -84,6 +91,8 @@ export type DeviceTypeListResponse =
84
91
  components["schemas"]["DeviceTypeListResponse"];
85
92
  export type DeviceTypePortDTO = components["schemas"]["DeviceTypePortDTO"];
86
93
  export type DeviceTypePortInput = components["schemas"]["DeviceTypePortInput"];
94
+ export type DisconnectPowerRequest =
95
+ components["schemas"]["DisconnectPowerRequest"];
87
96
  export type DiskCategory = components["schemas"]["DiskCategory"];
88
97
  export type DiskUsageDTO = components["schemas"]["DiskUsageDTO"];
89
98
  export type DisputeAcceptanceRequest =
@@ -163,7 +172,20 @@ export type PortConflict = components["schemas"]["PortConflict"];
163
172
  export type PortDTO = components["schemas"]["PortDTO"];
164
173
  export type PortListResponse = components["schemas"]["PortListResponse"];
165
174
  export type PortSpec = components["schemas"]["PortSpec"];
175
+ export type PowerCompatibilityResponse =
176
+ components["schemas"]["PowerCompatibilityResponse"];
177
+ export type PowerConnectionDTO = components["schemas"]["PowerConnectionDTO"];
178
+ export type PowerConnectionListResponse =
179
+ components["schemas"]["PowerConnectionListResponse"];
180
+ export type PowerFindingDTO = components["schemas"]["PowerFindingDTO"];
181
+ export type PowerGroupDTO = components["schemas"]["PowerGroupDTO"];
182
+ export type PowerGroupListResponse =
183
+ components["schemas"]["PowerGroupListResponse"];
166
184
  export type PowerImpactDTO = components["schemas"]["PowerImpactDTO"];
185
+ export type PowerInterfaceDTO = components["schemas"]["PowerInterfaceDTO"];
186
+ export type PowerInterfaceInput = components["schemas"]["PowerInterfaceInput"];
187
+ export type PowerInterfaceListResponse =
188
+ components["schemas"]["PowerInterfaceListResponse"];
167
189
  export type PowerLinkDTO = components["schemas"]["PowerLinkDTO"];
168
190
  export type PowerSourceDTO = components["schemas"]["PowerSourceDTO"];
169
191
  export type PowerSourcesDTO = components["schemas"]["PowerSourcesDTO"];
@@ -179,6 +201,8 @@ export type RuleListResponse = components["schemas"]["RuleListResponse"];
179
201
  export type ScheduleDTO = components["schemas"]["ScheduleDTO"];
180
202
  export type ScheduleListResponse =
181
203
  components["schemas"]["ScheduleListResponse"];
204
+ export type SeedConnectorTypesResponse =
205
+ components["schemas"]["SeedConnectorTypesResponse"];
182
206
  export type SeriesDTO = components["schemas"]["SeriesDTO"];
183
207
  export type ServiceDefDTO = components["schemas"]["ServiceDefDTO"];
184
208
  export type ServiceEdgeDTO = components["schemas"]["ServiceEdgeDTO"];
@@ -189,12 +213,16 @@ export type SetAcceptanceItemsRequest =
189
213
  components["schemas"]["SetAcceptanceItemsRequest"];
190
214
  export type SetCanvasViewRequest =
191
215
  components["schemas"]["SetCanvasViewRequest"];
216
+ export type SetConnectorMatingRequest =
217
+ components["schemas"]["SetConnectorMatingRequest"];
192
218
  export type SetDeviceTypePortsRequest =
193
219
  components["schemas"]["SetDeviceTypePortsRequest"];
194
220
  export type SetEnvVarRequest = components["schemas"]["SetEnvVarRequest"];
195
221
  export type SetHostEndpointRequest =
196
222
  components["schemas"]["SetHostEndpointRequest"];
197
223
  export type SetPositionRequest = components["schemas"]["SetPositionRequest"];
224
+ export type SetPowerInterfacesRequest =
225
+ components["schemas"]["SetPowerInterfacesRequest"];
198
226
  export type SetRoleRequest = components["schemas"]["SetRoleRequest"];
199
227
  export type SignAcceptanceRequest =
200
228
  components["schemas"]["SignAcceptanceRequest"];
@@ -231,6 +259,8 @@ export type UploadImageRequest = components["schemas"]["UploadImageRequest"];
231
259
  export type UploadImageResponse = components["schemas"]["UploadImageResponse"];
232
260
  export type UpsertComponentTypeRequest =
233
261
  components["schemas"]["UpsertComponentTypeRequest"];
262
+ export type UpsertConnectorTypeRequest =
263
+ components["schemas"]["UpsertConnectorTypeRequest"];
234
264
  export type UpsertDeviceTypeRequest =
235
265
  components["schemas"]["UpsertDeviceTypeRequest"];
236
266
  export type UpsertDnsRecordRequest =
@@ -241,6 +271,10 @@ export type UpsertEnvGroupRequest =
241
271
  export type UpsertManufacturerRequest =
242
272
  components["schemas"]["UpsertManufacturerRequest"];
243
273
  export type UpsertNodeRequest = components["schemas"]["UpsertNodeRequest"];
274
+ export type UpsertPowerGroupRequest =
275
+ components["schemas"]["UpsertPowerGroupRequest"];
276
+ export type UpsertPowerInterfaceRequest =
277
+ components["schemas"]["UpsertPowerInterfaceRequest"];
244
278
  export type UpsertProjectRequest =
245
279
  components["schemas"]["UpsertProjectRequest"];
246
280
  export type UpsertServiceRequest =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/control-sdk",
3
- "version": "0.3.54",
3
+ "version": "0.3.55",
4
4
  "description": "Generated resource SDK (@leavepulse/control-sdk).",
5
5
  "type": "module",
6
6
  "module": "index.ts",
@@ -0,0 +1,90 @@
1
+ // Generated from the LeavePulse contract. Do not edit.
2
+ import { Resource } from "../runtime/resource";
3
+ import { fetchCachedOrThrow } from "../runtime/etag-store";
4
+ import type * as models from "../models";
5
+ import type { ClientContext } from "../client";
6
+
7
+ type Data = { id: string | number } & Record<string, unknown> & {
8
+ connector_type_id?: string | number;
9
+ };
10
+
11
+ export class ControlDcimConnectorType extends Resource<Data> {
12
+ constructor(
13
+ data: Data,
14
+ private readonly ctx: ClientContext,
15
+ ) {
16
+ super(data);
17
+ }
18
+
19
+ /** control.dcim.catalog.connectors.list */
20
+ async controlDcimCatalogConnectorsList(params?: {
21
+ family?: string;
22
+ search?: string;
23
+ limit?: number;
24
+ }): Promise<models.ConnectorTypeListResponse> {
25
+ return fetchCachedOrThrow<models.ConnectorTypeListResponse>(
26
+ this.ctx.transport,
27
+ this.ctx.etagStore,
28
+ {
29
+ method: "GET",
30
+ path: `/v1/control/dcim/catalog/connectors`,
31
+ query: {
32
+ family: params?.family,
33
+ search: params?.search,
34
+ limit: params?.limit,
35
+ },
36
+ },
37
+ );
38
+ }
39
+
40
+ /** control.dcim.catalog.connectors.upsert */
41
+ async dcimCatalogConnectorsUpsert(
42
+ body: models.UpsertConnectorTypeRequest,
43
+ ): Promise<models.ConnectorTypeDTO> {
44
+ return this.ctx.transport.request<models.ConnectorTypeDTO>({
45
+ method: "POST",
46
+ path: `/v1/control/dcim/catalog/connectors`,
47
+ body,
48
+ });
49
+ }
50
+
51
+ /** control.dcim.catalog.connectors.seed */
52
+ async dcimCatalogConnectorsSeed(): Promise<models.SeedConnectorTypesResponse> {
53
+ return this.ctx.transport.request<models.SeedConnectorTypesResponse>({
54
+ method: "POST",
55
+ path: `/v1/control/dcim/catalog/connectors/seed`,
56
+ });
57
+ }
58
+
59
+ /** control.dcim.catalog.connectors.delete */
60
+ async dcimCatalogConnectorsDelete(
61
+ connectorTypeId: string,
62
+ ): Promise<models.DeleteResultDTO> {
63
+ return this.ctx.transport.request<models.DeleteResultDTO>({
64
+ method: "DELETE",
65
+ path: `/v1/control/dcim/catalog/connectors/${connectorTypeId}`,
66
+ });
67
+ }
68
+
69
+ /** control.dcim.catalog.connectors.mate */
70
+ async dcimCatalogConnectorsMate(
71
+ connectorTypeId: string,
72
+ body: models.SetConnectorMatingRequest,
73
+ ): Promise<models.ConnectorTypeDTO> {
74
+ return this.ctx.transport.request<models.ConnectorTypeDTO>({
75
+ method: "POST",
76
+ path: `/v1/control/dcim/catalog/connectors/${connectorTypeId}/mates`,
77
+ body,
78
+ });
79
+ }
80
+
81
+ /** control.dcim.catalog.connectors.unmate */
82
+ async dcimCatalogConnectorsUnmate(
83
+ connectorTypeId: string,
84
+ ): Promise<models.DeleteResultDTO> {
85
+ return this.ctx.transport.request<models.DeleteResultDTO>({
86
+ method: "DELETE",
87
+ path: `/v1/control/dcim/catalog/connectors/${connectorTypeId}/mates/${this.id}`,
88
+ });
89
+ }
90
+ }
@@ -0,0 +1,84 @@
1
+ // Generated from the LeavePulse contract. Do not edit.
2
+ import { Resource } from "../runtime/resource";
3
+ import { fetchCachedOrThrow } from "../runtime/etag-store";
4
+ import type * as models from "../models";
5
+ import type { ClientContext } from "../client";
6
+
7
+ type Data = { id: string | number } & Record<string, unknown>;
8
+
9
+ export class ControlDcimPowerConnection extends Resource<Data> {
10
+ constructor(
11
+ data: Data,
12
+ private readonly ctx: ClientContext,
13
+ ) {
14
+ super(data);
15
+ }
16
+
17
+ /** control.dcim.powerConnections.check */
18
+ async controlDcimPowerConnectionsCheck(params?: {
19
+ sourceInterfaceId?: string;
20
+ targetInterfaceId?: string;
21
+ }): Promise<models.PowerCompatibilityResponse> {
22
+ return fetchCachedOrThrow<models.PowerCompatibilityResponse>(
23
+ this.ctx.transport,
24
+ this.ctx.etagStore,
25
+ {
26
+ method: "GET",
27
+ path: `/v1/control/dcim/power-interfaces/check`,
28
+ query: {
29
+ source_interface_id: params?.sourceInterfaceId,
30
+ target_interface_id: params?.targetInterfaceId,
31
+ },
32
+ },
33
+ );
34
+ }
35
+
36
+ /** control.dcim.powerConnections.list */
37
+ async controlDcimPowerConnectionsList(params?: {
38
+ interfaceId?: string;
39
+ ownerKind?: string;
40
+ ownerId?: string;
41
+ cableAssetId?: string;
42
+ includeHistory?: boolean;
43
+ limit?: number;
44
+ }): Promise<models.PowerConnectionListResponse> {
45
+ return fetchCachedOrThrow<models.PowerConnectionListResponse>(
46
+ this.ctx.transport,
47
+ this.ctx.etagStore,
48
+ {
49
+ method: "GET",
50
+ path: `/v1/control/dcim/power-interfaces/connections`,
51
+ query: {
52
+ interface_id: params?.interfaceId,
53
+ owner_kind: params?.ownerKind,
54
+ owner_id: params?.ownerId,
55
+ cable_asset_id: params?.cableAssetId,
56
+ include_history: params?.includeHistory,
57
+ limit: params?.limit,
58
+ },
59
+ },
60
+ );
61
+ }
62
+
63
+ /** control.dcim.powerConnections.connect */
64
+ async dcimPowerConnectionsConnect(
65
+ body: models.ConnectPowerInterfaceRequest,
66
+ ): Promise<models.ConnectPowerResponse> {
67
+ return this.ctx.transport.request<models.ConnectPowerResponse>({
68
+ method: "POST",
69
+ path: `/v1/control/dcim/power-interfaces/connections`,
70
+ body,
71
+ });
72
+ }
73
+
74
+ /** control.dcim.powerConnections.disconnect */
75
+ async dcimPowerConnectionsDisconnect(
76
+ body: models.DisconnectPowerRequest,
77
+ ): Promise<models.PowerConnectionDTO> {
78
+ return this.ctx.transport.request<models.PowerConnectionDTO>({
79
+ method: "POST",
80
+ path: `/v1/control/dcim/power-interfaces/connections/${this.id}/disconnect`,
81
+ body,
82
+ });
83
+ }
84
+ }
@@ -0,0 +1,51 @@
1
+ // Generated from the LeavePulse contract. Do not edit.
2
+ import { Resource } from "../runtime/resource";
3
+ import { fetchCachedOrThrow } from "../runtime/etag-store";
4
+ import type * as models from "../models";
5
+ import type { ClientContext } from "../client";
6
+
7
+ type Data = { id: string | number } & Record<string, unknown>;
8
+
9
+ export class ControlDcimPowerGroup extends Resource<Data> {
10
+ constructor(
11
+ data: Data,
12
+ private readonly ctx: ClientContext,
13
+ ) {
14
+ super(data);
15
+ }
16
+
17
+ /** control.dcim.powerGroups.list */
18
+ async controlDcimPowerGroupsList(params?: {
19
+ ownerKind?: string;
20
+ ownerId?: string;
21
+ }): Promise<models.PowerGroupListResponse> {
22
+ return fetchCachedOrThrow<models.PowerGroupListResponse>(
23
+ this.ctx.transport,
24
+ this.ctx.etagStore,
25
+ {
26
+ method: "GET",
27
+ path: `/v1/control/dcim/power-interfaces/groups`,
28
+ query: { owner_kind: params?.ownerKind, owner_id: params?.ownerId },
29
+ },
30
+ );
31
+ }
32
+
33
+ /** control.dcim.powerGroups.upsert */
34
+ async dcimPowerGroupsUpsert(
35
+ body: models.UpsertPowerGroupRequest,
36
+ ): Promise<models.PowerGroupDTO> {
37
+ return this.ctx.transport.request<models.PowerGroupDTO>({
38
+ method: "POST",
39
+ path: `/v1/control/dcim/power-interfaces/groups`,
40
+ body,
41
+ });
42
+ }
43
+
44
+ /** control.dcim.powerGroups.delete */
45
+ async dcimPowerGroupsDelete(): Promise<models.DeleteResultDTO> {
46
+ return this.ctx.transport.request<models.DeleteResultDTO>({
47
+ method: "DELETE",
48
+ path: `/v1/control/dcim/power-interfaces/groups/${this.id}`,
49
+ });
50
+ }
51
+ }
@@ -0,0 +1,67 @@
1
+ // Generated from the LeavePulse contract. Do not edit.
2
+ import { Resource } from "../runtime/resource";
3
+ import { fetchCachedOrThrow } from "../runtime/etag-store";
4
+ import type * as models from "../models";
5
+ import type { ClientContext } from "../client";
6
+
7
+ type Data = { id: string | number } & Record<string, unknown>;
8
+
9
+ export class ControlDcimPowerInterface extends Resource<Data> {
10
+ constructor(
11
+ data: Data,
12
+ private readonly ctx: ClientContext,
13
+ ) {
14
+ super(data);
15
+ }
16
+
17
+ /** control.dcim.powerInterfaces.list */
18
+ async controlDcimPowerInterfacesList(params?: {
19
+ ownerKind?: string;
20
+ ownerId?: string;
21
+ direction?: string;
22
+ }): Promise<models.PowerInterfaceListResponse> {
23
+ return fetchCachedOrThrow<models.PowerInterfaceListResponse>(
24
+ this.ctx.transport,
25
+ this.ctx.etagStore,
26
+ {
27
+ method: "GET",
28
+ path: `/v1/control/dcim/power-interfaces`,
29
+ query: {
30
+ owner_kind: params?.ownerKind,
31
+ owner_id: params?.ownerId,
32
+ direction: params?.direction,
33
+ },
34
+ },
35
+ );
36
+ }
37
+
38
+ /** control.dcim.powerInterfaces.upsert */
39
+ async dcimPowerInterfacesUpsert(
40
+ body: models.UpsertPowerInterfaceRequest,
41
+ ): Promise<models.PowerInterfaceDTO> {
42
+ return this.ctx.transport.request<models.PowerInterfaceDTO>({
43
+ method: "POST",
44
+ path: `/v1/control/dcim/power-interfaces`,
45
+ body,
46
+ });
47
+ }
48
+
49
+ /** control.dcim.powerInterfaces.set */
50
+ async dcimPowerInterfacesSet(
51
+ body: models.SetPowerInterfacesRequest,
52
+ ): Promise<models.PowerInterfaceListResponse> {
53
+ return this.ctx.transport.request<models.PowerInterfaceListResponse>({
54
+ method: "POST",
55
+ path: `/v1/control/dcim/power-interfaces/set`,
56
+ body,
57
+ });
58
+ }
59
+
60
+ /** control.dcim.powerInterfaces.delete */
61
+ async dcimPowerInterfacesDelete(): Promise<models.DeleteResultDTO> {
62
+ return this.ctx.transport.request<models.DeleteResultDTO>({
63
+ method: "DELETE",
64
+ path: `/v1/control/dcim/power-interfaces/${this.id}`,
65
+ });
66
+ }
67
+ }