diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/README.md b/clients/google-api-services-assuredworkloads/v1/2.0.0/README.md
index ac7de093ab0..255bf5225f1 100644
--- a/clients/google-api-services-assuredworkloads/v1/2.0.0/README.md
+++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
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/[^/]+/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. @@ -3365,6 +3534,22 @@ public List setIntervalStartTime(String intervalStartTime) { return this; } + /** Optional. Actionable sorting delegation. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Actionable sorting delegation. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Actionable sorting delegation. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + /** Optional. Page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; @@ -3406,6 +3591,175 @@ 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/GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse.java index bd9606e2652..2f9d025a0d6 100644 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse.java +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse.java @@ -37,6 +37,13 @@ public final class GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse exte @com.google.api.client.util.Key private java.lang.String nextPageToken; + /** + * The total number of violations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalSize; + /** * List of Violations under a Workload. * The value may be {@code null}. @@ -61,6 +68,23 @@ public GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse setNextPageToken return this; } + /** + * The total number of violations. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalSize() { + return totalSize; + } + + /** + * The total number of violations. + * @param totalSize totalSize or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse setTotalSize(java.lang.Integer totalSize) { + this.totalSize = totalSize; + return this; + } + /** * List of Violations under a Workload. * @return value or {@code null} for none diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/pom.xml b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/pom.xml index 1df954d4efa..d93791110b8 100644 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@