Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<GoogleLongrunningOperation>
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>
ProjectsResource.LocationsResource.SessionsResource.CreateRequest
Implements
IClientServiceRequest<GoogleLongrunningOperation>
IClientServiceRequest
Inherited Members
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.Xgafv
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.AccessToken
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.Alt
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.Callback
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.Fields
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.Key
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.OauthToken
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.PrettyPrint
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.QuotaUser
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.UploadType
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.UploadProtocol
ClientServiceRequest<GoogleLongrunningOperation>.Execute()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStream()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsync()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleLongrunningOperation>.CreateRequest(bool?)
ClientServiceRequest<GoogleLongrunningOperation>.GenerateRequestUri()
ClientServiceRequest<GoogleLongrunningOperation>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleLongrunningOperation>.ETagAction
ClientServiceRequest<GoogleLongrunningOperation>.ModifyRequest
ClientServiceRequest<GoogleLongrunningOperation>.ValidateParameters
ClientServiceRequest<GoogleLongrunningOperation>.ApiVersion
ClientServiceRequest<GoogleLongrunningOperation>.RequestParameters
ClientServiceRequest<GoogleLongrunningOperation>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<GoogleLongrunningOperation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleLongrunningOperation>.MethodName

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 a request_id is provided, i.e. if a request with the same request_id is received, then the previous result will be returned. The server will guarantee that for at least 60 minutes after the first request. 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
ClientServiceRequest<GoogleLongrunningOperation>.RestPath

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. 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
ClientServiceRequest<GoogleLongrunningOperation>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
DeviceRunBaseServiceRequest<GoogleLongrunningOperation>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX