1. Packages
  2. Google Cloud Native
  3. API Docs
  4. testing
  5. testing/v1
  6. DeviceSession

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.testing/v1.DeviceSession

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    POST /v1/projects/{project_id}/deviceSessions Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.

    Create DeviceSession Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DeviceSession(name: string, args: DeviceSessionArgs, opts?: CustomResourceOptions);
    @overload
    def DeviceSession(resource_name: str,
                      args: DeviceSessionArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DeviceSession(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      android_device: Optional[AndroidDeviceArgs] = None,
                      expire_time: Optional[str] = None,
                      name: Optional[str] = None,
                      project: Optional[str] = None,
                      ttl: Optional[str] = None)
    func NewDeviceSession(ctx *Context, name string, args DeviceSessionArgs, opts ...ResourceOption) (*DeviceSession, error)
    public DeviceSession(string name, DeviceSessionArgs args, CustomResourceOptions? opts = null)
    public DeviceSession(String name, DeviceSessionArgs args)
    public DeviceSession(String name, DeviceSessionArgs args, CustomResourceOptions options)
    
    type: google-native:testing/v1:DeviceSession
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DeviceSessionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DeviceSessionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DeviceSessionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeviceSessionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeviceSessionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var deviceSessionResource = new GoogleNative.Testing.V1.DeviceSession("deviceSessionResource", new()
    {
        AndroidDevice = new GoogleNative.Testing.V1.Inputs.AndroidDeviceArgs
        {
            AndroidModelId = "string",
            AndroidVersionId = "string",
            Locale = "string",
            Orientation = "string",
        },
        ExpireTime = "string",
        Name = "string",
        Project = "string",
        Ttl = "string",
    });
    
    example, err := testing.NewDeviceSession(ctx, "deviceSessionResource", &testing.DeviceSessionArgs{
    AndroidDevice: &testing.AndroidDeviceArgs{
    AndroidModelId: pulumi.String("string"),
    AndroidVersionId: pulumi.String("string"),
    Locale: pulumi.String("string"),
    Orientation: pulumi.String("string"),
    },
    ExpireTime: pulumi.String("string"),
    Name: pulumi.String("string"),
    Project: pulumi.String("string"),
    Ttl: pulumi.String("string"),
    })
    
    var deviceSessionResource = new DeviceSession("deviceSessionResource", DeviceSessionArgs.builder()
        .androidDevice(AndroidDeviceArgs.builder()
            .androidModelId("string")
            .androidVersionId("string")
            .locale("string")
            .orientation("string")
            .build())
        .expireTime("string")
        .name("string")
        .project("string")
        .ttl("string")
        .build());
    
    device_session_resource = google_native.testing.v1.DeviceSession("deviceSessionResource",
        android_device=google_native.testing.v1.AndroidDeviceArgs(
            android_model_id="string",
            android_version_id="string",
            locale="string",
            orientation="string",
        ),
        expire_time="string",
        name="string",
        project="string",
        ttl="string")
    
    const deviceSessionResource = new google_native.testing.v1.DeviceSession("deviceSessionResource", {
        androidDevice: {
            androidModelId: "string",
            androidVersionId: "string",
            locale: "string",
            orientation: "string",
        },
        expireTime: "string",
        name: "string",
        project: "string",
        ttl: "string",
    });
    
    type: google-native:testing/v1:DeviceSession
    properties:
        androidDevice:
            androidModelId: string
            androidVersionId: string
            locale: string
            orientation: string
        expireTime: string
        name: string
        project: string
        ttl: string
    

    DeviceSession Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DeviceSession resource accepts the following input properties:

    AndroidDevice Pulumi.GoogleNative.Testing.V1.Inputs.AndroidDevice
    The requested device
    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.
    Name string
    Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
    Project string
    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.
    AndroidDevice AndroidDeviceArgs
    The requested device
    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.
    Name string
    Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
    Project string
    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.
    androidDevice AndroidDevice
    The requested device
    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.
    name String
    Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
    project String
    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.
    androidDevice AndroidDevice
    The requested device
    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.
    name string
    Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
    project string
    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.
    android_device AndroidDeviceArgs
    The requested device
    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.
    name str
    Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
    project str
    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.
    androidDevice Property Map
    The requested device
    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.
    name String
    Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
    project String
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DeviceSession resource produces the following output properties:

    ActiveStartTime string
    The timestamp that the session first became ACTIVE.
    CreateTime string
    The time that the Session was created.
    DisplayName string
    The title of the DeviceSession to be presented in the UI.
    Id string
    The provider-assigned unique ID for this managed resource.
    InactivityTimeout string
    The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
    State string
    Current state of the DeviceSession.
    StateHistories List<Pulumi.GoogleNative.Testing.V1.Outputs.SessionStateEventResponse>
    The historical state transitions of the session_state message including the current session state.
    ActiveStartTime string
    The timestamp that the session first became ACTIVE.
    CreateTime string
    The time that the Session was created.
    DisplayName string
    The title of the DeviceSession to be presented in the UI.
    Id string
    The provider-assigned unique ID for this managed resource.
    InactivityTimeout string
    The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
    State string
    Current state of the DeviceSession.
    StateHistories []SessionStateEventResponse
    The historical state transitions of the session_state message including the current session state.
    activeStartTime String
    The timestamp that the session first became ACTIVE.
    createTime String
    The time that the Session was created.
    displayName String
    The title of the DeviceSession to be presented in the UI.
    id String
    The provider-assigned unique ID for this managed resource.
    inactivityTimeout String
    The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
    state String
    Current state of the DeviceSession.
    stateHistories List<SessionStateEventResponse>
    The historical state transitions of the session_state message including the current session state.
    activeStartTime string
    The timestamp that the session first became ACTIVE.
    createTime string
    The time that the Session was created.
    displayName string
    The title of the DeviceSession to be presented in the UI.
    id string
    The provider-assigned unique ID for this managed resource.
    inactivityTimeout string
    The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
    state string
    Current state of the DeviceSession.
    stateHistories SessionStateEventResponse[]
    The historical state transitions of the session_state message including the current session state.
    active_start_time str
    The timestamp that the session first became ACTIVE.
    create_time str
    The time that the Session was created.
    display_name str
    The title of the DeviceSession to be presented in the UI.
    id str
    The provider-assigned unique ID for this managed resource.
    inactivity_timeout str
    The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
    state str
    Current state of the DeviceSession.
    state_histories Sequence[SessionStateEventResponse]
    The historical state transitions of the session_state message including the current session state.
    activeStartTime String
    The timestamp that the session first became ACTIVE.
    createTime String
    The time that the Session was created.
    displayName String
    The title of the DeviceSession to be presented in the UI.
    id String
    The provider-assigned unique ID for this managed resource.
    inactivityTimeout String
    The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
    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.

    Supporting Types

    AndroidDevice, AndroidDeviceArgs

    AndroidModelId string
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    AndroidVersionId string
    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.
    AndroidModelId string
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    AndroidVersionId string
    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.
    androidModelId String
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    androidVersionId String
    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.
    androidModelId string
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    androidVersionId string
    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_id str
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    android_version_id str
    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.
    androidModelId String
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    androidVersionId String
    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.

    AndroidDeviceResponse, AndroidDeviceResponseArgs

    AndroidModelId string
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    AndroidVersionId string
    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.
    AndroidModelId string
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    AndroidVersionId string
    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.
    androidModelId String
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    androidVersionId String
    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.
    androidModelId string
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    androidVersionId string
    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_id str
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    android_version_id str
    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.
    androidModelId String
    The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
    androidVersionId String
    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, SessionStateEventResponseArgs

    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-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi