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)
public static Output<GetDeviceSessionResult> getDeviceSession(GetDeviceSessionArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:testing/v1:getDeviceSession
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DeviceSession stringId 
- Project string
- DeviceSession stringId 
- Project string
- deviceSession StringId 
- project String
- deviceSession stringId 
- project string
- device_session_ strid 
- project str
- deviceSession StringId 
- project String
getDeviceSession Result
The following output properties are available:
- ActiveStart stringTime 
- The timestamp that the session first became ACTIVE.
- AndroidDevice Pulumi.Google Native. Testing. V1. Outputs. Android Device Response 
- The requested device
- CreateTime string
- The time that the Session was created.
- DisplayName string
- The title of the DeviceSession to be presented in the UI.
- ExpireTime 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.
- InactivityTimeout 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.
- StateHistories 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.
- ActiveStart stringTime 
- The timestamp that the session first became ACTIVE.
- AndroidDevice AndroidDevice Response 
- The requested device
- CreateTime string
- The time that the Session was created.
- DisplayName string
- The title of the DeviceSession to be presented in the UI.
- ExpireTime 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.
- InactivityTimeout 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.
- StateHistories []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.
- activeStart StringTime 
- The timestamp that the session first became ACTIVE.
- androidDevice AndroidDevice Response 
- The requested device
- createTime String
- The time that the Session was created.
- displayName String
- The title of the DeviceSession to be presented in the UI.
- expireTime 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.
- inactivityTimeout 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.
- stateHistories 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.
- activeStart stringTime 
- The timestamp that the session first became ACTIVE.
- androidDevice AndroidDevice Response 
- The requested device
- createTime string
- The time that the Session was created.
- displayName string
- The title of the DeviceSession to be presented in the UI.
- expireTime 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.
- inactivityTimeout 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.
- stateHistories 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.
- activeStart StringTime 
- The timestamp that the session first became ACTIVE.
- androidDevice Property Map
- The requested device
- createTime String
- The time that the Session was created.
- displayName String
- The title of the DeviceSession to be presented in the UI.
- expireTime 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.
- inactivityTimeout 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.
- stateHistories 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  
- AndroidModel stringId 
- The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- AndroidVersion 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.
- AndroidModel stringId 
- The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- AndroidVersion 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.
- androidModel StringId 
- The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- androidVersion 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.
- androidModel stringId 
- The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- androidVersion 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.
- androidModel StringId 
- The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
- androidVersion 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   
- EventTime string
- The time that the session_state first encountered that state.
- SessionState string
- The session_state tracked by this event
- StateMessage string
- A human-readable message to explain the state.
- EventTime string
- The time that the session_state first encountered that state.
- SessionState string
- The session_state tracked by this event
- StateMessage string
- A human-readable message to explain the state.
- eventTime String
- The time that the session_state first encountered that state.
- sessionState String
- The session_state tracked by this event
- stateMessage String
- A human-readable message to explain the state.
- eventTime string
- The time that the session_state first encountered that state.
- sessionState string
- The session_state tracked by this event
- stateMessage 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.
- eventTime String
- The time that the session_state first encountered that state.
- sessionState String
- The session_state tracked by this event
- stateMessage 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.