Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-devicerun</artifactId>
<version>v1alpha-rev20261001-2.0.0</version>
<version>v1alpha-rev20261006-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261001-2.0.0'
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261006-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,202 @@ public Sessions sessions() {
*/
public class Sessions {

/**
* 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.
*
* Create a request for the method "sessions.batchGet".
*
* This request holds the parameters needed by the devicerun server. After setting any optional
* parameters, call the {@link BatchGet#execute()} method to invoke the remote operation.
*
* @param 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`.
* @return the request
*/
public BatchGet batchGet(java.lang.String parent) throws java.io.IOException {
BatchGet result = new BatchGet(parent);
initialize(result);
return result;
}

public class BatchGet extends DeviceRunRequest<com.google.api.services.devicerun.v1alpha.model.BatchGetSessionsResponse> {

private static final String REST_PATH = "v1alpha/{+parent}/sessions:batchGet";

private final java.util.regex.Pattern PARENT_PATTERN =
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");

/**
* 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.
*
* Create a request for the method "sessions.batchGet".
*
* This request holds the parameters needed by the the devicerun server. After setting any
* optional parameters, call the {@link BatchGet#execute()} method to invoke the remote operation.
* <p> {@link
* BatchGet#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param 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`.
* @since 1.13
*/
protected BatchGet(java.lang.String parent) {
super(DeviceRun.this, "GET", REST_PATH, null, com.google.api.services.devicerun.v1alpha.model.BatchGetSessionsResponse.class);
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
}

@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}

@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}

@Override
public BatchGet set$Xgafv(java.lang.String $Xgafv) {
return (BatchGet) super.set$Xgafv($Xgafv);
}

@Override
public BatchGet setAccessToken(java.lang.String accessToken) {
return (BatchGet) super.setAccessToken(accessToken);
}

@Override
public BatchGet setAlt(java.lang.String alt) {
return (BatchGet) super.setAlt(alt);
}

@Override
public BatchGet setCallback(java.lang.String callback) {
return (BatchGet) super.setCallback(callback);
}

@Override
public BatchGet setFields(java.lang.String fields) {
return (BatchGet) super.setFields(fields);
}

@Override
public BatchGet setKey(java.lang.String key) {
return (BatchGet) super.setKey(key);
}

@Override
public BatchGet setOauthToken(java.lang.String oauthToken) {
return (BatchGet) super.setOauthToken(oauthToken);
}

@Override
public BatchGet setPrettyPrint(java.lang.Boolean prettyPrint) {
return (BatchGet) super.setPrettyPrint(prettyPrint);
}

@Override
public BatchGet setQuotaUser(java.lang.String quotaUser) {
return (BatchGet) super.setQuotaUser(quotaUser);
}

@Override
public BatchGet setUploadType(java.lang.String uploadType) {
return (BatchGet) super.setUploadType(uploadType);
}

@Override
public BatchGet setUploadProtocol(java.lang.String uploadProtocol) {
return (BatchGet) super.setUploadProtocol(uploadProtocol);
}

/**
* 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`.
*/
@com.google.api.client.util.Key
private java.lang.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`.
*/
public java.lang.String getParent() {
return 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`.
*/
public BatchGet setParent(java.lang.String parent) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
"Parameter parent must conform to the pattern " +
"^projects/[^/]+/locations/[^/]+$");
}
this.parent = parent;
return this;
}

/**
* 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}`.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> 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}`.
*/
public java.util.List<java.lang.String> getNames() {
return 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}`.
*/
public BatchGet setNames(java.util.List<java.lang.String> names) {
this.names = names;
return this;
}

@Override
public BatchGet set(String parameterName, Object value) {
return (BatchGet) super.set(parameterName, value);
}
}
/**
* Cancels an in-progress automation session. This RPC returns immediately and cancellation proceeds
* asynchronously. If the session is already finished, this RPC will have no effect.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.devicerun.v1alpha.model;

/**
* Response including the requested sessions.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Device Run API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class BatchGetSessionsResponse extends com.google.api.client.json.GenericJson {

/**
* The requested sessions, in the same order as the `names` in the request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<Session> sessions;

/**
* The requested sessions, in the same order as the `names` in the request.
* @return value or {@code null} for none
*/
public java.util.List<Session> getSessions() {
return sessions;
}

/**
* The requested sessions, in the same order as the `names` in the request.
* @param sessions sessions or {@code null} for none
*/
public BatchGetSessionsResponse setSessions(java.util.List<Session> sessions) {
this.sessions = sessions;
return this;
}

@Override
public BatchGetSessionsResponse set(String fieldName, Object value) {
return (BatchGetSessionsResponse) super.set(fieldName, value);
}

@Override
public BatchGetSessionsResponse clone() {
return (BatchGetSessionsResponse) super.clone();
}

}
4 changes: 2 additions & 2 deletions clients/google-api-services-devicerun/v1alpha/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-devicerun</artifactId>
<version>v1alpha-rev20261001-2.0.0</version>
<name>Device Run API v1alpha-rev20261001-2.0.0</name>
<version>v1alpha-rev20261006-2.0.0</version>
<name>Device Run API v1alpha-rev20261006-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-devicerun/v1alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-devicerun</artifactId>
<version>v1alpha-rev20261001-2.0.0</version>
<version>v1alpha-rev20261006-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261001-2.0.0'
implementation 'com.google.apis:google-api-services-devicerun:v1alpha-rev20261006-2.0.0'
}
```

Expand Down
Loading