Record Class DeviceRegistrationRequest
java.lang.Object
java.lang.Record
com.cloudforge.core.manager.agent.DeviceRegistrationRequest
- Record Components:
displayName- client-supplied, human-chosen ("Phillip's MacBook") — shown as-is in the admin Devices view, never validated against the actual device.platform- which client is registering.
Body of
POST /api/v1/settings/devices — the one request every CloudForge Agent client
(cloudforge-studio/desktop/terminal) sends to register itself. Requires an already-authenticated
browser-equivalent session (whatever login the paired Manager instance runs — local password or
Cognito), same as issuing a personal access token; this is what turns that one-time login into a
durable, independently-revocable device credential. See this module's manager-devices OpenAPI
spec for the wire contract every non-JVM client builds against — this record is
cloudforge-manager's own implementation of that same contract, not a second source of truth.-
Constructor Summary
ConstructorsConstructorDescriptionDeviceRegistrationRequest(String displayName, AgentPlatform platform) Creates an instance of aDeviceRegistrationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.platform()Returns the value of theplatformrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeviceRegistrationRequest
Creates an instance of aDeviceRegistrationRequestrecord class.- Parameters:
displayName- the value for thedisplayNamerecord componentplatform- the value for theplatformrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
platform
-