Skip to content
Open
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 @@ -103,7 +103,7 @@ public class DataTransfer extends com.google.api.client.googleapis.services.json
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
* <li>Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
* </li>
* </ul>
* @param jsonFactory JSON factory, which may be:
Expand Down Expand Up @@ -929,8 +929,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
* <li>Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
* </li>
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
* </ul>
* @param jsonFactory JSON factory, which may be:
* <ul>
Expand Down
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-admin-directory</artifactId>
<version>directory_v1-rev20260113-2.0.0</version>
<version>directory_v1-rev20260210-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-admin-directory:directory_v1-rev20260113-2.0.0'
implementation 'com.google.apis:google-api-services-admin-directory:directory_v1-rev20260210-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class Directory extends com.google.api.client.googleapis.services.json.Ab
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
* <li>Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
* </li>
* </ul>
* @param jsonFactory JSON factory, which may be:
Expand Down Expand Up @@ -2105,6 +2105,201 @@ public BatchChangeStatus set(String parameterName, Object value) {
return (BatchChangeStatus) super.set(parameterName, value);
}
}
/**
* Counts ChromeOS devices matching the request.
*
* Create a request for the method "chromeos.countChromeOsDevices".
*
* This request holds the parameters needed by the admin server. After setting any optional
* parameters, call the {@link CountChromeOsDevices#execute()} method to invoke the remote
* operation.
*
* @param customerId Required. Immutable ID of the Google Workspace account.
* @return the request
*/
public CountChromeOsDevices countChromeOsDevices(java.lang.String customerId) throws java.io.IOException {
CountChromeOsDevices result = new CountChromeOsDevices(customerId);
initialize(result);
return result;
}

public class CountChromeOsDevices extends DirectoryRequest<com.google.api.services.directory.model.CountChromeOsDevicesResponse> {

private static final String REST_PATH = "admin/directory/v1/customer/{customerId}/devices/chromeos:countChromeOsDevices";

/**
* Counts ChromeOS devices matching the request.
*
* Create a request for the method "chromeos.countChromeOsDevices".
*
* This request holds the parameters needed by the the admin server. After setting any optional
* parameters, call the {@link CountChromeOsDevices#execute()} method to invoke the remote
* operation. <p> {@link CountChromeOsDevices#initialize(com.google.api.client.googleapis.services
* .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
* invoking the constructor. </p>
*
* @param customerId Required. Immutable ID of the Google Workspace account.
* @since 1.13
*/
protected CountChromeOsDevices(java.lang.String customerId) {
super(Directory.this, "GET", REST_PATH, null, com.google.api.services.directory.model.CountChromeOsDevicesResponse.class);
this.customerId = com.google.api.client.util.Preconditions.checkNotNull(customerId, "Required parameter customerId must be specified.");
}

@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 CountChromeOsDevices set$Xgafv(java.lang.String $Xgafv) {
return (CountChromeOsDevices) super.set$Xgafv($Xgafv);
}

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

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

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

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

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

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

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

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

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

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

/** Required. Immutable ID of the Google Workspace account. */
@com.google.api.client.util.Key
private java.lang.String customerId;

/** Required. Immutable ID of the Google Workspace account.
*/
public java.lang.String getCustomerId() {
return customerId;
}

/** Required. Immutable ID of the Google Workspace account. */
public CountChromeOsDevices setCustomerId(java.lang.String customerId) {
this.customerId = customerId;
return this;
}

/**
* Optional. Search string in the format given at
* https://developers.google.com/workspace/admin/directory/v1/list-query-operators
*/
@com.google.api.client.util.Key
private java.lang.String filter;

/** Optional. Search string in the format given at
https://developers.google.com/workspace/admin/directory/v1/list-query-operators
*/
public java.lang.String getFilter() {
return filter;
}

/**
* Optional. Search string in the format given at
* https://developers.google.com/workspace/admin/directory/v1/list-query-operators
*/
public CountChromeOsDevices setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}

/**
* Optional. Return devices from all child orgunits, as well as the specified org unit. If
* this is set to true, 'orgUnitPath' must be provided.
*/
@com.google.api.client.util.Key
private java.lang.Boolean includeChildOrgunits;

/** Optional. Return devices from all child orgunits, as well as the specified org unit. If this is set
to true, 'orgUnitPath' must be provided.
*/
public java.lang.Boolean getIncludeChildOrgunits() {
return includeChildOrgunits;
}

/**
* Optional. Return devices from all child orgunits, as well as the specified org unit. If
* this is set to true, 'orgUnitPath' must be provided.
*/
public CountChromeOsDevices setIncludeChildOrgunits(java.lang.Boolean includeChildOrgunits) {
this.includeChildOrgunits = includeChildOrgunits;
return this;
}

/**
* Optional. The full path of the organizational unit (minus the leading `/`) or its
* unique ID.
*/
@com.google.api.client.util.Key
private java.lang.String orgUnitPath;

/** Optional. The full path of the organizational unit (minus the leading `/`) or its unique ID.
*/
public java.lang.String getOrgUnitPath() {
return orgUnitPath;
}

/**
* Optional. The full path of the organizational unit (minus the leading `/`) or its
* unique ID.
*/
public CountChromeOsDevices setOrgUnitPath(java.lang.String orgUnitPath) {
this.orgUnitPath = orgUnitPath;
return this;
}

@Override
public CountChromeOsDevices set(String parameterName, Object value) {
return (CountChromeOsDevices) super.set(parameterName, value);
}
}
/**
* Issues a command for the device to execute.
*
Expand Down Expand Up @@ -20631,8 +20826,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr
* {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
* <li>Android: {@code newCompatibleTransport} from
* {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
* <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
* </li>
* <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
* </ul>
* @param jsonFactory JSON factory, which may be:
* <ul>
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.directory.model;

/**
* A response for counting ChromeOS devices.
*
* <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 Admin SDK 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 CountChromeOsDevicesResponse extends com.google.api.client.json.GenericJson {

/**
* The total number of devices matching the request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long count;

/**
* The total number of devices matching the request.
* @return value or {@code null} for none
*/
public java.lang.Long getCount() {
return count;
}

/**
* The total number of devices matching the request.
* @param count count or {@code null} for none
*/
public CountChromeOsDevicesResponse setCount(java.lang.Long count) {
this.count = count;
return this;
}

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

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

}
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-admin-directory</artifactId>
<version>directory_v1-rev20260113-2.0.0</version>
<name>Admin SDK API directory_v1-rev20260113-2.0.0</name>
<version>directory_v1-rev20260210-2.0.0</version>
<name>Admin SDK API directory_v1-rev20260210-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-admin/directory_v1/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-admin-directory</artifactId>
<version>directory_v1-rev20260113-2.0.0</version>
<version>directory_v1-rev20260210-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-admin-directory:directory_v1-rev20260113-2.0.0'
implementation 'com.google.apis:google-api-services-admin-directory:directory_v1-rev20260210-2.0.0'
}
```

Expand Down
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-admin-reports</artifactId>
<version>reports_v1-rev20251202-2.0.0</version>
<version>reports_v1-rev20260210-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-admin-reports:reports_v1-rev20251202-2.0.0'
implementation 'com.google.apis:google-api-services-admin-reports:reports_v1-rev20260210-2.0.0'
}
```

Expand Down
Loading