ViamAuthorization class Viam SDK

Constructors

ViamAuthorization({String authorizationType = 'role', required AuthorizationId authorizationId, required ResourceType resourceType, required String resourceId, String identityId = '', required String organizationId, required IdentityType identityType})

Properties

authorizationId ↔ AuthorizationId
The authorization itself, either AuthorizationId.organizationOwner or AuthorizationId.organizationOperator
getter/setter pair
authorizationType ↔ String
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
identityId ↔ String
The id of the identity the authorization is granted to: should be a user id or api key id. Should be empty when granting access to a new user.
getter/setter pair
identityType ↔ IdentityType
The type of identity that the authorization is granted to.
getter/setter pair
organizationId ↔ String
The id of the Organization that the resource belongs to
getter/setter pair
resourceId ↔ String
The id of the resource the authorization is granted on: should be an Organization id, Location id, or Robot id
getter/setter pair
resourceType ↔ ResourceType
The resource type that the authorization is granted on.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
toProto → Authorization
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited