Skip to content

Segment

Defined in: packages/aip/src/resourcename/segment.ts:16

Segment is a segment of a resource name or a resource name pattern.

EBNF

Segment = Literal | Variable ; Variable = ”{” Literal ”}” ;

new Segment(value): Segment

Defined in: packages/aip/src/resourcename/segment.ts:17

string

Segment

readonly value: string

Defined in: packages/aip/src/resourcename/segment.ts:17

isVariable(): boolean

Defined in: packages/aip/src/resourcename/segment.ts:22

IsVariable reports whether the segment is a variable segment.

boolean


isWildcard(): boolean

Defined in: packages/aip/src/resourcename/segment.ts:42

IsWildcard reports whether the segment is a wildcard.

boolean


literal(): Literal

Defined in: packages/aip/src/resourcename/segment.ts:32

Literal returns the literal value of the segment. For variables, the literal value is the name of the variable.

Literal