Class ProjectsResource.LocationsResource.SessionsResource.CreateRequest
Starts an automation session with the specified configuration. This method returns a long-running
Operation, awaiting the completion of all jobs in the session.
Inheritance
Inherited Members
Namespace: Google.Apis.DeviceRun.v1alpha
Assembly: Google.Apis.DeviceRun.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.SessionsResource.CreateRequest : DeviceRunBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Session, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Session body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Session | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Required. The parent resource where this session will be created. Format:
projects/{project}/locations/{location}.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RequestId
Optional. A unique identifier for this request. This request is only idempotent if both
request_id and session_id are provided. If a retry with the same request_id and
session_id is received, then the previous result will be returned. The server will guarantee
that for at least 60 minutes after the first request. If request_id is provided without
session_id, the server generates a new session_id on each attempt, and retries with the same
request_id will fail with INVALID_ARGUMENT. The value must be a UUID (e.g.,
123e4567-e89b-12d3-a456-426655440000). See github.com/google/uuid for more details.
Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
SessionId
Optional. The ID to use for the session, which will become the final component of the resource
name. If not provided, the server will generate a value for this field. To make the request
idempotent when request_id is specified, callers must also provide session_id so that
retries target the same resource name. When provided, this value must be between 4 and 63
characters, and match the following regex: ^a-z{2,61}[a-z0-9]$.
Declaration
[RequestParameter("sessionId", RequestParameterType.Query)]
public virtual string SessionId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()