Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.testing/v1.DeviceSession
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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={
        "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DeviceSession resource accepts the following input properties:
- AndroidDevice Pulumi.Google Native. Testing. V1. Inputs. Android Device 
- 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 Args 
- 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 AndroidDevice Args 
- 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:
- ActiveStart stringTime 
- 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.Google Native. Testing. V1. Outputs. Session State Event Response> 
- The historical state transitions of the session_state message including the current session state.
- ActiveStart stringTime 
- 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 []SessionState Event Response 
- The historical state transitions of the session_state message including the current session state.
- activeStart StringTime 
- 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<SessionState Event Response> 
- The historical state transitions of the session_state message including the current session state.
- activeStart stringTime 
- 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 SessionState Event Response[] 
- The historical state transitions of the session_state message including the current session state.
- active_start_ strtime 
- 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[SessionState Event Response] 
- The historical state transitions of the session_state message including the current session state.
- activeStart StringTime 
- 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    
- 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.
AndroidDeviceResponse, AndroidDeviceResponseArgs      
- 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, 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 Cloud Native is in preview. Google Cloud Classic is fully supported.