diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/README.md b/clients/google-api-services-chromemanagement/v1/2.0.0/README.md index c5a019893d8..2301f7bc7b1 100644 --- a/clients/google-api-services-chromemanagement/v1/2.0.0/README.md +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-chromemanagement - v1-rev20260930-2.0.0 + v1-rev20261008-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-chromemanagement:v1-rev20260930-2.0.0' + implementation 'com.google.apis:google-api-services-chromemanagement:v1-rev20261008-2.0.0' } ``` diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/ChromeManagement.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/ChromeManagement.java index 99cd76216de..a85488e46fe 100644 --- a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/ChromeManagement.java +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/ChromeManagement.java @@ -2352,325 +2352,1848 @@ public Get set(String parameterName, Object value) { } } /** - * An accessor for creating requests from the ConnectorConfigs collection. + * An accessor for creating requests from the ChromeBrowsers collection. * *

The typical use is:

*
      *   {@code ChromeManagement chromemanagement = new ChromeManagement(...);}
-     *   {@code ChromeManagement.ConnectorConfigs.List request = chromemanagement.connectorConfigs().list(parameters ...)}
+     *   {@code ChromeManagement.ChromeBrowsers.List request = chromemanagement.chromeBrowsers().list(parameters ...)}
      * 
* * @return the resource collection */ - public ConnectorConfigs connectorConfigs() { - return new ConnectorConfigs(); + public ChromeBrowsers chromeBrowsers() { + return new ChromeBrowsers(); } /** - * The "connectorConfigs" collection of methods. + * The "chromeBrowsers" collection of methods. */ - public class ConnectorConfigs { + public class ChromeBrowsers { /** - * Creates a connector config. + * Deletes the data collected from a Chrome browser profile. * - * Create a request for the method "connectorConfigs.create". + * Create a request for the method "chromeBrowsers.delete". * * This request holds the parameters needed by the chromemanagement server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param parent Required. Format: customers/{customer} - * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig} + * @param name Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig content) throws java.io.IOException { - Create result = new Create(parent, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Create extends ChromeManagementRequest { + public class Delete extends ChromeManagementRequest { - private static final String REST_PATH = "v1/{+parent}/connectorConfigs"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^customers/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+/chromeBrowsers/[^/]+$"); /** - * Creates a connector config. + * Deletes the data collected from a Chrome browser profile. * - * Create a request for the method "connectorConfigs.create". + * Create a request for the method "chromeBrowsers.delete". * * This request holds the parameters needed by the the chromemanagement server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. *

{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. Format: customers/{customer} - * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig} + * @param name Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig content) { - super(ChromeManagement.this, "POST", REST_PATH, content, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Delete(java.lang.String name) { + super(ChromeManagement.this, "DELETE", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^customers/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/chromeBrowsers/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. Format: customers/{customer} */ + /** Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. Format: customers/{customer} + /** Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. Format: customers/{customer} */ - public Create setParent(java.lang.String parent) { + /** Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^customers/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/chromeBrowsers/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves a single Chrome Browser identified by its customer ID and resource ID. + * + * Create a request for the method "chromeBrowsers.get". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+/chromeBrowsers/[^/]+$"); + /** - * Optional. ID to use for the connector config, which becomes the final component of the - * connector config's resource name. If provided, the ID must be 1-36 characters long, and - * contain only lowercase letters, digits, and hyphens. It must start with a letter, and end - * with a letter or number. If not provided, the connector config will be assigned a random - * UUID. + * Retrieves a single Chrome Browser identified by its customer ID and resource ID. + * + * Create a request for the method "chromeBrowsers.get". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} + * @since 1.13 */ + protected Get(java.lang.String name) { + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ChromeBrowser.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/chromeBrowsers/[^/]+$"); + } + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} */ @com.google.api.client.util.Key - private java.lang.String connectorConfigId; + private java.lang.String name; - /** Optional. ID to use for the connector config, which becomes the final component of the connector - config's resource name. If provided, the ID must be 1-36 characters long, and contain only - lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or - number. If not provided, the connector config will be assigned a random UUID. + /** Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} */ - public java.lang.String getConnectorConfigId() { - return connectorConfigId; + public java.lang.String getName() { + return name; } - /** - * Optional. ID to use for the connector config, which becomes the final component of the - * connector config's resource name. If provided, the ID must be 1-36 characters long, and - * contain only lowercase letters, digits, and hyphens. It must start with a letter, and end - * with a letter or number. If not provided, the connector config will be assigned a random - * UUID. - */ - public Create setConnectorConfigId(java.lang.String connectorConfigId) { - this.connectorConfigId = connectorConfigId; + /** Required. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/chromeBrowsers/[^/]+$"); + } + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a connector config. + * Retrieves all Chrome Browsers of a customer (paginated). * - * Create a request for the method "connectorConfigs.delete". + * Create a request for the method "chromeBrowsers.list". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Format: customers/{customer_id} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+parent}/chromeBrowsers"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+$"); + + /** + * Retrieves all Chrome Browsers of a customer (paginated). + * + * Create a request for the method "chromeBrowsers.list". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Format: customers/{customer_id} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ListChromeBrowsersResponse.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 " + + "^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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Format: customers/{customer_id} */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Format: customers/{customer_id} + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Format: customers/{customer_id} */ + public List 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 " + + "^customers/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The filter used to filter browsers. The following fields can be used in the + * filter: * `browser_permanent_id` * `last_policy_fetch_time` * `os_platform` * + * `os_architecture` * `os_version` * `machine_name` * `annotated_location` * + * `annotated_user` * `annotated_asset_id` * `annotated_note` * `org_unit_path` * + * `org_unit_id` * `last_registration_time` * `os_platform_version` * `browser_version` * + * `last_status_report_time` * `extension_count` * `policy_count` * `last_device_user` * + * `last_activity_time` * `device_id_collision` The following functions can be used in the + * filter: * `in_group(string)`: Filters browsers that belong to the specified Cloud + * Identity group resource name (e.g. `in_group("groups/{group_id}")`). Any of the above + * fields or functions can be used to specify a filter, and filtering by multiple fields or + * functions is supported with AND operator. String type, Integer type fields and enum type + * fields support `=` and `:` operators. The timestamp type fields support `=`, `<=` and + * `>=` operators. Timestamps expect an RFC-3339 formatted string (e.g. + * 2012-04-21T11:30:00-04:00). Wildcard `*` is only supported for `machine_name`, + * `annotated_asset_id`, and `browser_version`. In addition, global string literal filtering + * without a field name is supported: a single term (e.g., `ABC`) matches if any indexed + * string field contains `ABC`, and multiple terms joined by `AND` or whitespace (e.g., + * `machine AND 73` or `machine 73`) match browsers where every term appears in at least one + * indexed string field (whereas a single quoted phrase like `"machine 73"` matches the + * contiguous phrase within a single field). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filter used to filter browsers. The following fields can be used in the filter: * + `browser_permanent_id` * `last_policy_fetch_time` * `os_platform` * `os_architecture` * + `os_version` * `machine_name` * `annotated_location` * `annotated_user` * `annotated_asset_id` * + `annotated_note` * `org_unit_path` * `org_unit_id` * `last_registration_time` * + `os_platform_version` * `browser_version` * `last_status_report_time` * `extension_count` * + `policy_count` * `last_device_user` * `last_activity_time` * `device_id_collision` The following + functions can be used in the filter: * `in_group(string)`: Filters browsers that belong to the + specified Cloud Identity group resource name (e.g. `in_group("groups/{group_id}")`). Any of the + above fields or functions can be used to specify a filter, and filtering by multiple fields or + functions is supported with AND operator. String type, Integer type fields and enum type fields + support `=` and `:` operators. The timestamp type fields support `=`, `<=` and `>=` operators. + Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard `*` is + only supported for `machine_name`, `annotated_asset_id`, and `browser_version`. In addition, global + string literal filtering without a field name is supported: a single term (e.g., `ABC`) matches if + any indexed string field contains `ABC`, and multiple terms joined by `AND` or whitespace (e.g., + `machine AND 73` or `machine 73`) match browsers where every term appears in at least one indexed + string field (whereas a single quoted phrase like `"machine 73"` matches the contiguous phrase + within a single field). + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The filter used to filter browsers. The following fields can be used in the + * filter: * `browser_permanent_id` * `last_policy_fetch_time` * `os_platform` * + * `os_architecture` * `os_version` * `machine_name` * `annotated_location` * + * `annotated_user` * `annotated_asset_id` * `annotated_note` * `org_unit_path` * + * `org_unit_id` * `last_registration_time` * `os_platform_version` * `browser_version` * + * `last_status_report_time` * `extension_count` * `policy_count` * `last_device_user` * + * `last_activity_time` * `device_id_collision` The following functions can be used in the + * filter: * `in_group(string)`: Filters browsers that belong to the specified Cloud + * Identity group resource name (e.g. `in_group("groups/{group_id}")`). Any of the above + * fields or functions can be used to specify a filter, and filtering by multiple fields or + * functions is supported with AND operator. String type, Integer type fields and enum type + * fields support `=` and `:` operators. The timestamp type fields support `=`, `<=` and + * `>=` operators. Timestamps expect an RFC-3339 formatted string (e.g. + * 2012-04-21T11:30:00-04:00). Wildcard `*` is only supported for `machine_name`, + * `annotated_asset_id`, and `browser_version`. In addition, global string literal filtering + * without a field name is supported: a single term (e.g., `ABC`) matches if any indexed + * string field contains `ABC`, and multiple terms joined by `AND` or whitespace (e.g., + * `machine AND 73` or `machine 73`) match browsers where every term appears in at least one + * indexed string field (whereas a single quoted phrase like `"machine 73"` matches the + * contiguous phrase within a single field). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The fields used to specify the ordering of the results. The supported fields + * are: * `browser_permanent_id` * `last_sync` * `annotated_user` * `annotated_location` * + * `annotated_asset_id` * `annotated_notes` * `org_unit_path` * `os_version` * + * `enrollment_date` * `extension_count` * `policy_count` * `last_signed_in_user` * + * `machine_name` * `browser_version_channel` * `os_platform_version` * `last_activity_time` + * * `browser_version` By default, sorting is in ascending order, to specify descending + * order for a field, a suffix ` desc` should be added to the field name. The default + * ordering is the descending order of `last_status_report_time`. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The fields used to specify the ordering of the results. The supported fields are: * + `browser_permanent_id` * `last_sync` * `annotated_user` * `annotated_location` * + `annotated_asset_id` * `annotated_notes` * `org_unit_path` * `os_version` * `enrollment_date` * + `extension_count` * `policy_count` * `last_signed_in_user` * `machine_name` * + `browser_version_channel` * `os_platform_version` * `last_activity_time` * `browser_version` By + default, sorting is in ascending order, to specify descending order for a field, a suffix ` desc` + should be added to the field name. The default ordering is the descending order of + `last_status_report_time`. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The fields used to specify the ordering of the results. The supported fields + * are: * `browser_permanent_id` * `last_sync` * `annotated_user` * `annotated_location` * + * `annotated_asset_id` * `annotated_notes` * `org_unit_path` * `os_version` * + * `enrollment_date` * `extension_count` * `policy_count` * `last_signed_in_user` * + * `machine_name` * `browser_version_channel` * `os_platform_version` * `last_activity_time` + * * `browser_version` By default, sorting is in ascending order, to specify descending + * order for a field, a suffix ` desc` should be added to the field name. The default + * ordering is the descending order of `last_status_report_time`. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. Maximum number of results to return. Maximum and default are 100. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of results to return. Maximum and default are 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. Maximum number of results to return. Maximum and default are 100. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. Token to specify next page in the list. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Token to specify next page in the list. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. Token to specify next page in the list. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Moves managed Chrome Browsers to a new Organizational Unit (OU). If there is an error while + * moving any of the browsers, none of the browsers will be moved. + * + * Create a request for the method "chromeBrowsers.move". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link Move#execute()} method to invoke the remote operation. + * + * @param parent Required. Format: customers/{customer_id} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest} + * @return the request + */ + public Move move(java.lang.String parent, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest content) throws java.io.IOException { + Move result = new Move(parent, content); + initialize(result); + return result; + } + + public class Move extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+parent}/chromeBrowsers:move"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+$"); + + /** + * Moves managed Chrome Browsers to a new Organizational Unit (OU). If there is an error while + * moving any of the browsers, none of the browsers will be moved. + * + * Create a request for the method "chromeBrowsers.move". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link Move#execute()} method to invoke the remote operation.

+ * {@link Move#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Format: customers/{customer_id} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest} + * @since 1.13 + */ + protected Move(java.lang.String parent, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest content) { + super(ChromeManagement.this, "POST", REST_PATH, content, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse.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 " + + "^customers/[^/]+$"); + } + } + + @Override + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); + } + + @Override + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); + } + + @Override + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); + } + + @Override + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); + } + + @Override + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); + } + + @Override + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); + } + + @Override + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); + } + + @Override + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); + } + + @Override + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); + } + + @Override + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); + } + + @Override + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Format: customers/{customer_id} */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Format: customers/{customer_id} + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Format: customers/{customer_id} */ + public Move 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 " + + "^customers/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); + } + } + /** + * Updates annotation information for a Chrome Browser. + * + * Create a request for the method "chromeBrowsers.patch". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ChromeBrowser} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ChromeBrowser content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+/chromeBrowsers/[^/]+$"); + + /** + * Updates annotation information for a Chrome Browser. + * + * Create a request for the method "chromeBrowsers.patch". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ChromeBrowser} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ChromeBrowser content) { + super(ChromeManagement.this, "PATCH", REST_PATH, content, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ChromeBrowser.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/chromeBrowsers/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** Identifier. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} + */ + public java.lang.String getName() { + return name; + } + + /** Identifier. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/chromeBrowsers/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The update mask that can be used to specify which fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The update mask that can be used to specify which fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The update mask that can be used to specify which fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the ConnectorConfigs collection. + * + *

The typical use is:

+ *
+     *   {@code ChromeManagement chromemanagement = new ChromeManagement(...);}
+     *   {@code ChromeManagement.ConnectorConfigs.List request = chromemanagement.connectorConfigs().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public ConnectorConfigs connectorConfigs() { + return new ConnectorConfigs(); + } + + /** + * The "connectorConfigs" collection of methods. + */ + public class ConnectorConfigs { + + /** + * Creates a connector config. + * + * Create a request for the method "connectorConfigs.create". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. Format: customers/{customer} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+parent}/connectorConfigs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+$"); + + /** + * Creates a connector config. + * + * Create a request for the method "connectorConfigs.create". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Format: customers/{customer} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig content) { + super(ChromeManagement.this, "POST", REST_PATH, content, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig.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 " + + "^customers/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Format: customers/{customer} */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Format: customers/{customer} + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Format: customers/{customer} */ + public Create 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 " + + "^customers/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. ID to use for the connector config, which becomes the final component of the + * connector config's resource name. If provided, the ID must be 1-36 characters long, and + * contain only lowercase letters, digits, and hyphens. It must start with a letter, and end + * with a letter or number. If not provided, the connector config will be assigned a random + * UUID. + */ + @com.google.api.client.util.Key + private java.lang.String connectorConfigId; + + /** Optional. ID to use for the connector config, which becomes the final component of the connector + config's resource name. If provided, the ID must be 1-36 characters long, and contain only + lowercase letters, digits, and hyphens. It must start with a letter, and end with a letter or + number. If not provided, the connector config will be assigned a random UUID. + */ + public java.lang.String getConnectorConfigId() { + return connectorConfigId; + } + + /** + * Optional. ID to use for the connector config, which becomes the final component of the + * connector config's resource name. If provided, the ID must be 1-36 characters long, and + * contain only lowercase letters, digits, and hyphens. It must start with a letter, and end + * with a letter or number. If not provided, the connector config will be assigned a random + * UUID. + */ + public Create setConnectorConfigId(java.lang.String connectorConfigId) { + this.connectorConfigId = connectorConfigId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a connector config. + * + * Create a request for the method "connectorConfigs.delete". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. Format: customers/{customer}/connectorConfigs/{connector_config} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+/connectorConfigs/[^/]+$"); + + /** + * Deletes a connector config. + * + * Create a request for the method "connectorConfigs.delete". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Format: customers/{customer}/connectorConfigs/{connector_config} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(ChromeManagement.this, "DELETE", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/connectorConfigs/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} + */ + public java.lang.String getName() { + return name; + } + + /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/connectorConfigs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a connector config with customer ID and config ID. + * + * Create a request for the method "connectorConfigs.get". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Format: customers/{customer}/connectorConfigs/{connector_config} + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+/connectorConfigs/[^/]+$"); + + /** + * Gets a connector config with customer ID and config ID. + * + * Create a request for the method "connectorConfigs.get". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. Format: customers/{customer}/connectorConfigs/{connector_config} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/connectorConfigs/[^/]+$"); + } + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} + */ + public java.lang.String getName() { + return name; + } + + /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/connectorConfigs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists connector configs of a customer. + * + * Create a request for the method "connectorConfigs.list". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Format: customers/{customer} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+parent}/connectorConfigs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+$"); + + /** + * Lists connector configs of a customer. + * + * Create a request for the method "connectorConfigs.list". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. Format: customers/{customer} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ListConnectorConfigsResponse.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 " + + "^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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. Format: customers/{customer} */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Format: customers/{customer} + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. Format: customers/{customer} */ + public List 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 " + + "^customers/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The maximum number of connector configs to return. The default page size is 50 + * if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 + * will be capped at 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of connector configs to return. The default page size is 50 if + page_size is unspecified, and the maximum page size allowed is 100. Values above 100 will be capped + at 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of connector configs to return. The default page size is 50 + * if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 + * will be capped at 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListConnectorConfigs` 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 `ListConnectorConfigs` call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListConnectorConfigs` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListConnectorConfigs` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a connector config. + * + * Create a request for the method "connectorConfigs.patch". + * + * This request holds the parameters needed by the chromemanagement server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends ChromeManagementRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+/connectorConfigs/[^/]+$"); + + /** + * Updates a connector config. + * + * Create a request for the method "connectorConfigs.patch". + * + * This request holds the parameters needed by the the chromemanagement server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig content) { + super(ChromeManagement.this, "PATCH", REST_PATH, content, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/connectorConfigs/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} + */ + public java.lang.String getName() { + return name; + } + + /** Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^customers/[^/]+/connectorConfigs/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The update mask that can be used to specify which fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The update mask that can be used to specify which fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The update mask that can be used to specify which fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the EnrollmentTokens collection. + * + *

The typical use is:

+ *
+     *   {@code ChromeManagement chromemanagement = new ChromeManagement(...);}
+     *   {@code ChromeManagement.EnrollmentTokens.List request = chromemanagement.enrollmentTokens().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public EnrollmentTokens enrollmentTokens() { + return new EnrollmentTokens(); + } + + /** + * The "enrollmentTokens" collection of methods. + */ + public class EnrollmentTokens { + + /** + * Creates a new enrollment token for a browser device. Creation fails if there is already an active + * token for this customer under the same org unit. + * + * Create a request for the method "enrollmentTokens.create". * * This request holds the parameters needed by the chromemanagement server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Required. Format: customers/{customer}/connectorConfigs/{connector_config} + * @param parent Required. The parent resource where this enrollment token will be created. Format: + * customers/{customer} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1EnrollmentToken} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Create create(java.lang.String parent, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1EnrollmentToken content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Delete extends ChromeManagementRequest { + public class Create extends ChromeManagementRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/enrollmentTokens"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^customers/[^/]+/connectorConfigs/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^customers/[^/]+$"); /** - * Deletes a connector config. + * Creates a new enrollment token for a browser device. Creation fails if there is already an + * active token for this customer under the same org unit. * - * Create a request for the method "connectorConfigs.delete". + * Create a request for the method "enrollmentTokens.create". * * This request holds the parameters needed by the the chromemanagement server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. Format: customers/{customer}/connectorConfigs/{connector_config} + * @param parent Required. The parent resource where this enrollment token will be created. Format: + * customers/{customer} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1EnrollmentToken} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(ChromeManagement.this, "DELETE", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1EnrollmentToken content) { + super(ChromeManagement.this, "POST", REST_PATH, content, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1EnrollmentToken.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^customers/[^/]+/connectorConfigs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^customers/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} */ + /** + * Required. The parent resource where this enrollment token will be created. Format: + * customers/{customer} + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} + /** Required. The parent resource where this enrollment token will be created. Format: + customers/{customer} */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} */ - public Delete setName(java.lang.String name) { + /** + * Required. The parent resource where this enrollment token will be created. Format: + * customers/{customer} + */ + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^customers/[^/]+/connectorConfigs/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^customers/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the enrollment token, which will become the final component + * of the enrollment token's resource name. This value must be local-unique under the + * customer and is optional. If not provided, it will be auto-generated. If provided, it + * must be 1-63 characters long and match the regular expression `[a-zA-Z0-9._-]+`. + */ + @com.google.api.client.util.Key + private java.lang.String enrollmentTokenId; + + /** Optional. The ID to use for the enrollment token, which will become the final component of the + enrollment token's resource name. This value must be local-unique under the customer and is + optional. If not provided, it will be auto-generated. If provided, it must be 1-63 characters long + and match the regular expression `[a-zA-Z0-9._-]+`. + */ + public java.lang.String getEnrollmentTokenId() { + return enrollmentTokenId; + } + + /** + * Optional. The ID to use for the enrollment token, which will become the final component + * of the enrollment token's resource name. This value must be local-unique under the + * customer and is optional. If not provided, it will be auto-generated. If provided, it + * must be 1-63 characters long and match the regular expression `[a-zA-Z0-9._-]+`. + */ + public Create setEnrollmentTokenId(java.lang.String enrollmentTokenId) { + this.enrollmentTokenId = enrollmentTokenId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Gets a connector config with customer ID and config ID. + * Gets a browser device enrollment token. * - * Create a request for the method "connectorConfigs.get". + * Create a request for the method "enrollmentTokens.get". * * This request holds the parameters needed by the chromemanagement server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. Format: customers/{customer}/connectorConfigs/{connector_config} + * @param name Required. The name of the enrollment token to retrieve. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -2679,33 +4202,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends ChromeManagementRequest { + public class Get extends ChromeManagementRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^customers/[^/]+/connectorConfigs/[^/]+$"); + java.util.regex.Pattern.compile("^customers/[^/]+/enrollmentTokens/[^/]+$"); /** - * Gets a connector config with customer ID and config ID. + * Gets a browser device enrollment token. * - * Create a request for the method "connectorConfigs.get". + * Create a request for the method "enrollmentTokens.get". * * This request holds the parameters needed by the the chromemanagement server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. Format: customers/{customer}/connectorConfigs/{connector_config} + * @param name Required. The name of the enrollment token to retrieve. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} * @since 1.13 */ protected Get(java.lang.String name) { - super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig.class); + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1EnrollmentToken.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^customers/[^/]+/connectorConfigs/[^/]+$"); + "^customers/[^/]+/enrollmentTokens/[^/]+$"); } } @@ -2774,22 +4298,29 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} */ + /** + * Required. The name of the enrollment token to retrieve. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} + /** Required. The name of the enrollment token to retrieve. Format: + customers/{customer}/enrollmentTokens/{token_permanent_id} */ public java.lang.String getName() { return name; } - /** Required. Format: customers/{customer}/connectorConfigs/{connector_config} */ + /** + * Required. The name of the enrollment token to retrieve. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^customers/[^/]+/connectorConfigs/[^/]+$"); + "^customers/[^/]+/enrollmentTokens/[^/]+$"); } this.name = name; return this; @@ -2801,14 +4332,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists connector configs of a customer. + * Lists all browser device enrollment tokens. * - * Create a request for the method "connectorConfigs.list". + * Create a request for the method "enrollmentTokens.list". * * This request holds the parameters needed by the chromemanagement server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. Format: customers/{customer} + * @param parent Required. The parent resource where this enrollment token will be created. Format: + * customers/{customer} * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -2817,28 +4349,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends ChromeManagementRequest { + public class List extends ChromeManagementRequest { - private static final String REST_PATH = "v1/{+parent}/connectorConfigs"; + private static final String REST_PATH = "v1/{+parent}/enrollmentTokens"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^customers/[^/]+$"); /** - * Lists connector configs of a customer. + * Lists all browser device enrollment tokens. * - * Create a request for the method "connectorConfigs.list". + * Create a request for the method "enrollmentTokens.list". * * This request holds the parameters needed by the the chromemanagement server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. Format: customers/{customer} + * @param parent Required. The parent resource where this enrollment token will be created. Format: + * customers/{customer} * @since 1.13 */ protected List(java.lang.String parent) { - super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ListConnectorConfigsResponse.class); + super(ChromeManagement.this, "GET", REST_PATH, null, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse.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(), @@ -2912,17 +4445,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. Format: customers/{customer} */ + /** + * Required. The parent resource where this enrollment token will be created. Format: + * customers/{customer} + */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. Format: customers/{customer} + /** Required. The parent resource where this enrollment token will be created. Format: + customers/{customer} */ public java.lang.String getParent() { return parent; } - /** Required. Format: customers/{customer} */ + /** + * Required. The parent resource where this enrollment token will be created. Format: + * customers/{customer} + */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -2934,52 +4474,63 @@ public List setParent(java.lang.String parent) { } /** - * Optional. The maximum number of connector configs to return. The default page size is 50 - * if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 - * will be capped at 100. + * Optional. Filter to apply to list results. The following fields can be used in the + * filter: * device_type (currently only 'CHROME_BROWSER' is supported) * token_state + * (supported values: 'ACTIVE', 'EXPIRED', 'REVOKED') * org_unit_path The full path of the + * org unit, such as /Montreal/Sales. * org_unit_id The obfuscated id of the org unit, not + * the full path. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to apply to list results. The following fields can be used in the filter: * + device_type (currently only 'CHROME_BROWSER' is supported) * token_state (supported values: + 'ACTIVE', 'EXPIRED', 'REVOKED') * org_unit_path The full path of the org unit, such as + /Montreal/Sales. * org_unit_id The obfuscated id of the org unit, not the full path. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to apply to list results. The following fields can be used in the + * filter: * device_type (currently only 'CHROME_BROWSER' is supported) * token_state + * (supported values: 'ACTIVE', 'EXPIRED', 'REVOKED') * org_unit_path The full path of the + * org unit, such as /Montreal/Sales. * org_unit_id The obfuscated id of the org unit, not + * the full path. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Maximum number of results to return. Maximum and default are 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The maximum number of connector configs to return. The default page size is 50 if - page_size is unspecified, and the maximum page size allowed is 100. Values above 100 will be capped - at 100. + /** Optional. Maximum number of results to return. Maximum and default are 100. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * Optional. The maximum number of connector configs to return. The default page size is 50 - * if page_size is unspecified, and the maximum page size allowed is 100. Values above 100 - * will be capped at 100. - */ + /** Optional. Maximum number of results to return. Maximum and default are 100. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** - * Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListConnectorConfigs` must match the call that provided the page token. - */ + /** Optional. Token to specify next page in the list. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide this to - retrieve the subsequent page. When paginating, all other parameters provided to - `ListConnectorConfigs` must match the call that provided the page token. + /** Optional. Token to specify next page in the list. */ public java.lang.String getPageToken() { return pageToken; } - /** - * Optional. A page token, received from a previous `ListConnectorConfigs` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters provided to - * `ListConnectorConfigs` must match the call that provided the page token. - */ + /** Optional. Token to specify next page in the list. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; @@ -2991,150 +4542,143 @@ public List set(String parameterName, Object value) { } } /** - * Updates a connector config. + * Revokes a browser device enrollment token. * - * Create a request for the method "connectorConfigs.patch". + * Create a request for the method "enrollmentTokens.revoke". * * This request holds the parameters needed by the chromemanagement server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Revoke#execute()} method to invoke the remote operation. * - * @param name Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} - * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig} + * @param name Required. The name of the enrollment token to revoke. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Revoke revoke(java.lang.String name, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest content) throws java.io.IOException { + Revoke result = new Revoke(name, content); initialize(result); return result; } - public class Patch extends ChromeManagementRequest { + public class Revoke extends ChromeManagementRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:revoke"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^customers/[^/]+/connectorConfigs/[^/]+$"); + java.util.regex.Pattern.compile("^customers/[^/]+/enrollmentTokens/[^/]+$"); /** - * Updates a connector config. + * Revokes a browser device enrollment token. * - * Create a request for the method "connectorConfigs.patch". + * Create a request for the method "enrollmentTokens.revoke". * * This request holds the parameters needed by the the chromemanagement server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Revoke#execute()} method to invoke the remote operation. *

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Revoke#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param name Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} - * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig} + * @param name Required. The name of the enrollment token to revoke. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + * @param content the {@link com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig content) { - super(ChromeManagement.this, "PATCH", REST_PATH, content, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1ConnectorConfig.class); + protected Revoke(java.lang.String name, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest content) { + super(ChromeManagement.this, "POST", REST_PATH, content, com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1EnrollmentToken.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^customers/[^/]+/connectorConfigs/[^/]+$"); + "^customers/[^/]+/enrollmentTokens/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Revoke set$Xgafv(java.lang.String $Xgafv) { + return (Revoke) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Revoke setAccessToken(java.lang.String accessToken) { + return (Revoke) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Revoke setAlt(java.lang.String alt) { + return (Revoke) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Revoke setCallback(java.lang.String callback) { + return (Revoke) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Revoke setFields(java.lang.String fields) { + return (Revoke) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Revoke setKey(java.lang.String key) { + return (Revoke) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Revoke setOauthToken(java.lang.String oauthToken) { + return (Revoke) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Revoke setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Revoke) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Revoke setQuotaUser(java.lang.String quotaUser) { + return (Revoke) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Revoke setUploadType(java.lang.String uploadType) { + return (Revoke) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Revoke setUploadProtocol(java.lang.String uploadProtocol) { + return (Revoke) super.setUploadProtocol(uploadProtocol); } - /** Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} */ + /** + * Required. The name of the enrollment token to revoke. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + */ @com.google.api.client.util.Key private java.lang.String name; - /** Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} + /** Required. The name of the enrollment token to revoke. Format: + customers/{customer}/enrollmentTokens/{token_permanent_id} */ public java.lang.String getName() { return name; } - /** Identifier. Format: customers/{customer}/connectorConfigs/{connector_config} */ - public Patch setName(java.lang.String name) { + /** + * Required. The name of the enrollment token to revoke. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + */ + public Revoke setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^customers/[^/]+/connectorConfigs/[^/]+$"); + "^customers/[^/]+/enrollmentTokens/[^/]+$"); } this.name = name; return this; } - /** Optional. The update mask that can be used to specify which fields to update. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. The update mask that can be used to specify which fields to update. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Optional. The update mask that can be used to specify which fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Revoke set(String parameterName, Object value) { + return (Revoke) super.set(parameterName, value); } } diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Browser.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Browser.java new file mode 100644 index 00000000000..11326e090a8 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Browser.java @@ -0,0 +1,238 @@ +/* + * 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; + +/** + * A specific installation of Chrome on a device with managed Chrome browsers. + * + *

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 GoogleChromeManagementVersionsV1Browser extends com.google.api.client.json.GenericJson { + + /** + * Output only. Browser version installed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String browserVersion; + + /** + * Output only. The channel of the browser installed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String channel; + + /** + * Output only. The path to the Chrome.exe executable for this browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String executablePath; + + /** + * Output only. The time when the last request to fetch policies succeeded on this Chrome browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastPolicyFetchTime; + + /** + * Output only. The time when the last report was received from this Chrome browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastStatusReportTime; + + /** + * Output only. Pending version of a browser is installed. This field is only set when the current + * active browser has a different version as in "browser_version". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pendingInstallVersion; + + /** + * Output only. List of all plugins installed on this Chrome browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List plugins; + + /** + * Output only. The list of profiles for this browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List profiles; + + /** + * Output only. Browser version installed. + * @return value or {@code null} for none + */ + public java.lang.String getBrowserVersion() { + return browserVersion; + } + + /** + * Output only. Browser version installed. + * @param browserVersion browserVersion or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Browser setBrowserVersion(java.lang.String browserVersion) { + this.browserVersion = browserVersion; + return this; + } + + /** + * Output only. The channel of the browser installed. + * @return value or {@code null} for none + */ + public java.lang.String getChannel() { + return channel; + } + + /** + * Output only. The channel of the browser installed. + * @param channel channel or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Browser setChannel(java.lang.String channel) { + this.channel = channel; + return this; + } + + /** + * Output only. The path to the Chrome.exe executable for this browser. + * @return value or {@code null} for none + */ + public java.lang.String getExecutablePath() { + return executablePath; + } + + /** + * Output only. The path to the Chrome.exe executable for this browser. + * @param executablePath executablePath or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Browser setExecutablePath(java.lang.String executablePath) { + this.executablePath = executablePath; + return this; + } + + /** + * Output only. The time when the last request to fetch policies succeeded on this Chrome browser. + * @return value or {@code null} for none + */ + public String getLastPolicyFetchTime() { + return lastPolicyFetchTime; + } + + /** + * Output only. The time when the last request to fetch policies succeeded on this Chrome browser. + * @param lastPolicyFetchTime lastPolicyFetchTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Browser setLastPolicyFetchTime(String lastPolicyFetchTime) { + this.lastPolicyFetchTime = lastPolicyFetchTime; + return this; + } + + /** + * Output only. The time when the last report was received from this Chrome browser. + * @return value or {@code null} for none + */ + public String getLastStatusReportTime() { + return lastStatusReportTime; + } + + /** + * Output only. The time when the last report was received from this Chrome browser. + * @param lastStatusReportTime lastStatusReportTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Browser setLastStatusReportTime(String lastStatusReportTime) { + this.lastStatusReportTime = lastStatusReportTime; + return this; + } + + /** + * Output only. Pending version of a browser is installed. This field is only set when the current + * active browser has a different version as in "browser_version". + * @return value or {@code null} for none + */ + public java.lang.String getPendingInstallVersion() { + return pendingInstallVersion; + } + + /** + * Output only. Pending version of a browser is installed. This field is only set when the current + * active browser has a different version as in "browser_version". + * @param pendingInstallVersion pendingInstallVersion or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Browser setPendingInstallVersion(java.lang.String pendingInstallVersion) { + this.pendingInstallVersion = pendingInstallVersion; + return this; + } + + /** + * Output only. List of all plugins installed on this Chrome browser. + * @return value or {@code null} for none + */ + public java.util.List getPlugins() { + return plugins; + } + + /** + * Output only. List of all plugins installed on this Chrome browser. + * @param plugins plugins or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Browser setPlugins(java.util.List plugins) { + this.plugins = plugins; + return this; + } + + /** + * Output only. The list of profiles for this browser. + * @return value or {@code null} for none + */ + public java.util.List getProfiles() { + return profiles; + } + + /** + * Output only. The list of profiles for this browser. + * @param profiles profiles or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Browser setProfiles(java.util.List profiles) { + this.profiles = profiles; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1Browser set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1Browser) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1Browser clone() { + return (GoogleChromeManagementVersionsV1Browser) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1BrowserUser.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1BrowserUser.java new file mode 100644 index 00000000000..a3e92321a8c --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1BrowserUser.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * A Chrome browser user. + * + *

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 GoogleChromeManagementVersionsV1BrowserUser extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time when this user info last reported a status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastStatusReportTime; + + /** + * Output only. The user name of the user that signed into chrome. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userName; + + /** + * Output only. The time when this user info last reported a status. + * @return value or {@code null} for none + */ + public String getLastStatusReportTime() { + return lastStatusReportTime; + } + + /** + * Output only. The time when this user info last reported a status. + * @param lastStatusReportTime lastStatusReportTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1BrowserUser setLastStatusReportTime(String lastStatusReportTime) { + this.lastStatusReportTime = lastStatusReportTime; + return this; + } + + /** + * Output only. The user name of the user that signed into chrome. + * @return value or {@code null} for none + */ + public java.lang.String getUserName() { + return userName; + } + + /** + * Output only. The user name of the user that signed into chrome. + * @param userName userName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1BrowserUser setUserName(java.lang.String userName) { + this.userName = userName; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1BrowserUser set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1BrowserUser) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1BrowserUser clone() { + return (GoogleChromeManagementVersionsV1BrowserUser) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ChromeBrowser.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ChromeBrowser.java new file mode 100644 index 00000000000..c01ef4e7a7f --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ChromeBrowser.java @@ -0,0 +1,763 @@ +/* + * 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; + +/** + * A device with managed Chrome Browsers. + * + *

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 GoogleChromeManagementVersionsV1ChromeBrowser extends com.google.api.client.json.GenericJson { + + /** + * Optional. Asset identifier as annotated by the administrator or specified during enrollment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String annotatedAssetId; + + /** + * Optional. Address or location of the device as annotated by the administrator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String annotatedLocation; + + /** + * Optional. Notes about this device as annotated by the administrator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String annotatedNotes; + + /** + * Optional. User of the device as annotated by the administrator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String annotatedUser; + + /** + * Output only. The attestation credential used for Device Trust Connector. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1AttestationCredential attestationCredential; + + /** + * Output only. Unique identifier of Chrome Browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String browserPermanentId; + + /** + * Output only. List of all browser versions installed on this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List browserVersions; + + /** + * Output only. List of Chrome browsers installed on this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List browsers; + + static { + // hack to force ProGuard to consider GoogleChromeManagementVersionsV1Browser used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleChromeManagementVersionsV1Browser.class); + } + + /** + * Output only. The history of identifiers reported to this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1DeviceIdentifiersHistory deviceIdentifiersHistory; + + /** + * Output only. The number of distinct extensions installed on all the Chrome browsers of this + * device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long extensionCount; + + /** + * Output only. The time of the last activity on the device device either from reporting, policy + * fetching or registration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastActivityTime; + + /** + * Output only. The last user who logged into a Chrome browser on this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastDeviceUser; + + /** + * Output only. List of recent browser users, in descending order by last report time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List lastDeviceUsers; + + static { + // hack to force ProGuard to consider GoogleChromeManagementVersionsV1BrowserUser used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleChromeManagementVersionsV1BrowserUser.class); + } + + /** + * Output only. The time the last policy fetch succeeded on this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastPolicyFetchTime; + + /** + * Output only. The time the device last tried to register. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastRegistrationTime; + + /** + * Output only. The time the device last sent a status report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastStatusReportTime; + + /** + * Output only. The list of all device level policies set for extensions installed in Chrome on + * this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List machineExtensionPolicies; + + /** + * Output only. Machine name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineName; + + /** + * Output only. The list of all device level policies set for Chrome browsers on this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List machinePolicies; + + /** + * Identifier. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Recent policy fetch activity by Omaha. Not necessarily the last fetch since this + * field is only updated daily. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String omahaRecentFetchTime; + + /** + * Output only. The obfuscated organizational unit ID of the browser. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String orgUnitId; + + /** + * Output only. Device CPU architecture. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osArchitecture; + + /** + * Output only. Device Os platform. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osPlatform; + + /** + * Output only. Device Os platform and version combined. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osPlatformVersion; + + /** + * Output only. Device Os Version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osVersion; + + /** + * Output only. The number of distinct policies set on all the Chrome browsers of this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long policyCount; + + /** + * Output only. The device's serial number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serialNumber; + + /** + * Output only. The initial device id sent by the first Chrome browser that enrolled this device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String virtualDeviceId; + + /** + * Optional. Asset identifier as annotated by the administrator or specified during enrollment. + * @return value or {@code null} for none + */ + public java.lang.String getAnnotatedAssetId() { + return annotatedAssetId; + } + + /** + * Optional. Asset identifier as annotated by the administrator or specified during enrollment. + * @param annotatedAssetId annotatedAssetId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setAnnotatedAssetId(java.lang.String annotatedAssetId) { + this.annotatedAssetId = annotatedAssetId; + return this; + } + + /** + * Optional. Address or location of the device as annotated by the administrator. + * @return value or {@code null} for none + */ + public java.lang.String getAnnotatedLocation() { + return annotatedLocation; + } + + /** + * Optional. Address or location of the device as annotated by the administrator. + * @param annotatedLocation annotatedLocation or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setAnnotatedLocation(java.lang.String annotatedLocation) { + this.annotatedLocation = annotatedLocation; + return this; + } + + /** + * Optional. Notes about this device as annotated by the administrator. + * @return value or {@code null} for none + */ + public java.lang.String getAnnotatedNotes() { + return annotatedNotes; + } + + /** + * Optional. Notes about this device as annotated by the administrator. + * @param annotatedNotes annotatedNotes or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setAnnotatedNotes(java.lang.String annotatedNotes) { + this.annotatedNotes = annotatedNotes; + return this; + } + + /** + * Optional. User of the device as annotated by the administrator. + * @return value or {@code null} for none + */ + public java.lang.String getAnnotatedUser() { + return annotatedUser; + } + + /** + * Optional. User of the device as annotated by the administrator. + * @param annotatedUser annotatedUser or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setAnnotatedUser(java.lang.String annotatedUser) { + this.annotatedUser = annotatedUser; + return this; + } + + /** + * Output only. The attestation credential used for Device Trust Connector. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1AttestationCredential getAttestationCredential() { + return attestationCredential; + } + + /** + * Output only. The attestation credential used for Device Trust Connector. + * @param attestationCredential attestationCredential or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setAttestationCredential(GoogleChromeManagementVersionsV1AttestationCredential attestationCredential) { + this.attestationCredential = attestationCredential; + return this; + } + + /** + * Output only. Unique identifier of Chrome Browser. + * @return value or {@code null} for none + */ + public java.lang.String getBrowserPermanentId() { + return browserPermanentId; + } + + /** + * Output only. Unique identifier of Chrome Browser. + * @param browserPermanentId browserPermanentId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setBrowserPermanentId(java.lang.String browserPermanentId) { + this.browserPermanentId = browserPermanentId; + return this; + } + + /** + * Output only. List of all browser versions installed on this device. + * @return value or {@code null} for none + */ + public java.util.List getBrowserVersions() { + return browserVersions; + } + + /** + * Output only. List of all browser versions installed on this device. + * @param browserVersions browserVersions or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setBrowserVersions(java.util.List browserVersions) { + this.browserVersions = browserVersions; + return this; + } + + /** + * Output only. List of Chrome browsers installed on this device. + * @return value or {@code null} for none + */ + public java.util.List getBrowsers() { + return browsers; + } + + /** + * Output only. List of Chrome browsers installed on this device. + * @param browsers browsers or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setBrowsers(java.util.List browsers) { + this.browsers = browsers; + return this; + } + + /** + * Output only. The history of identifiers reported to this device. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiersHistory getDeviceIdentifiersHistory() { + return deviceIdentifiersHistory; + } + + /** + * Output only. The history of identifiers reported to this device. + * @param deviceIdentifiersHistory deviceIdentifiersHistory or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setDeviceIdentifiersHistory(GoogleChromeManagementVersionsV1DeviceIdentifiersHistory deviceIdentifiersHistory) { + this.deviceIdentifiersHistory = deviceIdentifiersHistory; + return this; + } + + /** + * Output only. The number of distinct extensions installed on all the Chrome browsers of this + * device. + * @return value or {@code null} for none + */ + public java.lang.Long getExtensionCount() { + return extensionCount; + } + + /** + * Output only. The number of distinct extensions installed on all the Chrome browsers of this + * device. + * @param extensionCount extensionCount or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setExtensionCount(java.lang.Long extensionCount) { + this.extensionCount = extensionCount; + return this; + } + + /** + * Output only. The time of the last activity on the device device either from reporting, policy + * fetching or registration. + * @return value or {@code null} for none + */ + public String getLastActivityTime() { + return lastActivityTime; + } + + /** + * Output only. The time of the last activity on the device device either from reporting, policy + * fetching or registration. + * @param lastActivityTime lastActivityTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setLastActivityTime(String lastActivityTime) { + this.lastActivityTime = lastActivityTime; + return this; + } + + /** + * Output only. The last user who logged into a Chrome browser on this device. + * @return value or {@code null} for none + */ + public java.lang.String getLastDeviceUser() { + return lastDeviceUser; + } + + /** + * Output only. The last user who logged into a Chrome browser on this device. + * @param lastDeviceUser lastDeviceUser or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setLastDeviceUser(java.lang.String lastDeviceUser) { + this.lastDeviceUser = lastDeviceUser; + return this; + } + + /** + * Output only. List of recent browser users, in descending order by last report time. + * @return value or {@code null} for none + */ + public java.util.List getLastDeviceUsers() { + return lastDeviceUsers; + } + + /** + * Output only. List of recent browser users, in descending order by last report time. + * @param lastDeviceUsers lastDeviceUsers or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setLastDeviceUsers(java.util.List lastDeviceUsers) { + this.lastDeviceUsers = lastDeviceUsers; + return this; + } + + /** + * Output only. The time the last policy fetch succeeded on this device. + * @return value or {@code null} for none + */ + public String getLastPolicyFetchTime() { + return lastPolicyFetchTime; + } + + /** + * Output only. The time the last policy fetch succeeded on this device. + * @param lastPolicyFetchTime lastPolicyFetchTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setLastPolicyFetchTime(String lastPolicyFetchTime) { + this.lastPolicyFetchTime = lastPolicyFetchTime; + return this; + } + + /** + * Output only. The time the device last tried to register. + * @return value or {@code null} for none + */ + public String getLastRegistrationTime() { + return lastRegistrationTime; + } + + /** + * Output only. The time the device last tried to register. + * @param lastRegistrationTime lastRegistrationTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setLastRegistrationTime(String lastRegistrationTime) { + this.lastRegistrationTime = lastRegistrationTime; + return this; + } + + /** + * Output only. The time the device last sent a status report. + * @return value or {@code null} for none + */ + public String getLastStatusReportTime() { + return lastStatusReportTime; + } + + /** + * Output only. The time the device last sent a status report. + * @param lastStatusReportTime lastStatusReportTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setLastStatusReportTime(String lastStatusReportTime) { + this.lastStatusReportTime = lastStatusReportTime; + return this; + } + + /** + * Output only. The list of all device level policies set for extensions installed in Chrome on + * this device. + * @return value or {@code null} for none + */ + public java.util.List getMachineExtensionPolicies() { + return machineExtensionPolicies; + } + + /** + * Output only. The list of all device level policies set for extensions installed in Chrome on + * this device. + * @param machineExtensionPolicies machineExtensionPolicies or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setMachineExtensionPolicies(java.util.List machineExtensionPolicies) { + this.machineExtensionPolicies = machineExtensionPolicies; + return this; + } + + /** + * Output only. Machine name. + * @return value or {@code null} for none + */ + public java.lang.String getMachineName() { + return machineName; + } + + /** + * Output only. Machine name. + * @param machineName machineName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setMachineName(java.lang.String machineName) { + this.machineName = machineName; + return this; + } + + /** + * Output only. The list of all device level policies set for Chrome browsers on this device. + * @return value or {@code null} for none + */ + public java.util.List getMachinePolicies() { + return machinePolicies; + } + + /** + * Output only. The list of all device level policies set for Chrome browsers on this device. + * @param machinePolicies machinePolicies or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setMachinePolicies(java.util.List machinePolicies) { + this.machinePolicies = machinePolicies; + return this; + } + + /** + * Identifier. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Format: customers/{customer_id}/chromeBrowsers/{browser_permanent_id} + * @param name name or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Recent policy fetch activity by Omaha. Not necessarily the last fetch since this + * field is only updated daily. + * @return value or {@code null} for none + */ + public String getOmahaRecentFetchTime() { + return omahaRecentFetchTime; + } + + /** + * Output only. Recent policy fetch activity by Omaha. Not necessarily the last fetch since this + * field is only updated daily. + * @param omahaRecentFetchTime omahaRecentFetchTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setOmahaRecentFetchTime(String omahaRecentFetchTime) { + this.omahaRecentFetchTime = omahaRecentFetchTime; + return this; + } + + /** + * Output only. The obfuscated organizational unit ID of the browser. + * @return value or {@code null} for none + */ + public java.lang.String getOrgUnitId() { + return orgUnitId; + } + + /** + * Output only. The obfuscated organizational unit ID of the browser. + * @param orgUnitId orgUnitId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setOrgUnitId(java.lang.String orgUnitId) { + this.orgUnitId = orgUnitId; + return this; + } + + /** + * Output only. Device CPU architecture. + * @return value or {@code null} for none + */ + public java.lang.String getOsArchitecture() { + return osArchitecture; + } + + /** + * Output only. Device CPU architecture. + * @param osArchitecture osArchitecture or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setOsArchitecture(java.lang.String osArchitecture) { + this.osArchitecture = osArchitecture; + return this; + } + + /** + * Output only. Device Os platform. + * @return value or {@code null} for none + */ + public java.lang.String getOsPlatform() { + return osPlatform; + } + + /** + * Output only. Device Os platform. + * @param osPlatform osPlatform or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setOsPlatform(java.lang.String osPlatform) { + this.osPlatform = osPlatform; + return this; + } + + /** + * Output only. Device Os platform and version combined. + * @return value or {@code null} for none + */ + public java.lang.String getOsPlatformVersion() { + return osPlatformVersion; + } + + /** + * Output only. Device Os platform and version combined. + * @param osPlatformVersion osPlatformVersion or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setOsPlatformVersion(java.lang.String osPlatformVersion) { + this.osPlatformVersion = osPlatformVersion; + return this; + } + + /** + * Output only. Device Os Version. + * @return value or {@code null} for none + */ + public java.lang.String getOsVersion() { + return osVersion; + } + + /** + * Output only. Device Os Version. + * @param osVersion osVersion or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setOsVersion(java.lang.String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** + * Output only. The number of distinct policies set on all the Chrome browsers of this device. + * @return value or {@code null} for none + */ + public java.lang.Long getPolicyCount() { + return policyCount; + } + + /** + * Output only. The number of distinct policies set on all the Chrome browsers of this device. + * @param policyCount policyCount or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setPolicyCount(java.lang.Long policyCount) { + this.policyCount = policyCount; + return this; + } + + /** + * Output only. The device's serial number. + * @return value or {@code null} for none + */ + public java.lang.String getSerialNumber() { + return serialNumber; + } + + /** + * Output only. The device's serial number. + * @param serialNumber serialNumber or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setSerialNumber(java.lang.String serialNumber) { + this.serialNumber = serialNumber; + return this; + } + + /** + * Output only. The initial device id sent by the first Chrome browser that enrolled this device. + * @return value or {@code null} for none + */ + public java.lang.String getVirtualDeviceId() { + return virtualDeviceId; + } + + /** + * Output only. The initial device id sent by the first Chrome browser that enrolled this device. + * @param virtualDeviceId virtualDeviceId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowser setVirtualDeviceId(java.lang.String virtualDeviceId) { + this.virtualDeviceId = virtualDeviceId; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1ChromeBrowser set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1ChromeBrowser) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1ChromeBrowser clone() { + return (GoogleChromeManagementVersionsV1ChromeBrowser) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiers.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiers.java new file mode 100644 index 00000000000..a3b4d0ca2b2 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiers.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; + +/** + * Collection of device identifiers. + * + *

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 GoogleChromeManagementVersionsV1DeviceIdentifiers extends com.google.api.client.json.GenericJson { + + /** + * Output only. The device's host name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hostName; + + /** + * Output only. The name of the machine associated with the device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machineName; + + /** + * Output only. The device's serial number. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serialNumber; + + /** + * Output only. The device's host name. + * @return value or {@code null} for none + */ + public java.lang.String getHostName() { + return hostName; + } + + /** + * Output only. The device's host name. + * @param hostName hostName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiers setHostName(java.lang.String hostName) { + this.hostName = hostName; + return this; + } + + /** + * Output only. The name of the machine associated with the device. + * @return value or {@code null} for none + */ + public java.lang.String getMachineName() { + return machineName; + } + + /** + * Output only. The name of the machine associated with the device. + * @param machineName machineName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiers setMachineName(java.lang.String machineName) { + this.machineName = machineName; + return this; + } + + /** + * Output only. The device's serial number. + * @return value or {@code null} for none + */ + public java.lang.String getSerialNumber() { + return serialNumber; + } + + /** + * Output only. The device's serial number. + * @param serialNumber serialNumber or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiers setSerialNumber(java.lang.String serialNumber) { + this.serialNumber = serialNumber; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1DeviceIdentifiers set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1DeviceIdentifiers) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1DeviceIdentifiers clone() { + return (GoogleChromeManagementVersionsV1DeviceIdentifiers) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiersHistory.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiersHistory.java new file mode 100644 index 00000000000..9fd9adfd061 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiersHistory.java @@ -0,0 +1,118 @@ +/* + * 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; + +/** + * History of device identifiers reported from a device. + * + *

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 GoogleChromeManagementVersionsV1DeviceIdentifiersHistory extends com.google.api.client.json.GenericJson { + + /** + * Output only. The device id is potentially being used by multiple devices. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean deviceIdCollision; + + /** + * Output only. The last time we detected the device id collision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastDeviceIdCollisionDetectionTime; + + /** + * Output only. List of device identifiers sent by this device. In descending order by + * last_activity_time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List records; + + /** + * Output only. The device id is potentially being used by multiple devices. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDeviceIdCollision() { + return deviceIdCollision; + } + + /** + * Output only. The device id is potentially being used by multiple devices. + * @param deviceIdCollision deviceIdCollision or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiersHistory setDeviceIdCollision(java.lang.Boolean deviceIdCollision) { + this.deviceIdCollision = deviceIdCollision; + return this; + } + + /** + * Output only. The last time we detected the device id collision. + * @return value or {@code null} for none + */ + public String getLastDeviceIdCollisionDetectionTime() { + return lastDeviceIdCollisionDetectionTime; + } + + /** + * Output only. The last time we detected the device id collision. + * @param lastDeviceIdCollisionDetectionTime lastDeviceIdCollisionDetectionTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiersHistory setLastDeviceIdCollisionDetectionTime(String lastDeviceIdCollisionDetectionTime) { + this.lastDeviceIdCollisionDetectionTime = lastDeviceIdCollisionDetectionTime; + return this; + } + + /** + * Output only. List of device identifiers sent by this device. In descending order by + * last_activity_time. + * @return value or {@code null} for none + */ + public java.util.List getRecords() { + return records; + } + + /** + * Output only. List of device identifiers sent by this device. In descending order by + * last_activity_time. + * @param records records or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiersHistory setRecords(java.util.List records) { + this.records = records; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1DeviceIdentifiersHistory set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1DeviceIdentifiersHistory) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1DeviceIdentifiersHistory clone() { + return (GoogleChromeManagementVersionsV1DeviceIdentifiersHistory) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiersRecord.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiersRecord.java new file mode 100644 index 00000000000..185695a6f1e --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceIdentifiersRecord.java @@ -0,0 +1,118 @@ +/* + * 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; + +/** + * Record of the device identifiers and when they were reported. + * + *

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 GoogleChromeManagementVersionsV1DeviceIdentifiersRecord extends com.google.api.client.json.GenericJson { + + /** + * Output only. The first time these identifiers were reported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String firstRecordTime; + + /** + * Output only. Device identifiers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1DeviceIdentifiers identifiers; + + /** + * Output only. The time of the last activity of these identifiers either from reporting, policy + * fetching or registration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastActivityTime; + + /** + * Output only. The first time these identifiers were reported. + * @return value or {@code null} for none + */ + public String getFirstRecordTime() { + return firstRecordTime; + } + + /** + * Output only. The first time these identifiers were reported. + * @param firstRecordTime firstRecordTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiersRecord setFirstRecordTime(String firstRecordTime) { + this.firstRecordTime = firstRecordTime; + return this; + } + + /** + * Output only. Device identifiers. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiers getIdentifiers() { + return identifiers; + } + + /** + * Output only. Device identifiers. + * @param identifiers identifiers or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiersRecord setIdentifiers(GoogleChromeManagementVersionsV1DeviceIdentifiers identifiers) { + this.identifiers = identifiers; + return this; + } + + /** + * Output only. The time of the last activity of these identifiers either from reporting, policy + * fetching or registration. + * @return value or {@code null} for none + */ + public String getLastActivityTime() { + return lastActivityTime; + } + + /** + * Output only. The time of the last activity of these identifiers either from reporting, policy + * fetching or registration. + * @param lastActivityTime lastActivityTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceIdentifiersRecord setLastActivityTime(String lastActivityTime) { + this.lastActivityTime = lastActivityTime; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1DeviceIdentifiersRecord set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1DeviceIdentifiersRecord) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1DeviceIdentifiersRecord clone() { + return (GoogleChromeManagementVersionsV1DeviceIdentifiersRecord) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1EnrollmentToken.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1EnrollmentToken.java new file mode 100644 index 00000000000..b5574b69906 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1EnrollmentToken.java @@ -0,0 +1,319 @@ +/* + * 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; + +/** + * Enrollment token for a chrome device. + * + *

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 GoogleChromeManagementVersionsV1EnrollmentToken extends com.google.api.client.json.GenericJson { + + /** + * Output only. The creation time of the token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The id of the user who created the token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creatorId; + + /** + * Output only. The obfuscated ID of the customer to whom this token is associated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customerId; + + /** + * Identifier. The resource name of the enrollment token. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the + * token is created for the root organization unit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String orgUnitId; + + /** + * Output only. The revocation time of the token, null if the token is not revoked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String revokeTime; + + /** + * Output only. The id of the user who revoked the token, null if the token is not revoked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String revokerId; + + /** + * Output only. The state of the token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The value of the token stored on the device and used to identify it to the + * management service handling the enrollment request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String token; + + /** + * Output only. Unique identifier of the enrollment token used to access information on tokens. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenPermanentId; + + /** + * Optional. The device type this token is used for. If not set, defaults to + * `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenType; + + /** + * Output only. The creation time of the token. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The creation time of the token. + * @param createTime createTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The id of the user who created the token. + * @return value or {@code null} for none + */ + public java.lang.String getCreatorId() { + return creatorId; + } + + /** + * Output only. The id of the user who created the token. + * @param creatorId creatorId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setCreatorId(java.lang.String creatorId) { + this.creatorId = creatorId; + return this; + } + + /** + * Output only. The obfuscated ID of the customer to whom this token is associated. + * @return value or {@code null} for none + */ + public java.lang.String getCustomerId() { + return customerId; + } + + /** + * Output only. The obfuscated ID of the customer to whom this token is associated. + * @param customerId customerId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setCustomerId(java.lang.String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Identifier. The resource name of the enrollment token. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the enrollment token. Format: + * customers/{customer}/enrollmentTokens/{token_permanent_id} + * @param name name or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the + * token is created for the root organization unit. + * @return value or {@code null} for none + */ + public java.lang.String getOrgUnitId() { + return orgUnitId; + } + + /** + * Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the + * token is created for the root organization unit. + * @param orgUnitId orgUnitId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setOrgUnitId(java.lang.String orgUnitId) { + this.orgUnitId = orgUnitId; + return this; + } + + /** + * Output only. The revocation time of the token, null if the token is not revoked. + * @return value or {@code null} for none + */ + public String getRevokeTime() { + return revokeTime; + } + + /** + * Output only. The revocation time of the token, null if the token is not revoked. + * @param revokeTime revokeTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setRevokeTime(String revokeTime) { + this.revokeTime = revokeTime; + return this; + } + + /** + * Output only. The id of the user who revoked the token, null if the token is not revoked. + * @return value or {@code null} for none + */ + public java.lang.String getRevokerId() { + return revokerId; + } + + /** + * Output only. The id of the user who revoked the token, null if the token is not revoked. + * @param revokerId revokerId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setRevokerId(java.lang.String revokerId) { + this.revokerId = revokerId; + return this; + } + + /** + * Output only. The state of the token. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the token. + * @param state state or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The value of the token stored on the device and used to identify it to the + * management service handling the enrollment request. + * @return value or {@code null} for none + */ + public java.lang.String getToken() { + return token; + } + + /** + * Output only. The value of the token stored on the device and used to identify it to the + * management service handling the enrollment request. + * @param token token or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setToken(java.lang.String token) { + this.token = token; + return this; + } + + /** + * Output only. Unique identifier of the enrollment token used to access information on tokens. + * @return value or {@code null} for none + */ + public java.lang.String getTokenPermanentId() { + return tokenPermanentId; + } + + /** + * Output only. Unique identifier of the enrollment token used to access information on tokens. + * @param tokenPermanentId tokenPermanentId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setTokenPermanentId(java.lang.String tokenPermanentId) { + this.tokenPermanentId = tokenPermanentId; + return this; + } + + /** + * Optional. The device type this token is used for. If not set, defaults to + * `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`. + * @return value or {@code null} for none + */ + public java.lang.String getTokenType() { + return tokenType; + } + + /** + * Optional. The device type this token is used for. If not set, defaults to + * `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`. + * @param tokenType tokenType or {@code null} for none + */ + public GoogleChromeManagementVersionsV1EnrollmentToken setTokenType(java.lang.String tokenType) { + this.tokenType = tokenType; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1EnrollmentToken set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1EnrollmentToken) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1EnrollmentToken clone() { + return (GoogleChromeManagementVersionsV1EnrollmentToken) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Extension.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Extension.java new file mode 100644 index 00000000000..8a32bcb4689 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Extension.java @@ -0,0 +1,332 @@ +/* + * 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; + +/** + * Information about extensions installed on profile reported on an installed Chrome on a device + * with managed chrome browsers. + * + *

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 GoogleChromeManagementVersionsV1Extension extends com.google.api.client.json.GenericJson { + + /** + * Output only. The type of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appType; + + /** + * Output only. If the extension is controlled by a browser policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String configuredAppPolicy; + + /** + * Output only. The localized description of this extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. Whether the extension is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Output only. The id of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String extensionId; + + /** + * Output only. The localized name of this extension as reported by Chrome. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String extensionName; + + /** + * Output only. The URL of the homepage for this extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String homepageUri; + + /** + * Output only. The list of icons available for this extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List icons; + + /** + * Output only. The way the extension was installed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String installType; + + /** + * Output only. The manifest version of this extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer manifestVersion; + + /** + * Output only. The list of permissions required for this extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List permissions; + + /** + * Output only. The version of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Output only. The type of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getAppType() { + return appType; + } + + /** + * Output only. The type of the extension. + * @param appType appType or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setAppType(java.lang.String appType) { + this.appType = appType; + return this; + } + + /** + * Output only. If the extension is controlled by a browser policy. + * @return value or {@code null} for none + */ + public java.lang.String getConfiguredAppPolicy() { + return configuredAppPolicy; + } + + /** + * Output only. If the extension is controlled by a browser policy. + * @param configuredAppPolicy configuredAppPolicy or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setConfiguredAppPolicy(java.lang.String configuredAppPolicy) { + this.configuredAppPolicy = configuredAppPolicy; + return this; + } + + /** + * Output only. The localized description of this extension. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. The localized description of this extension. + * @param description description or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. Whether the extension is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Output only. Whether the extension is disabled. + * @param disabled disabled or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Output only. The id of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getExtensionId() { + return extensionId; + } + + /** + * Output only. The id of the extension. + * @param extensionId extensionId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setExtensionId(java.lang.String extensionId) { + this.extensionId = extensionId; + return this; + } + + /** + * Output only. The localized name of this extension as reported by Chrome. + * @return value or {@code null} for none + */ + public java.lang.String getExtensionName() { + return extensionName; + } + + /** + * Output only. The localized name of this extension as reported by Chrome. + * @param extensionName extensionName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setExtensionName(java.lang.String extensionName) { + this.extensionName = extensionName; + return this; + } + + /** + * Output only. The URL of the homepage for this extension. + * @return value or {@code null} for none + */ + public java.lang.String getHomepageUri() { + return homepageUri; + } + + /** + * Output only. The URL of the homepage for this extension. + * @param homepageUri homepageUri or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setHomepageUri(java.lang.String homepageUri) { + this.homepageUri = homepageUri; + return this; + } + + /** + * Output only. The list of icons available for this extension. + * @return value or {@code null} for none + */ + public java.util.List getIcons() { + return icons; + } + + /** + * Output only. The list of icons available for this extension. + * @param icons icons or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setIcons(java.util.List icons) { + this.icons = icons; + return this; + } + + /** + * Output only. The way the extension was installed. + * @return value or {@code null} for none + */ + public java.lang.String getInstallType() { + return installType; + } + + /** + * Output only. The way the extension was installed. + * @param installType installType or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setInstallType(java.lang.String installType) { + this.installType = installType; + return this; + } + + /** + * Output only. The manifest version of this extension. + * @return value or {@code null} for none + */ + public java.lang.Integer getManifestVersion() { + return manifestVersion; + } + + /** + * Output only. The manifest version of this extension. + * @param manifestVersion manifestVersion or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setManifestVersion(java.lang.Integer manifestVersion) { + this.manifestVersion = manifestVersion; + return this; + } + + /** + * Output only. The list of permissions required for this extension. + * @return value or {@code null} for none + */ + public java.util.List getPermissions() { + return permissions; + } + + /** + * Output only. The list of permissions required for this extension. + * @param permissions permissions or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setPermissions(java.util.List permissions) { + this.permissions = permissions; + return this; + } + + /** + * Output only. The version of the extension. + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Output only. The version of the extension. + * @param version version or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Extension setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1Extension set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1Extension) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1Extension clone() { + return (GoogleChromeManagementVersionsV1Extension) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ExtensionIcon.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ExtensionIcon.java new file mode 100644 index 00000000000..a683f37615d --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ExtensionIcon.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * An icon of a Chrome browser extension. + * + *

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 GoogleChromeManagementVersionsV1ExtensionIcon extends com.google.api.client.json.GenericJson { + + /** + * Output only. The size of the extension icon. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** + * Output only. The URL to the extension icon. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * Output only. The size of the extension icon. + * @return value or {@code null} for none + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * Output only. The size of the extension icon. + * @param size size or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ExtensionIcon setSize(java.lang.Integer size) { + this.size = size; + return this; + } + + /** + * Output only. The URL to the extension icon. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * Output only. The URL to the extension icon. + * @param uri uri or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ExtensionIcon setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1ExtensionIcon set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1ExtensionIcon) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1ExtensionIcon clone() { + return (GoogleChromeManagementVersionsV1ExtensionIcon) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ExtensionPolicy.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ExtensionPolicy.java new file mode 100644 index 00000000000..cbe9e41f3de --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ExtensionPolicy.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; + +/** + * The reported policies applied to an extension installed on a Chrome 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 GoogleChromeManagementVersionsV1ExtensionPolicy extends com.google.api.client.json.GenericJson { + + /** + * Output only. The id of the extension the policies are applied to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String extensionId; + + /** + * Output only. The name of the extension the policies are applied to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String extensionName; + + /** + * Output only. List of policies applied to this extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List policies; + + /** + * Output only. The id of the extension the policies are applied to. + * @return value or {@code null} for none + */ + public java.lang.String getExtensionId() { + return extensionId; + } + + /** + * Output only. The id of the extension the policies are applied to. + * @param extensionId extensionId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ExtensionPolicy setExtensionId(java.lang.String extensionId) { + this.extensionId = extensionId; + return this; + } + + /** + * Output only. The name of the extension the policies are applied to. + * @return value or {@code null} for none + */ + public java.lang.String getExtensionName() { + return extensionName; + } + + /** + * Output only. The name of the extension the policies are applied to. + * @param extensionName extensionName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ExtensionPolicy setExtensionName(java.lang.String extensionName) { + this.extensionName = extensionName; + return this; + } + + /** + * Output only. List of policies applied to this extension. + * @return value or {@code null} for none + */ + public java.util.List getPolicies() { + return policies; + } + + /** + * Output only. List of policies applied to this extension. + * @param policies policies or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ExtensionPolicy setPolicies(java.util.List policies) { + this.policies = policies; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1ExtensionPolicy set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1ExtensionPolicy) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1ExtensionPolicy clone() { + return (GoogleChromeManagementVersionsV1ExtensionPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListChromeBrowsersResponse.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListChromeBrowsersResponse.java new file mode 100644 index 00000000000..e409b6366c9 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListChromeBrowsersResponse.java @@ -0,0 +1,97 @@ +/* + * 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 ListChromeBrowsers 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 GoogleChromeManagementVersionsV1ListChromeBrowsersResponse extends com.google.api.client.json.GenericJson { + + /** + * List of Chrome Browser device objects. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List chromeBrowsers; + + static { + // hack to force ProGuard to consider GoogleChromeManagementVersionsV1ChromeBrowser used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleChromeManagementVersionsV1ChromeBrowser.class); + } + + /** + * Token used to access next page of this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of Chrome Browser device objects. + * @return value or {@code null} for none + */ + public java.util.List getChromeBrowsers() { + return chromeBrowsers; + } + + /** + * List of Chrome Browser device objects. + * @param chromeBrowsers chromeBrowsers or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ListChromeBrowsersResponse setChromeBrowsers(java.util.List chromeBrowsers) { + this.chromeBrowsers = chromeBrowsers; + return this; + } + + /** + * Token used to access next page of this result. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Token used to access next page of this result. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ListChromeBrowsersResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1ListChromeBrowsersResponse set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1ListChromeBrowsersResponse) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1ListChromeBrowsersResponse clone() { + return (GoogleChromeManagementVersionsV1ListChromeBrowsersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse.java new file mode 100644 index 00000000000..9f20661a845 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse.java @@ -0,0 +1,97 @@ +/* + * 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 that contains a list of tokens. + * + *

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 GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse extends com.google.api.client.json.GenericJson { + + /** + * List of Chrome device enrollment tokens. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List enrollmentTokens; + + static { + // hack to force ProGuard to consider GoogleChromeManagementVersionsV1EnrollmentToken used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleChromeManagementVersionsV1EnrollmentToken.class); + } + + /** + * Token to retrieve the next page of results, or empty if there are no more results in the list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of Chrome device enrollment tokens. + * @return value or {@code null} for none + */ + public java.util.List getEnrollmentTokens() { + return enrollmentTokens; + } + + /** + * List of Chrome device enrollment tokens. + * @param enrollmentTokens enrollmentTokens or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse setEnrollmentTokens(java.util.List enrollmentTokens) { + this.enrollmentTokens = enrollmentTokens; + return this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more results in the list. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more results in the list. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse clone() { + return (GoogleChromeManagementVersionsV1ListEnrollmentTokensResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest.java new file mode 100644 index 00000000000..efafe98d927 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest.java @@ -0,0 +1,94 @@ +/* + * 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; + +/** + * Request to MoveChromeBrowsers 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 GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. ID of the destination organizational unit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String destinationOrgUnitId; + + /** + * Required. List of resource IDs of Chrome Browser Devices to move. A maximum of 600 browsers may + * be moved per request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resourceIds; + + /** + * Required. ID of the destination organizational unit. + * @return value or {@code null} for none + */ + public java.lang.String getDestinationOrgUnitId() { + return destinationOrgUnitId; + } + + /** + * Required. ID of the destination organizational unit. + * @param destinationOrgUnitId destinationOrgUnitId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest setDestinationOrgUnitId(java.lang.String destinationOrgUnitId) { + this.destinationOrgUnitId = destinationOrgUnitId; + return this; + } + + /** + * Required. List of resource IDs of Chrome Browser Devices to move. A maximum of 600 browsers may + * be moved per request. + * @return value or {@code null} for none + */ + public java.util.List getResourceIds() { + return resourceIds; + } + + /** + * Required. List of resource IDs of Chrome Browser Devices to move. A maximum of 600 browsers may + * be moved per request. + * @param resourceIds resourceIds or {@code null} for none + */ + public GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest setResourceIds(java.util.List resourceIds) { + this.resourceIds = resourceIds; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest clone() { + return (GoogleChromeManagementVersionsV1MoveChromeBrowsersRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse.java new file mode 100644 index 00000000000..97527deed7b --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse.java @@ -0,0 +1,43 @@ +/* + * 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 MoveChromeBrowsers 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 GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse clone() { + return (GoogleChromeManagementVersionsV1MoveChromeBrowsersResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Plugin.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Plugin.java new file mode 100644 index 00000000000..232a26c2684 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Plugin.java @@ -0,0 +1,116 @@ +/* + * 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; + +/** + * Information about a Chrome browser plugin installed on a reported Chrome installation on a device + * with managed Chrome browsers. + * + *

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 GoogleChromeManagementVersionsV1Plugin extends com.google.api.client.json.GenericJson { + + /** + * Output only. The description of the installed plugin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. The filename of the installed plugin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filename; + + /** + * Output only. The name of the installed plugin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pluginName; + + /** + * Output only. The description of the installed plugin. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. The description of the installed plugin. + * @param description description or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Plugin setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. The filename of the installed plugin. + * @return value or {@code null} for none + */ + public java.lang.String getFilename() { + return filename; + } + + /** + * Output only. The filename of the installed plugin. + * @param filename filename or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Plugin setFilename(java.lang.String filename) { + this.filename = filename; + return this; + } + + /** + * Output only. The name of the installed plugin. + * @return value or {@code null} for none + */ + public java.lang.String getPluginName() { + return pluginName; + } + + /** + * Output only. The name of the installed plugin. + * @param pluginName pluginName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Plugin setPluginName(java.lang.String pluginName) { + this.pluginName = pluginName; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1Plugin set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1Plugin) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1Plugin clone() { + return (GoogleChromeManagementVersionsV1Plugin) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Policy.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Policy.java new file mode 100644 index 00000000000..ec201a08c5e --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Policy.java @@ -0,0 +1,143 @@ +/* + * 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; + +/** + * The applied policy reported by a managed Chrome browser. The policy can be applied at various + * scopes (machine, profile, extension). + * + *

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 GoogleChromeManagementVersionsV1Policy extends com.google.api.client.json.GenericJson { + + /** + * Output only. A localized string with all the errors reported when trying to apply this policy, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String error; + + /** + * Output only. The name of the policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyName; + + /** + * Output only. The source of the policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. The value of the policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Output only. A localized string with all the errors reported when trying to apply this policy, + * if any. + * @return value or {@code null} for none + */ + public java.lang.String getError() { + return error; + } + + /** + * Output only. A localized string with all the errors reported when trying to apply this policy, + * if any. + * @param error error or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Policy setError(java.lang.String error) { + this.error = error; + return this; + } + + /** + * Output only. The name of the policy. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyName() { + return policyName; + } + + /** + * Output only. The name of the policy. + * @param policyName policyName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Policy setPolicyName(java.lang.String policyName) { + this.policyName = policyName; + return this; + } + + /** + * Output only. The source of the policy. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Output only. The source of the policy. + * @param source source or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Policy setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Output only. The value of the policy. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Output only. The value of the policy. + * @param value value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Policy setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1Policy set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1Policy) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1Policy clone() { + return (GoogleChromeManagementVersionsV1Policy) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Profile.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Profile.java new file mode 100644 index 00000000000..46678c85278 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1Profile.java @@ -0,0 +1,325 @@ +/* + * 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; + +/** + * A profile reported on an installation of Chrome on a device with managed chrome browsers. + * + *

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 GoogleChromeManagementVersionsV1Profile extends com.google.api.client.json.GenericJson { + + /** + * Output only. The email of the user signed in to this profile, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chromeSignedInUserEmail; + + /** + * Output only. The list of extensions with applied extension policies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List extensionPolicies; + + static { + // hack to force ProGuard to consider GoogleChromeManagementVersionsV1ExtensionPolicy used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleChromeManagementVersionsV1ExtensionPolicy.class); + } + + /** + * Output only. The list of extensions installed for this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List extensions; + + static { + // hack to force ProGuard to consider GoogleChromeManagementVersionsV1Extension used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleChromeManagementVersionsV1Extension.class); + } + + /** + * Output only. A unique ID for this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Output only. The time when the last request to fetch policies succeeded for this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastPolicyFetchTime; + + /** + * Output only. The time when the last report was received from this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastStatusReportTime; + + /** + * Output only. The name given to this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profileName; + + /** + * Output only. The number of safe browsing warnings that were shown on this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long safeBrowsingWarnings; + + /** + * Output only. The number of safe browsing warnings that were clicked through on this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long safeBrowsingWarningsClickThroughs; + + /** + * Output only. The last time the safe browsing warning info was reset to 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String safeBrowsingWarningsResetTime; + + /** + * Output only. The list of Chrome browser policies applied to this profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userPolicies; + + static { + // hack to force ProGuard to consider GoogleChromeManagementVersionsV1Policy used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleChromeManagementVersionsV1Policy.class); + } + + /** + * Output only. The email of the user signed in to this profile, if any. + * @return value or {@code null} for none + */ + public java.lang.String getChromeSignedInUserEmail() { + return chromeSignedInUserEmail; + } + + /** + * Output only. The email of the user signed in to this profile, if any. + * @param chromeSignedInUserEmail chromeSignedInUserEmail or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setChromeSignedInUserEmail(java.lang.String chromeSignedInUserEmail) { + this.chromeSignedInUserEmail = chromeSignedInUserEmail; + return this; + } + + /** + * Output only. The list of extensions with applied extension policies. + * @return value or {@code null} for none + */ + public java.util.List getExtensionPolicies() { + return extensionPolicies; + } + + /** + * Output only. The list of extensions with applied extension policies. + * @param extensionPolicies extensionPolicies or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setExtensionPolicies(java.util.List extensionPolicies) { + this.extensionPolicies = extensionPolicies; + return this; + } + + /** + * Output only. The list of extensions installed for this profile. + * @return value or {@code null} for none + */ + public java.util.List getExtensions() { + return extensions; + } + + /** + * Output only. The list of extensions installed for this profile. + * @param extensions extensions or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setExtensions(java.util.List extensions) { + this.extensions = extensions; + return this; + } + + /** + * Output only. A unique ID for this profile. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Output only. A unique ID for this profile. + * @param id id or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Output only. The time when the last request to fetch policies succeeded for this profile. + * @return value or {@code null} for none + */ + public String getLastPolicyFetchTime() { + return lastPolicyFetchTime; + } + + /** + * Output only. The time when the last request to fetch policies succeeded for this profile. + * @param lastPolicyFetchTime lastPolicyFetchTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setLastPolicyFetchTime(String lastPolicyFetchTime) { + this.lastPolicyFetchTime = lastPolicyFetchTime; + return this; + } + + /** + * Output only. The time when the last report was received from this profile. + * @return value or {@code null} for none + */ + public String getLastStatusReportTime() { + return lastStatusReportTime; + } + + /** + * Output only. The time when the last report was received from this profile. + * @param lastStatusReportTime lastStatusReportTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setLastStatusReportTime(String lastStatusReportTime) { + this.lastStatusReportTime = lastStatusReportTime; + return this; + } + + /** + * Output only. The name given to this profile. + * @return value or {@code null} for none + */ + public java.lang.String getProfileName() { + return profileName; + } + + /** + * Output only. The name given to this profile. + * @param profileName profileName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setProfileName(java.lang.String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Output only. The number of safe browsing warnings that were shown on this profile. + * @return value or {@code null} for none + */ + public java.lang.Long getSafeBrowsingWarnings() { + return safeBrowsingWarnings; + } + + /** + * Output only. The number of safe browsing warnings that were shown on this profile. + * @param safeBrowsingWarnings safeBrowsingWarnings or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setSafeBrowsingWarnings(java.lang.Long safeBrowsingWarnings) { + this.safeBrowsingWarnings = safeBrowsingWarnings; + return this; + } + + /** + * Output only. The number of safe browsing warnings that were clicked through on this profile. + * @return value or {@code null} for none + */ + public java.lang.Long getSafeBrowsingWarningsClickThroughs() { + return safeBrowsingWarningsClickThroughs; + } + + /** + * Output only. The number of safe browsing warnings that were clicked through on this profile. + * @param safeBrowsingWarningsClickThroughs safeBrowsingWarningsClickThroughs or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setSafeBrowsingWarningsClickThroughs(java.lang.Long safeBrowsingWarningsClickThroughs) { + this.safeBrowsingWarningsClickThroughs = safeBrowsingWarningsClickThroughs; + return this; + } + + /** + * Output only. The last time the safe browsing warning info was reset to 0. + * @return value or {@code null} for none + */ + public String getSafeBrowsingWarningsResetTime() { + return safeBrowsingWarningsResetTime; + } + + /** + * Output only. The last time the safe browsing warning info was reset to 0. + * @param safeBrowsingWarningsResetTime safeBrowsingWarningsResetTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setSafeBrowsingWarningsResetTime(String safeBrowsingWarningsResetTime) { + this.safeBrowsingWarningsResetTime = safeBrowsingWarningsResetTime; + return this; + } + + /** + * Output only. The list of Chrome browser policies applied to this profile. + * @return value or {@code null} for none + */ + public java.util.List getUserPolicies() { + return userPolicies; + } + + /** + * Output only. The list of Chrome browser policies applied to this profile. + * @param userPolicies userPolicies or {@code null} for none + */ + public GoogleChromeManagementVersionsV1Profile setUserPolicies(java.util.List userPolicies) { + this.userPolicies = userPolicies; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1Profile set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1Profile) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1Profile clone() { + return (GoogleChromeManagementVersionsV1Profile) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest.java new file mode 100644 index 00000000000..a3ad98e394e --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest.java @@ -0,0 +1,43 @@ +/* + * 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; + +/** + * Request to revoke a token. + * + *

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 GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest clone() { + return (GoogleChromeManagementVersionsV1RevokeEnrollmentTokenRequest) 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 f494eb57000..88305e985dc 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 @@ com.google.apis google-api-services-chromemanagement - v1-rev20260930-2.0.0 - Chrome Management API v1-rev20260930-2.0.0 + v1-rev20261008-2.0.0 + Chrome Management API v1-rev20261008-2.0.0 jar 2011 diff --git a/clients/google-api-services-chromemanagement/v1/README.md b/clients/google-api-services-chromemanagement/v1/README.md index c5a019893d8..2301f7bc7b1 100644 --- a/clients/google-api-services-chromemanagement/v1/README.md +++ b/clients/google-api-services-chromemanagement/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-chromemanagement - v1-rev20260930-2.0.0 + v1-rev20261008-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-chromemanagement:v1-rev20260930-2.0.0' + implementation 'com.google.apis:google-api-services-chromemanagement:v1-rev20261008-2.0.0' } ```