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 ”}” ;
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Segment(
value):Segment
Defined in: packages/aip/src/resourcename/segment.ts:17
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Segment
Properties
Section titled “Properties”
readonlyvalue:string
Defined in: packages/aip/src/resourcename/segment.ts:17
Methods
Section titled “Methods”isVariable()
Section titled “isVariable()”isVariable():
boolean
Defined in: packages/aip/src/resourcename/segment.ts:22
IsVariable reports whether the segment is a variable segment.
Returns
Section titled “Returns”boolean
isWildcard()
Section titled “isWildcard()”isWildcard():
boolean
Defined in: packages/aip/src/resourcename/segment.ts:42
IsWildcard reports whether the segment is a wildcard.
Returns
Section titled “Returns”boolean
literal()
Section titled “literal()”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.