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=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:
- Android
Device Pulumi.Google Native. Testing. V1. Inputs. Android Device - The requested device
- 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.
- 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 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 - The requested device
- 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.
- 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 - The requested device
- 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.
- 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.
- android
Device Property Map - The requested device
- 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.
- 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:
- Active
Start stringTime - The timestamp that the session first became ACTIVE.
- Create
Time string - The time that the Session was created.
- Display
Name string - The title of the DeviceSession to be presented in the UI.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inactivity
Timeout 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.
- 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.
- Active
Start stringTime - The timestamp that the session first became ACTIVE.
- Create
Time string - The time that the Session was created.
- Display
Name string - The title of the DeviceSession to be presented in the UI.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inactivity
Timeout 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.
- State
Histories []SessionState Event Response - The historical state transitions of the session_state message including the current session state.
- active
Start StringTime - The timestamp that the session first became ACTIVE.
- create
Time String - The time that the Session was created.
- display
Name String - The title of the DeviceSession to be presented in the UI.
- id String
- The provider-assigned unique ID for this managed resource.
- inactivity
Timeout 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.
- state
Histories List<SessionState Event Response> - The historical state transitions of the session_state message including the current session state.
- active
Start stringTime - The timestamp that the session first became ACTIVE.
- create
Time string - The time that the Session was created.
- display
Name string - The title of the DeviceSession to be presented in the UI.
- id string
- The provider-assigned unique ID for this managed resource.
- inactivity
Timeout 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.
- state
Histories 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.
- active
Start StringTime - The timestamp that the session first became ACTIVE.
- create
Time String - The time that the Session was created.
- display
Name String - The title of the DeviceSession to be presented in the UI.
- id String
- The provider-assigned unique ID for this managed resource.
- inactivity
Timeout 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.
- state
Histories List<Property Map> - The historical state transitions of the session_state message including the current session state.
Supporting Types
AndroidDevice, AndroidDeviceArgs
- 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.
AndroidDeviceResponse, AndroidDeviceResponseArgs
- 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, SessionStateEventResponseArgs
- 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.