Skip to content

Commit fc993db

Browse files
feat(api): api update (#2628)
1 parent 0ee3262 commit fc993db

File tree

2 files changed

+128
-2
lines changed

2 files changed

+128
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1707
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6690c50d5affaf510fc2bb7cedb420fad62fc0cbb7cde943acb9ca6e4c7f3708.yml
3-
openapi_spec_hash: 7573c64f5eef1e13ac6dd448052558b0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0826102c9e6382e5e6da960fefc7111e68e28c398a708833b956d0339a41baf3.yml
3+
openapi_spec_hash: a1f7dc378403051b188eeedd78e32503
44
config_hash: e30b863eac83985d5919f958f3cd8993

src/resources/magic-transit/connectors/snapshots.ts

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ export interface SnapshotGetResponse {
171171
*/
172172
cpu_time_user_ms?: number;
173173

174+
dhcp_leases?: Array<SnapshotGetResponse.DHCPLease>;
175+
174176
disks?: Array<SnapshotGetResponse.Disk>;
175177

176178
/**
@@ -184,6 +186,8 @@ export interface SnapshotGetResponse {
184186
*/
185187
ha_value?: number;
186188

189+
interfaces?: Array<SnapshotGetResponse.Interface>;
190+
187191
/**
188192
* Percentage of time over a 10 second window that all tasks were stalled
189193
*/
@@ -882,6 +886,8 @@ export interface SnapshotGetResponse {
882886

883887
thermals?: Array<SnapshotGetResponse.Thermal>;
884888

889+
tunnels?: Array<SnapshotGetResponse.Tunnel>;
890+
885891
/**
886892
* Sum of how much time each core has spent idle
887893
*/
@@ -894,6 +900,46 @@ export interface SnapshotGetResponse {
894900
}
895901

896902
export namespace SnapshotGetResponse {
903+
/**
904+
* Snapshot DHCP lease
905+
*/
906+
export interface DHCPLease {
907+
/**
908+
* Client ID of the device the IP Address was leased to
909+
*/
910+
client_id: string;
911+
912+
/**
913+
* Expiry time of the DHCP lease (seconds since the Unix epoch)
914+
*/
915+
expiry_time: number;
916+
917+
/**
918+
* Hostname of the device the IP Address was leased to
919+
*/
920+
hostname: string;
921+
922+
/**
923+
* Name of the network interface
924+
*/
925+
interface_name: string;
926+
927+
/**
928+
* IP Address that was leased
929+
*/
930+
ip_address: string;
931+
932+
/**
933+
* MAC Address of the device the IP Address was leased to
934+
*/
935+
mac_address: string;
936+
937+
/**
938+
* Connector identifier
939+
*/
940+
connector_id?: string;
941+
}
942+
897943
/**
898944
* Snapshot Disk
899945
*/
@@ -1004,6 +1050,55 @@ export namespace SnapshotGetResponse {
10041050
time_flushing_ms?: number;
10051051
}
10061052

1053+
/**
1054+
* Snapshot Interface
1055+
*/
1056+
export interface Interface {
1057+
/**
1058+
* Name of the network interface
1059+
*/
1060+
name: string;
1061+
1062+
/**
1063+
* UP/DOWN state of the network interface
1064+
*/
1065+
operstate: string;
1066+
1067+
/**
1068+
* Connector identifier
1069+
*/
1070+
connector_id?: string;
1071+
1072+
ip_addresses?: Array<Interface.IPAddress>;
1073+
1074+
/**
1075+
* Speed of the network interface (bits per second)
1076+
*/
1077+
speed?: number;
1078+
}
1079+
1080+
export namespace Interface {
1081+
/**
1082+
* Snapshot Interface Address
1083+
*/
1084+
export interface IPAddress {
1085+
/**
1086+
* Name of the network interface
1087+
*/
1088+
interface_name: string;
1089+
1090+
/**
1091+
* IP address of the network interface
1092+
*/
1093+
ip_address: string;
1094+
1095+
/**
1096+
* Connector identifier
1097+
*/
1098+
connector_id?: string;
1099+
}
1100+
}
1101+
10071102
/**
10081103
* Snapshot Mount
10091104
*/
@@ -1178,6 +1273,37 @@ export namespace SnapshotGetResponse {
11781273
*/
11791274
max_celcius?: number;
11801275
}
1276+
1277+
/**
1278+
* Snapshot Tunnels
1279+
*/
1280+
export interface Tunnel {
1281+
/**
1282+
* Name of tunnel health state (unknown, healthy, degraded, down)
1283+
*/
1284+
health_state: string;
1285+
1286+
/**
1287+
* Numeric value associated with tunnel state (0 = unknown, 1 = healthy, 2 =
1288+
* degraded, 3 = down)
1289+
*/
1290+
health_value: number;
1291+
1292+
/**
1293+
* The tunnel interface name (i.e. xfrm1, xfrm3.99, etc.)
1294+
*/
1295+
interface_name: string;
1296+
1297+
/**
1298+
* Tunnel identifier
1299+
*/
1300+
tunnel_id: string;
1301+
1302+
/**
1303+
* Connector identifier
1304+
*/
1305+
connector_id?: string;
1306+
}
11811307
}
11821308

11831309
export interface SnapshotListParams {

0 commit comments

Comments
 (0)