Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.testing/v1.getDeviceSession
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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.
Using getDeviceSession
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDeviceSession(args: GetDeviceSessionArgs, opts?: InvokeOptions): Promise<GetDeviceSessionResult>
function getDeviceSessionOutput(args: GetDeviceSessionOutputArgs, opts?: InvokeOptions): Output<GetDeviceSessionResult>
def get_device_session(device_session_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDeviceSessionResult
def get_device_session_output(device_session_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDeviceSessionResult]
func LookupDeviceSession(ctx *Context, args *LookupDeviceSessionArgs, opts ...InvokeOption) (*LookupDeviceSessionResult, error)
func LookupDeviceSessionOutput(ctx *Context, args *LookupDeviceSessionOutputArgs, opts ...InvokeOption) LookupDeviceSessionResultOutput
> Note: This function is named LookupDeviceSession
in the Go SDK.
public static class GetDeviceSession
{
public static Task<GetDeviceSessionResult> InvokeAsync(GetDeviceSessionArgs args, InvokeOptions? opts = null)
public static Output<GetDeviceSessionResult> Invoke(GetDeviceSessionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDeviceSessionResult> getDeviceSession(GetDeviceSessionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:testing/v1:getDeviceSession
arguments:
# arguments dictionary
The following arguments are supported:
- Device
Session stringId - Project string
- Device
Session stringId - Project string
- device
Session StringId - project String
- device
Session stringId - project string
- device_
session_ strid - project str
- device
Session StringId - project String
getDeviceSession Result
The following output properties are available:
- Active
Start stringTime - The timestamp that the session first became ACTIVE.
- Android
Device Pulumi.Google Native. Testing. V1. Outputs. Android Device Response - The requested device
- Create
Time string - The time that the Session was created.
- Display
Name string - The title of the DeviceSession to be presented in the UI.
- Expire
Time string - Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
- Inactivity
Timeout string - The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
- Name string
- Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
- State string
- Current state of the DeviceSession.
- State
Histories List<Pulumi.Google Native. Testing. V1. Outputs. Session State Event Response> - The historical state transitions of the session_state message including the current session state.
- Ttl string
- Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 30 minutes.
- Active
Start stringTime - The timestamp that the session first became ACTIVE.
- Android
Device AndroidDevice Response - The requested device
- Create
Time string - The time that the Session was created.
- Display
Name string - The title of the DeviceSession to be presented in the UI.
- Expire
Time string - Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
- Inactivity
Timeout string - The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
- Name string
- Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
- State string
- Current state of the DeviceSession.
- State
Histories []SessionState Event Response - The historical state transitions of the session_state message including the current session state.
- Ttl string
- Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 30 minutes.
- active
Start StringTime - The timestamp that the session first became ACTIVE.
- android
Device AndroidDevice Response - The requested device
- create
Time String - The time that the Session was created.
- display
Name String - The title of the DeviceSession to be presented in the UI.
- expire
Time String - Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
- inactivity
Timeout String - The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
- name String
- Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
- state String
- Current state of the DeviceSession.
- state
Histories List<SessionState Event Response> - The historical state transitions of the session_state message including the current session state.
- ttl String
- Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 30 minutes.
- active
Start stringTime - The timestamp that the session first became ACTIVE.
- android
Device AndroidDevice Response - The requested device
- create
Time string - The time that the Session was created.
- display
Name string - The title of the DeviceSession to be presented in the UI.
- expire
Time string - Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
- inactivity
Timeout string - The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
- name string
- Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
- state string
- Current state of the DeviceSession.
- state
Histories SessionState Event Response[] - The historical state transitions of the session_state message including the current session state.
- ttl string
- Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 30 minutes.
- active_
start_ strtime - The timestamp that the session first became ACTIVE.
- android_
device AndroidDevice Response - The requested device
- create_
time str - The time that the Session was created.
- display_
name str - The title of the DeviceSession to be presented in the UI.
- expire_
time str - Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
- inactivity_
timeout str - The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
- name str
- Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
- state str
- Current state of the DeviceSession.
- state_
histories Sequence[SessionState Event Response] - The historical state transitions of the session_state message including the current session state.
- ttl str
- Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 30 minutes.
- active
Start StringTime - The timestamp that the session first became ACTIVE.
- android
Device Property Map - The requested device
- create
Time String - The time that the Session was created.
- display
Name String - The title of the DeviceSession to be presented in the UI.
- expire
Time String - Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
- inactivity
Timeout String - The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
- name String
- Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
- state String
- Current state of the DeviceSession.
- state
Histories List<Property Map> - The historical state transitions of the session_state message including the current session state.
- ttl String
- Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 30 minutes.
Supporting Types
AndroidDeviceResponse
- Android
Model stringId - The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- Android
Version stringId - The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- Locale string
- The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
- Orientation string
- How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
- Android
Model stringId - The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- Android
Version stringId - The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- Locale string
- The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
- Orientation string
- How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
- android
Model StringId - The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- android
Version StringId - The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- locale String
- The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
- orientation String
- How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
- android
Model stringId - The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- android
Version stringId - The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- locale string
- The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
- orientation string
- How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
- android_
model_ strid - The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- android_
version_ strid - The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- locale str
- The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
- orientation str
- How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
- android
Model StringId - The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- android
Version StringId - The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- locale String
- The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
- orientation String
- How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
SessionStateEventResponse
- Event
Time string - The time that the session_state first encountered that state.
- Session
State string - The session_state tracked by this event
- State
Message string - A human-readable message to explain the state.
- Event
Time string - The time that the session_state first encountered that state.
- Session
State string - The session_state tracked by this event
- State
Message string - A human-readable message to explain the state.
- event
Time String - The time that the session_state first encountered that state.
- session
State String - The session_state tracked by this event
- state
Message String - A human-readable message to explain the state.
- event
Time string - The time that the session_state first encountered that state.
- session
State string - The session_state tracked by this event
- state
Message string - A human-readable message to explain the state.
- event_
time str - The time that the session_state first encountered that state.
- session_
state str - The session_state tracked by this event
- state_
message str - A human-readable message to explain the state.
- event
Time String - The time that the session_state first encountered that state.
- session
State String - The session_state tracked by this event
- state
Message String - A human-readable message to explain the state.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.