From 830cf8e9e419c6a53cf79deeaa66ac166201a516 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Thu, 19 Feb 2026 10:24:47 -0800
Subject: [PATCH] chore: regenerate osconfig client
---
.../v1/2.0.0/README.md | 4 +-
.../api/services/osconfig/v1/OSConfig.java | 666 +++++++++++++++++-
...loudOsconfigCommonV1OperationMetadata.java | 216 ++++++
...sconfigCommonV1alphaOperationMetadata.java | 216 ++++++
...OsconfigCommonV1mainOperationMetadata.java | 216 ++++++
.../v1/model/ListOperationsResponse.java | 120 ++++
.../v1/2.0.0/pom.xml | 4 +-
.../google-api-services-osconfig/v1/README.md | 4 +-
.../v1alpha/2.0.0/README.md | 4 +-
.../services/osconfig/v1alpha/OSConfig.java | 666 +++++++++++++++++-
...loudOsconfigCommonV1OperationMetadata.java | 216 ++++++
...sconfigCommonV1alphaOperationMetadata.java | 216 ++++++
...OsconfigCommonV1mainOperationMetadata.java | 216 ++++++
.../v1alpha/model/ListOperationsResponse.java | 120 ++++
.../v1alpha/2.0.0/pom.xml | 4 +-
.../v1alpha/README.md | 4 +-
.../v1beta/2.0.0/README.md | 4 +-
.../services/osconfig/v1beta/OSConfig.java | 5 +-
...loudOsconfigCommonV1OperationMetadata.java | 216 ++++++
...sconfigCommonV1alphaOperationMetadata.java | 216 ++++++
...OsconfigCommonV1mainOperationMetadata.java | 216 ++++++
.../v1beta/2.0.0/pom.xml | 4 +-
.../v1beta/README.md | 4 +-
.../v2/2.0.0/README.md | 4 +-
.../api/services/osconfig/v2/OSConfig.java | 5 +-
...loudOsconfigCommonV1OperationMetadata.java | 216 ++++++
...sconfigCommonV1alphaOperationMetadata.java | 216 ++++++
...OsconfigCommonV1mainOperationMetadata.java | 216 ++++++
.../v2/2.0.0/pom.xml | 4 +-
.../google-api-services-osconfig/v2/README.md | 4 +-
.../v2beta/2.0.0/README.md | 4 +-
.../services/osconfig/v2beta/OSConfig.java | 5 +-
...loudOsconfigCommonV1OperationMetadata.java | 216 ++++++
...sconfigCommonV1alphaOperationMetadata.java | 216 ++++++
...OsconfigCommonV1mainOperationMetadata.java | 216 ++++++
.../v2beta/2.0.0/pom.xml | 4 +-
.../v2beta/README.md | 4 +-
37 files changed, 4842 insertions(+), 45 deletions(-)
create mode 100644 clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1OperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/ListOperationsResponse.java
create mode 100644 clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1OperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/ListOperationsResponse.java
create mode 100644 clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1OperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1OperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1OperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java
create mode 100644 clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java
diff --git a/clients/google-api-services-osconfig/v1/2.0.0/README.md b/clients/google-api-services-osconfig/v1/2.0.0/README.md
index b0eb3d5e672..a2edaaf745b 100644
--- a/clients/google-api-services-osconfig/v1/2.0.0/README.md
+++ b/clients/google-api-services-osconfig/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
+ *
+ * {@code OSConfig osconfig = new OSConfig(...);}
+ * {@code OSConfig.Operations.List request = osconfig.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the osconfig server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @param content the {@link com.google.api.services.osconfig.v1.model.CancelOperationRequest}
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name, com.google.api.services.osconfig.v1.model.CancelOperationRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends OSConfigRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.osconfig.v1.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.osconfig.v1.model.CancelOperationRequest content) { + super(OSConfig.this, "POST", REST_PATH, content, com.google.api.services.osconfig.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the osconfig server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends OSConfigRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(OSConfig.this, "DELETE", REST_PATH, null, com.google.api.services.osconfig.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the osconfig server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends OSConfigRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(OSConfig.this, "GET", REST_PATH, null, com.google.api.services.osconfig.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the osconfig server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends OSConfigRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(OSConfig.this, "GET", REST_PATH, null, com.google.api.services.osconfig.v1.model.ListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the OsPolicyAssignments collection. * @@ -5254,8 +5915,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *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 OS Config 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 GoogleCloudOsconfigCommonV1OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java new file mode 100644 index 00000000000..4bbfcf0766f --- /dev/null +++ b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v1.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1alphaOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java new file mode 100644 index 00000000000..4ce787b80f0 --- /dev/null +++ b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v1.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1mainOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/ListOperationsResponse.java b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/ListOperationsResponse.java new file mode 100644 index 00000000000..ed05334d125 --- /dev/null +++ b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/ListOperationsResponse.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.osconfig.v1.model; + +/** + * The response message for Operations.ListOperations. + * + *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 OS Config 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 ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThe typical use is:
+ *
+ * {@code OSConfig osconfig = new OSConfig(...);}
+ * {@code OSConfig.Operations.List request = osconfig.operations().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Operations operations() {
+ return new Operations();
+ }
+
+ /**
+ * The "operations" collection of methods.
+ */
+ public class Operations {
+
+ /**
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
+ * `Code.CANCELLED`.
+ *
+ * Create a request for the method "operations.cancel".
+ *
+ * This request holds the parameters needed by the osconfig server. After setting any optional
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource to be cancelled.
+ * @param content the {@link com.google.api.services.osconfig.v1alpha.model.CancelOperationRequest}
+ * @return the request
+ */
+ public Cancel cancel(java.lang.String name, com.google.api.services.osconfig.v1alpha.model.CancelOperationRequest content) throws java.io.IOException {
+ Cancel result = new Cancel(name, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Cancel extends OSConfigRequest{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.osconfig.v1alpha.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.osconfig.v1alpha.model.CancelOperationRequest content) { + super(OSConfig.this, "POST", REST_PATH, content, com.google.api.services.osconfig.v1alpha.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the osconfig server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends OSConfigRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(OSConfig.this, "DELETE", REST_PATH, null, com.google.api.services.osconfig.v1alpha.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the osconfig server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends OSConfigRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(OSConfig.this, "GET", REST_PATH, null, com.google.api.services.osconfig.v1alpha.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the osconfig server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends OSConfigRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(OSConfig.this, "GET", REST_PATH, null, com.google.api.services.osconfig.v1alpha.model.ListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the OsPolicyAssignments collection. * @@ -3370,8 +4031,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *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 OS Config 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 GoogleCloudOsconfigCommonV1OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java new file mode 100644 index 00000000000..cfa6d804ecd --- /dev/null +++ b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v1alpha.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1alphaOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java new file mode 100644 index 00000000000..70f0afdc1fe --- /dev/null +++ b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v1alpha.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1mainOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/ListOperationsResponse.java b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/ListOperationsResponse.java new file mode 100644 index 00000000000..da14d6f0198 --- /dev/null +++ b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/ListOperationsResponse.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.osconfig.v1alpha.model; + +/** + * The response message for Operations.ListOperations. + * + *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 OS Config 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 ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the OS Config 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 GoogleCloudOsconfigCommonV1OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java b/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java new file mode 100644 index 00000000000..5df8a6758b2 --- /dev/null +++ b/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v1beta.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1alphaOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java b/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java new file mode 100644 index 00000000000..b90060c5f2b --- /dev/null +++ b/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v1beta.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1mainOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1beta/2.0.0/pom.xml b/clients/google-api-services-osconfig/v1beta/2.0.0/pom.xml index 7a250a442d5..5c893e6564a 100644 --- a/clients/google-api-services-osconfig/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-osconfig/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@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 OS Config 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 GoogleCloudOsconfigCommonV1OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java b/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java new file mode 100644 index 00000000000..fdaff9eabd0 --- /dev/null +++ b/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v2.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1alphaOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java b/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java new file mode 100644 index 00000000000..686f88c7bc9 --- /dev/null +++ b/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v2.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1mainOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v2/2.0.0/pom.xml b/clients/google-api-services-osconfig/v2/2.0.0/pom.xml index 04c0a3a7343..a8570ff5a5f 100644 --- a/clients/google-api-services-osconfig/v2/2.0.0/pom.xml +++ b/clients/google-api-services-osconfig/v2/2.0.0/pom.xml @@ -8,8 +8,8 @@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 OS Config 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 GoogleCloudOsconfigCommonV1OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1OperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java b/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java new file mode 100644 index 00000000000..6e89f6adf11 --- /dev/null +++ b/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1alphaOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v2beta.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1alphaOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1alphaOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1alphaOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1alphaOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java b/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java new file mode 100644 index 00000000000..b6200d794b5 --- /dev/null +++ b/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1mainOperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.osconfig.v2beta.model; + +/** + * Represents the metadata of a generic long-running operation. + * + *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 OS Config 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 GoogleCloudOsconfigCommonV1mainOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public GoogleCloudOsconfigCommonV1mainOperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata set(String fieldName, Object value) { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudOsconfigCommonV1mainOperationMetadata clone() { + return (GoogleCloudOsconfigCommonV1mainOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v2beta/2.0.0/pom.xml b/clients/google-api-services-osconfig/v2beta/2.0.0/pom.xml index 6722f4cd58b..f11ff2dae78 100644 --- a/clients/google-api-services-osconfig/v2beta/2.0.0/pom.xml +++ b/clients/google-api-services-osconfig/v2beta/2.0.0/pom.xml @@ -8,8 +8,8 @@