{@link FindSaasUsage#initialize(com.google.api.client.googleapis.services.Abstra + * ctGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param customer Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + * @since 1.13 + */ + protected FindSaasUsage(java.lang.String customer) { + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementV1FindSaasUsageReportsResponse.class); + this.customer = com.google.api.client.util.Preconditions.checkNotNull(customer, "Required parameter customer must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CUSTOMER_PATTERN.matcher(customer).matches(), + "Parameter customer must conform to the pattern " + + "^customers/[^/]+$"); + } + } + + @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 FindSaasUsage set$Xgafv(java.lang.String $Xgafv) { + return (FindSaasUsage) super.set$Xgafv($Xgafv); + } + + @Override + public FindSaasUsage setAccessToken(java.lang.String accessToken) { + return (FindSaasUsage) super.setAccessToken(accessToken); + } + + @Override + public FindSaasUsage setAlt(java.lang.String alt) { + return (FindSaasUsage) super.setAlt(alt); + } + + @Override + public FindSaasUsage setCallback(java.lang.String callback) { + return (FindSaasUsage) super.setCallback(callback); + } + + @Override + public FindSaasUsage setFields(java.lang.String fields) { + return (FindSaasUsage) super.setFields(fields); + } + + @Override + public FindSaasUsage setKey(java.lang.String key) { + return (FindSaasUsage) super.setKey(key); + } + + @Override + public FindSaasUsage setOauthToken(java.lang.String oauthToken) { + return (FindSaasUsage) super.setOauthToken(oauthToken); + } + + @Override + public FindSaasUsage setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FindSaasUsage) super.setPrettyPrint(prettyPrint); + } + + @Override + public FindSaasUsage setQuotaUser(java.lang.String quotaUser) { + return (FindSaasUsage) super.setQuotaUser(quotaUser); + } + + @Override + public FindSaasUsage setUploadType(java.lang.String uploadType) { + return (FindSaasUsage) super.setUploadType(uploadType); + } + + @Override + public FindSaasUsage setUploadProtocol(java.lang.String uploadProtocol) { + return (FindSaasUsage) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + @com.google.api.client.util.Key + private java.lang.String customer; + + /** Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + public java.lang.String getCustomer() { + return customer; + } + + /** + * Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + public FindSaasUsage setCustomer(java.lang.String customer) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CUSTOMER_PATTERN.matcher(customer).matches(), + "Parameter customer must conform to the pattern " + + "^customers/[^/]+$"); + } + this.customer = customer; + return this; + } + + /** + * Optional. The filter expression to narrow down the SaaS reports to return. Supported + * operators are: =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are supported. + * Supported fields: * app * org_unit_id * first_navigation_time * last_navigation_time * + * category * organization * founded_year * headquarters * primary_domain * domains * + * encryption_protocols * visits_count * distinct_users_count * distinct_browsers_count * + * content_transfer_count Example: `(first_navigation_time < "2026-01-31T00:00:00Z" AND + * last_navigation_time > "2026-01-01T00:00:00Z") AND visits_count > 100` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filter expression to narrow down the SaaS reports to return. Supported operators are: + =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are supported. Supported fields: * app * + org_unit_id * first_navigation_time * last_navigation_time * category * organization * founded_year + * headquarters * primary_domain * domains * encryption_protocols * visits_count * + distinct_users_count * distinct_browsers_count * content_transfer_count Example: + `(first_navigation_time < "2026-01-31T00:00:00Z" AND last_navigation_time > "2026-01-01T00:00:00Z") + AND visits_count > 100` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The filter expression to narrow down the SaaS reports to return. Supported + * operators are: =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are supported. + * Supported fields: * app * org_unit_id * first_navigation_time * last_navigation_time * + * category * organization * founded_year * headquarters * primary_domain * domains * + * encryption_protocols * visits_count * distinct_users_count * distinct_browsers_count * + * content_transfer_count Example: `(first_navigation_time < "2026-01-31T00:00:00Z" AND + * last_navigation_time > "2026-01-01T00:00:00Z") AND visits_count > 100` + */ + public FindSaasUsage setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The order by expression to sort the SaaS reports. Supported fields: * app * + * category * organization * founded_year * headquarters * primary_domain * visits_count * + * distinct_users_count * distinct_browsers_count * content_transfer_count Default order is + * ascending. To specify descending order for a field, append " desc". Example: + * `visits_count desc` + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The order by expression to sort the SaaS reports. Supported fields: * app * category * + organization * founded_year * headquarters * primary_domain * visits_count * distinct_users_count * + distinct_browsers_count * content_transfer_count Default order is ascending. To specify descending + order for a field, append " desc". Example: `visits_count desc` + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The order by expression to sort the SaaS reports. Supported fields: * app * + * category * organization * founded_year * headquarters * primary_domain * visits_count * + * distinct_users_count * distinct_browsers_count * content_transfer_count Default order is + * ascending. To specify descending order for a field, append " desc". Example: + * `visits_count desc` + */ + public FindSaasUsage setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of reports to return. The service may return fewer than this + * value. If unspecified, at most 100 reports will be returned. The maximum value is 200; + * values above 200 will be coerced to 200. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of reports to return. The service may return fewer than this value. If + unspecified, at most 100 reports will be returned. The maximum value is 200; values above 200 will + be coerced to 200. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of reports to return. The service may return fewer than this + * value. If unspecified, at most 100 reports will be returned. The maximum value is 200; + * values above 200 will be coerced to 200. + */ + public FindSaasUsage setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `FindSaasUsageReports` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `FindSaasUsageReports` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `FindSaasUsageReports` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `FindSaasUsageReports` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `FindSaasUsageReports` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `FindSaasUsageReports` must match the call that provided the page token. + */ + public FindSaasUsage setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public FindSaasUsage set(String parameterName, Object value) { + return (FindSaasUsage) super.set(parameterName, value); + } + } + /** + * Find SaaS usage reports of a customer grouped by browsers based on the given search and sorting + * criteria. + * + * Create a request for the method "reports.findSaasUsageBrowsers". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link FindSaasUsageBrowsers#execute()} method to invoke the remote + * operation. + * + * @param customer Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + * @return the request + */ + public FindSaasUsageBrowsers findSaasUsageBrowsers(java.lang.String customer) throws java.io.IOException { + FindSaasUsageBrowsers result = new FindSaasUsageBrowsers(customer); + initialize(result); + return result; + } + + public class FindSaasUsageBrowsers extends ChromeManagementRequest{@link FindSaasUsageBrowsers#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param customer Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + * @since 1.13 + */ + protected FindSaasUsageBrowsers(java.lang.String customer) { + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementV1FindSaasUsageBrowsersResponse.class); + this.customer = com.google.api.client.util.Preconditions.checkNotNull(customer, "Required parameter customer must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CUSTOMER_PATTERN.matcher(customer).matches(), + "Parameter customer must conform to the pattern " + + "^customers/[^/]+$"); + } + } + + @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 FindSaasUsageBrowsers set$Xgafv(java.lang.String $Xgafv) { + return (FindSaasUsageBrowsers) super.set$Xgafv($Xgafv); + } + + @Override + public FindSaasUsageBrowsers setAccessToken(java.lang.String accessToken) { + return (FindSaasUsageBrowsers) super.setAccessToken(accessToken); + } + + @Override + public FindSaasUsageBrowsers setAlt(java.lang.String alt) { + return (FindSaasUsageBrowsers) super.setAlt(alt); + } + + @Override + public FindSaasUsageBrowsers setCallback(java.lang.String callback) { + return (FindSaasUsageBrowsers) super.setCallback(callback); + } + + @Override + public FindSaasUsageBrowsers setFields(java.lang.String fields) { + return (FindSaasUsageBrowsers) super.setFields(fields); + } + + @Override + public FindSaasUsageBrowsers setKey(java.lang.String key) { + return (FindSaasUsageBrowsers) super.setKey(key); + } + + @Override + public FindSaasUsageBrowsers setOauthToken(java.lang.String oauthToken) { + return (FindSaasUsageBrowsers) super.setOauthToken(oauthToken); + } + + @Override + public FindSaasUsageBrowsers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FindSaasUsageBrowsers) super.setPrettyPrint(prettyPrint); + } + + @Override + public FindSaasUsageBrowsers setQuotaUser(java.lang.String quotaUser) { + return (FindSaasUsageBrowsers) super.setQuotaUser(quotaUser); + } + + @Override + public FindSaasUsageBrowsers setUploadType(java.lang.String uploadType) { + return (FindSaasUsageBrowsers) super.setUploadType(uploadType); + } + + @Override + public FindSaasUsageBrowsers setUploadProtocol(java.lang.String uploadProtocol) { + return (FindSaasUsageBrowsers) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + @com.google.api.client.util.Key + private java.lang.String customer; + + /** Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + public java.lang.String getCustomer() { + return customer; + } + + /** + * Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + public FindSaasUsageBrowsers setCustomer(java.lang.String customer) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CUSTOMER_PATTERN.matcher(customer).matches(), + "Parameter customer must conform to the pattern " + + "^customers/[^/]+$"); + } + this.customer = customer; + return this; + } + + /** Required. The name of the SaaS application (e.g., `ChatGPT`, `Gemini`). */ + @com.google.api.client.util.Key + private java.lang.String app; + + /** Required. The name of the SaaS application (e.g., `ChatGPT`, `Gemini`). + */ + public java.lang.String getApp() { + return app; + } + + /** Required. The name of the SaaS application (e.g., `ChatGPT`, `Gemini`). */ + public FindSaasUsageBrowsers setApp(java.lang.String app) { + this.app = app; + return this; + } + + /** + * Optional. The filter expression to narrow down the SaaS browser reports to return. + * Supported operators are: =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are + * supported. Supported fields: * machine * os_platform * first_navigation_time * + * last_navigation_time * org_unit_id + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filter expression to narrow down the SaaS browser reports to return. Supported + operators are: =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are supported. Supported + fields: * machine * os_platform * first_navigation_time * last_navigation_time * org_unit_id + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The filter expression to narrow down the SaaS browser reports to return. + * Supported operators are: =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are + * supported. Supported fields: * machine * os_platform * first_navigation_time * + * last_navigation_time * org_unit_id + */ + public FindSaasUsageBrowsers setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The order by expression to sort the SaaS browser reports. Supported fields: * + * machine * os_platform * first_navigation_time * last_navigation_time Default order is + * ascending. To specify descending order for a field, append " desc". + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The order by expression to sort the SaaS browser reports. Supported fields: * machine * + os_platform * first_navigation_time * last_navigation_time Default order is ascending. To specify + descending order for a field, append " desc". + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The order by expression to sort the SaaS browser reports. Supported fields: * + * machine * os_platform * first_navigation_time * last_navigation_time Default order is + * ascending. To specify descending order for a field, append " desc". + */ + public FindSaasUsageBrowsers setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of browsers to return. The service may return fewer than + * this value. If unspecified, at most 100 browsers will be returned. The maximum value is + * 200; values above 200 will be coerced to 200. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of browsers to return. The service may return fewer than this value. + If unspecified, at most 100 browsers will be returned. The maximum value is 200; values above 200 + will be coerced to 200. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of browsers to return. The service may return fewer than + * this value. If unspecified, at most 100 browsers will be returned. The maximum value is + * 200; values above 200 will be coerced to 200. + */ + public FindSaasUsageBrowsers setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `FindSaasUsageBrowsers` call. Provide + * this to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `FindSaasUsageBrowsers` call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `FindSaasUsageBrowsers` call. Provide + * this to retrieve the subsequent page. + */ + public FindSaasUsageBrowsers setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public FindSaasUsageBrowsers set(String parameterName, Object value) { + return (FindSaasUsageBrowsers) super.set(parameterName, value); + } + } + /** + * Find SaaS usage reports of a customer grouped by profiles based on the given search and sorting + * criteria. + * + * Create a request for the method "reports.findSaasUsageProfiles". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link FindSaasUsageProfiles#execute()} method to invoke the remote + * operation. + * + * @param customer Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + * @return the request + */ + public FindSaasUsageProfiles findSaasUsageProfiles(java.lang.String customer) throws java.io.IOException { + FindSaasUsageProfiles result = new FindSaasUsageProfiles(customer); + initialize(result); + return result; + } + + public class FindSaasUsageProfiles extends ChromeManagementRequest{@link FindSaasUsageProfiles#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param customer Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + * @since 1.13 + */ + protected FindSaasUsageProfiles(java.lang.String customer) { + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementV1FindSaasUsageProfilesResponse.class); + this.customer = com.google.api.client.util.Preconditions.checkNotNull(customer, "Required parameter customer must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CUSTOMER_PATTERN.matcher(customer).matches(), + "Parameter customer must conform to the pattern " + + "^customers/[^/]+$"); + } + } + + @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 FindSaasUsageProfiles set$Xgafv(java.lang.String $Xgafv) { + return (FindSaasUsageProfiles) super.set$Xgafv($Xgafv); + } + + @Override + public FindSaasUsageProfiles setAccessToken(java.lang.String accessToken) { + return (FindSaasUsageProfiles) super.setAccessToken(accessToken); + } + + @Override + public FindSaasUsageProfiles setAlt(java.lang.String alt) { + return (FindSaasUsageProfiles) super.setAlt(alt); + } + + @Override + public FindSaasUsageProfiles setCallback(java.lang.String callback) { + return (FindSaasUsageProfiles) super.setCallback(callback); + } + + @Override + public FindSaasUsageProfiles setFields(java.lang.String fields) { + return (FindSaasUsageProfiles) super.setFields(fields); + } + + @Override + public FindSaasUsageProfiles setKey(java.lang.String key) { + return (FindSaasUsageProfiles) super.setKey(key); + } + + @Override + public FindSaasUsageProfiles setOauthToken(java.lang.String oauthToken) { + return (FindSaasUsageProfiles) super.setOauthToken(oauthToken); + } + + @Override + public FindSaasUsageProfiles setPrettyPrint(java.lang.Boolean prettyPrint) { + return (FindSaasUsageProfiles) super.setPrettyPrint(prettyPrint); + } + + @Override + public FindSaasUsageProfiles setQuotaUser(java.lang.String quotaUser) { + return (FindSaasUsageProfiles) super.setQuotaUser(quotaUser); + } + + @Override + public FindSaasUsageProfiles setUploadType(java.lang.String uploadType) { + return (FindSaasUsageProfiles) super.setUploadType(uploadType); + } + + @Override + public FindSaasUsageProfiles setUploadProtocol(java.lang.String uploadProtocol) { + return (FindSaasUsageProfiles) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + @com.google.api.client.util.Key + private java.lang.String customer; + + /** Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + public java.lang.String getCustomer() { + return customer; + } + + /** + * Required. Obfuscated customer ID prefixed with "customers/C" or "customers/my_customer". + */ + public FindSaasUsageProfiles setCustomer(java.lang.String customer) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CUSTOMER_PATTERN.matcher(customer).matches(), + "Parameter customer must conform to the pattern " + + "^customers/[^/]+$"); + } + this.customer = customer; + return this; + } + + /** Required. The name of the SaaS application (e.g., `ChatGPT`, `Gemini`). */ + @com.google.api.client.util.Key + private java.lang.String app; + + /** Required. The name of the SaaS application (e.g., `ChatGPT`, `Gemini`). + */ + public java.lang.String getApp() { + return app; + } + + /** Required. The name of the SaaS application (e.g., `ChatGPT`, `Gemini`). */ + public FindSaasUsageProfiles setApp(java.lang.String app) { + this.app = app; + return this; + } + + /** + * Optional. The filter expression to narrow down the SaaS profile reports to return. + * Supported operators are: =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are + * supported. Supported fields: * email * org_unit_id * os_platform * first_navigation_time + * * last_navigation_time + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filter expression to narrow down the SaaS profile reports to return. Supported + operators are: =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are supported. Supported + fields: * email * org_unit_id * os_platform * first_navigation_time * last_navigation_time + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The filter expression to narrow down the SaaS profile reports to return. + * Supported operators are: =, !=, <, <=, >, >=, :. Logical operators AND, OR, and NOT are + * supported. Supported fields: * email * org_unit_id * os_platform * first_navigation_time + * * last_navigation_time + */ + public FindSaasUsageProfiles setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The order by expression to sort the SaaS profile reports. Supported fields: * + * email * os_platform * first_navigation_time * last_navigation_time Default order is + * ascending. To specify descending order for a field, append " desc". + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The order by expression to sort the SaaS profile reports. Supported fields: * email * + os_platform * first_navigation_time * last_navigation_time Default order is ascending. To specify + descending order for a field, append " desc". + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The order by expression to sort the SaaS profile reports. Supported fields: * + * email * os_platform * first_navigation_time * last_navigation_time Default order is + * ascending. To specify descending order for a field, append " desc". + */ + public FindSaasUsageProfiles setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of reports to return. The service may return fewer than this + * value. If unspecified, at most 100 reports will be returned. The maximum value is 200; + * values above 200 will be coerced to 200. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of reports to return. The service may return fewer than this value. If + unspecified, at most 100 reports will be returned. The maximum value is 200; values above 200 will + be coerced to 200. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of reports to return. The service may return fewer than this + * value. If unspecified, at most 100 reports will be returned. The maximum value is 200; + * values above 200 will be coerced to 200. + */ + public FindSaasUsageProfiles setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `FindSaasUsageProfiles` call. Provide + * this to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `FindSaasUsageProfiles` call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `FindSaasUsageProfiles` call. Provide + * this to retrieve the subsequent page. + */ + public FindSaasUsageProfiles setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public FindSaasUsageProfiles set(String parameterName, Object value) { + return (FindSaasUsageProfiles) super.set(parameterName, value); + } + } } /** diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1FindSaasUsageBrowsersResponse.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1FindSaasUsageBrowsersResponse.java new file mode 100644 index 00000000000..a1e5b62bb50 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1FindSaasUsageBrowsersResponse.java @@ -0,0 +1,115 @@ +/* + * 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.chromemanagement.v1.model; + +/** + * Response to `FindSaasUsageBrowsers` method. + * + *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 Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementV1FindSaasUsageBrowsersResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of SaaS usage browser reports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementV1FindSaasUsageProfilesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of SaaS usage profile reports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementV1FindSaasUsageReportsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of SaaS usage reports. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementV1SaasUsageBrowser extends com.google.api.client.json.GenericJson { + + /** + * Output only. The device permanent ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String devicePermanentId; + + /** + * Output only. The timestamp when the application was first navigated to by this browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String firstNavigationTime; + + /** + * Output only. The timestamp when the application was last navigated to by this browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastNavigationTime; + + /** + * Output only. The machine name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machine; + + /** + * Output only. The ID of the organizational unit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String orgUnitId; + + /** + * Output only. The OS platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osPlatform; + + /** + * Output only. The OS version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osVersion; + + /** + * Output only. The device permanent ID. + * @return value or {@code null} for none + */ + public java.lang.String getDevicePermanentId() { + return devicePermanentId; + } + + /** + * Output only. The device permanent ID. + * @param devicePermanentId devicePermanentId or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageBrowser setDevicePermanentId(java.lang.String devicePermanentId) { + this.devicePermanentId = devicePermanentId; + return this; + } + + /** + * Output only. The timestamp when the application was first navigated to by this browser. + * @return value or {@code null} for none + */ + public String getFirstNavigationTime() { + return firstNavigationTime; + } + + /** + * Output only. The timestamp when the application was first navigated to by this browser. + * @param firstNavigationTime firstNavigationTime or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageBrowser setFirstNavigationTime(String firstNavigationTime) { + this.firstNavigationTime = firstNavigationTime; + return this; + } + + /** + * Output only. The timestamp when the application was last navigated to by this browser. + * @return value or {@code null} for none + */ + public String getLastNavigationTime() { + return lastNavigationTime; + } + + /** + * Output only. The timestamp when the application was last navigated to by this browser. + * @param lastNavigationTime lastNavigationTime or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageBrowser setLastNavigationTime(String lastNavigationTime) { + this.lastNavigationTime = lastNavigationTime; + return this; + } + + /** + * Output only. The machine name. + * @return value or {@code null} for none + */ + public java.lang.String getMachine() { + return machine; + } + + /** + * Output only. The machine name. + * @param machine machine or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageBrowser setMachine(java.lang.String machine) { + this.machine = machine; + return this; + } + + /** + * Output only. The ID of the organizational unit. + * @return value or {@code null} for none + */ + public java.lang.String getOrgUnitId() { + return orgUnitId; + } + + /** + * Output only. The ID of the organizational unit. + * @param orgUnitId orgUnitId or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageBrowser setOrgUnitId(java.lang.String orgUnitId) { + this.orgUnitId = orgUnitId; + return this; + } + + /** + * Output only. The OS platform. + * @return value or {@code null} for none + */ + public java.lang.String getOsPlatform() { + return osPlatform; + } + + /** + * Output only. The OS platform. + * @param osPlatform osPlatform or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageBrowser setOsPlatform(java.lang.String osPlatform) { + this.osPlatform = osPlatform; + return this; + } + + /** + * Output only. The OS version. + * @return value or {@code null} for none + */ + public java.lang.String getOsVersion() { + return osVersion; + } + + /** + * Output only. The OS version. + * @param osVersion osVersion or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageBrowser setOsVersion(java.lang.String osVersion) { + this.osVersion = osVersion; + return this; + } + + @Override + public GoogleChromeManagementV1SaasUsageBrowser set(String fieldName, Object value) { + return (GoogleChromeManagementV1SaasUsageBrowser) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementV1SaasUsageBrowser clone() { + return (GoogleChromeManagementV1SaasUsageBrowser) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1SaasUsageProfileReport.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1SaasUsageProfileReport.java new file mode 100644 index 00000000000..70ebbf6923a --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1SaasUsageProfileReport.java @@ -0,0 +1,211 @@ +/* + * 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.chromemanagement.v1.model; + +/** + * Represents a single SaaS report entry grouped by profile. + * + *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 Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementV1SaasUsageProfileReport extends com.google.api.client.json.GenericJson { + + /** + * Output only. The email of the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String email; + + /** + * Output only. The timestamp when the application was first navigated to by this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String firstNavigationTime; + + /** + * Output only. The timestamp when the application was last navigated to by this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastNavigationTime; + + /** + * Output only. The ID of the organizational unit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String orgUnitId; + + /** + * Output only. The OS platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osPlatform; + + /** + * Output only. The OS version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osVersion; + + /** + * Output only. The permanent ID of the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profilePermanentId; + + /** + * Output only. The email of the user. + * @return value or {@code null} for none + */ + public java.lang.String getEmail() { + return email; + } + + /** + * Output only. The email of the user. + * @param email email or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageProfileReport setEmail(java.lang.String email) { + this.email = email; + return this; + } + + /** + * Output only. The timestamp when the application was first navigated to by this profile. + * @return value or {@code null} for none + */ + public String getFirstNavigationTime() { + return firstNavigationTime; + } + + /** + * Output only. The timestamp when the application was first navigated to by this profile. + * @param firstNavigationTime firstNavigationTime or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageProfileReport setFirstNavigationTime(String firstNavigationTime) { + this.firstNavigationTime = firstNavigationTime; + return this; + } + + /** + * Output only. The timestamp when the application was last navigated to by this profile. + * @return value or {@code null} for none + */ + public String getLastNavigationTime() { + return lastNavigationTime; + } + + /** + * Output only. The timestamp when the application was last navigated to by this profile. + * @param lastNavigationTime lastNavigationTime or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageProfileReport setLastNavigationTime(String lastNavigationTime) { + this.lastNavigationTime = lastNavigationTime; + return this; + } + + /** + * Output only. The ID of the organizational unit. + * @return value or {@code null} for none + */ + public java.lang.String getOrgUnitId() { + return orgUnitId; + } + + /** + * Output only. The ID of the organizational unit. + * @param orgUnitId orgUnitId or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageProfileReport setOrgUnitId(java.lang.String orgUnitId) { + this.orgUnitId = orgUnitId; + return this; + } + + /** + * Output only. The OS platform. + * @return value or {@code null} for none + */ + public java.lang.String getOsPlatform() { + return osPlatform; + } + + /** + * Output only. The OS platform. + * @param osPlatform osPlatform or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageProfileReport setOsPlatform(java.lang.String osPlatform) { + this.osPlatform = osPlatform; + return this; + } + + /** + * Output only. The OS version. + * @return value or {@code null} for none + */ + public java.lang.String getOsVersion() { + return osVersion; + } + + /** + * Output only. The OS version. + * @param osVersion osVersion or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageProfileReport setOsVersion(java.lang.String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** + * Output only. The permanent ID of the profile. + * @return value or {@code null} for none + */ + public java.lang.String getProfilePermanentId() { + return profilePermanentId; + } + + /** + * Output only. The permanent ID of the profile. + * @param profilePermanentId profilePermanentId or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageProfileReport setProfilePermanentId(java.lang.String profilePermanentId) { + this.profilePermanentId = profilePermanentId; + return this; + } + + @Override + public GoogleChromeManagementV1SaasUsageProfileReport set(String fieldName, Object value) { + return (GoogleChromeManagementV1SaasUsageProfileReport) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementV1SaasUsageProfileReport clone() { + return (GoogleChromeManagementV1SaasUsageProfileReport) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1SaasUsageReport.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1SaasUsageReport.java new file mode 100644 index 00000000000..44997be19e3 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementV1SaasUsageReport.java @@ -0,0 +1,403 @@ +/* + * 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.chromemanagement.v1.model; + +/** + * Represents a single SaaS report entry. + * + *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 Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementV1SaasUsageReport extends com.google.api.client.json.GenericJson { + + /** + * Output only. The name of the application. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String app; + + /** + * Output only. The category of the application. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String category; + + /** + * Output only. Provides information about content transfer events, if available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementV1SaasUsageReportContentTransferDetails contentTransferDetails; + + /** + * Output only. Number of distinct browsers that visited the application. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long distinctBrowsersCount; + + /** + * Output only. Number of distinct users who visited the application. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long distinctUsersCount; + + /** + * Output only. A list of domains and subdomains associated with the application. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementV1SaasUsageReportContentTransferDetails extends com.google.api.client.json.GenericJson { + + /** + * Output only. Total number of content transfers associated with the application. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long contentTransferCount; + + /** + * Output only. Total number of content transfers associated with the application. + * @return value or {@code null} for none + */ + public java.lang.Long getContentTransferCount() { + return contentTransferCount; + } + + /** + * Output only. Total number of content transfers associated with the application. + * @param contentTransferCount contentTransferCount or {@code null} for none + */ + public GoogleChromeManagementV1SaasUsageReportContentTransferDetails setContentTransferCount(java.lang.Long contentTransferCount) { + this.contentTransferCount = contentTransferCount; + return this; + } + + @Override + public GoogleChromeManagementV1SaasUsageReportContentTransferDetails set(String fieldName, Object value) { + return (GoogleChromeManagementV1SaasUsageReportContentTransferDetails) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementV1SaasUsageReportContentTransferDetails clone() { + return (GoogleChromeManagementV1SaasUsageReportContentTransferDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/pom.xml b/clients/google-api-services-chromemanagement/v1/2.0.0/pom.xml index 7f0f3dc0578..e7032317318 100644 --- a/clients/google-api-services-chromemanagement/v1/2.0.0/pom.xml +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@