{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest} - * @since 1.13 - */ - protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { - return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); - } - - @Override - public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { - return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); - } - - @Override - public BatchAcknowledgeViolations setAlt(java.lang.String alt) { - return (BatchAcknowledgeViolations) super.setAlt(alt); - } - - @Override - public BatchAcknowledgeViolations setCallback(java.lang.String callback) { - return (BatchAcknowledgeViolations) super.setCallback(callback); - } - - @Override - public BatchAcknowledgeViolations setFields(java.lang.String fields) { - return (BatchAcknowledgeViolations) super.setFields(fields); - } - - @Override - public BatchAcknowledgeViolations setKey(java.lang.String key) { - return (BatchAcknowledgeViolations) super.setKey(key); - } - - @Override - public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { - return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); - } - - @Override - public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); - } - - @Override - public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { - return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); - } - - @Override - public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { - return (BatchAcknowledgeViolations) super.setUploadType(uploadType); - } - - @Override - public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); - } - - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Optional. The parent resource shared by all violations being acknowledged. Format: - organizations/{organization}/locations/{location}/workloads/{workload} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - public BatchAcknowledgeViolations setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public BatchAcknowledgeViolations set(String parameterName, Object value) { - return (BatchAcknowledgeViolations) super.set(parameterName, value); - } - } /** * Retrieves Assured Workload Violation based on ID. * diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest.java deleted file mode 100644 index 60451b07ee1..00000000000 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.assuredworkloads.v1.model; - -/** - * Request for acknowledging the violations in a batch - * - *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 Assured Workloads 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 GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. Acknowledge type of specified violations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acknowledgeType; - - /** - * Required. Business justification explaining the need for violations acknowledgement - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String comment; - - /** - * Required. The resource names of the Violations to acknowledge. Format for each name: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Assured Workloads 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 GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse extends com.google.api.client.json.GenericJson { - - /** - * Count of acknowledged violations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer acknowledgedViolationsCount; - - /** - * Count of acknowledged violations. - * @return value or {@code null} for none - */ - public java.lang.Integer getAcknowledgedViolationsCount() { - return acknowledgedViolationsCount; - } - - /** - * Count of acknowledged violations. - * @param acknowledgedViolationsCount acknowledgedViolationsCount or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse setAcknowledgedViolationsCount(java.lang.Integer acknowledgedViolationsCount) { - this.acknowledgedViolationsCount = acknowledgedViolationsCount; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse clone() { - return (GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFindingSummary.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFindingSummary.java index dbec2d81ec9..be0df558906 100644 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFindingSummary.java +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFindingSummary.java @@ -58,6 +58,13 @@ public final class GoogleCloudAssuredworkloadsV1DbFindingSummary extends com.goo @com.google.api.client.util.Key private java.lang.String name; + /** + * Output only. Number of active organization policy findings for this category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long organizationPolicyFindingCount; + /** * Optional. The list of compliance frameworks that the finding belongs to. * The value may be {@code null}. @@ -65,6 +72,13 @@ public final class GoogleCloudAssuredworkloadsV1DbFindingSummary extends com.goo @com.google.api.client.util.Key private java.util.ListThe typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Violations.List request = assuredworkloads.violations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Violations violations() {
- return new Violations();
- }
-
- /**
- * The "violations" collection of methods.
- */
- public class Violations {
-
- /**
- * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the
- * existence of compliance violations in their workload and decide to ignore them due to a valid
- * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This
- * is a batch version of AcknowledgeViolation.
- *
- * Create a request for the method "violations.batchAcknowledgeViolations".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the
- * remote operation.
- *
- * @param parent Optional. The parent resource shared by all violations being acknowledged. Format:
- * organizations/{organization}/locations/{location}/workloads/{workload}
- * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest}
- * @return the request
- */
- public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException {
- BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content);
- initialize(result);
- return result;
- }
-
- public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} - * @since 1.13 - */ - protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); - } - } - - @Override - public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { - return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); - } - - @Override - public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { - return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); - } - - @Override - public BatchAcknowledgeViolations setAlt(java.lang.String alt) { - return (BatchAcknowledgeViolations) super.setAlt(alt); - } - - @Override - public BatchAcknowledgeViolations setCallback(java.lang.String callback) { - return (BatchAcknowledgeViolations) super.setCallback(callback); - } - - @Override - public BatchAcknowledgeViolations setFields(java.lang.String fields) { - return (BatchAcknowledgeViolations) super.setFields(fields); - } - - @Override - public BatchAcknowledgeViolations setKey(java.lang.String key) { - return (BatchAcknowledgeViolations) super.setKey(key); - } - - @Override - public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { - return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); - } - - @Override - public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); - } - - @Override - public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { - return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); - } - - @Override - public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { - return (BatchAcknowledgeViolations) super.setUploadType(uploadType); - } - - @Override - public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); - } - - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Optional. The parent resource shared by all violations being acknowledged. Format: - organizations/{organization}/locations/{location}/workloads/{workload} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - public BatchAcknowledgeViolations setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public BatchAcknowledgeViolations set(String parameterName, Object value) { - return (BatchAcknowledgeViolations) super.set(parameterName, value); - } - } - } /** * An accessor for creating requests from the Workloads collection. @@ -5355,153 +5186,6 @@ public Acknowledge set(String parameterName, Object value) { return (Acknowledge) super.set(parameterName, value); } } - /** - * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the - * existence of compliance violations in their workload and decide to ignore them due to a valid - * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This - * is a batch version of AcknowledgeViolation. - * - * Create a request for the method "violations.batchAcknowledgeViolations". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the - * remote operation. - * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} - * @return the request - */ - public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException { - BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content); - initialize(result); - return result; - } - - public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} - * @since 1.13 - */ - protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { - return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); - } - - @Override - public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { - return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); - } - - @Override - public BatchAcknowledgeViolations setAlt(java.lang.String alt) { - return (BatchAcknowledgeViolations) super.setAlt(alt); - } - - @Override - public BatchAcknowledgeViolations setCallback(java.lang.String callback) { - return (BatchAcknowledgeViolations) super.setCallback(callback); - } - - @Override - public BatchAcknowledgeViolations setFields(java.lang.String fields) { - return (BatchAcknowledgeViolations) super.setFields(fields); - } - - @Override - public BatchAcknowledgeViolations setKey(java.lang.String key) { - return (BatchAcknowledgeViolations) super.setKey(key); - } - - @Override - public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { - return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); - } - - @Override - public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); - } - - @Override - public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { - return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); - } - - @Override - public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { - return (BatchAcknowledgeViolations) super.setUploadType(uploadType); - } - - @Override - public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); - } - - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Optional. The parent resource shared by all violations being acknowledged. Format: - organizations/{organization}/locations/{location}/workloads/{workload} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - public BatchAcknowledgeViolations setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public BatchAcknowledgeViolations set(String parameterName, Object value) { - return (BatchAcknowledgeViolations) super.set(parameterName, value); - } - } /** * Retrieves Assured Workload Violation based on ID. * @@ -5906,175 +5590,6 @@ public List set(String parameterName, Object value) { } } } - /** - * An accessor for creating requests from the Violations collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Violations.List request = assuredworkloads.violations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Violations violations() {
- return new Violations();
- }
-
- /**
- * The "violations" collection of methods.
- */
- public class Violations {
-
- /**
- * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the
- * existence of compliance violations in their workload and decide to ignore them due to a valid
- * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This
- * is a batch version of AcknowledgeViolation.
- *
- * Create a request for the method "violations.batchAcknowledgeViolations".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the
- * remote operation.
- *
- * @param parent Optional. The parent resource shared by all violations being acknowledged. Format:
- * organizations/{organization}/locations/{location}/workloads/{workload}
- * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest}
- * @return the request
- */
- public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException {
- BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content);
- initialize(result);
- return result;
- }
-
- public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} - * @since 1.13 - */ - protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+$"); - } - } - - @Override - public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { - return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); - } - - @Override - public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { - return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); - } - - @Override - public BatchAcknowledgeViolations setAlt(java.lang.String alt) { - return (BatchAcknowledgeViolations) super.setAlt(alt); - } - - @Override - public BatchAcknowledgeViolations setCallback(java.lang.String callback) { - return (BatchAcknowledgeViolations) super.setCallback(callback); - } - - @Override - public BatchAcknowledgeViolations setFields(java.lang.String fields) { - return (BatchAcknowledgeViolations) super.setFields(fields); - } - - @Override - public BatchAcknowledgeViolations setKey(java.lang.String key) { - return (BatchAcknowledgeViolations) super.setKey(key); - } - - @Override - public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { - return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); - } - - @Override - public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); - } - - @Override - public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { - return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); - } - - @Override - public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { - return (BatchAcknowledgeViolations) super.setUploadType(uploadType); - } - - @Override - public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); - } - - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Optional. The parent resource shared by all violations being acknowledged. Format: - organizations/{organization}/locations/{location}/workloads/{workload} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - public BatchAcknowledgeViolations setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public BatchAcknowledgeViolations set(String parameterName, Object value) { - return (BatchAcknowledgeViolations) super.set(parameterName, value); - } - } - - } } /** diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest.java deleted file mode 100644 index fda0a5c7c1b..00000000000 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.assuredworkloads.v1beta1.model; - -/** - * Request for acknowledging the violations in a batch - * - *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 Assured Workloads 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 GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest extends com.google.api.client.json.GenericJson { - - /** - * Optional. Acknowledge type of specified violations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String acknowledgeType; - - /** - * Required. Business justification explaining the need for violations acknowledgement - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String comment; - - /** - * Required. The resource names of the Violations to acknowledge. Format for each name: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Assured Workloads 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 GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse extends com.google.api.client.json.GenericJson { - - /** - * Count of acknowledged violations. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer acknowledgedViolationsCount; - - /** - * Count of acknowledged violations. - * @return value or {@code null} for none - */ - public java.lang.Integer getAcknowledgedViolationsCount() { - return acknowledgedViolationsCount; - } - - /** - * Count of acknowledged violations. - * @param acknowledgedViolationsCount acknowledgedViolationsCount or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse setAcknowledgedViolationsCount(java.lang.Integer acknowledgedViolationsCount) { - this.acknowledgedViolationsCount = acknowledgedViolationsCount; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse clone() { - return (GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.java index baed8897ca1..1c92e69f56a 100644 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.java +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.java @@ -58,6 +58,13 @@ public final class GoogleCloudAssuredworkloadsV1beta1DbFindingSummary extends co @com.google.api.client.util.Key private java.lang.String name; + /** + * Output only. Number of active organization policy findings for this category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long organizationPolicyFindingCount; + /** * Optional. The list of compliance frameworks that the finding belongs to. * The value may be {@code null}. @@ -65,6 +72,13 @@ public final class GoogleCloudAssuredworkloadsV1beta1DbFindingSummary extends co @com.google.api.client.util.Key private java.util.List