diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/README.md b/clients/google-api-services-databasecenter/v1beta/2.0.0/README.md new file mode 100644 index 00000000000..00b924028da --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/README.md @@ -0,0 +1,44 @@ +# Database Center API Client Library for Java + +Database Center offers a comprehensive, organization-wide platform for monitoring database fleet health across various products. It simplifies management and reduces risk by automatically aggregating and summarizing key health signals, removing the need for custom dashboards. The platform provides a unified view through its dashboard and API, enabling teams focused on reliability, compliance, security, cost, and administration to quickly identify and address relevant issues within their database fleets. + +This page contains information about getting started with the Database Center 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 Database Center 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 Database Center API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-databasecenter + v1beta-rev20260612-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-databasecenter:v1beta-rev20260612-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-databasecenter/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/databasecenter/v1/ diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenter.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenter.java new file mode 100644 index 00000000000..8589302e290 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenter.java @@ -0,0 +1,1681 @@ +/* + * 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.databasecenter.v1beta; + +/** + * Service definition for DatabaseCenter (v1beta). + * + *

+ * Database Center offers a comprehensive, organization-wide platform for monitoring database fleet health across various products. It simplifies management and reduces risk by automatically aggregating and summarizing key health signals, removing the need for custom dashboards. The platform provides a unified view through its dashboard and API, enabling teams focused on reliability, compliance, security, cost, and administration to quickly identify and address relevant issues within their database fleets. + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link DatabaseCenterRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class DatabaseCenter 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 Database Center 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://databasecenter.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://databasecenter.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: + * + * @param jsonFactory JSON factory, which may be: + * + * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public DatabaseCenter(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + DatabaseCenter(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the Folders collection. + * + *

The typical use is:

