From 9b7c140dc2b833ad143631d81820964fd714e3b0 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Mon, 25 Nov 2024 17:02:39 -0800
Subject: [PATCH] chore: regenerate chromemanagement client
---
.../v1/2.0.0/README.md | 4 +-
.../chromemanagement/v1/ChromeManagement.java | 563 +++++++++++++++
...gementVersionsV1AttestationCredential.java | 167 +++++
...agementVersionsV1ChromeBrowserProfile.java | 676 ++++++++++++++++++
...eChromeManagementVersionsV1DeviceInfo.java | 151 ++++
...nsV1ListChromeBrowserProfilesResponse.java | 124 ++++
...romeManagementVersionsV1ReportingData.java | 190 +++++
...sV1ReportingDataConflictingPolicyData.java | 67 ++
...tVersionsV1ReportingDataExtensionData.java | 307 ++++++++
...onsV1ReportingDataExtensionPolicyData.java | 115 +++
...mentVersionsV1ReportingDataPolicyData.java | 169 +++++
...1alpha1CertificateProvisioningProcess.java | 492 +++++++++++++
...agementVersionsV1alpha1ChromeOsDevice.java | 97 +++
...ntVersionsV1alpha1ChromeOsUserSession.java | 121 ++++
...ementVersionsV1alpha1SignDataMetadata.java | 67 ++
...ementVersionsV1alpha1SignDataResponse.java | 71 ++
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
18 files changed, 3383 insertions(+), 6 deletions(-)
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1AttestationCredential.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ChromeBrowserProfile.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceInfo.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ReportingData.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ReportingDataExtensionData.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ReportingDataPolicyData.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1SignDataMetadata.java
create mode 100644 clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1SignDataResponse.java
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 48bc06c4473..3fd419f6dad 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:
The typical use is:
+ *+ * {@code ChromeManagement chromemanagement = new ChromeManagement(...);} + * {@code ChromeManagement.Profiles.List request = chromemanagement.profiles().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Profiles profiles() { + return new Profiles(); + } + + /** + * The "profiles" collection of methods. + */ + public class Profiles { + + /** + * Deletes the data collected from a Chrome browser profile. + * + * Create a request for the method "profiles.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_id}/profiles/{profile_permanent_id} + * @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
{@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_id}/profiles/{profile_permanent_id} + * @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/[^/]+/profiles/[^/]+$"); + } + } + + @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_id}/profiles/{profile_permanent_id} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Format: customers/{customer_id}/profiles/{profile_permanent_id} + */ + public java.lang.String getName() { + return name; + } + + /** Required. Format: customers/{customer_id}/profiles/{profile_permanent_id} */ + 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/[^/]+/profiles/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a Chrome browser profile with customer ID and profile permanent ID. + * + * Create a request for the method "profiles.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}/profiles/{profile_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+ * {@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}/profiles/{profile_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.GoogleChromeManagementVersionsV1ChromeBrowserProfile.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/[^/]+/profiles/[^/]+$"); + } + } + + @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}/profiles/{profile_permanent_id} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Format: customers/{customer_id}/profiles/{profile_permanent_id} + */ + public java.lang.String getName() { + return name; + } + + /** Required. Format: customers/{customer_id}/profiles/{profile_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/[^/]+/profiles/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Chrome browser profiles of a customer based on the given search and sorting criteria. + * + * Create a request for the method "profiles.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+ * {@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.GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse.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 profiles. The following fields can be used in the + * filter: - profile_id - display_name - user_email - last_activity_time - + * last_policy_sync_time - last_status_report_time - first_enrollment_time - + * os_platform_type - os_version - browser_version - browser_channel - policy_count - + * extension_count - identity_provider - affiliation_state - ouId Any of the above fields + * can be used to specify a filter, and filtering by multiple fields is supported with AND + * operator. String type fields and enum type fields support '=' and '!=' operators. The + * integer type and the timestamp type fields support '=', '!=', '<', '>', '<=' and '>=' + * operators. Timestamps expect an RFC-3339 formatted string (e.g. + * 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In + * addition, string literal filtering is also supported, for example, 'ABC' as a filter maps + * to a filter that checks if any of the filterable string type fields contains 'ABC'. + * Organization unit number can be used as a filtering criteria here by specifying 'ouId = + * ${your_org_unit_id}', please note that only single OU ID matching is supported. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filter used to filter profiles. The following fields can be used in the filter: - + profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - + last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - + browser_channel - policy_count - extension_count - identity_provider - affiliation_state - ouId Any + of the above fields can be used to specify a filter, and filtering by multiple fields is supported + with AND operator. String type fields and enum type fields support '=' and '!=' operators. The + integer type and the timestamp type fields support '=', '!=', '<', '>', '<=' and '>=' operators. + Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can + be used with a string type field filter. In addition, string literal filtering is also supported, + for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type + fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by + specifying 'ouId = ${your_org_unit_id}', please note that only single OU ID matching is supported. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The filter used to filter profiles. The following fields can be used in the + * filter: - profile_id - display_name - user_email - last_activity_time - + * last_policy_sync_time - last_status_report_time - first_enrollment_time - + * os_platform_type - os_version - browser_version - browser_channel - policy_count - + * extension_count - identity_provider - affiliation_state - ouId Any of the above fields + * can be used to specify a filter, and filtering by multiple fields is supported with AND + * operator. String type fields and enum type fields support '=' and '!=' operators. The + * integer type and the timestamp type fields support '=', '!=', '<', '>', '<=' and '>=' + * operators. Timestamps expect an RFC-3339 formatted string (e.g. + * 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In + * addition, string literal filtering is also supported, for example, 'ABC' as a filter maps + * to a filter that checks if any of the filterable string type fields contains 'ABC'. + * Organization unit number can be used as a filtering criteria here by specifying 'ouId = + * ${your_org_unit_id}', please note that only single OU ID matching is supported. + */ + 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: - profile_id - display_name - user_email - last_activity_time - + * last_policy_sync_time - last_status_report_time - first_enrollment_time - + * os_platform_type - os_version - browser_version - browser_channel - policy_count - + * extension_count - identity_provider - affiliation_state 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: - + profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - + last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - + browser_channel - policy_count - extension_count - identity_provider - affiliation_state 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: - profile_id - display_name - user_email - last_activity_time - + * last_policy_sync_time - last_status_report_time - first_enrollment_time - + * os_platform_type - os_version - browser_version - browser_channel - policy_count - + * extension_count - identity_provider - affiliation_state 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. The maximum number of profiles to return. The default page size is 100 if + * page_size is unspecified, and the maximum page size allowed is 200. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of profiles to return. The default page size is 100 if page_size is + unspecified, and the maximum page size allowed is 200. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of profiles to return. The default page size is 100 if + * page_size is unspecified, and the maximum page size allowed is 200. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. The page token used to retrieve a specific page of the listing request. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The page token used to retrieve a specific page of the listing request. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. The page token used to retrieve a specific page of the listing request. */ + 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); + } + } + + } /** * An accessor for creating requests from the Reports collection. * diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1AttestationCredential.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1AttestationCredential.java new file mode 100644 index 00000000000..3cb676456cb --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1AttestationCredential.java @@ -0,0 +1,167 @@ +/* + * 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 of public key associated with a Chrome browser 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 GoogleChromeManagementVersionsV1AttestationCredential extends com.google.api.client.json.GenericJson { + + /** + * Output only. Latest rotation timestamp of the public key rotation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String keyRotationTime; + + /** + * Output only. Trust level of the public key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyTrustLevel; + + /** + * Output only. Type of the public key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyType; + + /** + * Output only. Value of the public key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String publicKey; + + /** + * Output only. Latest rotation timestamp of the public key rotation. + * @return value or {@code null} for none + */ + public String getKeyRotationTime() { + return keyRotationTime; + } + + /** + * Output only. Latest rotation timestamp of the public key rotation. + * @param keyRotationTime keyRotationTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1AttestationCredential setKeyRotationTime(String keyRotationTime) { + this.keyRotationTime = keyRotationTime; + return this; + } + + /** + * Output only. Trust level of the public key. + * @return value or {@code null} for none + */ + public java.lang.String getKeyTrustLevel() { + return keyTrustLevel; + } + + /** + * Output only. Trust level of the public key. + * @param keyTrustLevel keyTrustLevel or {@code null} for none + */ + public GoogleChromeManagementVersionsV1AttestationCredential setKeyTrustLevel(java.lang.String keyTrustLevel) { + this.keyTrustLevel = keyTrustLevel; + return this; + } + + /** + * Output only. Type of the public key. + * @return value or {@code null} for none + */ + public java.lang.String getKeyType() { + return keyType; + } + + /** + * Output only. Type of the public key. + * @param keyType keyType or {@code null} for none + */ + public GoogleChromeManagementVersionsV1AttestationCredential setKeyType(java.lang.String keyType) { + this.keyType = keyType; + return this; + } + + /** + * Output only. Value of the public key. + * @see #decodePublicKey() + * @return value or {@code null} for none + */ + public java.lang.String getPublicKey() { + return publicKey; + } + + /** + * Output only. Value of the public key. + * @see #getPublicKey() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodePublicKey() { + return com.google.api.client.util.Base64.decodeBase64(publicKey); + } + + /** + * Output only. Value of the public key. + * @see #encodePublicKey() + * @param publicKey publicKey or {@code null} for none + */ + public GoogleChromeManagementVersionsV1AttestationCredential setPublicKey(java.lang.String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * Output only. Value of the public key. + * @see #setPublicKey() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleChromeManagementVersionsV1AttestationCredential encodePublicKey(byte[] publicKey) { + this.publicKey = com.google.api.client.util.Base64.encodeBase64URLSafeString(publicKey); + return this; + } + + @Override + public GoogleChromeManagementVersionsV1AttestationCredential set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1AttestationCredential) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1AttestationCredential clone() { + return (GoogleChromeManagementVersionsV1AttestationCredential) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ChromeBrowserProfile.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ChromeBrowserProfile.java new file mode 100644 index 00000000000..73e6a9b3383 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ChromeBrowserProfile.java @@ -0,0 +1,676 @@ +/* + * 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 representation of a Chrome browser 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 GoogleChromeManagementVersionsV1ChromeBrowserProfile extends com.google.api.client.json.GenericJson { + + /** + * Output only. The specific affiliation state of the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String affiliationState; + + /** + * Optional. Location of the profile annotated by the admin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String annotatedLocation; + + /** + * Optional. User of the profile annotated by the admin. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String annotatedUser; + + /** + * Output only. Attestation credential information of the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1AttestationCredential attestationCredential; + + /** + * Output only. Channel of the browser on which the profile exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String browserChannel; + + /** + * Output only. Version of the browser on which the profile exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String browserVersion; + + /** + * Output only. Basic information of the device on which the profile exists. This information is + * only available for the affiliated profiles. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1DeviceInfo deviceInfo; + + /** + * Output only. Profile display name set by client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag of this ChromeBrowserProfile resource. This etag can be used with UPDATE + * operation to ensure consistency. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. Number of extensions installed on the profile. + * 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. Timestamp of the first enrollment of the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String firstEnrollmentTime; + + /** + * Output only. Identify provider of the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identityProvider; + + /** + * Output only. Timestamp of the latest activity by the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastActivityTime; + + /** + * Output only. Timestamp of the latest policy fetch by the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastPolicyFetchTime; + + /** + * Output only. Timestamp of the latest policy sync by the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastPolicySyncTime; + + /** + * Output only. Timestamp of the latest status report by the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastStatusReportTime; + + /** + * Identifier. Format: customers/{customer_id}/profiles/{profile_permanent_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. OS platform of the device on which the profile exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osPlatformType; + + /** + * Output only. Major OS version of the device on which the profile exists. (i.e. Windows 10) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osPlatformVersion; + + /** + * Output only. OS version of the device on which the profile exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String osVersion; + + /** + * Output only. Number of policies applied on the profile. + * 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. Chrome client side profile ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profileId; + + /** + * Output only. Profile permanent ID is the unique identifier of a profile within one customer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profilePermanentId; + + /** + * Output only. Detailed reporting data of the profile. This information is only available when + * the profile reporting policy is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1ReportingData reportingData; + + /** + * Output only. Email address of the user to which the profile belongs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userEmail; + + /** + * Output only. Unique Directory API ID of the user that can be used in Admin SDK Users API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userId; + + /** + * Output only. The specific affiliation state of the profile. + * @return value or {@code null} for none + */ + public java.lang.String getAffiliationState() { + return affiliationState; + } + + /** + * Output only. The specific affiliation state of the profile. + * @param affiliationState affiliationState or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setAffiliationState(java.lang.String affiliationState) { + this.affiliationState = affiliationState; + return this; + } + + /** + * Optional. Location of the profile annotated by the admin. + * @return value or {@code null} for none + */ + public java.lang.String getAnnotatedLocation() { + return annotatedLocation; + } + + /** + * Optional. Location of the profile annotated by the admin. + * @param annotatedLocation annotatedLocation or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setAnnotatedLocation(java.lang.String annotatedLocation) { + this.annotatedLocation = annotatedLocation; + return this; + } + + /** + * Optional. User of the profile annotated by the admin. + * @return value or {@code null} for none + */ + public java.lang.String getAnnotatedUser() { + return annotatedUser; + } + + /** + * Optional. User of the profile annotated by the admin. + * @param annotatedUser annotatedUser or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setAnnotatedUser(java.lang.String annotatedUser) { + this.annotatedUser = annotatedUser; + return this; + } + + /** + * Output only. Attestation credential information of the profile. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1AttestationCredential getAttestationCredential() { + return attestationCredential; + } + + /** + * Output only. Attestation credential information of the profile. + * @param attestationCredential attestationCredential or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setAttestationCredential(GoogleChromeManagementVersionsV1AttestationCredential attestationCredential) { + this.attestationCredential = attestationCredential; + return this; + } + + /** + * Output only. Channel of the browser on which the profile exists. + * @return value or {@code null} for none + */ + public java.lang.String getBrowserChannel() { + return browserChannel; + } + + /** + * Output only. Channel of the browser on which the profile exists. + * @param browserChannel browserChannel or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setBrowserChannel(java.lang.String browserChannel) { + this.browserChannel = browserChannel; + return this; + } + + /** + * Output only. Version of the browser on which the profile exists. + * @return value or {@code null} for none + */ + public java.lang.String getBrowserVersion() { + return browserVersion; + } + + /** + * Output only. Version of the browser on which the profile exists. + * @param browserVersion browserVersion or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setBrowserVersion(java.lang.String browserVersion) { + this.browserVersion = browserVersion; + return this; + } + + /** + * Output only. Basic information of the device on which the profile exists. This information is + * only available for the affiliated profiles. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceInfo getDeviceInfo() { + return deviceInfo; + } + + /** + * Output only. Basic information of the device on which the profile exists. This information is + * only available for the affiliated profiles. + * @param deviceInfo deviceInfo or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setDeviceInfo(GoogleChromeManagementVersionsV1DeviceInfo deviceInfo) { + this.deviceInfo = deviceInfo; + return this; + } + + /** + * Output only. Profile display name set by client. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Profile display name set by client. + * @param displayName displayName or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag of this ChromeBrowserProfile resource. This etag can be used with UPDATE + * operation to ensure consistency. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag of this ChromeBrowserProfile resource. This etag can be used with UPDATE + * operation to ensure consistency. + * @param etag etag or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. Number of extensions installed on the profile. + * @return value or {@code null} for none + */ + public java.lang.Long getExtensionCount() { + return extensionCount; + } + + /** + * Output only. Number of extensions installed on the profile. + * @param extensionCount extensionCount or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setExtensionCount(java.lang.Long extensionCount) { + this.extensionCount = extensionCount; + return this; + } + + /** + * Output only. Timestamp of the first enrollment of the profile. + * @return value or {@code null} for none + */ + public String getFirstEnrollmentTime() { + return firstEnrollmentTime; + } + + /** + * Output only. Timestamp of the first enrollment of the profile. + * @param firstEnrollmentTime firstEnrollmentTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setFirstEnrollmentTime(String firstEnrollmentTime) { + this.firstEnrollmentTime = firstEnrollmentTime; + return this; + } + + /** + * Output only. Identify provider of the profile. + * @return value or {@code null} for none + */ + public java.lang.String getIdentityProvider() { + return identityProvider; + } + + /** + * Output only. Identify provider of the profile. + * @param identityProvider identityProvider or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setIdentityProvider(java.lang.String identityProvider) { + this.identityProvider = identityProvider; + return this; + } + + /** + * Output only. Timestamp of the latest activity by the profile. + * @return value or {@code null} for none + */ + public String getLastActivityTime() { + return lastActivityTime; + } + + /** + * Output only. Timestamp of the latest activity by the profile. + * @param lastActivityTime lastActivityTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setLastActivityTime(String lastActivityTime) { + this.lastActivityTime = lastActivityTime; + return this; + } + + /** + * Output only. Timestamp of the latest policy fetch by the profile. + * @return value or {@code null} for none + */ + public String getLastPolicyFetchTime() { + return lastPolicyFetchTime; + } + + /** + * Output only. Timestamp of the latest policy fetch by the profile. + * @param lastPolicyFetchTime lastPolicyFetchTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setLastPolicyFetchTime(String lastPolicyFetchTime) { + this.lastPolicyFetchTime = lastPolicyFetchTime; + return this; + } + + /** + * Output only. Timestamp of the latest policy sync by the profile. + * @return value or {@code null} for none + */ + public String getLastPolicySyncTime() { + return lastPolicySyncTime; + } + + /** + * Output only. Timestamp of the latest policy sync by the profile. + * @param lastPolicySyncTime lastPolicySyncTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setLastPolicySyncTime(String lastPolicySyncTime) { + this.lastPolicySyncTime = lastPolicySyncTime; + return this; + } + + /** + * Output only. Timestamp of the latest status report by the profile. + * @return value or {@code null} for none + */ + public String getLastStatusReportTime() { + return lastStatusReportTime; + } + + /** + * Output only. Timestamp of the latest status report by the profile. + * @param lastStatusReportTime lastStatusReportTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setLastStatusReportTime(String lastStatusReportTime) { + this.lastStatusReportTime = lastStatusReportTime; + return this; + } + + /** + * Identifier. Format: customers/{customer_id}/profiles/{profile_permanent_id} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Format: customers/{customer_id}/profiles/{profile_permanent_id} + * @param name name or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. OS platform of the device on which the profile exists. + * @return value or {@code null} for none + */ + public java.lang.String getOsPlatformType() { + return osPlatformType; + } + + /** + * Output only. OS platform of the device on which the profile exists. + * @param osPlatformType osPlatformType or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setOsPlatformType(java.lang.String osPlatformType) { + this.osPlatformType = osPlatformType; + return this; + } + + /** + * Output only. Major OS version of the device on which the profile exists. (i.e. Windows 10) + * @return value or {@code null} for none + */ + public java.lang.String getOsPlatformVersion() { + return osPlatformVersion; + } + + /** + * Output only. Major OS version of the device on which the profile exists. (i.e. Windows 10) + * @param osPlatformVersion osPlatformVersion or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setOsPlatformVersion(java.lang.String osPlatformVersion) { + this.osPlatformVersion = osPlatformVersion; + return this; + } + + /** + * Output only. OS version of the device on which the profile exists. + * @return value or {@code null} for none + */ + public java.lang.String getOsVersion() { + return osVersion; + } + + /** + * Output only. OS version of the device on which the profile exists. + * @param osVersion osVersion or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setOsVersion(java.lang.String osVersion) { + this.osVersion = osVersion; + return this; + } + + /** + * Output only. Number of policies applied on the profile. + * @return value or {@code null} for none + */ + public java.lang.Long getPolicyCount() { + return policyCount; + } + + /** + * Output only. Number of policies applied on the profile. + * @param policyCount policyCount or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setPolicyCount(java.lang.Long policyCount) { + this.policyCount = policyCount; + return this; + } + + /** + * Output only. Chrome client side profile ID. + * @return value or {@code null} for none + */ + public java.lang.String getProfileId() { + return profileId; + } + + /** + * Output only. Chrome client side profile ID. + * @param profileId profileId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setProfileId(java.lang.String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Output only. Profile permanent ID is the unique identifier of a profile within one customer. + * @return value or {@code null} for none + */ + public java.lang.String getProfilePermanentId() { + return profilePermanentId; + } + + /** + * Output only. Profile permanent ID is the unique identifier of a profile within one customer. + * @param profilePermanentId profilePermanentId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setProfilePermanentId(java.lang.String profilePermanentId) { + this.profilePermanentId = profilePermanentId; + return this; + } + + /** + * Output only. Detailed reporting data of the profile. This information is only available when + * the profile reporting policy is enabled. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ReportingData getReportingData() { + return reportingData; + } + + /** + * Output only. Detailed reporting data of the profile. This information is only available when + * the profile reporting policy is enabled. + * @param reportingData reportingData or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setReportingData(GoogleChromeManagementVersionsV1ReportingData reportingData) { + this.reportingData = reportingData; + return this; + } + + /** + * Output only. Email address of the user to which the profile belongs. + * @return value or {@code null} for none + */ + public java.lang.String getUserEmail() { + return userEmail; + } + + /** + * Output only. Email address of the user to which the profile belongs. + * @param userEmail userEmail or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setUserEmail(java.lang.String userEmail) { + this.userEmail = userEmail; + return this; + } + + /** + * Output only. Unique Directory API ID of the user that can be used in Admin SDK Users API. + * @return value or {@code null} for none + */ + public java.lang.String getUserId() { + return userId; + } + + /** + * Output only. Unique Directory API ID of the user that can be used in Admin SDK Users API. + * @param userId userId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ChromeBrowserProfile setUserId(java.lang.String userId) { + this.userId = userId; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1ChromeBrowserProfile set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1ChromeBrowserProfile) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1ChromeBrowserProfile clone() { + return (GoogleChromeManagementVersionsV1ChromeBrowserProfile) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceInfo.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceInfo.java new file mode 100644 index 00000000000..e5dd467e228 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1DeviceInfo.java @@ -0,0 +1,151 @@ +/* + * 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 of a device that runs a Chrome browser 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 GoogleChromeManagementVersionsV1DeviceInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Device ID that identifies the affiliated device on which the profile exists. If + * the device type is CHROME_BROWSER, then this represents a unique Directory API ID of the device + * that can be used in Admin SDK Browsers API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String affiliatedDeviceId; + + /** + * Output only. Type of the device on which the profile exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deviceType; + + /** + * Output only. Hostname of the device on which the profile exists. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hostname; + + /** + * Output only. Machine name of the device on which the profile exists. On platforms which do not + * report the machine name (currently iOS and Android) this is instead set to the browser's + * device_id - but note that this is a different device_id than the |affiliated_device_id|. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String machine; + + /** + * Output only. Device ID that identifies the affiliated device on which the profile exists. If + * the device type is CHROME_BROWSER, then this represents a unique Directory API ID of the device + * that can be used in Admin SDK Browsers API. + * @return value or {@code null} for none + */ + public java.lang.String getAffiliatedDeviceId() { + return affiliatedDeviceId; + } + + /** + * Output only. Device ID that identifies the affiliated device on which the profile exists. If + * the device type is CHROME_BROWSER, then this represents a unique Directory API ID of the device + * that can be used in Admin SDK Browsers API. + * @param affiliatedDeviceId affiliatedDeviceId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceInfo setAffiliatedDeviceId(java.lang.String affiliatedDeviceId) { + this.affiliatedDeviceId = affiliatedDeviceId; + return this; + } + + /** + * Output only. Type of the device on which the profile exists. + * @return value or {@code null} for none + */ + public java.lang.String getDeviceType() { + return deviceType; + } + + /** + * Output only. Type of the device on which the profile exists. + * @param deviceType deviceType or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceInfo setDeviceType(java.lang.String deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * Output only. Hostname of the device on which the profile exists. + * @return value or {@code null} for none + */ + public java.lang.String getHostname() { + return hostname; + } + + /** + * Output only. Hostname of the device on which the profile exists. + * @param hostname hostname or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceInfo setHostname(java.lang.String hostname) { + this.hostname = hostname; + return this; + } + + /** + * Output only. Machine name of the device on which the profile exists. On platforms which do not + * report the machine name (currently iOS and Android) this is instead set to the browser's + * device_id - but note that this is a different device_id than the |affiliated_device_id|. + * @return value or {@code null} for none + */ + public java.lang.String getMachine() { + return machine; + } + + /** + * Output only. Machine name of the device on which the profile exists. On platforms which do not + * report the machine name (currently iOS and Android) this is instead set to the browser's + * device_id - but note that this is a different device_id than the |affiliated_device_id|. + * @param machine machine or {@code null} for none + */ + public GoogleChromeManagementVersionsV1DeviceInfo setMachine(java.lang.String machine) { + this.machine = machine; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1DeviceInfo set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1DeviceInfo) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1DeviceInfo clone() { + return (GoogleChromeManagementVersionsV1DeviceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse.java new file mode 100644 index 00000000000..0c10bd5957d --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse.java @@ -0,0 +1,124 @@ +/* + * 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 ListChromeBrowserProfiles 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 GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of profiles returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementVersionsV1ReportingData extends com.google.api.client.json.GenericJson { + + /** + * Output only. Executable path of the installed Chrome browser. A valid path is included only in + * affiliated profiles. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String browserExecutablePath; + + /** + * Output only. Information of the extensions installed on the profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData extends com.google.api.client.json.GenericJson { + + /** + * Output only. Source of the policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. Source of the policy. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Output only. Source of the policy. + * @param source source or {@code null} for none + */ + public GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData clone() { + return (GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ReportingDataExtensionData.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ReportingDataExtensionData.java new file mode 100644 index 00000000000..7b0a808f875 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1ReportingDataExtensionData.java @@ -0,0 +1,307 @@ +/* + * 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 of an extension installed on a Chrome browser 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 GoogleChromeManagementVersionsV1ReportingDataExtensionData extends com.google.api.client.json.GenericJson { + + /** + * Output only. Description of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. ID of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String extensionId; + + /** + * Output only. Type of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String extensionType; + + /** + * Output only. The URL of the homepage of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String homepageUri; + + /** + * Output only. Installation type of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String installationType; + + /** + * Output only. Represents whether the user disabled the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isDisabled; + + /** + * Output only. Represents whether the extension is from the webstore. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isWebstoreExtension; + + /** + * Output only. Manifest version of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer manifestVersion; + + /** + * Output only. Name of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Permissions requested by the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData extends com.google.api.client.json.GenericJson { + + /** + * Output only. ID of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String extensionId; + + /** + * Output only. Name of the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String extensionName; + + /** + * Output only. Information of the policies applied on the extension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementVersionsV1ReportingDataPolicyData extends com.google.api.client.json.GenericJson { + + /** + * Output only. Conflicting policy information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Chrome Management API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess extends com.google.api.client.json.GenericJson { + + /** + * Output only. A JSON string that contains the administrator-provided configuration for the + * certification authority service. This field can be missing if no configuration was given. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String caConnectionAdapterConfigReference; + + /** + * Output only. The client certificate is being provisioned for a ChromeOS device. This contains + * information about the device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1alpha1ChromeOsDevice chromeOsDevice; + + /** + * Output only. The client certificate is being provisioned for a ChromeOS user session. This + * contains information about the user session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession chromeOsUserSession; + + /** + * Output only. A message describing why this `CertificateProvisioningProcess` failed. Presence of + * this field indicates that the `CertificateProvisioningProcess` has failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String failureMessage; + + /** + * Output only. The issued certificate for this `CertificateProvisioningProcess` in PEM format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issuedCertificate; + + /** + * Identifier. Resource name of the `CertificateProvisioningProcess`. The name pattern is given as + * `customers/{customer}/certificateProvisioningProcesses/{certificate_provisioning_process}` with + * `{customer}` being the obfuscated customer id and `{certificate_provisioning_process}` being + * the certificate provisioning process id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. A JSON string that contains the administrator-provided configuration for the + * certificate provisioning profile. This field can be missing if no configuration was given. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profileAdapterConfigReference; + + /** + * Output only. The ID of the certificate provisioning profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String provisioningProfileId; + + /** + * Output only. The data that the client was asked to sign. This field is only present after the + * `SignData` operation has been initiated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signData; + + /** + * Output only. The signature of `signature_algorithm`, generated using the client's private key + * using `signature_algorithm`. This field is only present after the`SignData` operation has + * finished. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signature; + + /** + * Output only. The signature algorithm that the adapter expects the client and backend components + * to use when processing `sign_data`. This field is only present after the `SignData` operation + * has been initiated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signatureAlgorithm; + + /** + * Output only. Server-generated timestamp of when the certificate provisioning process has been + * created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The public key for which a certificate should be provisioned. Represented as a + * DER-encoded X.509 SubjectPublicKeyInfo. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subjectPublicKeyInfo; + + /** + * Output only. A JSON string that contains the administrator-provided configuration for the + * certification authority service. This field can be missing if no configuration was given. + * @return value or {@code null} for none + */ + public java.lang.String getCaConnectionAdapterConfigReference() { + return caConnectionAdapterConfigReference; + } + + /** + * Output only. A JSON string that contains the administrator-provided configuration for the + * certification authority service. This field can be missing if no configuration was given. + * @param caConnectionAdapterConfigReference caConnectionAdapterConfigReference or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setCaConnectionAdapterConfigReference(java.lang.String caConnectionAdapterConfigReference) { + this.caConnectionAdapterConfigReference = caConnectionAdapterConfigReference; + return this; + } + + /** + * Output only. The client certificate is being provisioned for a ChromeOS device. This contains + * information about the device. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1ChromeOsDevice getChromeOsDevice() { + return chromeOsDevice; + } + + /** + * Output only. The client certificate is being provisioned for a ChromeOS device. This contains + * information about the device. + * @param chromeOsDevice chromeOsDevice or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setChromeOsDevice(GoogleChromeManagementVersionsV1alpha1ChromeOsDevice chromeOsDevice) { + this.chromeOsDevice = chromeOsDevice; + return this; + } + + /** + * Output only. The client certificate is being provisioned for a ChromeOS user session. This + * contains information about the user session. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession getChromeOsUserSession() { + return chromeOsUserSession; + } + + /** + * Output only. The client certificate is being provisioned for a ChromeOS user session. This + * contains information about the user session. + * @param chromeOsUserSession chromeOsUserSession or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setChromeOsUserSession(GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession chromeOsUserSession) { + this.chromeOsUserSession = chromeOsUserSession; + return this; + } + + /** + * Output only. A message describing why this `CertificateProvisioningProcess` failed. Presence of + * this field indicates that the `CertificateProvisioningProcess` has failed. + * @return value or {@code null} for none + */ + public java.lang.String getFailureMessage() { + return failureMessage; + } + + /** + * Output only. A message describing why this `CertificateProvisioningProcess` failed. Presence of + * this field indicates that the `CertificateProvisioningProcess` has failed. + * @param failureMessage failureMessage or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setFailureMessage(java.lang.String failureMessage) { + this.failureMessage = failureMessage; + return this; + } + + /** + * Output only. The issued certificate for this `CertificateProvisioningProcess` in PEM format. + * @return value or {@code null} for none + */ + public java.lang.String getIssuedCertificate() { + return issuedCertificate; + } + + /** + * Output only. The issued certificate for this `CertificateProvisioningProcess` in PEM format. + * @param issuedCertificate issuedCertificate or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setIssuedCertificate(java.lang.String issuedCertificate) { + this.issuedCertificate = issuedCertificate; + return this; + } + + /** + * Identifier. Resource name of the `CertificateProvisioningProcess`. The name pattern is given as + * `customers/{customer}/certificateProvisioningProcesses/{certificate_provisioning_process}` with + * `{customer}` being the obfuscated customer id and `{certificate_provisioning_process}` being + * the certificate provisioning process id. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the `CertificateProvisioningProcess`. The name pattern is given as + * `customers/{customer}/certificateProvisioningProcesses/{certificate_provisioning_process}` with + * `{customer}` being the obfuscated customer id and `{certificate_provisioning_process}` being + * the certificate provisioning process id. + * @param name name or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. A JSON string that contains the administrator-provided configuration for the + * certificate provisioning profile. This field can be missing if no configuration was given. + * @return value or {@code null} for none + */ + public java.lang.String getProfileAdapterConfigReference() { + return profileAdapterConfigReference; + } + + /** + * Output only. A JSON string that contains the administrator-provided configuration for the + * certificate provisioning profile. This field can be missing if no configuration was given. + * @param profileAdapterConfigReference profileAdapterConfigReference or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setProfileAdapterConfigReference(java.lang.String profileAdapterConfigReference) { + this.profileAdapterConfigReference = profileAdapterConfigReference; + return this; + } + + /** + * Output only. The ID of the certificate provisioning profile. + * @return value or {@code null} for none + */ + public java.lang.String getProvisioningProfileId() { + return provisioningProfileId; + } + + /** + * Output only. The ID of the certificate provisioning profile. + * @param provisioningProfileId provisioningProfileId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setProvisioningProfileId(java.lang.String provisioningProfileId) { + this.provisioningProfileId = provisioningProfileId; + return this; + } + + /** + * Output only. The data that the client was asked to sign. This field is only present after the + * `SignData` operation has been initiated. + * @see #decodeSignData() + * @return value or {@code null} for none + */ + public java.lang.String getSignData() { + return signData; + } + + /** + * Output only. The data that the client was asked to sign. This field is only present after the + * `SignData` operation has been initiated. + * @see #getSignData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignData() { + return com.google.api.client.util.Base64.decodeBase64(signData); + } + + /** + * Output only. The data that the client was asked to sign. This field is only present after the + * `SignData` operation has been initiated. + * @see #encodeSignData() + * @param signData signData or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setSignData(java.lang.String signData) { + this.signData = signData; + return this; + } + + /** + * Output only. The data that the client was asked to sign. This field is only present after the + * `SignData` operation has been initiated. + * @see #setSignData() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess encodeSignData(byte[] signData) { + this.signData = com.google.api.client.util.Base64.encodeBase64URLSafeString(signData); + return this; + } + + /** + * Output only. The signature of `signature_algorithm`, generated using the client's private key + * using `signature_algorithm`. This field is only present after the`SignData` operation has + * finished. + * @see #decodeSignature() + * @return value or {@code null} for none + */ + public java.lang.String getSignature() { + return signature; + } + + /** + * Output only. The signature of `signature_algorithm`, generated using the client's private key + * using `signature_algorithm`. This field is only present after the`SignData` operation has + * finished. + * @see #getSignature() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSignature() { + return com.google.api.client.util.Base64.decodeBase64(signature); + } + + /** + * Output only. The signature of `signature_algorithm`, generated using the client's private key + * using `signature_algorithm`. This field is only present after the`SignData` operation has + * finished. + * @see #encodeSignature() + * @param signature signature or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setSignature(java.lang.String signature) { + this.signature = signature; + return this; + } + + /** + * Output only. The signature of `signature_algorithm`, generated using the client's private key + * using `signature_algorithm`. This field is only present after the`SignData` operation has + * finished. + * @see #setSignature() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess encodeSignature(byte[] signature) { + this.signature = com.google.api.client.util.Base64.encodeBase64URLSafeString(signature); + return this; + } + + /** + * Output only. The signature algorithm that the adapter expects the client and backend components + * to use when processing `sign_data`. This field is only present after the `SignData` operation + * has been initiated. + * @return value or {@code null} for none + */ + public java.lang.String getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * Output only. The signature algorithm that the adapter expects the client and backend components + * to use when processing `sign_data`. This field is only present after the `SignData` operation + * has been initiated. + * @param signatureAlgorithm signatureAlgorithm or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setSignatureAlgorithm(java.lang.String signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + /** + * Output only. Server-generated timestamp of when the certificate provisioning process has been + * created. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Server-generated timestamp of when the certificate provisioning process has been + * created. + * @param startTime startTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. The public key for which a certificate should be provisioned. Represented as a + * DER-encoded X.509 SubjectPublicKeyInfo. + * @see #decodeSubjectPublicKeyInfo() + * @return value or {@code null} for none + */ + public java.lang.String getSubjectPublicKeyInfo() { + return subjectPublicKeyInfo; + } + + /** + * Output only. The public key for which a certificate should be provisioned. Represented as a + * DER-encoded X.509 SubjectPublicKeyInfo. + * @see #getSubjectPublicKeyInfo() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeSubjectPublicKeyInfo() { + return com.google.api.client.util.Base64.decodeBase64(subjectPublicKeyInfo); + } + + /** + * Output only. The public key for which a certificate should be provisioned. Represented as a + * DER-encoded X.509 SubjectPublicKeyInfo. + * @see #encodeSubjectPublicKeyInfo() + * @param subjectPublicKeyInfo subjectPublicKeyInfo or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess setSubjectPublicKeyInfo(java.lang.String subjectPublicKeyInfo) { + this.subjectPublicKeyInfo = subjectPublicKeyInfo; + return this; + } + + /** + * Output only. The public key for which a certificate should be provisioned. Represented as a + * DER-encoded X.509 SubjectPublicKeyInfo. + * @see #setSubjectPublicKeyInfo() + * + *+ * The value is encoded Base64 or {@code null} for none. + *
+ * + * @since 1.14 + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess encodeSubjectPublicKeyInfo(byte[] subjectPublicKeyInfo) { + this.subjectPublicKeyInfo = com.google.api.client.util.Base64.encodeBase64URLSafeString(subjectPublicKeyInfo); + return this; + } + + @Override + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess clone() { + return (GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.java new file mode 100644 index 00000000000..4edc544dcf5 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1ChromeOsDevice.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; + +/** + * Describes the ChromeOS device that a `CertificateProvisioningProcess` belongs to. + * + *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 GoogleChromeManagementVersionsV1alpha1ChromeOsDevice extends com.google.api.client.json.GenericJson { + + /** + * Output only. The unique Directory API ID of the device. This value is the same as the Admin + * Console's Directory API ID in the ChromeOS Devices tab. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deviceDirectoryApiId; + + /** + * Output only. Device serial number. This value is the same as the Admin Console's Serial Number + * in the ChromeOS Devices tab. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serialNumber; + + /** + * Output only. The unique Directory API ID of the device. This value is the same as the Admin + * Console's Directory API ID in the ChromeOS Devices tab. + * @return value or {@code null} for none + */ + public java.lang.String getDeviceDirectoryApiId() { + return deviceDirectoryApiId; + } + + /** + * Output only. The unique Directory API ID of the device. This value is the same as the Admin + * Console's Directory API ID in the ChromeOS Devices tab. + * @param deviceDirectoryApiId deviceDirectoryApiId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1ChromeOsDevice setDeviceDirectoryApiId(java.lang.String deviceDirectoryApiId) { + this.deviceDirectoryApiId = deviceDirectoryApiId; + return this; + } + + /** + * Output only. Device serial number. This value is the same as the Admin Console's Serial Number + * in the ChromeOS Devices tab. + * @return value or {@code null} for none + */ + public java.lang.String getSerialNumber() { + return serialNumber; + } + + /** + * Output only. Device serial number. This value is the same as the Admin Console's Serial Number + * in the ChromeOS Devices tab. + * @param serialNumber serialNumber or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1ChromeOsDevice setSerialNumber(java.lang.String serialNumber) { + this.serialNumber = serialNumber; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1alpha1ChromeOsDevice set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1alpha1ChromeOsDevice) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1alpha1ChromeOsDevice clone() { + return (GoogleChromeManagementVersionsV1alpha1ChromeOsDevice) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession.java new file mode 100644 index 00000000000..9680d23dc6c --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession.java @@ -0,0 +1,121 @@ +/* + * 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; + +/** + * Describes the ChromeOS user session that a `CertificateProvisioningProcess` belongs to. + * + *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 GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession extends com.google.api.client.json.GenericJson { + + /** + * Output only. This field contains information about the ChromeOS device that the user session is + * running on. It is only set if the user session is affiliated, i.e. if the user is managed by + * the same organization that managed the ChromeOS device. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1alpha1ChromeOsDevice chromeOsDevice; + + /** + * Output only. The unique Directory API ID of the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userDirectoryApiId; + + /** + * Output only. The primary e-mail address of the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userPrimaryEmail; + + /** + * Output only. This field contains information about the ChromeOS device that the user session is + * running on. It is only set if the user session is affiliated, i.e. if the user is managed by + * the same organization that managed the ChromeOS device. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1ChromeOsDevice getChromeOsDevice() { + return chromeOsDevice; + } + + /** + * Output only. This field contains information about the ChromeOS device that the user session is + * running on. It is only set if the user session is affiliated, i.e. if the user is managed by + * the same organization that managed the ChromeOS device. + * @param chromeOsDevice chromeOsDevice or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession setChromeOsDevice(GoogleChromeManagementVersionsV1alpha1ChromeOsDevice chromeOsDevice) { + this.chromeOsDevice = chromeOsDevice; + return this; + } + + /** + * Output only. The unique Directory API ID of the user. + * @return value or {@code null} for none + */ + public java.lang.String getUserDirectoryApiId() { + return userDirectoryApiId; + } + + /** + * Output only. The unique Directory API ID of the user. + * @param userDirectoryApiId userDirectoryApiId or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession setUserDirectoryApiId(java.lang.String userDirectoryApiId) { + this.userDirectoryApiId = userDirectoryApiId; + return this; + } + + /** + * Output only. The primary e-mail address of the user. + * @return value or {@code null} for none + */ + public java.lang.String getUserPrimaryEmail() { + return userPrimaryEmail; + } + + /** + * Output only. The primary e-mail address of the user. + * @param userPrimaryEmail userPrimaryEmail or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession setUserPrimaryEmail(java.lang.String userPrimaryEmail) { + this.userPrimaryEmail = userPrimaryEmail; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession clone() { + return (GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1SignDataMetadata.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1SignDataMetadata.java new file mode 100644 index 00000000000..d510551852e --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1SignDataMetadata.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Metadata for the long-running operation returned by signData. + * + *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 GoogleChromeManagementVersionsV1alpha1SignDataMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. Start time of the SignData operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. Start time of the SignData operation. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Start time of the SignData operation. + * @param startTime startTime or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1SignDataMetadata setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1alpha1SignDataMetadata set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1alpha1SignDataMetadata) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1alpha1SignDataMetadata clone() { + return (GoogleChromeManagementVersionsV1alpha1SignDataMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1SignDataResponse.java b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1SignDataResponse.java new file mode 100644 index 00000000000..8ea33965b38 --- /dev/null +++ b/clients/google-api-services-chromemanagement/v1/2.0.0/com/google/api/services/chromemanagement/v1/model/GoogleChromeManagementVersionsV1alpha1SignDataResponse.java @@ -0,0 +1,71 @@ +/* + * 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 message for requesting a signature from the client that initated a certificate + * provisioning process. + * + *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 GoogleChromeManagementVersionsV1alpha1SignDataResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. The certificate provisioning process. The signature generated by the client will + * be available in the `signature` field of `CertificateProvisioningProcess`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess certificateProvisioningProcess; + + /** + * Output only. The certificate provisioning process. The signature generated by the client will + * be available in the `signature` field of `CertificateProvisioningProcess`. + * @return value or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess getCertificateProvisioningProcess() { + return certificateProvisioningProcess; + } + + /** + * Output only. The certificate provisioning process. The signature generated by the client will + * be available in the `signature` field of `CertificateProvisioningProcess`. + * @param certificateProvisioningProcess certificateProvisioningProcess or {@code null} for none + */ + public GoogleChromeManagementVersionsV1alpha1SignDataResponse setCertificateProvisioningProcess(GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess certificateProvisioningProcess) { + this.certificateProvisioningProcess = certificateProvisioningProcess; + return this; + } + + @Override + public GoogleChromeManagementVersionsV1alpha1SignDataResponse set(String fieldName, Object value) { + return (GoogleChromeManagementVersionsV1alpha1SignDataResponse) super.set(fieldName, value); + } + + @Override + public GoogleChromeManagementVersionsV1alpha1SignDataResponse clone() { + return (GoogleChromeManagementVersionsV1alpha1SignDataResponse) 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 5e97b273da3..e9b43eb43ed 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 @@