diff --git a/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/README.md b/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/README.md
new file mode 100644
index 00000000000..576667a332b
--- /dev/null
+++ b/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/README.md
@@ -0,0 +1,44 @@
+# Android Developer ID Status API Client Library for Java
+
+Android Developer ID Status API.
+
+This page contains information about getting started with the Android Developer ID Status API
+using the Google API Client Library for Java. In addition, you may be interested
+in the following documentation:
+
+* Browse the [Javadoc reference for the Android Developer ID Status API][javadoc]
+* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client].
+* Interact with this API in your browser using the [APIs Explorer for the Android Developer ID Status API][api-explorer]
+
+## Installation
+
+### Maven
+
+Add the following lines to your `pom.xml` file:
+
+```xml
+
+ * Android Developer ID Status API. + *
+ * + *+ * For more information about this service, see the + * API Documentation + *
+ * + *+ * This service uses {@link AndroidDeveloperIDStatusRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *
+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class AndroidDeveloperIDStatus extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Android Developer ID Status API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://androiddeveloperidstatus.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://androiddeveloperidstatus.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *+ * Use {@link Builder} if you need to specify any of the optional parameters. + *
+ * + * @param transport HTTP transport, which should normally be: + *The typical use is:
+ *
+ * {@code AndroidDeveloperIDStatus androiddeveloperidstatus = new AndroidDeveloperIDStatus(...);}
+ * {@code AndroidDeveloperIDStatus.Packages.List request = androiddeveloperidstatus.packages().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Packages packages() {
+ return new Packages();
+ }
+
+ /**
+ * The "packages" collection of methods.
+ */
+ public class Packages {
+
+ /**
+ * An accessor for creating requests from the PackageRegistrationStatus collection.
+ *
+ * The typical use is:
+ *
+ * {@code AndroidDeveloperIDStatus androiddeveloperidstatus = new AndroidDeveloperIDStatus(...);}
+ * {@code AndroidDeveloperIDStatus.PackageRegistrationStatus.List request = androiddeveloperidstatus.packageRegistrationStatus().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public PackageRegistrationStatus packageRegistrationStatus() {
+ return new PackageRegistrationStatus();
+ }
+
+ /**
+ * The "packageRegistrationStatus" collection of methods.
+ */
+ public class PackageRegistrationStatus {
+
+ /**
+ * Retrieves the Android Developer ID registration status for a given package.
+ *
+ * Create a request for the method "packageRegistrationStatus.check".
+ *
+ * This request holds the parameters needed by the androiddeveloperidstatus server. After setting
+ * any optional parameters, call the {@link Check#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The name of the package registration status resource. Format:
+ * packages/{package}/packageRegistrationStatus `{package}` must follow the specific format:
+ * The fully-qualified Android package name with dots ('.') replaced by hyphens ('-') (e.g.,
+ * `com-example-app` instead of `com.example.app`).
+ * @return the request
+ */
+ public Check check(java.lang.String name) throws java.io.IOException {
+ Check result = new Check(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Check extends AndroidDeveloperIDStatusRequest{@link + * Check#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the package registration status resource. Format: + * packages/{package}/packageRegistrationStatus `{package}` must follow the specific format: + * The fully-qualified Android package name with dots ('.') replaced by hyphens ('-') (e.g., + * `com-example-app` instead of `com.example.app`). + * @since 1.13 + */ + protected Check(java.lang.String name) { + super(AndroidDeveloperIDStatus.this, "GET", REST_PATH, null, com.google.api.services.androiddeveloperidstatus.v1.model.PackageRegistrationStatus.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 " + + "^packages/[^/]+/packageRegistrationStatus$"); + } + } + + @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 Check set$Xgafv(java.lang.String $Xgafv) { + return (Check) super.set$Xgafv($Xgafv); + } + + @Override + public Check setAccessToken(java.lang.String accessToken) { + return (Check) super.setAccessToken(accessToken); + } + + @Override + public Check setAlt(java.lang.String alt) { + return (Check) super.setAlt(alt); + } + + @Override + public Check setCallback(java.lang.String callback) { + return (Check) super.setCallback(callback); + } + + @Override + public Check setFields(java.lang.String fields) { + return (Check) super.setFields(fields); + } + + @Override + public Check setKey(java.lang.String key) { + return (Check) super.setKey(key); + } + + @Override + public Check setOauthToken(java.lang.String oauthToken) { + return (Check) super.setOauthToken(oauthToken); + } + + @Override + public Check setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Check) super.setPrettyPrint(prettyPrint); + } + + @Override + public Check setQuotaUser(java.lang.String quotaUser) { + return (Check) super.setQuotaUser(quotaUser); + } + + @Override + public Check setUploadType(java.lang.String uploadType) { + return (Check) super.setUploadType(uploadType); + } + + @Override + public Check setUploadProtocol(java.lang.String uploadProtocol) { + return (Check) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the package registration status resource. Format: + * packages/{package}/packageRegistrationStatus `{package}` must follow the specific format: + * The fully-qualified Android package name with dots ('.') replaced by hyphens ('-') (e.g., + * `com-example-app` instead of `com.example.app`). + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the package registration status resource. Format: + packages/{package}/packageRegistrationStatus `{package}` must follow the specific format: The + fully-qualified Android package name with dots ('.') replaced by hyphens ('-') (e.g., `com-example- + app` instead of `com.example.app`). + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the package registration status resource. Format: + * packages/{package}/packageRegistrationStatus `{package}` must follow the specific format: + * The fully-qualified Android package name with dots ('.') replaced by hyphens ('-') (e.g., + * `com-example-app` instead of `com.example.app`). + */ + public Check 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 " + + "^packages/[^/]+/packageRegistrationStatus$"); + } + this.name = name; + return this; + } + + /** + * Optional. The SHA-256 fingerprint of the public certificate represented as a 64-character + * lowercase hexadecimal string without any colons or separators (e.g., + * `d6ac89ed1d0a805aad4b087d06d5f41645b814480b133fbc867ef7498d069e06`). + */ + @com.google.api.client.util.Key + private java.lang.String certificateFingerprint; + + /** Optional. The SHA-256 fingerprint of the public certificate represented as a 64-character lowercase + hexadecimal string without any colons or separators (e.g., + `d6ac89ed1d0a805aad4b087d06d5f41645b814480b133fbc867ef7498d069e06`). + */ + public java.lang.String getCertificateFingerprint() { + return certificateFingerprint; + } + + /** + * Optional. The SHA-256 fingerprint of the public certificate represented as a 64-character + * lowercase hexadecimal string without any colons or separators (e.g., + * `d6ac89ed1d0a805aad4b087d06d5f41645b814480b133fbc867ef7498d069e06`). + */ + public Check setCertificateFingerprint(java.lang.String certificateFingerprint) { + this.certificateFingerprint = certificateFingerprint; + return this; + } + + @Override + public Check set(String parameterName, Object value) { + return (Check) super.set(parameterName, value); + } + } + + } + } + + /** + * Builder for {@link AndroidDeveloperIDStatus}. + * + *+ * Implementation is not thread-safe. + *
+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *+ * The simplest usage is to use it to set the key parameter: + *
+ * + *+ public static final GoogleClientRequestInitializer KEY_INITIALIZER = + new AndroidDeveloperIDStatusRequestInitializer(KEY); + *+ * + *
+ * There is also a constructor to set both the key and userIp parameters: + *
+ * + *+ public static final GoogleClientRequestInitializer INITIALIZER = + new AndroidDeveloperIDStatusRequestInitializer(KEY, USER_IP); + *+ * + *
+ * If you want to implement custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer extends AndroidDeveloperIDStatusRequestInitializer {
+
+ {@literal @}Override
+ public void initializeAndroidDeveloperIDStatusRequest(AndroidDeveloperIDStatusRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *
+ * + *
+ public static class MyRequestInitializer2 extends AndroidDeveloperIDStatusRequestInitializer {
+
+ public MyKeyRequestInitializer() {
+ super(KEY, USER_IP);
+ }
+
+ {@literal @}Override
+ public void initializeAndroidDeveloperIDStatusRequest(AndroidDeveloperIDStatusRequest{@literal <}?{@literal >} request)
+ throws IOException {
+ // custom logic
+ }
+ }
+ *
+ *
+ * + * Subclasses should be thread-safe. + *
+ * + * @since 1.12 + */ +public class AndroidDeveloperIDStatusRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public AndroidDeveloperIDStatusRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public AndroidDeveloperIDStatusRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public AndroidDeveloperIDStatusRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest> request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeAndroidDeveloperIDStatusRequest((AndroidDeveloperIDStatusRequest>) request); + } + + /** + * Initializes AndroidDeveloperIDStatus request. + * + *+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *
+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeAndroidDeveloperIDStatusRequest(AndroidDeveloperIDStatusRequest> request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/com/google/api/services/androiddeveloperidstatus/v1/model/PackageRegistrationStatus.java b/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/com/google/api/services/androiddeveloperidstatus/v1/model/PackageRegistrationStatus.java new file mode 100644 index 00000000000..0ef4eed428c --- /dev/null +++ b/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/com/google/api/services/androiddeveloperidstatus/v1/model/PackageRegistrationStatus.java @@ -0,0 +1,130 @@ +/* + * 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.androiddeveloperidstatus.v1.model; + +/** + * Resource message PackageRegistrationStatus. + * + *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 Android Developer ID Status 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 PackageRegistrationStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The SHA-256 fingerprint of the public certificate represented as a 64-character + * lowercase hexadecimal string without any colons or separators (e.g., + * `d6ac89ed1d0a805aad4b087d06d5f41645b814480b133fbc867ef7498d069e06`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String certificateFingerprint; + + /** + * Identifier. The name of the package registration status resource. Format: + * packages/{package}/packageRegistrationStatus `{package}` must follow the specific format: The + * fully-qualified Android package name with dots ('.') replaced by hyphens ('-') (e.g., `com- + * example-app` instead of `com.example.app`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Registration state of the package, or pair. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The SHA-256 fingerprint of the public certificate represented as a 64-character + * lowercase hexadecimal string without any colons or separators (e.g., + * `d6ac89ed1d0a805aad4b087d06d5f41645b814480b133fbc867ef7498d069e06`). + * @return value or {@code null} for none + */ + public java.lang.String getCertificateFingerprint() { + return certificateFingerprint; + } + + /** + * Output only. The SHA-256 fingerprint of the public certificate represented as a 64-character + * lowercase hexadecimal string without any colons or separators (e.g., + * `d6ac89ed1d0a805aad4b087d06d5f41645b814480b133fbc867ef7498d069e06`). + * @param certificateFingerprint certificateFingerprint or {@code null} for none + */ + public PackageRegistrationStatus setCertificateFingerprint(java.lang.String certificateFingerprint) { + this.certificateFingerprint = certificateFingerprint; + return this; + } + + /** + * Identifier. The name of the package registration status resource. Format: + * packages/{package}/packageRegistrationStatus `{package}` must follow the specific format: The + * fully-qualified Android package name with dots ('.') replaced by hyphens ('-') (e.g., `com- + * example-app` instead of `com.example.app`). + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the package registration status resource. Format: + * packages/{package}/packageRegistrationStatus `{package}` must follow the specific format: The + * fully-qualified Android package name with dots ('.') replaced by hyphens ('-') (e.g., `com- + * example-app` instead of `com.example.app`). + * @param name name or {@code null} for none + */ + public PackageRegistrationStatus setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Registration state of the package, or pair. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. Registration state of the package, or pair. + * @param state state or {@code null} for none + */ + public PackageRegistrationStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public PackageRegistrationStatus set(String fieldName, Object value) { + return (PackageRegistrationStatus) super.set(fieldName, value); + } + + @Override + public PackageRegistrationStatus clone() { + return (PackageRegistrationStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/pom.xml b/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/pom.xml new file mode 100644 index 00000000000..ceaf10ab8dd --- /dev/null +++ b/clients/google-api-services-androiddeveloperidstatus/v1/2.0.0/pom.xml @@ -0,0 +1,219 @@ +