Reference documentation and code samples for the Google Cloud Device Streaming V1 Client class CreateDeviceSessionRequest.
Request message for DirectAccessService.CreateDeviceSession.
Generated from protobuf message google.cloud.devicestreaming.v1.CreateDeviceSessionRequest
Namespace
Google \ Cloud \ DeviceStreaming \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}" |
↳ device_session |
DeviceSession
Required. A DeviceSession to create. |
↳ device_session_id |
string
Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
getParent
Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDeviceSession
Required. A DeviceSession to create.
| Returns | |
|---|---|
| Type | Description |
DeviceSession|null |
|
hasDeviceSession
clearDeviceSession
setDeviceSession
Required. A DeviceSession to create.
| Parameter | |
|---|---|
| Name | Description |
var |
DeviceSession
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDeviceSessionId
Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDeviceSessionId
Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}" Please see DirectAccessServiceClient::projectName() for help formatting this field. |
deviceSession |
DeviceSession
Required. A DeviceSession to create. |
deviceSessionId |
string
Optional. The ID to use for the DeviceSession, which will become the final component of the DeviceSession's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
| Returns | |
|---|---|
| Type | Description |
CreateDeviceSessionRequest |
|