Literal
Defined in: packages/aip/src/resourcename/segment.ts:55
Literal is the literal part of a resource name segment.
EBNF
Literal = RESOURCE_ID | RevisionLiteral ; RevisionLiteral = RESOURCE_ID ”@” REVISION_ID ;
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Literal(
value):Literal
Defined in: packages/aip/src/resourcename/segment.ts:56
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Literal
Properties
Section titled “Properties”
readonlyvalue:string
Defined in: packages/aip/src/resourcename/segment.ts:56
Methods
Section titled “Methods”hasRevision()
Section titled “hasRevision()”hasRevision():
boolean
Defined in: packages/aip/src/resourcename/segment.ts:83
HasRevision returns true if the literal has a valid revision.
Returns
Section titled “Returns”boolean
resourceId()
Section titled “resourceId()”resourceId():
string
Defined in: packages/aip/src/resourcename/segment.ts:61
ResourceID returns the literal’s resource ID.
Returns
Section titled “Returns”string
revisionId()
Section titled “revisionId()”revisionId():
string
Defined in: packages/aip/src/resourcename/segment.ts:72
RevisionID returns the literal’s revision ID.
Returns
Section titled “Returns”string