@leavepulse/control-sdk 0.3.32 → 0.3.33
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/models.ts +4 -0
- package/package.json +1 -1
- package/resources/ControlDcimDevice.ts +11 -0
- package/types.ts +72 -0
package/models.ts
CHANGED
|
@@ -13,6 +13,10 @@ export type AffectedDeviceDTO = components["schemas"]["AffectedDeviceDTO"];
|
|
|
13
13
|
export type AgentReleaseDTO = components["schemas"]["AgentReleaseDTO"];
|
|
14
14
|
export type AlertDTO = components["schemas"]["AlertDTO"];
|
|
15
15
|
export type AlertListResponse = components["schemas"]["AlertListResponse"];
|
|
16
|
+
export type ApplyDeviceTypeRequest =
|
|
17
|
+
components["schemas"]["ApplyDeviceTypeRequest"];
|
|
18
|
+
export type ApplyDeviceTypeResultDTO =
|
|
19
|
+
components["schemas"]["ApplyDeviceTypeResultDTO"];
|
|
16
20
|
export type CableDTO = components["schemas"]["CableDTO"];
|
|
17
21
|
export type CableListResponse = components["schemas"]["CableListResponse"];
|
|
18
22
|
export type CableTerminalDTO = components["schemas"]["CableTerminalDTO"];
|
package/package.json
CHANGED
|
@@ -68,4 +68,15 @@ export class ControlDcimDevice extends Resource<Data> {
|
|
|
68
68
|
body,
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
/** control.dcim.devices.apply_type */
|
|
73
|
+
async dcimDevicesApplyType(
|
|
74
|
+
body: models.ApplyDeviceTypeRequest,
|
|
75
|
+
): Promise<models.ApplyDeviceTypeResultDTO> {
|
|
76
|
+
return this.ctx.transport.request<models.ApplyDeviceTypeResultDTO>({
|
|
77
|
+
method: "POST",
|
|
78
|
+
path: `/v1/control/dcim/devices/${this.id}/device-type`,
|
|
79
|
+
body,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
71
82
|
}
|
package/types.ts
CHANGED
|
@@ -652,6 +652,23 @@ export interface paths {
|
|
|
652
652
|
patch: operations["control.dcim.devices.update"];
|
|
653
653
|
trace?: never;
|
|
654
654
|
};
|
|
655
|
+
"/v1/control/dcim/devices/{device_id}/device-type": {
|
|
656
|
+
parameters: {
|
|
657
|
+
query?: never;
|
|
658
|
+
header?: never;
|
|
659
|
+
path?: never;
|
|
660
|
+
cookie?: never;
|
|
661
|
+
};
|
|
662
|
+
get?: never;
|
|
663
|
+
put?: never;
|
|
664
|
+
/** ApplyDeviceType */
|
|
665
|
+
post: operations["control.dcim.devices.apply_type"];
|
|
666
|
+
delete?: never;
|
|
667
|
+
options?: never;
|
|
668
|
+
head?: never;
|
|
669
|
+
patch?: never;
|
|
670
|
+
trace?: never;
|
|
671
|
+
};
|
|
655
672
|
"/v1/control/dcim/locations": {
|
|
656
673
|
parameters: {
|
|
657
674
|
query?: never;
|
|
@@ -1573,6 +1590,15 @@ export interface components {
|
|
|
1573
1590
|
items: components["schemas"]["AlertDTO"][];
|
|
1574
1591
|
unacknowledged: number;
|
|
1575
1592
|
};
|
|
1593
|
+
/** ApplyDeviceTypeRequest */
|
|
1594
|
+
ApplyDeviceTypeRequest: {
|
|
1595
|
+
device_type_id: string;
|
|
1596
|
+
};
|
|
1597
|
+
/** ApplyDeviceTypeResultDTO */
|
|
1598
|
+
ApplyDeviceTypeResultDTO: {
|
|
1599
|
+
device: components["schemas"]["DeviceDTO"];
|
|
1600
|
+
ports_added: number;
|
|
1601
|
+
};
|
|
1576
1602
|
/** CableDTO */
|
|
1577
1603
|
CableDTO: {
|
|
1578
1604
|
asset_tag: string;
|
|
@@ -1948,6 +1974,8 @@ export interface components {
|
|
|
1948
1974
|
asset_tag: string;
|
|
1949
1975
|
confidence: string;
|
|
1950
1976
|
custodian?: components["schemas"]["OwnerDTO"] | null;
|
|
1977
|
+
/** @default */
|
|
1978
|
+
device_type_id: string;
|
|
1951
1979
|
host_ref: string;
|
|
1952
1980
|
id: string;
|
|
1953
1981
|
kind: string;
|
|
@@ -5292,6 +5320,50 @@ export interface operations {
|
|
|
5292
5320
|
};
|
|
5293
5321
|
};
|
|
5294
5322
|
};
|
|
5323
|
+
"control.dcim.devices.apply_type": {
|
|
5324
|
+
parameters: {
|
|
5325
|
+
query?: never;
|
|
5326
|
+
header?: never;
|
|
5327
|
+
path: {
|
|
5328
|
+
device_id: string;
|
|
5329
|
+
};
|
|
5330
|
+
cookie?: never;
|
|
5331
|
+
};
|
|
5332
|
+
requestBody: {
|
|
5333
|
+
content: {
|
|
5334
|
+
"application/json": components["schemas"]["ApplyDeviceTypeRequest"];
|
|
5335
|
+
};
|
|
5336
|
+
};
|
|
5337
|
+
responses: {
|
|
5338
|
+
/** @description Document created, URL follows */
|
|
5339
|
+
201: {
|
|
5340
|
+
headers: {
|
|
5341
|
+
[name: string]: unknown;
|
|
5342
|
+
};
|
|
5343
|
+
content: {
|
|
5344
|
+
"application/json": components["schemas"]["ApplyDeviceTypeResultDTO"];
|
|
5345
|
+
};
|
|
5346
|
+
};
|
|
5347
|
+
/** @description Bad request syntax or unsupported method */
|
|
5348
|
+
400: {
|
|
5349
|
+
headers: {
|
|
5350
|
+
[name: string]: unknown;
|
|
5351
|
+
};
|
|
5352
|
+
content: {
|
|
5353
|
+
"application/json": {
|
|
5354
|
+
detail: string;
|
|
5355
|
+
extra?:
|
|
5356
|
+
| null
|
|
5357
|
+
| {
|
|
5358
|
+
[key: string]: unknown;
|
|
5359
|
+
}
|
|
5360
|
+
| unknown[];
|
|
5361
|
+
status_code: number;
|
|
5362
|
+
};
|
|
5363
|
+
};
|
|
5364
|
+
};
|
|
5365
|
+
};
|
|
5366
|
+
};
|
|
5295
5367
|
"control.dcim.locations.list": {
|
|
5296
5368
|
parameters: {
|
|
5297
5369
|
query?: never;
|