+ *
+   *   {@code DatabaseCenter databasecenter = new DatabaseCenter(...);}
+   *   {@code DatabaseCenter.Folders.List request = databasecenter.folders().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Folders folders() { + return new Folders(); + } + + /** + * The "folders" collection of methods. + */ + public class Folders { + + /** + * AggregateQueryStats provides database resource query execution statistics. + * + * Create a request for the method "folders.aggregateQueryStats". + * + * This request holds the parameters needed by the databasecenter server. After setting any + * optional parameters, call the {@link AggregateQueryStats#execute()} method to invoke the remote + * operation. + * + * @param parent Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest} + * @return the request + */ + public AggregateQueryStats aggregateQueryStats(java.lang.String parent, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest content) throws java.io.IOException { + AggregateQueryStats result = new AggregateQueryStats(parent, content); + initialize(result); + return result; + } + + public class AggregateQueryStats extends DatabaseCenterRequest { + + private static final String REST_PATH = "v1beta/{+parent}:aggregateQueryStats"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+$"); + + /** + * AggregateQueryStats provides database resource query execution statistics. + * + * Create a request for the method "folders.aggregateQueryStats". + * + * This request holds the parameters needed by the the databasecenter server. After setting any + * optional parameters, call the {@link AggregateQueryStats#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest} + * @since 1.13 + */ + protected AggregateQueryStats(java.lang.String parent, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest content) { + super(DatabaseCenter.this, "POST", REST_PATH, content, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsResponse.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 " + + "^folders/[^/]+$"); + } + } + + @Override + public AggregateQueryStats set$Xgafv(java.lang.String $Xgafv) { + return (AggregateQueryStats) super.set$Xgafv($Xgafv); + } + + @Override + public AggregateQueryStats setAccessToken(java.lang.String accessToken) { + return (AggregateQueryStats) super.setAccessToken(accessToken); + } + + @Override + public AggregateQueryStats setAlt(java.lang.String alt) { + return (AggregateQueryStats) super.setAlt(alt); + } + + @Override + public AggregateQueryStats setCallback(java.lang.String callback) { + return (AggregateQueryStats) super.setCallback(callback); + } + + @Override + public AggregateQueryStats setFields(java.lang.String fields) { + return (AggregateQueryStats) super.setFields(fields); + } + + @Override + public AggregateQueryStats setKey(java.lang.String key) { + return (AggregateQueryStats) super.setKey(key); + } + + @Override + public AggregateQueryStats setOauthToken(java.lang.String oauthToken) { + return (AggregateQueryStats) super.setOauthToken(oauthToken); + } + + @Override + public AggregateQueryStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregateQueryStats) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregateQueryStats setQuotaUser(java.lang.String quotaUser) { + return (AggregateQueryStats) super.setQuotaUser(quotaUser); + } + + @Override + public AggregateQueryStats setUploadType(java.lang.String uploadType) { + return (AggregateQueryStats) super.setUploadType(uploadType); + } + + @Override + public AggregateQueryStats setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregateQueryStats) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to + * the resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent can be a project, a folder, or an organization. The search is limited to the + resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., + "organizations/123456") + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to + * the resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + public AggregateQueryStats 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 " + + "^folders/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public AggregateQueryStats set(String parameterName, Object value) { + return (AggregateQueryStats) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Organizations collection. + * + *

The typical use is:

+ *
+   *   {@code DatabaseCenter databasecenter = new DatabaseCenter(...);}
+   *   {@code DatabaseCenter.Organizations.List request = databasecenter.organizations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Organizations organizations() { + return new Organizations(); + } + + /** + * The "organizations" collection of methods. + */ + public class Organizations { + + /** + * AggregateQueryStats provides database resource query execution statistics. + * + * Create a request for the method "organizations.aggregateQueryStats". + * + * This request holds the parameters needed by the databasecenter server. After setting any + * optional parameters, call the {@link AggregateQueryStats#execute()} method to invoke the remote + * operation. + * + * @param parent Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest} + * @return the request + */ + public AggregateQueryStats aggregateQueryStats(java.lang.String parent, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest content) throws java.io.IOException { + AggregateQueryStats result = new AggregateQueryStats(parent, content); + initialize(result); + return result; + } + + public class AggregateQueryStats extends DatabaseCenterRequest { + + private static final String REST_PATH = "v1beta/{+parent}:aggregateQueryStats"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+$"); + + /** + * AggregateQueryStats provides database resource query execution statistics. + * + * Create a request for the method "organizations.aggregateQueryStats". + * + * This request holds the parameters needed by the the databasecenter server. After setting any + * optional parameters, call the {@link AggregateQueryStats#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest} + * @since 1.13 + */ + protected AggregateQueryStats(java.lang.String parent, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest content) { + super(DatabaseCenter.this, "POST", REST_PATH, content, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsResponse.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 " + + "^organizations/[^/]+$"); + } + } + + @Override + public AggregateQueryStats set$Xgafv(java.lang.String $Xgafv) { + return (AggregateQueryStats) super.set$Xgafv($Xgafv); + } + + @Override + public AggregateQueryStats setAccessToken(java.lang.String accessToken) { + return (AggregateQueryStats) super.setAccessToken(accessToken); + } + + @Override + public AggregateQueryStats setAlt(java.lang.String alt) { + return (AggregateQueryStats) super.setAlt(alt); + } + + @Override + public AggregateQueryStats setCallback(java.lang.String callback) { + return (AggregateQueryStats) super.setCallback(callback); + } + + @Override + public AggregateQueryStats setFields(java.lang.String fields) { + return (AggregateQueryStats) super.setFields(fields); + } + + @Override + public AggregateQueryStats setKey(java.lang.String key) { + return (AggregateQueryStats) super.setKey(key); + } + + @Override + public AggregateQueryStats setOauthToken(java.lang.String oauthToken) { + return (AggregateQueryStats) super.setOauthToken(oauthToken); + } + + @Override + public AggregateQueryStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregateQueryStats) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregateQueryStats setQuotaUser(java.lang.String quotaUser) { + return (AggregateQueryStats) super.setQuotaUser(quotaUser); + } + + @Override + public AggregateQueryStats setUploadType(java.lang.String uploadType) { + return (AggregateQueryStats) super.setUploadType(uploadType); + } + + @Override + public AggregateQueryStats setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregateQueryStats) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to + * the resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent can be a project, a folder, or an organization. The search is limited to the + resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., + "organizations/123456") + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to + * the resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + public AggregateQueryStats 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 " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public AggregateQueryStats set(String parameterName, Object value) { + return (AggregateQueryStats) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code DatabaseCenter databasecenter = new DatabaseCenter(...);}
+   *   {@code DatabaseCenter.Projects.List request = databasecenter.projects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * AggregateQueryStats provides database resource query execution statistics. + * + * Create a request for the method "projects.aggregateQueryStats". + * + * This request holds the parameters needed by the databasecenter server. After setting any + * optional parameters, call the {@link AggregateQueryStats#execute()} method to invoke the remote + * operation. + * + * @param parent Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest} + * @return the request + */ + public AggregateQueryStats aggregateQueryStats(java.lang.String parent, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest content) throws java.io.IOException { + AggregateQueryStats result = new AggregateQueryStats(parent, content); + initialize(result); + return result; + } + + public class AggregateQueryStats extends DatabaseCenterRequest { + + private static final String REST_PATH = "v1beta/{+parent}:aggregateQueryStats"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * AggregateQueryStats provides database resource query execution statistics. + * + * Create a request for the method "projects.aggregateQueryStats". + * + * This request holds the parameters needed by the the databasecenter server. After setting any + * optional parameters, call the {@link AggregateQueryStats#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest} + * @since 1.13 + */ + protected AggregateQueryStats(java.lang.String parent, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsRequest content) { + super(DatabaseCenter.this, "POST", REST_PATH, content, com.google.api.services.databasecenter.v1beta.model.AggregateQueryStatsResponse.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 " + + "^projects/[^/]+$"); + } + } + + @Override + public AggregateQueryStats set$Xgafv(java.lang.String $Xgafv) { + return (AggregateQueryStats) super.set$Xgafv($Xgafv); + } + + @Override + public AggregateQueryStats setAccessToken(java.lang.String accessToken) { + return (AggregateQueryStats) super.setAccessToken(accessToken); + } + + @Override + public AggregateQueryStats setAlt(java.lang.String alt) { + return (AggregateQueryStats) super.setAlt(alt); + } + + @Override + public AggregateQueryStats setCallback(java.lang.String callback) { + return (AggregateQueryStats) super.setCallback(callback); + } + + @Override + public AggregateQueryStats setFields(java.lang.String fields) { + return (AggregateQueryStats) super.setFields(fields); + } + + @Override + public AggregateQueryStats setKey(java.lang.String key) { + return (AggregateQueryStats) super.setKey(key); + } + + @Override + public AggregateQueryStats setOauthToken(java.lang.String oauthToken) { + return (AggregateQueryStats) super.setOauthToken(oauthToken); + } + + @Override + public AggregateQueryStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregateQueryStats) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregateQueryStats setQuotaUser(java.lang.String quotaUser) { + return (AggregateQueryStats) super.setQuotaUser(quotaUser); + } + + @Override + public AggregateQueryStats setUploadType(java.lang.String uploadType) { + return (AggregateQueryStats) super.setUploadType(uploadType); + } + + @Override + public AggregateQueryStats setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregateQueryStats) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to + * the resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent can be a project, a folder, or an organization. The search is limited to the + resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., + "organizations/123456") + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to + * the resources within the `parent`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + public AggregateQueryStats 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 " + + "^projects/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public AggregateQueryStats set(String parameterName, Object value) { + return (AggregateQueryStats) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the V1beta collection. + * + *

The typical use is:

+ *
+   *   {@code DatabaseCenter databasecenter = new DatabaseCenter(...);}
+   *   {@code DatabaseCenter.V1beta.List request = databasecenter.v1beta().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public V1beta v1beta() { + return new V1beta(); + } + + /** + * The "v1beta" collection of methods. + */ + public class V1beta { + + /** + * AggregateFleet provides statistics about the fleet grouped by various fields. + * + * Create a request for the method "v1beta.aggregateFleet". + * + * This request holds the parameters needed by the databasecenter server. After setting any + * optional parameters, call the {@link AggregateFleet#execute()} method to invoke the remote + * operation. + * + * @return the request + */ + public AggregateFleet aggregateFleet() throws java.io.IOException { + AggregateFleet result = new AggregateFleet(); + initialize(result); + return result; + } + + public class AggregateFleet extends DatabaseCenterRequest { + + private static final String REST_PATH = "v1beta:aggregateFleet"; + + /** + * AggregateFleet provides statistics about the fleet grouped by various fields. + * + * Create a request for the method "v1beta.aggregateFleet". + * + * This request holds the parameters needed by the the databasecenter server. After setting any + * optional parameters, call the {@link AggregateFleet#execute()} method to invoke the remote + * operation.

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

+ * + * @since 1.13 + */ + protected AggregateFleet() { + super(DatabaseCenter.this, "GET", REST_PATH, null, com.google.api.services.databasecenter.v1beta.model.AggregateFleetResponse.class); + } + + @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 AggregateFleet set$Xgafv(java.lang.String $Xgafv) { + return (AggregateFleet) super.set$Xgafv($Xgafv); + } + + @Override + public AggregateFleet setAccessToken(java.lang.String accessToken) { + return (AggregateFleet) super.setAccessToken(accessToken); + } + + @Override + public AggregateFleet setAlt(java.lang.String alt) { + return (AggregateFleet) super.setAlt(alt); + } + + @Override + public AggregateFleet setCallback(java.lang.String callback) { + return (AggregateFleet) super.setCallback(callback); + } + + @Override + public AggregateFleet setFields(java.lang.String fields) { + return (AggregateFleet) super.setFields(fields); + } + + @Override + public AggregateFleet setKey(java.lang.String key) { + return (AggregateFleet) super.setKey(key); + } + + @Override + public AggregateFleet setOauthToken(java.lang.String oauthToken) { + return (AggregateFleet) super.setOauthToken(oauthToken); + } + + @Override + public AggregateFleet setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregateFleet) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregateFleet setQuotaUser(java.lang.String quotaUser) { + return (AggregateFleet) super.setQuotaUser(quotaUser); + } + + @Override + public AggregateFleet setUploadType(java.lang.String uploadType) { + return (AggregateFleet) super.setUploadType(uploadType); + } + + @Override + public AggregateFleet setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregateFleet) super.setUploadProtocol(uploadProtocol); + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a + * year by itself or a year and month where the day isn't significant. + */ + @com.google.api.client.util.Key("baselineDate.day") + private java.lang.Integer baselineDateDay; + + /** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by + itself or a year and month where the day isn't significant. + */ + public java.lang.Integer getBaselineDateDay() { + return baselineDateDay; + } + + /** + * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a + * year by itself or a year and month where the day isn't significant. + */ + public AggregateFleet setBaselineDateDay(java.lang.Integer baselineDateDay) { + this.baselineDateDay = baselineDateDay; + return this; + } + + /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */ + @com.google.api.client.util.Key("baselineDate.month") + private java.lang.Integer baselineDateMonth; + + /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. + */ + public java.lang.Integer getBaselineDateMonth() { + return baselineDateMonth; + } + + /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */ + public AggregateFleet setBaselineDateMonth(java.lang.Integer baselineDateMonth) { + this.baselineDateMonth = baselineDateMonth; + return this; + } + + /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */ + @com.google.api.client.util.Key("baselineDate.year") + private java.lang.Integer baselineDateYear; + + /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. + */ + public java.lang.Integer getBaselineDateYear() { + return baselineDateYear; + } + + /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */ + public AggregateFleet setBaselineDateYear(java.lang.Integer baselineDateYear) { + this.baselineDateYear = baselineDateYear; + return this; + } + + /** + * Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + * `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, + * `location`, `labels`, `issues`, fields of availability_info, data_protection_info, + * 'resource_name', etc. The expression is a list of zero or more restrictions combined via + * logical operators `AND` and `OR`. When `AND` and `OR` are both used in the expression, + * parentheses must be appropriately used to group the combinations. Example: `location="us- + * east1"` Example: `container="projects/123" OR container="projects/456"` Example: + * `(container="projects/123" OR container="projects/456") AND location="us-east1"` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, + `labels`, `issues`, fields of availability_info, data_protection_info, 'resource_name', etc. The + expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. + When `AND` and `OR` are both used in the expression, parentheses must be appropriately used to + group the combinations. Example: `location="us-east1"` Example: `container="projects/123" OR + container="projects/456"` Example: `(container="projects/123" OR container="projects/456") AND + location="us-east1"` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + * `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, + * `location`, `labels`, `issues`, fields of availability_info, data_protection_info, + * 'resource_name', etc. The expression is a list of zero or more restrictions combined via + * logical operators `AND` and `OR`. When `AND` and `OR` are both used in the expression, + * parentheses must be appropriately used to group the combinations. Example: `location="us- + * east1"` Example: `container="projects/123" OR container="projects/456"` Example: + * `(container="projects/123" OR container="projects/456") AND location="us-east1"` + */ + public AggregateFleet setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. A field that statistics are grouped by. Valid values are any combination of the + * following: * container * product.type * product.engine * product.version * location * + * sub_resource_type * management_type * tag.key * tag.value * tag.source * tag.inherited * + * label.key * label.value * label.source * has_maintenance_schedule * + * has_deny_maintenance_schedules Comma separated list. + */ + @com.google.api.client.util.Key + private java.lang.String groupBy; + + /** Optional. A field that statistics are grouped by. Valid values are any combination of the + following: * container * product.type * product.engine * product.version * location * + sub_resource_type * management_type * tag.key * tag.value * tag.source * tag.inherited * label.key + * label.value * label.source * has_maintenance_schedule * has_deny_maintenance_schedules Comma + separated list. + */ + public java.lang.String getGroupBy() { + return groupBy; + } + + /** + * Optional. A field that statistics are grouped by. Valid values are any combination of the + * following: * container * product.type * product.engine * product.version * location * + * sub_resource_type * management_type * tag.key * tag.value * tag.source * tag.inherited * + * label.key * label.value * label.source * has_maintenance_schedule * + * has_deny_maintenance_schedules Comma separated list. + */ + public AggregateFleet setGroupBy(java.lang.String groupBy) { + this.groupBy = groupBy; + return this; + } + + /** + * Optional. Valid values to order by are: * resource_groups_count * resources_count * and all + * fields supported by `group_by` The default order is ascending. Add "DESC" after the field + * name to indicate descending order. Add "ASC" after the field name to indicate ascending + * order. It supports ordering using multiple fields. For example: `order_by = + * "resource_groups_count"` sorts response in ascending order `order_by = + * "resource_groups_count DESC"` sorts response in descending order `order_by = "product.type, + * product.version DESC, location"` orders by type in ascending order, version in descending + * order and location in ascending order + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Valid values to order by are: * resource_groups_count * resources_count * and all fields + supported by `group_by` The default order is ascending. Add "DESC" after the field name to indicate + descending order. Add "ASC" after the field name to indicate ascending order. It supports ordering + using multiple fields. For example: `order_by = "resource_groups_count"` sorts response in + ascending order `order_by = "resource_groups_count DESC"` sorts response in descending order + `order_by = "product.type, product.version DESC, location"` orders by type in ascending order, + version in descending order and location in ascending order + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Valid values to order by are: * resource_groups_count * resources_count * and all + * fields supported by `group_by` The default order is ascending. Add "DESC" after the field + * name to indicate descending order. Add "ASC" after the field name to indicate ascending + * order. It supports ordering using multiple fields. For example: `order_by = + * "resource_groups_count"` sorts response in ascending order `order_by = + * "resource_groups_count DESC"` sorts response in descending order `order_by = "product.type, + * product.version DESC, location"` orders by type in ascending order, version in descending + * order and location in ascending order + */ + public AggregateFleet setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. If unspecified, at most 50 items will be returned. The maximum value is 1000; + * values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. If unspecified, at most 50 items will be returned. The maximum value is 1000; values + above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. If unspecified, at most 50 items will be returned. The maximum value is 1000; + * values above 1000 will be coerced to 1000. + */ + public AggregateFleet setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `AggregateFleet` call. Provide this to + * retrieve the subsequent page. All other parameters should match the parameters in the call + * that provided the page token except for page_size which can be different. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `AggregateFleet` call. Provide this to retrieve + the subsequent page. All other parameters should match the parameters in the call that provided the + page token except for page_size which can be different. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `AggregateFleet` call. Provide this to + * retrieve the subsequent page. All other parameters should match the parameters in the call + * that provided the page token except for page_size which can be different. + */ + public AggregateFleet setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to + * the resources within the `scope`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent can be a project, a folder, or an organization. The search is limited to the + resources within the `scope`. The allowed values are: * projects/{PROJECT_ID} (e.g., "projects/foo- + bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., + "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to + * the resources within the `scope`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + public AggregateFleet setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public AggregateFleet set(String parameterName, Object value) { + return (AggregateFleet) super.set(parameterName, value); + } + } + /** + * AggregateIssueStats provides database resource issues statistics. + * + * Create a request for the method "v1beta.aggregateIssueStats". + * + * This request holds the parameters needed by the databasecenter server. After setting any + * optional parameters, call the {@link AggregateIssueStats#execute()} method to invoke the remote + * operation. + * + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.AggregateIssueStatsRequest} + * @return the request + */ + public AggregateIssueStats aggregateIssueStats(com.google.api.services.databasecenter.v1beta.model.AggregateIssueStatsRequest content) throws java.io.IOException { + AggregateIssueStats result = new AggregateIssueStats(content); + initialize(result); + return result; + } + + public class AggregateIssueStats extends DatabaseCenterRequest { + + private static final String REST_PATH = "v1beta:aggregateIssueStats"; + + /** + * AggregateIssueStats provides database resource issues statistics. + * + * Create a request for the method "v1beta.aggregateIssueStats". + * + * This request holds the parameters needed by the the databasecenter server. After setting any + * optional parameters, call the {@link AggregateIssueStats#execute()} method to invoke the remote + * operation.

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

+ * + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.AggregateIssueStatsRequest} + * @since 1.13 + */ + protected AggregateIssueStats(com.google.api.services.databasecenter.v1beta.model.AggregateIssueStatsRequest content) { + super(DatabaseCenter.this, "POST", REST_PATH, content, com.google.api.services.databasecenter.v1beta.model.AggregateIssueStatsResponse.class); + } + + @Override + public AggregateIssueStats set$Xgafv(java.lang.String $Xgafv) { + return (AggregateIssueStats) super.set$Xgafv($Xgafv); + } + + @Override + public AggregateIssueStats setAccessToken(java.lang.String accessToken) { + return (AggregateIssueStats) super.setAccessToken(accessToken); + } + + @Override + public AggregateIssueStats setAlt(java.lang.String alt) { + return (AggregateIssueStats) super.setAlt(alt); + } + + @Override + public AggregateIssueStats setCallback(java.lang.String callback) { + return (AggregateIssueStats) super.setCallback(callback); + } + + @Override + public AggregateIssueStats setFields(java.lang.String fields) { + return (AggregateIssueStats) super.setFields(fields); + } + + @Override + public AggregateIssueStats setKey(java.lang.String key) { + return (AggregateIssueStats) super.setKey(key); + } + + @Override + public AggregateIssueStats setOauthToken(java.lang.String oauthToken) { + return (AggregateIssueStats) super.setOauthToken(oauthToken); + } + + @Override + public AggregateIssueStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregateIssueStats) super.setPrettyPrint(prettyPrint); + } + + @Override + public AggregateIssueStats setQuotaUser(java.lang.String quotaUser) { + return (AggregateIssueStats) super.setQuotaUser(quotaUser); + } + + @Override + public AggregateIssueStats setUploadType(java.lang.String uploadType) { + return (AggregateIssueStats) super.setUploadType(uploadType); + } + + @Override + public AggregateIssueStats setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregateIssueStats) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AggregateIssueStats set(String parameterName, Object value) { + return (AggregateIssueStats) super.set(parameterName, value); + } + } + /** + * QueryDatabaseResourceGroups returns paginated results of database groups. + * + * Create a request for the method "v1beta.queryDatabaseResourceGroups". + * + * This request holds the parameters needed by the databasecenter server. After setting any + * optional parameters, call the {@link QueryDatabaseResourceGroups#execute()} method to invoke the + * remote operation. + * + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.QueryDatabaseResourceGroupsRequest} + * @return the request + */ + public QueryDatabaseResourceGroups queryDatabaseResourceGroups(com.google.api.services.databasecenter.v1beta.model.QueryDatabaseResourceGroupsRequest content) throws java.io.IOException { + QueryDatabaseResourceGroups result = new QueryDatabaseResourceGroups(content); + initialize(result); + return result; + } + + public class QueryDatabaseResourceGroups extends DatabaseCenterRequest { + + private static final String REST_PATH = "v1beta:queryDatabaseResourceGroups"; + + /** + * QueryDatabaseResourceGroups returns paginated results of database groups. + * + * Create a request for the method "v1beta.queryDatabaseResourceGroups". + * + * This request holds the parameters needed by the the databasecenter server. After setting any + * optional parameters, call the {@link QueryDatabaseResourceGroups#execute()} method to invoke + * the remote operation.

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

+ * + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.QueryDatabaseResourceGroupsRequest} + * @since 1.13 + */ + protected QueryDatabaseResourceGroups(com.google.api.services.databasecenter.v1beta.model.QueryDatabaseResourceGroupsRequest content) { + super(DatabaseCenter.this, "POST", REST_PATH, content, com.google.api.services.databasecenter.v1beta.model.QueryDatabaseResourceGroupsResponse.class); + } + + @Override + public QueryDatabaseResourceGroups set$Xgafv(java.lang.String $Xgafv) { + return (QueryDatabaseResourceGroups) super.set$Xgafv($Xgafv); + } + + @Override + public QueryDatabaseResourceGroups setAccessToken(java.lang.String accessToken) { + return (QueryDatabaseResourceGroups) super.setAccessToken(accessToken); + } + + @Override + public QueryDatabaseResourceGroups setAlt(java.lang.String alt) { + return (QueryDatabaseResourceGroups) super.setAlt(alt); + } + + @Override + public QueryDatabaseResourceGroups setCallback(java.lang.String callback) { + return (QueryDatabaseResourceGroups) super.setCallback(callback); + } + + @Override + public QueryDatabaseResourceGroups setFields(java.lang.String fields) { + return (QueryDatabaseResourceGroups) super.setFields(fields); + } + + @Override + public QueryDatabaseResourceGroups setKey(java.lang.String key) { + return (QueryDatabaseResourceGroups) super.setKey(key); + } + + @Override + public QueryDatabaseResourceGroups setOauthToken(java.lang.String oauthToken) { + return (QueryDatabaseResourceGroups) super.setOauthToken(oauthToken); + } + + @Override + public QueryDatabaseResourceGroups setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryDatabaseResourceGroups) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryDatabaseResourceGroups setQuotaUser(java.lang.String quotaUser) { + return (QueryDatabaseResourceGroups) super.setQuotaUser(quotaUser); + } + + @Override + public QueryDatabaseResourceGroups setUploadType(java.lang.String uploadType) { + return (QueryDatabaseResourceGroups) super.setUploadType(uploadType); + } + + @Override + public QueryDatabaseResourceGroups setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryDatabaseResourceGroups) super.setUploadProtocol(uploadProtocol); + } + + @Override + public QueryDatabaseResourceGroups set(String parameterName, Object value) { + return (QueryDatabaseResourceGroups) super.set(parameterName, value); + } + } + /** + * QueryIssues provides a list of issues and recommendations that a user has access to and that are + * within the requested scope. + * + * Create a request for the method "v1beta.queryIssues". + * + * This request holds the parameters needed by the databasecenter server. After setting any + * optional parameters, call the {@link QueryIssues#execute()} method to invoke the remote + * operation. + * + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.QueryIssuesRequest} + * @return the request + */ + public QueryIssues queryIssues(com.google.api.services.databasecenter.v1beta.model.QueryIssuesRequest content) throws java.io.IOException { + QueryIssues result = new QueryIssues(content); + initialize(result); + return result; + } + + public class QueryIssues extends DatabaseCenterRequest { + + private static final String REST_PATH = "v1beta:queryIssues"; + + /** + * QueryIssues provides a list of issues and recommendations that a user has access to and that + * are within the requested scope. + * + * Create a request for the method "v1beta.queryIssues". + * + * This request holds the parameters needed by the the databasecenter server. After setting any + * optional parameters, call the {@link QueryIssues#execute()} method to invoke the remote + * operation.

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

+ * + * @param content the {@link com.google.api.services.databasecenter.v1beta.model.QueryIssuesRequest} + * @since 1.13 + */ + protected QueryIssues(com.google.api.services.databasecenter.v1beta.model.QueryIssuesRequest content) { + super(DatabaseCenter.this, "POST", REST_PATH, content, com.google.api.services.databasecenter.v1beta.model.QueryIssuesResponse.class); + } + + @Override + public QueryIssues set$Xgafv(java.lang.String $Xgafv) { + return (QueryIssues) super.set$Xgafv($Xgafv); + } + + @Override + public QueryIssues setAccessToken(java.lang.String accessToken) { + return (QueryIssues) super.setAccessToken(accessToken); + } + + @Override + public QueryIssues setAlt(java.lang.String alt) { + return (QueryIssues) super.setAlt(alt); + } + + @Override + public QueryIssues setCallback(java.lang.String callback) { + return (QueryIssues) super.setCallback(callback); + } + + @Override + public QueryIssues setFields(java.lang.String fields) { + return (QueryIssues) super.setFields(fields); + } + + @Override + public QueryIssues setKey(java.lang.String key) { + return (QueryIssues) super.setKey(key); + } + + @Override + public QueryIssues setOauthToken(java.lang.String oauthToken) { + return (QueryIssues) super.setOauthToken(oauthToken); + } + + @Override + public QueryIssues setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryIssues) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryIssues setQuotaUser(java.lang.String quotaUser) { + return (QueryIssues) super.setQuotaUser(quotaUser); + } + + @Override + public QueryIssues setUploadType(java.lang.String uploadType) { + return (QueryIssues) super.setUploadType(uploadType); + } + + @Override + public QueryIssues setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryIssues) super.setUploadProtocol(uploadProtocol); + } + + @Override + public QueryIssues set(String parameterName, Object value) { + return (QueryIssues) super.set(parameterName, value); + } + } + /** + * QueryProducts provides a list of all possible products which can be used to filter database + * resources. + * + * Create a request for the method "v1beta.queryProducts". + * + * This request holds the parameters needed by the databasecenter server. After setting any + * optional parameters, call the {@link QueryProducts#execute()} method to invoke the remote + * operation. + * + * @return the request + */ + public QueryProducts queryProducts() throws java.io.IOException { + QueryProducts result = new QueryProducts(); + initialize(result); + return result; + } + + public class QueryProducts extends DatabaseCenterRequest { + + private static final String REST_PATH = "v1beta:queryProducts"; + + /** + * QueryProducts provides a list of all possible products which can be used to filter database + * resources. + * + * Create a request for the method "v1beta.queryProducts". + * + * This request holds the parameters needed by the the databasecenter server. After setting any + * optional parameters, call the {@link QueryProducts#execute()} method to invoke the remote + * operation.

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

+ * + * @since 1.13 + */ + protected QueryProducts() { + super(DatabaseCenter.this, "GET", REST_PATH, null, com.google.api.services.databasecenter.v1beta.model.QueryProductsResponse.class); + } + + @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 QueryProducts set$Xgafv(java.lang.String $Xgafv) { + return (QueryProducts) super.set$Xgafv($Xgafv); + } + + @Override + public QueryProducts setAccessToken(java.lang.String accessToken) { + return (QueryProducts) super.setAccessToken(accessToken); + } + + @Override + public QueryProducts setAlt(java.lang.String alt) { + return (QueryProducts) super.setAlt(alt); + } + + @Override + public QueryProducts setCallback(java.lang.String callback) { + return (QueryProducts) super.setCallback(callback); + } + + @Override + public QueryProducts setFields(java.lang.String fields) { + return (QueryProducts) super.setFields(fields); + } + + @Override + public QueryProducts setKey(java.lang.String key) { + return (QueryProducts) super.setKey(key); + } + + @Override + public QueryProducts setOauthToken(java.lang.String oauthToken) { + return (QueryProducts) super.setOauthToken(oauthToken); + } + + @Override + public QueryProducts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryProducts) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryProducts setQuotaUser(java.lang.String quotaUser) { + return (QueryProducts) super.setQuotaUser(quotaUser); + } + + @Override + public QueryProducts setUploadType(java.lang.String uploadType) { + return (QueryProducts) super.setUploadType(uploadType); + } + + @Override + public QueryProducts setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryProducts) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. If unspecified, at most 50 products will be returned. The maximum value is 1000; + * values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. If unspecified, at most 50 products will be returned. The maximum value is 1000; values + above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. If unspecified, at most 50 products will be returned. The maximum value is 1000; + * values above 1000 will be coerced to 1000. + */ + public QueryProducts setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListLocations` call. Provide this to + * retrieve the subsequent page. All other parameters except page size should match the call + * that provided the page page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListLocations` call. Provide this to retrieve the + subsequent page. All other parameters except page size should match the call that provided the page + page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListLocations` call. Provide this to + * retrieve the subsequent page. All other parameters except page size should match the call + * that provided the page page token. + */ + public QueryProducts setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The allowed values are: * + * projects/{PROJECT_ID}/locations/{LOCATION} (e.g.,"projects/foo-bar/locations/us-central1") + * * projects/{PROJECT_NUMBER}/locations/{LOCATION} (e.g.,"projects/12345678/locations/us- + * central1") * folders/{FOLDER_NUMBER}/locations/{LOCATION} + * (e.g.,"folders/1234567/locations/us-central1") * + * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} + * (e.g.,"organizations/123456/locations/us-central1") * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Parent can be a project, a folder, or an organization. The allowed values are: * + projects/{PROJECT_ID}/locations/{LOCATION} (e.g.,"projects/foo-bar/locations/us-central1") * + projects/{PROJECT_NUMBER}/locations/{LOCATION} (e.g.,"projects/12345678/locations/us-central1") * + folders/{FOLDER_NUMBER}/locations/{LOCATION} (e.g.,"folders/1234567/locations/us-central1") * + organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} (e.g.,"organizations/123456/locations/us- + central1") * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., + "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * + organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456") + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The allowed values are: * + * projects/{PROJECT_ID}/locations/{LOCATION} (e.g.,"projects/foo-bar/locations/us-central1") + * * projects/{PROJECT_NUMBER}/locations/{LOCATION} (e.g.,"projects/12345678/locations/us- + * central1") * folders/{FOLDER_NUMBER}/locations/{LOCATION} + * (e.g.,"folders/1234567/locations/us-central1") * + * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} + * (e.g.,"organizations/123456/locations/us-central1") * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} + * (e.g., "organizations/123456") + */ + public QueryProducts setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public QueryProducts set(String parameterName, Object value) { + return (QueryProducts) super.set(parameterName, value); + } + } + + } + + /** + * Builder for {@link DatabaseCenter}. + * + *

+ * 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: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link DatabaseCenter}. */ + @Override + public DatabaseCenter build() { + return new DatabaseCenter(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link DatabaseCenterRequestInitializer}. + * + * @since 1.12 + */ + public Builder setDatabaseCenterRequestInitializer( + DatabaseCenterRequestInitializer databasecenterRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(databasecenterRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterRequest.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterRequest.java new file mode 100644 index 00000000000..ce48b8dd3bd --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterRequest.java @@ -0,0 +1,267 @@ +/* + * 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.databasecenter.v1beta; + +/** + * DatabaseCenter request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class DatabaseCenterRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public DatabaseCenterRequest( + DatabaseCenter client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public DatabaseCenterRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public DatabaseCenterRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public DatabaseCenterRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public DatabaseCenterRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public DatabaseCenterRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public DatabaseCenterRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public DatabaseCenterRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public DatabaseCenterRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public DatabaseCenterRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public DatabaseCenterRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public DatabaseCenterRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final DatabaseCenter getAbstractGoogleClient() { + return (DatabaseCenter) super.getAbstractGoogleClient(); + } + + @Override + public DatabaseCenterRequest setDisableGZipContent(boolean disableGZipContent) { + return (DatabaseCenterRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public DatabaseCenterRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (DatabaseCenterRequest) super.setRequestHeaders(headers); + } + + @Override + public DatabaseCenterRequest set(String parameterName, Object value) { + return (DatabaseCenterRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterRequestInitializer.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterRequestInitializer.java new file mode 100644 index 00000000000..4960945b5f3 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * 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.databasecenter.v1beta; + +/** + * DatabaseCenter request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new DatabaseCenterRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new DatabaseCenterRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends DatabaseCenterRequestInitializer {
+
+    {@literal @}Override
+    public void initializeDatabaseCenterRequest(DatabaseCenterRequest{@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 DatabaseCenterRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeDatabaseCenterRequest(DatabaseCenterRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class DatabaseCenterRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public DatabaseCenterRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public DatabaseCenterRequestInitializer(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 DatabaseCenterRequestInitializer(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); + initializeDatabaseCenterRequest((DatabaseCenterRequest) request); + } + + /** + * Initializes DatabaseCenter 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 initializeDatabaseCenterRequest(DatabaseCenterRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterScopes.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterScopes.java new file mode 100644 index 00000000000..df92d7aa316 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/DatabaseCenterScopes.java @@ -0,0 +1,42 @@ +/* + * 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.databasecenter.v1beta; + +/** + * Available OAuth 2.0 scopes for use with the Database Center API. + * + * @since 1.4 + */ +public class DatabaseCenterScopes { + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private DatabaseCenterScopes() { + } +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AdditionalDetail.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AdditionalDetail.java new file mode 100644 index 00000000000..42eb617c46d --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AdditionalDetail.java @@ -0,0 +1,369 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * Details related to signal. + * + *

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 Database Center 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 AdditionalDetail extends com.google.api.client.json.GenericJson { + + /** + * Automated backup policy information applies to signals with type + * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AutomatedBackupPolicyInfo automatedBackupPolicyInfo; + + /** + * Backup run information applies to signals with types SIGNAL_TYPE_LAST_BACKUP_FAILED and + * SIGNAL_TYPE_LAST_BACKUP_OLD. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackupRunInfo backupRunInfo; + + /** + * Deletion protection information applies to signals with type SIGNAL_TYPE_NO_DELETION_PROTECTION + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeletionProtectionInfo deletionProtectionInfo; + + /** + * Inefficient query information applies to signals with type SIGNAL_TYPE_INEFFICIENT_QUERY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InefficientQueryInfo inefficientQueryInfo; + + /** + * Maintenance recommendation information applies to signals with type + * SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private MaintenanceRecommendationInfo maintenanceRecommendationInfo; + + /** + * Outdated minor version information applies to signals with type + * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OutdatedMinorVersionInfo outdatedMinorVersionInfo; + + /** + * Recommendation information applies to recommendations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RecommendationInfo recommendationInfo; + + /** + * Resource suspension information applies to signals with type SIGNAL_TYPE_RESOURCE_SUSPENDED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceSuspensionInfo resourceSuspensionInfo; + + /** + * SCC information applies to SCC signals. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SCCInfo sccInfo; + + /** + * Short backup retention information applies to signals with type + * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RetentionSettingsInfo shortBackupRetentionInfo; + + /** + * Event time when signal was recorded by source service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String signalEventTime; + + /** + * Where the signal is coming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signalSource; + + /** + * Type of the signal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signalType; + + /** + * Automated backup policy information applies to signals with type + * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. + * @return value or {@code null} for none + */ + public AutomatedBackupPolicyInfo getAutomatedBackupPolicyInfo() { + return automatedBackupPolicyInfo; + } + + /** + * Automated backup policy information applies to signals with type + * SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. + * @param automatedBackupPolicyInfo automatedBackupPolicyInfo or {@code null} for none + */ + public AdditionalDetail setAutomatedBackupPolicyInfo(AutomatedBackupPolicyInfo automatedBackupPolicyInfo) { + this.automatedBackupPolicyInfo = automatedBackupPolicyInfo; + return this; + } + + /** + * Backup run information applies to signals with types SIGNAL_TYPE_LAST_BACKUP_FAILED and + * SIGNAL_TYPE_LAST_BACKUP_OLD. + * @return value or {@code null} for none + */ + public BackupRunInfo getBackupRunInfo() { + return backupRunInfo; + } + + /** + * Backup run information applies to signals with types SIGNAL_TYPE_LAST_BACKUP_FAILED and + * SIGNAL_TYPE_LAST_BACKUP_OLD. + * @param backupRunInfo backupRunInfo or {@code null} for none + */ + public AdditionalDetail setBackupRunInfo(BackupRunInfo backupRunInfo) { + this.backupRunInfo = backupRunInfo; + return this; + } + + /** + * Deletion protection information applies to signals with type SIGNAL_TYPE_NO_DELETION_PROTECTION + * @return value or {@code null} for none + */ + public DeletionProtectionInfo getDeletionProtectionInfo() { + return deletionProtectionInfo; + } + + /** + * Deletion protection information applies to signals with type SIGNAL_TYPE_NO_DELETION_PROTECTION + * @param deletionProtectionInfo deletionProtectionInfo or {@code null} for none + */ + public AdditionalDetail setDeletionProtectionInfo(DeletionProtectionInfo deletionProtectionInfo) { + this.deletionProtectionInfo = deletionProtectionInfo; + return this; + } + + /** + * Inefficient query information applies to signals with type SIGNAL_TYPE_INEFFICIENT_QUERY. + * @return value or {@code null} for none + */ + public InefficientQueryInfo getInefficientQueryInfo() { + return inefficientQueryInfo; + } + + /** + * Inefficient query information applies to signals with type SIGNAL_TYPE_INEFFICIENT_QUERY. + * @param inefficientQueryInfo inefficientQueryInfo or {@code null} for none + */ + public AdditionalDetail setInefficientQueryInfo(InefficientQueryInfo inefficientQueryInfo) { + this.inefficientQueryInfo = inefficientQueryInfo; + return this; + } + + /** + * Maintenance recommendation information applies to signals with type + * SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. + * @return value or {@code null} for none + */ + public MaintenanceRecommendationInfo getMaintenanceRecommendationInfo() { + return maintenanceRecommendationInfo; + } + + /** + * Maintenance recommendation information applies to signals with type + * SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. + * @param maintenanceRecommendationInfo maintenanceRecommendationInfo or {@code null} for none + */ + public AdditionalDetail setMaintenanceRecommendationInfo(MaintenanceRecommendationInfo maintenanceRecommendationInfo) { + this.maintenanceRecommendationInfo = maintenanceRecommendationInfo; + return this; + } + + /** + * Outdated minor version information applies to signals with type + * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. + * @return value or {@code null} for none + */ + public OutdatedMinorVersionInfo getOutdatedMinorVersionInfo() { + return outdatedMinorVersionInfo; + } + + /** + * Outdated minor version information applies to signals with type + * SIGNAL_TYPE_OUTDATED_MINOR_VERSION. + * @param outdatedMinorVersionInfo outdatedMinorVersionInfo or {@code null} for none + */ + public AdditionalDetail setOutdatedMinorVersionInfo(OutdatedMinorVersionInfo outdatedMinorVersionInfo) { + this.outdatedMinorVersionInfo = outdatedMinorVersionInfo; + return this; + } + + /** + * Recommendation information applies to recommendations. + * @return value or {@code null} for none + */ + public RecommendationInfo getRecommendationInfo() { + return recommendationInfo; + } + + /** + * Recommendation information applies to recommendations. + * @param recommendationInfo recommendationInfo or {@code null} for none + */ + public AdditionalDetail setRecommendationInfo(RecommendationInfo recommendationInfo) { + this.recommendationInfo = recommendationInfo; + return this; + } + + /** + * Resource suspension information applies to signals with type SIGNAL_TYPE_RESOURCE_SUSPENDED. + * @return value or {@code null} for none + */ + public ResourceSuspensionInfo getResourceSuspensionInfo() { + return resourceSuspensionInfo; + } + + /** + * Resource suspension information applies to signals with type SIGNAL_TYPE_RESOURCE_SUSPENDED. + * @param resourceSuspensionInfo resourceSuspensionInfo or {@code null} for none + */ + public AdditionalDetail setResourceSuspensionInfo(ResourceSuspensionInfo resourceSuspensionInfo) { + this.resourceSuspensionInfo = resourceSuspensionInfo; + return this; + } + + /** + * SCC information applies to SCC signals. + * @return value or {@code null} for none + */ + public SCCInfo getSccInfo() { + return sccInfo; + } + + /** + * SCC information applies to SCC signals. + * @param sccInfo sccInfo or {@code null} for none + */ + public AdditionalDetail setSccInfo(SCCInfo sccInfo) { + this.sccInfo = sccInfo; + return this; + } + + /** + * Short backup retention information applies to signals with type + * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. + * @return value or {@code null} for none + */ + public RetentionSettingsInfo getShortBackupRetentionInfo() { + return shortBackupRetentionInfo; + } + + /** + * Short backup retention information applies to signals with type + * SIGNAL_TYPE_SHORT_BACKUP_RETENTION. + * @param shortBackupRetentionInfo shortBackupRetentionInfo or {@code null} for none + */ + public AdditionalDetail setShortBackupRetentionInfo(RetentionSettingsInfo shortBackupRetentionInfo) { + this.shortBackupRetentionInfo = shortBackupRetentionInfo; + return this; + } + + /** + * Event time when signal was recorded by source service. + * @return value or {@code null} for none + */ + public String getSignalEventTime() { + return signalEventTime; + } + + /** + * Event time when signal was recorded by source service. + * @param signalEventTime signalEventTime or {@code null} for none + */ + public AdditionalDetail setSignalEventTime(String signalEventTime) { + this.signalEventTime = signalEventTime; + return this; + } + + /** + * Where the signal is coming from. + * @return value or {@code null} for none + */ + public java.lang.String getSignalSource() { + return signalSource; + } + + /** + * Where the signal is coming from. + * @param signalSource signalSource or {@code null} for none + */ + public AdditionalDetail setSignalSource(java.lang.String signalSource) { + this.signalSource = signalSource; + return this; + } + + /** + * Type of the signal. + * @return value or {@code null} for none + */ + public java.lang.String getSignalType() { + return signalType; + } + + /** + * Type of the signal. + * @param signalType signalType or {@code null} for none + */ + public AdditionalDetail setSignalType(java.lang.String signalType) { + this.signalType = signalType; + return this; + } + + @Override + public AdditionalDetail set(String fieldName, Object value) { + return (AdditionalDetail) super.set(fieldName, value); + } + + @Override + public AdditionalDetail clone() { + return (AdditionalDetail) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/Affiliation.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/Affiliation.java new file mode 100644 index 00000000000..82c8cfccfcd --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/Affiliation.java @@ -0,0 +1,120 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * Affiliation information of a resource + * + *

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 Database Center 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 Affiliation extends com.google.api.client.json.GenericJson { + + /** + * Optional. Full resource name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fullResourceName; + + /** + * Optional. Multiple lineages can be created from a resource. For example, a resource can be + * replicated to multiple target resources. In this case, there will be multiple lineages for the + * resource, one for each target resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List lineages; + + /** + * Optional. resource id of affiliated resource + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceId; + + /** + * Optional. Full resource name + * @return value or {@code null} for none + */ + public java.lang.String getFullResourceName() { + return fullResourceName; + } + + /** + * Optional. Full resource name + * @param fullResourceName fullResourceName or {@code null} for none + */ + public Affiliation setFullResourceName(java.lang.String fullResourceName) { + this.fullResourceName = fullResourceName; + return this; + } + + /** + * Optional. Multiple lineages can be created from a resource. For example, a resource can be + * replicated to multiple target resources. In this case, there will be multiple lineages for the + * resource, one for each target resource. + * @return value or {@code null} for none + */ + public java.util.List getLineages() { + return lineages; + } + + /** + * Optional. Multiple lineages can be created from a resource. For example, a resource can be + * replicated to multiple target resources. In this case, there will be multiple lineages for the + * resource, one for each target resource. + * @param lineages lineages or {@code null} for none + */ + public Affiliation setLineages(java.util.List lineages) { + this.lineages = lineages; + return this; + } + + /** + * Optional. resource id of affiliated resource + * @return value or {@code null} for none + */ + public java.lang.String getResourceId() { + return resourceId; + } + + /** + * Optional. resource id of affiliated resource + * @param resourceId resourceId or {@code null} for none + */ + public Affiliation setResourceId(java.lang.String resourceId) { + this.resourceId = resourceId; + return this; + } + + @Override + public Affiliation set(String fieldName, Object value) { + return (Affiliation) super.set(fieldName, value); + } + + @Override + public Affiliation clone() { + return (Affiliation) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateFleetResponse.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateFleetResponse.java new file mode 100644 index 00000000000..9e027ec18e8 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateFleetResponse.java @@ -0,0 +1,189 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * The response message to aggregate a fleet by some group by fields. + * + *

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 Database Center 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 AggregateFleetResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Count of all resource groups in the fleet. This includes counts from all pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer resourceGroupsTotalCount; + + /** + * Count of all resources in the fleet. This includes counts from all pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer resourceTotalCount; + + /** + * Represents a row grouped by the fields in the input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rows; + + /** + * Output only. The total number of rows in the entire list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalSize; + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AggregateFleetResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Count of all resource groups in the fleet. This includes counts from all pages. + * @return value or {@code null} for none + */ + public java.lang.Integer getResourceGroupsTotalCount() { + return resourceGroupsTotalCount; + } + + /** + * Count of all resource groups in the fleet. This includes counts from all pages. + * @param resourceGroupsTotalCount resourceGroupsTotalCount or {@code null} for none + */ + public AggregateFleetResponse setResourceGroupsTotalCount(java.lang.Integer resourceGroupsTotalCount) { + this.resourceGroupsTotalCount = resourceGroupsTotalCount; + return this; + } + + /** + * Count of all resources in the fleet. This includes counts from all pages. + * @return value or {@code null} for none + */ + public java.lang.Integer getResourceTotalCount() { + return resourceTotalCount; + } + + /** + * Count of all resources in the fleet. This includes counts from all pages. + * @param resourceTotalCount resourceTotalCount or {@code null} for none + */ + public AggregateFleetResponse setResourceTotalCount(java.lang.Integer resourceTotalCount) { + this.resourceTotalCount = resourceTotalCount; + return this; + } + + /** + * Represents a row grouped by the fields in the input. + * @return value or {@code null} for none + */ + public java.util.List getRows() { + return rows; + } + + /** + * Represents a row grouped by the fields in the input. + * @param rows rows or {@code null} for none + */ + public AggregateFleetResponse setRows(java.util.List rows) { + this.rows = rows; + return this; + } + + /** + * Output only. The total number of rows in the entire list. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalSize() { + return totalSize; + } + + /** + * Output only. The total number of rows in the entire list. + * @param totalSize totalSize or {@code null} for none + */ + public AggregateFleetResponse setTotalSize(java.lang.Long totalSize) { + this.totalSize = totalSize; + return this; + } + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * @param unreachable unreachable or {@code null} for none + */ + public AggregateFleetResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public AggregateFleetResponse set(String fieldName, Object value) { + return (AggregateFleetResponse) super.set(fieldName, value); + } + + @Override + public AggregateFleetResponse clone() { + return (AggregateFleetResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateFleetRow.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateFleetRow.java new file mode 100644 index 00000000000..3a7d3eb77cc --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateFleetRow.java @@ -0,0 +1,138 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * Individual row grouped by a particular dimension. + * + *

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 Database Center 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 AggregateFleetRow extends com.google.api.client.json.GenericJson { + + /** + * Optional. Delta counts and details of resources which were added to/deleted from fleet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DeltaDetails deltaDetails; + + /** + * Group by dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dimension; + + /** + * Number of resource groups that have a particular dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer resourceGroupsCount; + + /** + * Number of resources that have a particular dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer resourcesCount; + + /** + * Optional. Delta counts and details of resources which were added to/deleted from fleet. + * @return value or {@code null} for none + */ + public DeltaDetails getDeltaDetails() { + return deltaDetails; + } + + /** + * Optional. Delta counts and details of resources which were added to/deleted from fleet. + * @param deltaDetails deltaDetails or {@code null} for none + */ + public AggregateFleetRow setDeltaDetails(DeltaDetails deltaDetails) { + this.deltaDetails = deltaDetails; + return this; + } + + /** + * Group by dimension. + * @return value or {@code null} for none + */ + public java.util.List getDimension() { + return dimension; + } + + /** + * Group by dimension. + * @param dimension dimension or {@code null} for none + */ + public AggregateFleetRow setDimension(java.util.List dimension) { + this.dimension = dimension; + return this; + } + + /** + * Number of resource groups that have a particular dimension. + * @return value or {@code null} for none + */ + public java.lang.Integer getResourceGroupsCount() { + return resourceGroupsCount; + } + + /** + * Number of resource groups that have a particular dimension. + * @param resourceGroupsCount resourceGroupsCount or {@code null} for none + */ + public AggregateFleetRow setResourceGroupsCount(java.lang.Integer resourceGroupsCount) { + this.resourceGroupsCount = resourceGroupsCount; + return this; + } + + /** + * Number of resources that have a particular dimension. + * @return value or {@code null} for none + */ + public java.lang.Integer getResourcesCount() { + return resourcesCount; + } + + /** + * Number of resources that have a particular dimension. + * @param resourcesCount resourcesCount or {@code null} for none + */ + public AggregateFleetRow setResourcesCount(java.lang.Integer resourcesCount) { + this.resourcesCount = resourcesCount; + return this; + } + + @Override + public AggregateFleetRow set(String fieldName, Object value) { + return (AggregateFleetRow) super.set(fieldName, value); + } + + @Override + public AggregateFleetRow clone() { + return (AggregateFleetRow) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateIssueStatsRequest.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateIssueStatsRequest.java new file mode 100644 index 00000000000..3b6659db304 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateIssueStatsRequest.java @@ -0,0 +1,177 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * AggregateIssueStatsRequest represents the input to the AggregateIssueStats 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 Database Center 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 AggregateIssueStatsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The baseline date w.r.t. which the delta counts are calculated. If not set, delta + * counts are not included in the response and the response indicates the current state of the + * fleet. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Date baselineDate; + + /** + * Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + * `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info,'resource_name', etc. The + * expression is a list of zero or more restrictions combined via logical operators `AND` and + * `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately + * used to group the combinations. Example: `location="us-east1"` Example: + * `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `scope`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., + * "organizations/123456") + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Optional. Lists of signal types that are issues. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List signalTypeGroups; + + /** + * Optional. The baseline date w.r.t. which the delta counts are calculated. If not set, delta + * counts are not included in the response and the response indicates the current state of the + * fleet. + * @return value or {@code null} for none + */ + public Date getBaselineDate() { + return baselineDate; + } + + /** + * Optional. The baseline date w.r.t. which the delta counts are calculated. If not set, delta + * counts are not included in the response and the response indicates the current state of the + * fleet. + * @param baselineDate baselineDate or {@code null} for none + */ + public AggregateIssueStatsRequest setBaselineDate(Date baselineDate) { + this.baselineDate = baselineDate; + return this; + } + + /** + * Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + * `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info,'resource_name', etc. The + * expression is a list of zero or more restrictions combined via logical operators `AND` and + * `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately + * used to group the combinations. Example: `location="us-east1"` Example: + * `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + * `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info,'resource_name', etc. The + * expression is a list of zero or more restrictions combined via logical operators `AND` and + * `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately + * used to group the combinations. Example: `location="us-east1"` Example: + * `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` + * @param filter filter or {@code null} for none + */ + public AggregateIssueStatsRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `scope`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., + * "organizations/123456") + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent can be a project, a folder, or an organization. The search is limited to the + * resources within the `scope`. The allowed values are: * projects/{PROJECT_ID} (e.g., + * "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * + * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., + * "organizations/123456") + * @param parent parent or {@code null} for none + */ + public AggregateIssueStatsRequest setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Optional. Lists of signal types that are issues. + * @return value or {@code null} for none + */ + public java.util.List getSignalTypeGroups() { + return signalTypeGroups; + } + + /** + * Optional. Lists of signal types that are issues. + * @param signalTypeGroups signalTypeGroups or {@code null} for none + */ + public AggregateIssueStatsRequest setSignalTypeGroups(java.util.List signalTypeGroups) { + this.signalTypeGroups = signalTypeGroups; + return this; + } + + @Override + public AggregateIssueStatsRequest set(String fieldName, Object value) { + return (AggregateIssueStatsRequest) super.set(fieldName, value); + } + + @Override + public AggregateIssueStatsRequest clone() { + return (AggregateIssueStatsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateIssueStatsResponse.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateIssueStatsResponse.java new file mode 100644 index 00000000000..38bb5d9b474 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateIssueStatsResponse.java @@ -0,0 +1,142 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * The response message containing one of more group of relevant health issues for database + * resources. + * + *

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 Database Center 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 AggregateIssueStatsResponse extends com.google.api.client.json.GenericJson { + + /** + * List of issue group stats where each group contains stats for resources having a particular + * combination of relevant issues. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List issueGroupStats; + + /** + * Total count of the resource filtered in based on the user given filter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalResourceGroupsCount; + + /** + * Total count of the resources filtered in based on the user given filter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalResourcesCount; + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * List of issue group stats where each group contains stats for resources having a particular + * combination of relevant issues. + * @return value or {@code null} for none + */ + public java.util.List getIssueGroupStats() { + return issueGroupStats; + } + + /** + * List of issue group stats where each group contains stats for resources having a particular + * combination of relevant issues. + * @param issueGroupStats issueGroupStats or {@code null} for none + */ + public AggregateIssueStatsResponse setIssueGroupStats(java.util.List issueGroupStats) { + this.issueGroupStats = issueGroupStats; + return this; + } + + /** + * Total count of the resource filtered in based on the user given filter. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalResourceGroupsCount() { + return totalResourceGroupsCount; + } + + /** + * Total count of the resource filtered in based on the user given filter. + * @param totalResourceGroupsCount totalResourceGroupsCount or {@code null} for none + */ + public AggregateIssueStatsResponse setTotalResourceGroupsCount(java.lang.Integer totalResourceGroupsCount) { + this.totalResourceGroupsCount = totalResourceGroupsCount; + return this; + } + + /** + * Total count of the resources filtered in based on the user given filter. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalResourcesCount() { + return totalResourcesCount; + } + + /** + * Total count of the resources filtered in based on the user given filter. + * @param totalResourcesCount totalResourcesCount or {@code null} for none + */ + public AggregateIssueStatsResponse setTotalResourcesCount(java.lang.Integer totalResourcesCount) { + this.totalResourcesCount = totalResourcesCount; + return this; + } + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * @param unreachable unreachable or {@code null} for none + */ + public AggregateIssueStatsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public AggregateIssueStatsResponse set(String fieldName, Object value) { + return (AggregateIssueStatsResponse) super.set(fieldName, value); + } + + @Override + public AggregateIssueStatsResponse clone() { + return (AggregateIssueStatsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateQueryStatsRequest.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateQueryStatsRequest.java new file mode 100644 index 00000000000..bcbf8d2fdf5 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateQueryStatsRequest.java @@ -0,0 +1,183 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * AggregateQueryStatsRequest represents the input to the AggregateQueryStats 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 Database Center 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 AggregateQueryStatsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + * `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info,'resource_name', etc. The + * expression is a list of zero or more restrictions combined via logical operators `AND` and + * `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately + * used to group the combinations. Example: `location="us-east1"` Example: + * `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` Additional specific fields for query stats + * are: `metric_window`, `query_hash`, `normalized_query`. Example: `metric_window="LAST_ONE_DAY"` + * (Possible values for `metric_window` are: `LAST_ONE_DAY`, `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`) + * Example: `query_hash="12345678"` Example: `normalized_query="SELECT * FROM table"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Optional. The expression to order the results by. Example: `order_by="execution_count"` + * Example: `order_by="execution_count desc"` Supported order by fields are `execution_count`, + * `rows_processed`, `total_cpu_time`, `avg_cpu_time`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** + * Optional. If unspecified, at most 100 query stats will be returned. The maximum value is 1000; + * values above 1000 will be coerced to 1000. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** + * Optional. A page token, received from a previous `AggregateQueryStatsRequest` call. Provide + * this to retrieve the subsequent page. All parameters except page_token should match the + * parameters in the call that provided the page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** + * Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + * `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info,'resource_name', etc. The + * expression is a list of zero or more restrictions combined via logical operators `AND` and + * `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately + * used to group the combinations. Example: `location="us-east1"` Example: + * `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` Additional specific fields for query stats + * are: `metric_window`, `query_hash`, `normalized_query`. Example: `metric_window="LAST_ONE_DAY"` + * (Possible values for `metric_window` are: `LAST_ONE_DAY`, `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`) + * Example: `query_hash="12345678"` Example: `normalized_query="SELECT * FROM table"` + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The expression to filter resources. Supported fields are: `full_resource_name`, + * `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, + * `labels`, `issues`, fields of availability_info, data_protection_info,'resource_name', etc. The + * expression is a list of zero or more restrictions combined via logical operators `AND` and + * `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately + * used to group the combinations. Example: `location="us-east1"` Example: + * `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR + * container="projects/456") AND location="us-east1"` Additional specific fields for query stats + * are: `metric_window`, `query_hash`, `normalized_query`. Example: `metric_window="LAST_ONE_DAY"` + * (Possible values for `metric_window` are: `LAST_ONE_DAY`, `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`) + * Example: `query_hash="12345678"` Example: `normalized_query="SELECT * FROM table"` + * @param filter filter or {@code null} for none + */ + public AggregateQueryStatsRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The expression to order the results by. Example: `order_by="execution_count"` + * Example: `order_by="execution_count desc"` Supported order by fields are `execution_count`, + * `rows_processed`, `total_cpu_time`, `avg_cpu_time`. + * @return value or {@code null} for none + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The expression to order the results by. Example: `order_by="execution_count"` + * Example: `order_by="execution_count desc"` Supported order by fields are `execution_count`, + * `rows_processed`, `total_cpu_time`, `avg_cpu_time`. + * @param orderBy orderBy or {@code null} for none + */ + public AggregateQueryStatsRequest setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. If unspecified, at most 100 query stats will be returned. The maximum value is 1000; + * values above 1000 will be coerced to 1000. + * @return value or {@code null} for none + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. If unspecified, at most 100 query stats will be returned. The maximum value is 1000; + * values above 1000 will be coerced to 1000. + * @param pageSize pageSize or {@code null} for none + */ + public AggregateQueryStatsRequest setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `AggregateQueryStatsRequest` call. Provide + * this to retrieve the subsequent page. All parameters except page_token should match the + * parameters in the call that provided the page token. + * @return value or {@code null} for none + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `AggregateQueryStatsRequest` call. Provide + * this to retrieve the subsequent page. All parameters except page_token should match the + * parameters in the call that provided the page token. + * @param pageToken pageToken or {@code null} for none + */ + public AggregateQueryStatsRequest setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public AggregateQueryStatsRequest set(String fieldName, Object value) { + return (AggregateQueryStatsRequest) super.set(fieldName, value); + } + + @Override + public AggregateQueryStatsRequest clone() { + return (AggregateQueryStatsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateQueryStatsResponse.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateQueryStatsResponse.java new file mode 100644 index 00000000000..c8bb4d14e7f --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AggregateQueryStatsResponse.java @@ -0,0 +1,120 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * The response message containing relevant query stats for database resources. + * + *

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 Database Center 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 AggregateQueryStatsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of query stats where each group contains stats for resources having a particular + * combination of relevant query stats. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List queryStats; + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public AggregateQueryStatsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * List of query stats where each group contains stats for resources having a particular + * combination of relevant query stats. + * @return value or {@code null} for none + */ + public java.util.List getQueryStats() { + return queryStats; + } + + /** + * List of query stats where each group contains stats for resources having a particular + * combination of relevant query stats. + * @param queryStats queryStats or {@code null} for none + */ + public AggregateQueryStatsResponse setQueryStats(java.util.List queryStats) { + this.queryStats = queryStats; + return this; + } + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. List of unreachable regions from where data could not be retrieved. + * @param unreachable unreachable or {@code null} for none + */ + public AggregateQueryStatsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public AggregateQueryStatsResponse set(String fieldName, Object value) { + return (AggregateQueryStatsResponse) super.set(fieldName, value); + } + + @Override + public AggregateQueryStatsResponse clone() { + return (AggregateQueryStatsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AutomatedBackupPolicyInfo.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AutomatedBackupPolicyInfo.java new file mode 100644 index 00000000000..6fe98777480 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/AutomatedBackupPolicyInfo.java @@ -0,0 +1,90 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * Automated backup policy signal info + * + *

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 Database Center 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 AutomatedBackupPolicyInfo extends com.google.api.client.json.GenericJson { + + /** + * Is automated policy enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isEnabled; + + /** + * Optional. Sub resource details associated with the signal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SubResource subResource; + + /** + * Is automated policy enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsEnabled() { + return isEnabled; + } + + /** + * Is automated policy enabled. + * @param isEnabled isEnabled or {@code null} for none + */ + public AutomatedBackupPolicyInfo setIsEnabled(java.lang.Boolean isEnabled) { + this.isEnabled = isEnabled; + return this; + } + + /** + * Optional. Sub resource details associated with the signal. + * @return value or {@code null} for none + */ + public SubResource getSubResource() { + return subResource; + } + + /** + * Optional. Sub resource details associated with the signal. + * @param subResource subResource or {@code null} for none + */ + public AutomatedBackupPolicyInfo setSubResource(SubResource subResource) { + this.subResource = subResource; + return this; + } + + @Override + public AutomatedBackupPolicyInfo set(String fieldName, Object value) { + return (AutomatedBackupPolicyInfo) super.set(fieldName, value); + } + + @Override + public AutomatedBackupPolicyInfo clone() { + return (AutomatedBackupPolicyInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/BackupDRConfig.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/BackupDRConfig.java new file mode 100644 index 00000000000..7e891707651 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/BackupDRConfig.java @@ -0,0 +1,66 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * BackupDRConfig to capture the backup and disaster recovery details of database resource. + * + *

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 Database Center 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 BackupDRConfig extends com.google.api.client.json.GenericJson { + + /** + * Indicates if the resource is managed by BackupDR. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean backupdrManaged; + + /** + * Indicates if the resource is managed by BackupDR. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBackupdrManaged() { + return backupdrManaged; + } + + /** + * Indicates if the resource is managed by BackupDR. + * @param backupdrManaged backupdrManaged or {@code null} for none + */ + public BackupDRConfig setBackupdrManaged(java.lang.Boolean backupdrManaged) { + this.backupdrManaged = backupdrManaged; + return this; + } + + @Override + public BackupDRConfig set(String fieldName, Object value) { + return (BackupDRConfig) super.set(fieldName, value); + } + + @Override + public BackupDRConfig clone() { + return (BackupDRConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/BackupRunInfo.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/BackupRunInfo.java new file mode 100644 index 00000000000..abf5bf2206c --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/BackupRunInfo.java @@ -0,0 +1,189 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * Metadata about latest backup run state for a database resource. + * + *

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 Database Center 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 BackupRunInfo extends com.google.api.client.json.GenericJson { + + /** + * The time the backup operation completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Additional information about the error encountered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Optional. OperationErrorType to expose specific error when backup operation of database + * resource failed, that is state is FAILED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operationErrorType; + + /** + * The time the backup operation started. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The state of this run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Optional. Sub resource details associated with the backup run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SubResource subResource; + + /** + * The time the backup operation completed. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * The time the backup operation completed. + * @param endTime endTime or {@code null} for none + */ + public BackupRunInfo setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Additional information about the error encountered. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Additional information about the error encountered. + * @param errorMessage errorMessage or {@code null} for none + */ + public BackupRunInfo setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Optional. OperationErrorType to expose specific error when backup operation of database + * resource failed, that is state is FAILED. + * @return value or {@code null} for none + */ + public java.lang.String getOperationErrorType() { + return operationErrorType; + } + + /** + * Optional. OperationErrorType to expose specific error when backup operation of database + * resource failed, that is state is FAILED. + * @param operationErrorType operationErrorType or {@code null} for none + */ + public BackupRunInfo setOperationErrorType(java.lang.String operationErrorType) { + this.operationErrorType = operationErrorType; + return this; + } + + /** + * The time the backup operation started. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * The time the backup operation started. + * @param startTime startTime or {@code null} for none + */ + public BackupRunInfo setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. The state of this run. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of this run. + * @param state state or {@code null} for none + */ + public BackupRunInfo setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Optional. Sub resource details associated with the backup run. + * @return value or {@code null} for none + */ + public SubResource getSubResource() { + return subResource; + } + + /** + * Optional. Sub resource details associated with the backup run. + * @param subResource subResource or {@code null} for none + */ + public BackupRunInfo setSubResource(SubResource subResource) { + this.subResource = subResource; + return this; + } + + @Override + public BackupRunInfo set(String fieldName, Object value) { + return (BackupRunInfo) super.set(fieldName, value); + } + + @Override + public BackupRunInfo clone() { + return (BackupRunInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/DatabaseResource.java b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/DatabaseResource.java new file mode 100644 index 00000000000..b286f485225 --- /dev/null +++ b/clients/google-api-services-databasecenter/v1beta/2.0.0/com/google/api/services/databasecenter/v1beta/model/DatabaseResource.java @@ -0,0 +1,535 @@ +/* + * 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.databasecenter.v1beta.model; + +/** + * DatabaseResource represents every individually configured database unit representing compute + * and/or storage. + * + *

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 Database Center 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 DatabaseResource extends com.google.api.client.json.GenericJson { + + /** + * Optional. Affiliation details of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List affiliations; + + static { + // hack to force ProGuard to consider Affiliation used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Affiliation.class); + } + + /** + * Optional. Backup and disaster recovery details for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BackupDRConfig backupdrConfig; + + /** + * List of children associated with a database group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List childResources; + + /** + * Specifies where the resource is created. For Google Cloud resources, it is the full name of the + * project. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String container; + + /** + * The edition of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String edition; + + /** + * The full resource name, based on CAIS resource name format https://cloud.google.com/asset- + * inventory/docs/resource-name-format Example: `//cloudsql.googleapis.com/projects/project- + * number/instances/mysql-1` `//cloudsql.googleapis.com/projects/project- + * number/instances/postgres-1` `//spanner.googleapis.com/projects/project- + * number/instances/spanner-instance-1` `//alloydb.googleapis.com/projects/project- + * number/locations/us-central1/clusters/c1` `//alloydb.googleapis.com/projects/project- + * number/locations/us-central1/clusters/c1/instances/i1` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fullResourceName; + + /** + * Labels applied on the resource. The requirements for labels assigned to Google Cloud resources + * may be found at https://cloud.google.com/resource-manager/docs/labels-overview#requirements + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List