getDeviceSession function
Future<GetDeviceSessionResult>
getDeviceSession(
- GetDeviceSessionArgs args, {
- InvokeOptions? options,
GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.
args Arguments passed to this invoke. Arguments for getDeviceSession.
options Invoke options controlling this call.
Implementation
Future<GetDeviceSessionResult> getDeviceSession(
GetDeviceSessionArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'google-native:testing/v1:getDeviceSession',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetDeviceSessionResult.fromMap(result);
}