@@ -103,7 +103,7 @@ public class Directory extends com.google.api.client.googleapis.services.json.Ab
103103 * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
104104 * <li>Android: {@code newCompatibleTransport} from
105105 * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
106- * <li>Java: {@link com.google.api.client.googleapis .javanet.GoogleNetHttpTransport#newTrustedTransport()}
106+ * <li>Java: {@code com.google.api.client.http .javanet.NetHttpTransport}</li>
107107 * </li>
108108 * </ul>
109109 * @param jsonFactory JSON factory, which may be:
@@ -2105,6 +2105,201 @@ public BatchChangeStatus set(String parameterName, Object value) {
21052105 return (BatchChangeStatus) super.set(parameterName, value);
21062106 }
21072107 }
2108+ /**
2109+ * Counts ChromeOS devices matching the request.
2110+ *
2111+ * Create a request for the method "chromeos.countChromeOsDevices".
2112+ *
2113+ * This request holds the parameters needed by the admin server. After setting any optional
2114+ * parameters, call the {@link CountChromeOsDevices#execute()} method to invoke the remote
2115+ * operation.
2116+ *
2117+ * @param customerId Required. Immutable ID of the Google Workspace account.
2118+ * @return the request
2119+ */
2120+ public CountChromeOsDevices countChromeOsDevices(java.lang.String customerId) throws java.io.IOException {
2121+ CountChromeOsDevices result = new CountChromeOsDevices(customerId);
2122+ initialize(result);
2123+ return result;
2124+ }
2125+
2126+ public class CountChromeOsDevices extends DirectoryRequest<com.google.api.services.directory.model.CountChromeOsDevicesResponse> {
2127+
2128+ private static final String REST_PATH = "admin/directory/v1/customer/{customerId}/devices/chromeos:countChromeOsDevices";
2129+
2130+ /**
2131+ * Counts ChromeOS devices matching the request.
2132+ *
2133+ * Create a request for the method "chromeos.countChromeOsDevices".
2134+ *
2135+ * This request holds the parameters needed by the the admin server. After setting any optional
2136+ * parameters, call the {@link CountChromeOsDevices#execute()} method to invoke the remote
2137+ * operation. <p> {@link CountChromeOsDevices#initialize(com.google.api.client.googleapis.services
2138+ * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
2139+ * invoking the constructor. </p>
2140+ *
2141+ * @param customerId Required. Immutable ID of the Google Workspace account.
2142+ * @since 1.13
2143+ */
2144+ protected CountChromeOsDevices(java.lang.String customerId) {
2145+ super(Directory.this, "GET", REST_PATH, null, com.google.api.services.directory.model.CountChromeOsDevicesResponse.class);
2146+ this.customerId = com.google.api.client.util.Preconditions.checkNotNull(customerId, "Required parameter customerId must be specified.");
2147+ }
2148+
2149+ @Override
2150+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
2151+ return super.executeUsingHead();
2152+ }
2153+
2154+ @Override
2155+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
2156+ return super.buildHttpRequestUsingHead();
2157+ }
2158+
2159+ @Override
2160+ public CountChromeOsDevices set$Xgafv(java.lang.String $Xgafv) {
2161+ return (CountChromeOsDevices) super.set$Xgafv($Xgafv);
2162+ }
2163+
2164+ @Override
2165+ public CountChromeOsDevices setAccessToken(java.lang.String accessToken) {
2166+ return (CountChromeOsDevices) super.setAccessToken(accessToken);
2167+ }
2168+
2169+ @Override
2170+ public CountChromeOsDevices setAlt(java.lang.String alt) {
2171+ return (CountChromeOsDevices) super.setAlt(alt);
2172+ }
2173+
2174+ @Override
2175+ public CountChromeOsDevices setCallback(java.lang.String callback) {
2176+ return (CountChromeOsDevices) super.setCallback(callback);
2177+ }
2178+
2179+ @Override
2180+ public CountChromeOsDevices setFields(java.lang.String fields) {
2181+ return (CountChromeOsDevices) super.setFields(fields);
2182+ }
2183+
2184+ @Override
2185+ public CountChromeOsDevices setKey(java.lang.String key) {
2186+ return (CountChromeOsDevices) super.setKey(key);
2187+ }
2188+
2189+ @Override
2190+ public CountChromeOsDevices setOauthToken(java.lang.String oauthToken) {
2191+ return (CountChromeOsDevices) super.setOauthToken(oauthToken);
2192+ }
2193+
2194+ @Override
2195+ public CountChromeOsDevices setPrettyPrint(java.lang.Boolean prettyPrint) {
2196+ return (CountChromeOsDevices) super.setPrettyPrint(prettyPrint);
2197+ }
2198+
2199+ @Override
2200+ public CountChromeOsDevices setQuotaUser(java.lang.String quotaUser) {
2201+ return (CountChromeOsDevices) super.setQuotaUser(quotaUser);
2202+ }
2203+
2204+ @Override
2205+ public CountChromeOsDevices setUploadType(java.lang.String uploadType) {
2206+ return (CountChromeOsDevices) super.setUploadType(uploadType);
2207+ }
2208+
2209+ @Override
2210+ public CountChromeOsDevices setUploadProtocol(java.lang.String uploadProtocol) {
2211+ return (CountChromeOsDevices) super.setUploadProtocol(uploadProtocol);
2212+ }
2213+
2214+ /** Required. Immutable ID of the Google Workspace account. */
2215+ @com.google.api.client.util.Key
2216+ private java.lang.String customerId;
2217+
2218+ /** Required. Immutable ID of the Google Workspace account.
2219+ */
2220+ public java.lang.String getCustomerId() {
2221+ return customerId;
2222+ }
2223+
2224+ /** Required. Immutable ID of the Google Workspace account. */
2225+ public CountChromeOsDevices setCustomerId(java.lang.String customerId) {
2226+ this.customerId = customerId;
2227+ return this;
2228+ }
2229+
2230+ /**
2231+ * Optional. Search string in the format given at
2232+ * https://developers.google.com/workspace/admin/directory/v1/list-query-operators
2233+ */
2234+ @com.google.api.client.util.Key
2235+ private java.lang.String filter;
2236+
2237+ /** Optional. Search string in the format given at
2238+ https://developers.google.com/workspace/admin/directory/v1/list-query-operators
2239+ */
2240+ public java.lang.String getFilter() {
2241+ return filter;
2242+ }
2243+
2244+ /**
2245+ * Optional. Search string in the format given at
2246+ * https://developers.google.com/workspace/admin/directory/v1/list-query-operators
2247+ */
2248+ public CountChromeOsDevices setFilter(java.lang.String filter) {
2249+ this.filter = filter;
2250+ return this;
2251+ }
2252+
2253+ /**
2254+ * Optional. Return devices from all child orgunits, as well as the specified org unit. If
2255+ * this is set to true, 'orgUnitPath' must be provided.
2256+ */
2257+ @com.google.api.client.util.Key
2258+ private java.lang.Boolean includeChildOrgunits;
2259+
2260+ /** Optional. Return devices from all child orgunits, as well as the specified org unit. If this is set
2261+ to true, 'orgUnitPath' must be provided.
2262+ */
2263+ public java.lang.Boolean getIncludeChildOrgunits() {
2264+ return includeChildOrgunits;
2265+ }
2266+
2267+ /**
2268+ * Optional. Return devices from all child orgunits, as well as the specified org unit. If
2269+ * this is set to true, 'orgUnitPath' must be provided.
2270+ */
2271+ public CountChromeOsDevices setIncludeChildOrgunits(java.lang.Boolean includeChildOrgunits) {
2272+ this.includeChildOrgunits = includeChildOrgunits;
2273+ return this;
2274+ }
2275+
2276+ /**
2277+ * Optional. The full path of the organizational unit (minus the leading `/`) or its
2278+ * unique ID.
2279+ */
2280+ @com.google.api.client.util.Key
2281+ private java.lang.String orgUnitPath;
2282+
2283+ /** Optional. The full path of the organizational unit (minus the leading `/`) or its unique ID.
2284+ */
2285+ public java.lang.String getOrgUnitPath() {
2286+ return orgUnitPath;
2287+ }
2288+
2289+ /**
2290+ * Optional. The full path of the organizational unit (minus the leading `/`) or its
2291+ * unique ID.
2292+ */
2293+ public CountChromeOsDevices setOrgUnitPath(java.lang.String orgUnitPath) {
2294+ this.orgUnitPath = orgUnitPath;
2295+ return this;
2296+ }
2297+
2298+ @Override
2299+ public CountChromeOsDevices set(String parameterName, Object value) {
2300+ return (CountChromeOsDevices) super.set(parameterName, value);
2301+ }
2302+ }
21082303 /**
21092304 * Issues a command for the device to execute.
21102305 *
@@ -20631,8 +20826,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr
2063120826 * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li>
2063220827 * <li>Android: {@code newCompatibleTransport} from
2063320828 * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li>
20634- * <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()}
20635- * </li>
20829+ * <li>Java: {@code com.google.api.client.http.javanet.NetHttpTransport}</li>
2063620830 * </ul>
2063720831 * @param jsonFactory JSON factory, which may be:
2063820832 * <ul>
0 commit comments