Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.SessionsResource.BatchGetRequest

Retrieves multiple automation sessions in a single batch request. Sessions are returned in the same order as the names in the request. If any of the requested sessions does not exist, the whole request fails with NOT_FOUND and no sessions are returned. When calling this method over HTTP/REST with a large number of names, the request URL may exceed the maximum URL length (about 16 KB) and be rejected. In that case, send a POST request to the same URL with the X-HTTP-Method-Override: GET header and pass the request parameters in a JSON (application/json) or form-encoded (application/x-www-form-urlencoded) body. See https://cloud.google.com/apis/docs/http#long_request_urls.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<BatchGetSessionsResponse>
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>
ProjectsResource.LocationsResource.SessionsResource.BatchGetRequest
Implements
IClientServiceRequest<BatchGetSessionsResponse>
IClientServiceRequest
Inherited Members
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.Xgafv
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.AccessToken
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.Alt
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.Callback
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.Fields
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.Key
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.OauthToken
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.PrettyPrint
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.QuotaUser
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.UploadType
DeviceRunBaseServiceRequest<BatchGetSessionsResponse>.UploadProtocol
ClientServiceRequest<BatchGetSessionsResponse>.Execute()
ClientServiceRequest<BatchGetSessionsResponse>.ExecuteAsStream()
ClientServiceRequest<BatchGetSessionsResponse>.ExecuteAsync()
ClientServiceRequest<BatchGetSessionsResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<BatchGetSessionsResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<BatchGetSessionsResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<BatchGetSessionsResponse>.CreateRequest(bool?)
ClientServiceRequest<BatchGetSessionsResponse>.GenerateRequestUri()
ClientServiceRequest<BatchGetSessionsResponse>.GetBody()
ClientServiceRequest<BatchGetSessionsResponse>.GetDefaultETagAction(string)
ClientServiceRequest<BatchGetSessionsResponse>.ETagAction
ClientServiceRequest<BatchGetSessionsResponse>.ModifyRequest
ClientServiceRequest<BatchGetSessionsResponse>.ValidateParameters
ClientServiceRequest<BatchGetSessionsResponse>.ApiVersion
ClientServiceRequest<BatchGetSessionsResponse>.RequestParameters
ClientServiceRequest<BatchGetSessionsResponse>.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.BatchGetRequest : DeviceRunBaseServiceRequest<BatchGetSessionsResponse>, IClientServiceRequest<BatchGetSessionsResponse>, IClientServiceRequest

Constructors

BatchGetRequest(IClientService, string)

Constructs a new BatchGet request.

Declaration
public BatchGetRequest(IClientService service, string parent)
Parameters
Type Name Description
IClientService service
string parent

Properties

HttpMethod

Gets the HTTP method.

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

MethodName

Gets the method name.

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

Names

Required. The names of the sessions to retrieve. A maximum of 500 sessions can be retrieved in a batch. Format: projects/{project}/locations/{location}/sessions/{session}.

Declaration
[RequestParameter("names", RequestParameterType.Query)]
public virtual Repeatable<string> Names { get; set; }
Property Value
Type Description
Repeatable<string>

Parent

Required. The parent resource shared by all sessions being retrieved. Format: projects/{project}/locations/{location}. The parent field in the BatchGetSessionsRequest message must match the parent of all Session resource names in names.

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

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

Methods

InitParameters()

Initializes BatchGet parameter list.

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

Implements

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