Skip to content

Commit 7e08c80

Browse files
1 parent 75c68f9 commit 7e08c80

5 files changed

Lines changed: 347 additions & 6 deletions

File tree

clients/google-api-services-chromemanagement/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-chromemanagement</artifactId>
25-
<version>v1-rev20260520-2.0.0</version>
25+
<version>v1-rev20260528-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-chromemanagement:v1-rev20260520-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chromemanagement:v1-rev20260528-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/ChromeManagement.java

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5789,6 +5789,226 @@ public CountChromeHardwareFleetDevices set(String parameterName, Object value) {
57895789
return (CountChromeHardwareFleetDevices) super.set(parameterName, value);
57905790
}
57915791
}
5792+
/**
5793+
* Generate report of installed Chrome versions on managed profiles.
5794+
*
5795+
* Create a request for the method "reports.countChromeProfileVersions".
5796+
*
5797+
* This request holds the parameters needed by the chromemanagement server. After setting any
5798+
* optional parameters, call the {@link CountChromeProfileVersions#execute()} method to invoke the
5799+
* remote operation.
5800+
*
5801+
* @param customer Required. Customer id or "my_customer" to use the customer associated to the account making the
5802+
* request.
5803+
* @return the request
5804+
*/
5805+
public CountChromeProfileVersions countChromeProfileVersions(java.lang.String customer) throws java.io.IOException {
5806+
CountChromeProfileVersions result = new CountChromeProfileVersions(customer);
5807+
initialize(result);
5808+
return result;
5809+
}
5810+
5811+
public class CountChromeProfileVersions extends ChromeManagementRequest<com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementV1CountChromeProfileVersionsResponse> {
5812+
5813+
private static final String REST_PATH = "v1/{+customer}/reports:countChromeProfileVersions";
5814+
5815+
private final java.util.regex.Pattern CUSTOMER_PATTERN =
5816+
java.util.regex.Pattern.compile("^customers/[^/]+$");
5817+
5818+
/**
5819+
* Generate report of installed Chrome versions on managed profiles.
5820+
*
5821+
* Create a request for the method "reports.countChromeProfileVersions".
5822+
*
5823+
* This request holds the parameters needed by the the chromemanagement server. After setting any
5824+
* optional parameters, call the {@link CountChromeProfileVersions#execute()} method to invoke the
5825+
* remote operation. <p> {@link CountChromeProfileVersions#initialize(com.google.api.client.google
5826+
* apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
5827+
* immediately after invoking the constructor. </p>
5828+
*
5829+
* @param customer Required. Customer id or "my_customer" to use the customer associated to the account making the
5830+
* request.
5831+
* @since 1.13
5832+
*/
5833+
protected CountChromeProfileVersions(java.lang.String customer) {
5834+
super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementV1CountChromeProfileVersionsResponse.class);
5835+
this.customer = com.google.api.client.util.Preconditions.checkNotNull(customer, "Required parameter customer must be specified.");
5836+
if (!getSuppressPatternChecks()) {
5837+
com.google.api.client.util.Preconditions.checkArgument(CUSTOMER_PATTERN.matcher(customer).matches(),
5838+
"Parameter customer must conform to the pattern " +
5839+
"^customers/[^/]+$");
5840+
}
5841+
}
5842+
5843+
@Override
5844+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
5845+
return super.executeUsingHead();
5846+
}
5847+
5848+
@Override
5849+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
5850+
return super.buildHttpRequestUsingHead();
5851+
}
5852+
5853+
@Override
5854+
public CountChromeProfileVersions set$Xgafv(java.lang.String $Xgafv) {
5855+
return (CountChromeProfileVersions) super.set$Xgafv($Xgafv);
5856+
}
5857+
5858+
@Override
5859+
public CountChromeProfileVersions setAccessToken(java.lang.String accessToken) {
5860+
return (CountChromeProfileVersions) super.setAccessToken(accessToken);
5861+
}
5862+
5863+
@Override
5864+
public CountChromeProfileVersions setAlt(java.lang.String alt) {
5865+
return (CountChromeProfileVersions) super.setAlt(alt);
5866+
}
5867+
5868+
@Override
5869+
public CountChromeProfileVersions setCallback(java.lang.String callback) {
5870+
return (CountChromeProfileVersions) super.setCallback(callback);
5871+
}
5872+
5873+
@Override
5874+
public CountChromeProfileVersions setFields(java.lang.String fields) {
5875+
return (CountChromeProfileVersions) super.setFields(fields);
5876+
}
5877+
5878+
@Override
5879+
public CountChromeProfileVersions setKey(java.lang.String key) {
5880+
return (CountChromeProfileVersions) super.setKey(key);
5881+
}
5882+
5883+
@Override
5884+
public CountChromeProfileVersions setOauthToken(java.lang.String oauthToken) {
5885+
return (CountChromeProfileVersions) super.setOauthToken(oauthToken);
5886+
}
5887+
5888+
@Override
5889+
public CountChromeProfileVersions setPrettyPrint(java.lang.Boolean prettyPrint) {
5890+
return (CountChromeProfileVersions) super.setPrettyPrint(prettyPrint);
5891+
}
5892+
5893+
@Override
5894+
public CountChromeProfileVersions setQuotaUser(java.lang.String quotaUser) {
5895+
return (CountChromeProfileVersions) super.setQuotaUser(quotaUser);
5896+
}
5897+
5898+
@Override
5899+
public CountChromeProfileVersions setUploadType(java.lang.String uploadType) {
5900+
return (CountChromeProfileVersions) super.setUploadType(uploadType);
5901+
}
5902+
5903+
@Override
5904+
public CountChromeProfileVersions setUploadProtocol(java.lang.String uploadProtocol) {
5905+
return (CountChromeProfileVersions) super.setUploadProtocol(uploadProtocol);
5906+
}
5907+
5908+
/**
5909+
* Required. Customer id or "my_customer" to use the customer associated to the account
5910+
* making the request.
5911+
*/
5912+
@com.google.api.client.util.Key
5913+
private java.lang.String customer;
5914+
5915+
/** Required. Customer id or "my_customer" to use the customer associated to the account making the
5916+
request.
5917+
*/
5918+
public java.lang.String getCustomer() {
5919+
return customer;
5920+
}
5921+
5922+
/**
5923+
* Required. Customer id or "my_customer" to use the customer associated to the account
5924+
* making the request.
5925+
*/
5926+
public CountChromeProfileVersions setCustomer(java.lang.String customer) {
5927+
if (!getSuppressPatternChecks()) {
5928+
com.google.api.client.util.Preconditions.checkArgument(CUSTOMER_PATTERN.matcher(customer).matches(),
5929+
"Parameter customer must conform to the pattern " +
5930+
"^customers/[^/]+$");
5931+
}
5932+
this.customer = customer;
5933+
return this;
5934+
}
5935+
5936+
/**
5937+
* Optional. Query string to filter results, AND-separated fields in EBNF syntax. Note: OR
5938+
* operations are not supported in this filter. Supported filter fields: * last_active_date
5939+
*/
5940+
@com.google.api.client.util.Key
5941+
private java.lang.String filter;
5942+
5943+
/** Optional. Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations
5944+
are not supported in this filter. Supported filter fields: * last_active_date
5945+
*/
5946+
public java.lang.String getFilter() {
5947+
return filter;
5948+
}
5949+
5950+
/**
5951+
* Optional. Query string to filter results, AND-separated fields in EBNF syntax. Note: OR
5952+
* operations are not supported in this filter. Supported filter fields: * last_active_date
5953+
*/
5954+
public CountChromeProfileVersions setFilter(java.lang.String filter) {
5955+
this.filter = filter;
5956+
return this;
5957+
}
5958+
5959+
/** The ID of the organizational unit. If omitted, all data will be returned. */
5960+
@com.google.api.client.util.Key
5961+
private java.lang.String orgUnitId;
5962+
5963+
/** The ID of the organizational unit. If omitted, all data will be returned.
5964+
*/
5965+
public java.lang.String getOrgUnitId() {
5966+
return orgUnitId;
5967+
}
5968+
5969+
/** The ID of the organizational unit. If omitted, all data will be returned. */
5970+
public CountChromeProfileVersions setOrgUnitId(java.lang.String orgUnitId) {
5971+
this.orgUnitId = orgUnitId;
5972+
return this;
5973+
}
5974+
5975+
/** Optional. Maximum number of results to return. Maximum and default are 100. */
5976+
@com.google.api.client.util.Key
5977+
private java.lang.Integer pageSize;
5978+
5979+
/** Optional. Maximum number of results to return. Maximum and default are 100.
5980+
*/
5981+
public java.lang.Integer getPageSize() {
5982+
return pageSize;
5983+
}
5984+
5985+
/** Optional. Maximum number of results to return. Maximum and default are 100. */
5986+
public CountChromeProfileVersions setPageSize(java.lang.Integer pageSize) {
5987+
this.pageSize = pageSize;
5988+
return this;
5989+
}
5990+
5991+
/** Optional. Token to specify the page of the request to be returned. */
5992+
@com.google.api.client.util.Key
5993+
private java.lang.String pageToken;
5994+
5995+
/** Optional. Token to specify the page of the request to be returned.
5996+
*/
5997+
public java.lang.String getPageToken() {
5998+
return pageToken;
5999+
}
6000+
6001+
/** Optional. Token to specify the page of the request to be returned. */
6002+
public CountChromeProfileVersions setPageToken(java.lang.String pageToken) {
6003+
this.pageToken = pageToken;
6004+
return this;
6005+
}
6006+
6007+
@Override
6008+
public CountChromeProfileVersions set(String parameterName, Object value) {
6009+
return (CountChromeProfileVersions) super.set(parameterName, value);
6010+
}
6011+
}
57926012
/**
57936013
* Generate report of installed Chrome versions.
57946014
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.chromemanagement.v1.model;
18+
19+
/**
20+
* Response containing requested managed profile versions details and counts.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Chrome Management API. For a detailed explanation
24+
* see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleChromeManagementV1CountChromeProfileVersionsResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Token to specify the next page of the request.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String nextPageToken;
39+
40+
/**
41+
* List of all browser versions reported for profiles and their install counts.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<GoogleChromeManagementV1BrowserVersion> profileBrowserVersions;
46+
47+
static {
48+
// hack to force ProGuard to consider GoogleChromeManagementV1BrowserVersion used, since otherwise it would be stripped out
49+
// see https://github.com/google/google-api-java-client/issues/543
50+
com.google.api.client.util.Data.nullOf(GoogleChromeManagementV1BrowserVersion.class);
51+
}
52+
53+
/**
54+
* Total number browser versions matching request.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.Integer totalSize;
59+
60+
/**
61+
* Token to specify the next page of the request.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.String getNextPageToken() {
65+
return nextPageToken;
66+
}
67+
68+
/**
69+
* Token to specify the next page of the request.
70+
* @param nextPageToken nextPageToken or {@code null} for none
71+
*/
72+
public GoogleChromeManagementV1CountChromeProfileVersionsResponse setNextPageToken(java.lang.String nextPageToken) {
73+
this.nextPageToken = nextPageToken;
74+
return this;
75+
}
76+
77+
/**
78+
* List of all browser versions reported for profiles and their install counts.
79+
* @return value or {@code null} for none
80+
*/
81+
public java.util.List<GoogleChromeManagementV1BrowserVersion> getProfileBrowserVersions() {
82+
return profileBrowserVersions;
83+
}
84+
85+
/**
86+
* List of all browser versions reported for profiles and their install counts.
87+
* @param profileBrowserVersions profileBrowserVersions or {@code null} for none
88+
*/
89+
public GoogleChromeManagementV1CountChromeProfileVersionsResponse setProfileBrowserVersions(java.util.List<GoogleChromeManagementV1BrowserVersion> profileBrowserVersions) {
90+
this.profileBrowserVersions = profileBrowserVersions;
91+
return this;
92+
}
93+
94+
/**
95+
* Total number browser versions matching request.
96+
* @return value or {@code null} for none
97+
*/
98+
public java.lang.Integer getTotalSize() {
99+
return totalSize;
100+
}
101+
102+
/**
103+
* Total number browser versions matching request.
104+
* @param totalSize totalSize or {@code null} for none
105+
*/
106+
public GoogleChromeManagementV1CountChromeProfileVersionsResponse setTotalSize(java.lang.Integer totalSize) {
107+
this.totalSize = totalSize;
108+
return this;
109+
}
110+
111+
@Override
112+
public GoogleChromeManagementV1CountChromeProfileVersionsResponse set(String fieldName, Object value) {
113+
return (GoogleChromeManagementV1CountChromeProfileVersionsResponse) super.set(fieldName, value);
114+
}
115+
116+
@Override
117+
public GoogleChromeManagementV1CountChromeProfileVersionsResponse clone() {
118+
return (GoogleChromeManagementV1CountChromeProfileVersionsResponse) super.clone();
119+
}
120+
121+
}

clients/google-api-services-chromemanagement/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-chromemanagement</artifactId>
11-
<version>v1-rev20260520-2.0.0</version>
12-
<name>Chrome Management API v1-rev20260520-2.0.0</name>
11+
<version>v1-rev20260528-2.0.0</version>
12+
<name>Chrome Management API v1-rev20260528-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-chromemanagement/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-chromemanagement</artifactId>
25-
<version>v1-rev20260520-2.0.0</version>
25+
<version>v1-rev20260528-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-chromemanagement:v1-rev20260520-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chromemanagement:v1-rev20260528-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)