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: com.google.apis google-api-services-osconfig - v1-rev20251117-2.0.0 + v1-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v1-rev20251117-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v1-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/OSConfig.java b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/OSConfig.java index b8715f84a8c..5361488fb41 100644 --- a/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/OSConfig.java +++ b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/OSConfig.java @@ -103,7 +103,7 @@ public class OSConfig extends com.google.api.client.googleapis.services.json.Abs * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * * @param jsonFactory JSON factory, which may be: @@ -1861,6 +1861,667 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Operations collection. + * + *

    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 { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/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 the osconfig server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

    {@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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * 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 the osconfig server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

    + * + * @param name 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * 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 the osconfig server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * + * @param name 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 { + + private static final String REST_PATH = "v1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * 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 the osconfig server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * + * @param 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} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1OperationMetadata.java b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1OperationMetadata.java new file mode 100644 index 00000000000..ac9cce2dbed --- /dev/null +++ b/clients/google-api-services-osconfig/v1/2.0.0/com/google/api/services/osconfig/v1/model/GoogleCloudOsconfigCommonV1OperationMetadata.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 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.List operations; + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListOperationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * A list of operations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * A list of operations that matches the specified filter in the request. + * @param operations operations or {@code null} for none + */ + public ListOperationsResponse setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @param unreachable unreachable or {@code null} for none + */ + public ListOperationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListOperationsResponse set(String fieldName, Object value) { + return (ListOperationsResponse) super.set(fieldName, value); + } + + @Override + public ListOperationsResponse clone() { + return (ListOperationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1/2.0.0/pom.xml b/clients/google-api-services-osconfig/v1/2.0.0/pom.xml index 02d513e223a..6587f61fd28 100644 --- a/clients/google-api-services-osconfig/v1/2.0.0/pom.xml +++ b/clients/google-api-services-osconfig/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-osconfig - v1-rev20251117-2.0.0 - OS Config API v1-rev20251117-2.0.0 + v1-rev20260108-2.0.0 + OS Config API v1-rev20260108-2.0.0 jar 2011 diff --git a/clients/google-api-services-osconfig/v1/README.md b/clients/google-api-services-osconfig/v1/README.md index b0eb3d5e672..a2edaaf745b 100644 --- a/clients/google-api-services-osconfig/v1/README.md +++ b/clients/google-api-services-osconfig/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v1-rev20251117-2.0.0 + v1-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v1-rev20251117-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v1-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v1alpha/2.0.0/README.md b/clients/google-api-services-osconfig/v1alpha/2.0.0/README.md index 59f1abca02d..b2e422c794e 100644 --- a/clients/google-api-services-osconfig/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-osconfig/v1alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v1alpha-rev20250727-2.0.0 + v1alpha-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v1alpha-rev20250727-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v1alpha-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/OSConfig.java b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/OSConfig.java index f0f66777e8e..5dc6d4748cc 100644 --- a/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/OSConfig.java +++ b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/OSConfig.java @@ -103,7 +103,7 @@ public class OSConfig extends com.google.api.client.googleapis.services.json.Abs * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
    • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
    • - *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
    • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
    • * *
    * @param jsonFactory JSON factory, which may be: @@ -1915,6 +1915,667 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Operations collection. + * + *

    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.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 { + + private static final String REST_PATH = "v1alpha/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/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 the osconfig server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + *

    {@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 { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * 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 the osconfig server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

    + * + * @param name 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 { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * 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 the osconfig server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

    + * + * @param name 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 { + + private static final String REST_PATH = "v1alpha/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * 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 the osconfig server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

    + * + * @param 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} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1OperationMetadata.java b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1OperationMetadata.java new file mode 100644 index 00000000000..1bd50f71725 --- /dev/null +++ b/clients/google-api-services-osconfig/v1alpha/2.0.0/com/google/api/services/osconfig/v1alpha/model/GoogleCloudOsconfigCommonV1OperationMetadata.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 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.List operations; + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListOperationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * A list of operations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * A list of operations that matches the specified filter in the request. + * @param operations operations or {@code null} for none + */ + public ListOperationsResponse setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @param unreachable unreachable or {@code null} for none + */ + public ListOperationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListOperationsResponse set(String fieldName, Object value) { + return (ListOperationsResponse) super.set(fieldName, value); + } + + @Override + public ListOperationsResponse clone() { + return (ListOperationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-osconfig/v1alpha/2.0.0/pom.xml b/clients/google-api-services-osconfig/v1alpha/2.0.0/pom.xml index dcdda0d0032..01cc085dd06 100644 --- a/clients/google-api-services-osconfig/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-osconfig/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-osconfig - v1alpha-rev20250727-2.0.0 - OS Config API v1alpha-rev20250727-2.0.0 + v1alpha-rev20260108-2.0.0 + OS Config API v1alpha-rev20260108-2.0.0 jar 2011 diff --git a/clients/google-api-services-osconfig/v1alpha/README.md b/clients/google-api-services-osconfig/v1alpha/README.md index 59f1abca02d..b2e422c794e 100644 --- a/clients/google-api-services-osconfig/v1alpha/README.md +++ b/clients/google-api-services-osconfig/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v1alpha-rev20250727-2.0.0 + v1alpha-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v1alpha-rev20250727-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v1alpha-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v1beta/2.0.0/README.md b/clients/google-api-services-osconfig/v1beta/2.0.0/README.md index 0570f0af031..f90bebce75f 100644 --- a/clients/google-api-services-osconfig/v1beta/2.0.0/README.md +++ b/clients/google-api-services-osconfig/v1beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v1beta-rev20251117-2.0.0 + v1beta-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v1beta-rev20251117-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v1beta-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/OSConfig.java b/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/OSConfig.java index 62e37e9f3bc..2898fe43612 100644 --- a/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/OSConfig.java +++ b/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/OSConfig.java @@ -103,7 +103,7 @@ public class OSConfig extends com.google.api.client.googleapis.services.json.Abs * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
    • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
    • - *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
    • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
    • * *
    * @param jsonFactory JSON factory, which may be: @@ -3112,8 +3112,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1OperationMetadata.java b/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1OperationMetadata.java new file mode 100644 index 00000000000..75137993de0 --- /dev/null +++ b/clients/google-api-services-osconfig/v1beta/2.0.0/com/google/api/services/osconfig/v1beta/model/GoogleCloudOsconfigCommonV1OperationMetadata.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 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 @@ com.google.apis google-api-services-osconfig - v1beta-rev20251117-2.0.0 - OS Config API v1beta-rev20251117-2.0.0 + v1beta-rev20260108-2.0.0 + OS Config API v1beta-rev20260108-2.0.0 jar 2011 diff --git a/clients/google-api-services-osconfig/v1beta/README.md b/clients/google-api-services-osconfig/v1beta/README.md index 0570f0af031..f90bebce75f 100644 --- a/clients/google-api-services-osconfig/v1beta/README.md +++ b/clients/google-api-services-osconfig/v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v1beta-rev20251117-2.0.0 + v1beta-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v1beta-rev20251117-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v1beta-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v2/2.0.0/README.md b/clients/google-api-services-osconfig/v2/2.0.0/README.md index 1d6bd6218a3..05a9640c6a0 100644 --- a/clients/google-api-services-osconfig/v2/2.0.0/README.md +++ b/clients/google-api-services-osconfig/v2/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v2-rev20251117-2.0.0 + v2-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v2-rev20251117-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v2-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/OSConfig.java b/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/OSConfig.java index 5db76710ab2..7a8f0755676 100644 --- a/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/OSConfig.java +++ b/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/OSConfig.java @@ -103,7 +103,7 @@ public class OSConfig extends com.google.api.client.googleapis.services.json.Abs * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
    • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
    • - *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
    • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
    • * *
    * @param jsonFactory JSON factory, which may be: @@ -5322,8 +5322,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1OperationMetadata.java b/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1OperationMetadata.java new file mode 100644 index 00000000000..17574a4ec88 --- /dev/null +++ b/clients/google-api-services-osconfig/v2/2.0.0/com/google/api/services/osconfig/v2/model/GoogleCloudOsconfigCommonV1OperationMetadata.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 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 @@ com.google.apis google-api-services-osconfig - v2-rev20251117-2.0.0 - OS Config API v2-rev20251117-2.0.0 + v2-rev20260108-2.0.0 + OS Config API v2-rev20260108-2.0.0 jar 2011 diff --git a/clients/google-api-services-osconfig/v2/README.md b/clients/google-api-services-osconfig/v2/README.md index 1d6bd6218a3..05a9640c6a0 100644 --- a/clients/google-api-services-osconfig/v2/README.md +++ b/clients/google-api-services-osconfig/v2/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v2-rev20251117-2.0.0 + v2-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v2-rev20251117-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v2-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v2beta/2.0.0/README.md b/clients/google-api-services-osconfig/v2beta/2.0.0/README.md index 283fab15bf1..91ed8a444fb 100644 --- a/clients/google-api-services-osconfig/v2beta/2.0.0/README.md +++ b/clients/google-api-services-osconfig/v2beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v2beta-rev20251117-2.0.0 + v2beta-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v2beta-rev20251117-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v2beta-rev20260108-2.0.0' } ``` diff --git a/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/OSConfig.java b/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/OSConfig.java index 81ac96d7595..567b3733f67 100644 --- a/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/OSConfig.java +++ b/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/OSConfig.java @@ -103,7 +103,7 @@ public class OSConfig extends com.google.api.client.googleapis.services.json.Abs * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
    • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
    • - *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
    • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
    • * *
    * @param jsonFactory JSON factory, which may be: @@ -5322,8 +5322,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1OperationMetadata.java b/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1OperationMetadata.java new file mode 100644 index 00000000000..e59baa0be2e --- /dev/null +++ b/clients/google-api-services-osconfig/v2beta/2.0.0/com/google/api/services/osconfig/v2beta/model/GoogleCloudOsconfigCommonV1OperationMetadata.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 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 @@ com.google.apis google-api-services-osconfig - v2beta-rev20251117-2.0.0 - OS Config API v2beta-rev20251117-2.0.0 + v2beta-rev20260108-2.0.0 + OS Config API v2beta-rev20260108-2.0.0 jar 2011 diff --git a/clients/google-api-services-osconfig/v2beta/README.md b/clients/google-api-services-osconfig/v2beta/README.md index 283fab15bf1..91ed8a444fb 100644 --- a/clients/google-api-services-osconfig/v2beta/README.md +++ b/clients/google-api-services-osconfig/v2beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-osconfig - v2beta-rev20251117-2.0.0 + v2beta-rev20260108-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-osconfig:v2beta-rev20251117-2.0.0' + implementation 'com.google.apis:google-api-services-osconfig:v2beta-rev20260108-2.0.0' } ```