Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages_generated/interlink/src/v1beta1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export type {
Partner,
PartnerHost,
Pop,
Range,
RoutingPolicy,
SelfHost,
SetRoutingPolicyRequest,
Expand Down
15 changes: 15 additions & 0 deletions packages_generated/interlink/src/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,27 @@ import type {
Partner,
PartnerHost,
Pop,
Range,
RoutingPolicy,
SelfHost,
SetRoutingPolicyRequest,
UpdateLinkRequest,
UpdateRoutingPolicyRequest,
} from './types.gen.js'

const unmarshalRange = (data: unknown): Range => {
if (!isJSONObject(data)) {
throw new TypeError(
`Unmarshalling the type 'Range' failed as data isn't a dictionary.`,
)
}

return {
end: data.end,
start: data.start,
} as Range
}

export const unmarshalDedicatedConnection = (
data: unknown,
): DedicatedConnection => {
Expand All @@ -54,6 +68,7 @@ export const unmarshalDedicatedConnection = (
status: data.status,
tags: data.tags,
updatedAt: unmarshalDate(data.updated_at),
vlanRange: data.vlan_range ? unmarshalRange(data.vlan_range) : undefined,
} as DedicatedConnection
}

Expand Down
9 changes: 9 additions & 0 deletions packages_generated/interlink/src/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ export interface BgpConfig {
ipv6: string
}

export interface Range {
start: number
end: number
}

export interface PartnerHost {
/**
* ID of the partner facilitating the link.
Expand Down Expand Up @@ -146,6 +151,10 @@ export interface DedicatedConnection {
* Demarcation details required by the data center to set up the supporting Cross Connect. This generally includes the physical space in the facility, the cabinet or rack the connection should land in, the patch panel to go in, the port designation, and the media type.
*/
demarcationInfo?: string
/**
* Range in which to pick vlan for self-hosted links on this dedicated connection. Both start & end are included. Any range defined here must be itself included in the greater allowed range of vlans from 1500 to 3899 (this range is hardware dependent and can change over time, but actual range will be enforced).
*/
vlanRange?: Range
/**
* Region of the dedicated connection.
*/
Expand Down
Loading