Subtype class Viam SDK

Subtype defines a triplet of strings that correspond to a resource's specific API definition.

Constructors

Subtype(String namespace, String resourceType, String resourceSubtype)
const
Subtype.fromResourceName(ResourceName name)
Create a new Subtype from a ResourceName

Properties

hashCode → int
The hash code for this object.
no setteroverride
namespace → String
The namespace of the subtype
final
resourceSubtype → String
The resource subtype (e.g. arm, sensor, camera)
final
resourceType → String
The resource type (e.g. component, service)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getResourceName(String name) → ResourceName
Get a ResourceName from this Subtype and a provided name
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(covariant Subtype other) → bool
The equality operator.
override