From a46badbba8875d0b212b23d8527192f250f56dc3 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Tue, 10 Nov 2026 16:51:34 -0800
Subject: [PATCH] chore: regenerate assuredworkloads client
---
.../v1/2.0.0/README.md | 4 +-
.../assuredworkloads/v1/Assuredworkloads.java | 7241 ++++-------------
.../v1/AssuredworkloadsScopes.java | 8 +
...teDbFrameworkComplianceReportResponse.java | 67 -
...workloadsV1AggregatedComplianceReport.java | 91 -
...eCloudAssuredworkloadsV1CELExpression.java | 100 -
...kloadsV1CloudControlAssessmentDetails.java | 139 -
...dAssuredworkloadsV1CloudControlReport.java | 427 -
...edworkloadsV1ControlAssessmentDetails.java | 235 -
...workloadsV1DbControlComplianceSummary.java | 370 -
...oudAssuredworkloadsV1DbFindingSummary.java | 259 -
...rkloadsV1DbFrameworkComplianceSummary.java | 340 -
...chDbFrameworkComplianceReportResponse.java | 337 -
...tDbControlComplianceSummariesResponse.java | 100 -
...loadsV1ListDbFindingSummariesResponse.java | 100 -
...bFrameworkComplianceSummariesResponse.java | 100 -
...V1ManualCloudControlAssessmentDetails.java | 67 -
.../GoogleCloudAssuredworkloadsV1Rule.java | 115 -
...loudAssuredworkloadsV1SimilarControls.java | 91 -
...ogleCloudAssuredworkloadsV1StringList.java | 67 -
...suredworkloadsV1TargetResourceDetails.java | 220 -
.../GoogleCloudAssuredworkloadsV1Trend.java | 91 -
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
.../v1beta1/2.0.0/README.md | 4 +-
.../v1beta1/Assuredworkloads.java | 7093 ++++------------
.../v1beta1/AssuredworkloadsScopes.java | 8 +
...teDbFrameworkComplianceReportResponse.java | 67 -
...oadsV1beta1AggregatedComplianceReport.java | 91 -
...dAssuredworkloadsV1beta1CELExpression.java | 100 -
...sV1beta1CloudControlAssessmentDetails.java | 139 -
...redworkloadsV1beta1CloudControlReport.java | 427 -
...kloadsV1beta1ControlAssessmentDetails.java | 235 -
...oadsV1beta1DbControlComplianceSummary.java | 370 -
...suredworkloadsV1beta1DbFindingSummary.java | 259 -
...dsV1beta1DbFrameworkComplianceSummary.java | 340 -
...chDbFrameworkComplianceReportResponse.java | 337 -
...tDbControlComplianceSummariesResponse.java | 100 -
...V1beta1ListDbFindingSummariesResponse.java | 100 -
...bFrameworkComplianceSummariesResponse.java | 100 -
...a1ManualCloudControlAssessmentDetails.java | 67 -
...oogleCloudAssuredworkloadsV1beta1Rule.java | 115 -
...ssuredworkloadsV1beta1SimilarControls.java | 91 -
...loudAssuredworkloadsV1beta1StringList.java | 67 -
...workloadsV1beta1TargetResourceDetails.java | 220 -
...ogleCloudAssuredworkloadsV1beta1Trend.java | 91 -
.../v1beta1/2.0.0/pom.xml | 4 +-
.../v1beta1/README.md | 4 +-
48 files changed, 3374 insertions(+), 17632 deletions(-)
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1AggregatedComplianceReport.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CELExpression.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlReport.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ControlAssessmentDetails.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbControlComplianceSummary.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFindingSummary.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbFindingSummariesResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Rule.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1SimilarControls.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1StringList.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1TargetResourceDetails.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Trend.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CELExpression.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlReport.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1Rule.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1SimilarControls.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1StringList.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails.java
delete mode 100644 clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1Trend.java
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 45a299fc3a5..5c0dc6d34e2 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.Folders.List request = assuredworkloads.folders().list(parameters ...)}
+ * {@code Assuredworkloads.Organizations.List request = assuredworkloads.organizations().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Folders folders() {
- return new Folders();
+ public Organizations organizations() {
+ return new Organizations();
}
/**
- * The "folders" collection of methods.
+ * The "organizations" collection of methods.
*/
- public class Folders {
+ public class Organizations {
/**
* An accessor for creating requests from the Locations collection.
@@ -174,75 +174,71 @@ public Locations locations() {
public class Locations {
/**
- * An accessor for creating requests from the DbFindingSummaries collection.
+ * An accessor for creating requests from the Operations collection.
*
* The typical use is:
*
* {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
+ * {@code Assuredworkloads.Operations.List request = assuredworkloads.operations().list(parameters ...)}
*
*
* @return the resource collection
*/
- public DbFindingSummaries dbFindingSummaries() {
- return new DbFindingSummaries();
+ public Operations operations() {
+ return new Operations();
}
/**
- * The "dbFindingSummaries" collection of methods.
+ * The "operations" collection of methods.
*/
- public class DbFindingSummaries {
+ public class Operations {
/**
- * Lists summaries of the active findings in a Data Boundary scope (an organization, folder, or
- * project), with one summary for each finding category.
+ * 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 "dbFindingSummaries.list".
+ * Create a request for the method "operations.get".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent scope to list finding summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
+ * @param name The name of the operation resource.
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
initialize(result);
return result;
}
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 parent Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * @param name The name of the operation resource. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbFindingSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleLongrunningOperation.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @@ -257,246 +253,132 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent scope to list finding summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` + /** The name of the operation resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - public List setParent(java.lang.String parent) { + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the framework deployments whose findings are - summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the DbFrameworkComplianceReports collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceReports.List request = assuredworkloads.dbFrameworkComplianceReports().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceReports dbFrameworkComplianceReports() {
- return new DbFrameworkComplianceReports();
- }
-
- /**
- * The "dbFrameworkComplianceReports" collection of methods.
- */
- public class DbFrameworkComplianceReports {
-
/**
- * Gets daily compliance reports over a time range for a framework that's deployed in a Data
- * Boundary scope.
+ * 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 "dbFrameworkComplianceReports.aggregate".
+ * Create a request for the method "operations.list".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Aggregate#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
- * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the
- * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations
- * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
- * nce_report}`
+ * @param name The name of the operation's parent resource.
* @return the request
*/
- public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
- Aggregate result = new Aggregate(name);
+ public List list(java.lang.String name) throws java.io.IOException {
+ List result = new List(name);
initialize(result);
return result;
}
- public class Aggregate extends AssuredworkloadsRequest{@link - * Aggregate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 Required. The name of the framework compliance report to aggregate over time. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations - * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia - * nce_report}` + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected Aggregate(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse.class); + protected List(java.lang.String name) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleLongrunningListOperationsResponse.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 " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } } @@ -511,232 +393,247 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Aggregate set$Xgafv(java.lang.String $Xgafv) { - return (Aggregate) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Aggregate setAccessToken(java.lang.String accessToken) { - return (Aggregate) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Aggregate setAlt(java.lang.String alt) { - return (Aggregate) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Aggregate setCallback(java.lang.String callback) { - return (Aggregate) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Aggregate setFields(java.lang.String fields) { - return (Aggregate) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Aggregate setKey(java.lang.String key) { - return (Aggregate) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Aggregate setOauthToken(java.lang.String oauthToken) { - return (Aggregate) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Aggregate) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Aggregate setQuotaUser(java.lang.String quotaUser) { - return (Aggregate) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Aggregate setUploadType(java.lang.String uploadType) { - return (Aggregate) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { - return (Aggregate) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` - */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the framework compliance report to aggregate over time. The report ID is the - ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations/{organiz - ation_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` - */ - public Aggregate setName(java.lang.String 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 " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } this.name = name; return this; } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A filter expression that restricts the framework deployments that are included in the - report. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - public Aggregate setFilter(java.lang.String filter) { + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - @com.google.api.client.util.Key("interval.endTime") - private String intervalEndTime; + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have - to be before the end. + /** The standard list page size. */ - public String getIntervalEndTime() { - return intervalEndTime; + public java.lang.Integer getPageSize() { + return pageSize; } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - public Aggregate setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; - - /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will - have to be the same or after the start. + /** 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 String getIntervalStartTime() { - return intervalStartTime; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. + * 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 Aggregate setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Aggregate set(String parameterName, Object value) { - return (Aggregate) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Workloads collection. + * + *The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.Workloads.List request = assuredworkloads.workloads().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Workloads workloads() {
+ return new Workloads();
+ }
+
+ /**
+ * The "workloads" collection of methods.
+ */
+ public class Workloads {
+
/**
- * Fetches the current compliance report for a framework that's deployed in a Data Boundary scope
- * (an organization, folder, or project). The report includes the number of passing, failing, and
- * not assessed controls in the framework.
+ * Analyzes a hypothetical move of a source resource to a target workload to surface compliance
+ * risks. The analysis is best effort and is not guaranteed to be exhaustive.
*
- * Create a request for the method "dbFrameworkComplianceReports.fetch".
+ * Create a request for the method "workloads.analyzeWorkloadMove".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link AnalyzeWorkloadMove#execute()} method to invoke the remote
+ * operation.
*
- * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the
- * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ
- * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report
- * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com
- * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{
- * db_framework_compliance_report}`
+ * @param target Required. The resource name of the folder-based destination workload. This workload is where the
+ * source resource will hypothetically be moved to. Specify the workload's relative resource
+ * name, formatted as:
+ * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For
+ * example: "organizations/123/locations/us-east1/workloads/assured-workload-2"
* @return the request
*/
- public Fetch fetch(java.lang.String name) throws java.io.IOException {
- Fetch result = new Fetch(name);
+ public AnalyzeWorkloadMove analyzeWorkloadMove(java.lang.String target) throws java.io.IOException {
+ AnalyzeWorkloadMove result = new AnalyzeWorkloadMove(target);
initialize(result);
return result;
}
- public class Fetch extends AssuredworkloadsRequest{@link - * Fetch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link AnalyzeWorkloadMove#execute()} method to invoke the remote + * operation.{@link AnalyzeWorkloadMove#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` + * @param target Required. The resource name of the folder-based destination workload. This workload is where the + * source resource will hypothetically be moved to. Specify the workload's relative resource + * name, formatted as: + * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" * @since 1.13 */ - protected Fetch(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected AnalyzeWorkloadMove(java.lang.String target) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse.class); + this.target = com.google.api.client.util.Preconditions.checkNotNull(target, "Required parameter target must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), + "Parameter target must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @@ -751,1765 +648,1020 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Fetch set$Xgafv(java.lang.String $Xgafv) { - return (Fetch) super.set$Xgafv($Xgafv); + public AnalyzeWorkloadMove set$Xgafv(java.lang.String $Xgafv) { + return (AnalyzeWorkloadMove) super.set$Xgafv($Xgafv); } @Override - public Fetch setAccessToken(java.lang.String accessToken) { - return (Fetch) super.setAccessToken(accessToken); + public AnalyzeWorkloadMove setAccessToken(java.lang.String accessToken) { + return (AnalyzeWorkloadMove) super.setAccessToken(accessToken); } @Override - public Fetch setAlt(java.lang.String alt) { - return (Fetch) super.setAlt(alt); + public AnalyzeWorkloadMove setAlt(java.lang.String alt) { + return (AnalyzeWorkloadMove) super.setAlt(alt); } @Override - public Fetch setCallback(java.lang.String callback) { - return (Fetch) super.setCallback(callback); + public AnalyzeWorkloadMove setCallback(java.lang.String callback) { + return (AnalyzeWorkloadMove) super.setCallback(callback); } @Override - public Fetch setFields(java.lang.String fields) { - return (Fetch) super.setFields(fields); + public AnalyzeWorkloadMove setFields(java.lang.String fields) { + return (AnalyzeWorkloadMove) super.setFields(fields); } @Override - public Fetch setKey(java.lang.String key) { - return (Fetch) super.setKey(key); + public AnalyzeWorkloadMove setKey(java.lang.String key) { + return (AnalyzeWorkloadMove) super.setKey(key); } @Override - public Fetch setOauthToken(java.lang.String oauthToken) { - return (Fetch) super.setOauthToken(oauthToken); + public AnalyzeWorkloadMove setOauthToken(java.lang.String oauthToken) { + return (AnalyzeWorkloadMove) super.setOauthToken(oauthToken); } @Override - public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Fetch) super.setPrettyPrint(prettyPrint); + public AnalyzeWorkloadMove setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AnalyzeWorkloadMove) super.setPrettyPrint(prettyPrint); } @Override - public Fetch setQuotaUser(java.lang.String quotaUser) { - return (Fetch) super.setQuotaUser(quotaUser); + public AnalyzeWorkloadMove setQuotaUser(java.lang.String quotaUser) { + return (AnalyzeWorkloadMove) super.setQuotaUser(quotaUser); } @Override - public Fetch setUploadType(java.lang.String uploadType) { - return (Fetch) super.setUploadType(uploadType); + public AnalyzeWorkloadMove setUploadType(java.lang.String uploadType) { + return (AnalyzeWorkloadMove) super.setUploadType(uploadType); } @Override - public Fetch setUploadProtocol(java.lang.String uploadProtocol) { - return (Fetch) super.setUploadProtocol(uploadProtocol); + public AnalyzeWorkloadMove setUploadProtocol(java.lang.String uploadProtocol) { + return (AnalyzeWorkloadMove) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` + * Required. The resource name of the folder-based destination workload. This workload is + * where the source resource will hypothetically be moved to. Specify the workload's + * relative resource name, formatted as: + * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String target; - /** Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organization}/ - locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `folders/{fol - der}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `project - s/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + /** Required. The resource name of the folder-based destination workload. This workload is where the + source resource will hypothetically be moved to. Specify the workload's relative resource name, + formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + example: "organizations/123/locations/us-east1/workloads/assured-workload-2" */ - public java.lang.String getName() { - return name; + public java.lang.String getTarget() { + return target; } /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` + * Required. The resource name of the folder-based destination workload. This workload is + * where the source resource will hypothetically be moved to. Specify the workload's + * relative resource name, formatted as: + * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" */ - public Fetch setName(java.lang.String name) { + public AnalyzeWorkloadMove setTarget(java.lang.String target) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), + "Parameter target must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } - this.name = name; + this.target = target; return this; } /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. + * Optional. List of asset types to be analyzed, including and under the source resource. + * If empty, all assets are analyzed. The complete list of asset types is available + * [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types). */ @com.google.api.client.util.Key - private String endTime; + private java.util.ListThe typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbControlComplianceSummaries dbControlComplianceSummaries() {
- return new DbControlComplianceSummaries();
- }
+ /**
+ * Optional. The page token from the previous response. It needs to be passed in the
+ * second and following requests.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String pageToken;
- /**
- * The "dbControlComplianceSummaries" collection of methods.
- */
- public class DbControlComplianceSummaries {
+ /** Optional. The page token from the previous response. It needs to be passed in the second and
+ following requests.
+ */
+ public java.lang.String getPageToken() {
+ return pageToken;
+ }
/**
- * Lists the compliance summaries of the controls in a framework compliance report.
- *
- * Create a request for the method "dbControlComplianceSummaries.list".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga
- * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c
- * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{
- * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom
- * plianceReports/{db_framework_compliance_report}`
- * @return the request
+ * Optional. The page token from the previous response. It needs to be passed in the
+ * second and following requests.
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
+ public AnalyzeWorkloadMove setPageToken(java.lang.String pageToken) {
+ this.pageToken = pageToken;
+ return this;
}
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga - * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom - * plianceReports/{db_framework_compliance_report}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The framework compliance report to list control compliance summaries for. Formats: * `org - anizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc - e_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_comp - liance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framewo - rk_compliance_report}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. A filter expression that restricts the results. The syntax follows - * [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - * `framework_name`, `framework_revision` (the major revision ID of the framework), and - * `end_time`. The `end_time` field accepts a single equality comparison with an [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - * "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are - * counted. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the results. The syntax follows - [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - `framework_name`, `framework_revision` (the major revision ID of the framework), and `end_time`. - The `end_time` field accepts a single equality comparison with an [RFC - 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are counted. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the results. The syntax follows - * [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - * `framework_name`, `framework_revision` (the major revision ID of the framework), and - * `end_time`. The `end_time` field accepts a single equality comparison with an [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - * "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are - * counted. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the default page size is 50. The maximum value is 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the default page size is 50. The maximum value is 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public AnalyzeWorkloadMove set(String parameterName, Object value) { + return (AnalyzeWorkloadMove) super.set(parameterName, value); } - } - } - /** - * An accessor for creating requests from the DbFrameworkComplianceSummaries collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceSummaries.List request = assuredworkloads.dbFrameworkComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceSummaries dbFrameworkComplianceSummaries() {
- return new DbFrameworkComplianceSummaries();
- }
-
- /**
- * The "dbFrameworkComplianceSummaries" collection of methods.
- */
- public class DbFrameworkComplianceSummaries {
-
/**
- * Lists the compliance summaries of the frameworks that are deployed in a Data Boundary scope (an
- * organization, folder, or project).
+ * Creates Assured Workload.
*
- * Create a request for the method "dbFrameworkComplianceSummaries.list".
+ * Create a request for the method "workloads.create".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent scope to list framework compliance summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
+ * @param parent Required. The resource name of the new Workload's parent. Must be of the form
+ * `organizations/{org_id}/locations/{location_id}`.
+ * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload}
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ public Create create(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * @param parent Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse.class); + protected Create(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleLongrunningOperation.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+$"); + "^organizations/[^/]+/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(); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @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); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent scope to list framework compliance summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` + /** Required. The resource name of the new Workload's parent. Must be of the form + `organizations/{org_id}/locations/{location_id}`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. */ - public List setParent(java.lang.String parent) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } this.parent = parent; return this; } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the results. Reserved for future use. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. + * Optional. A identifier associated with the workload and underlying projects which + * allows for the break down of billing costs for a workload. The value provided for the + * identifier will add a label to the workload and contained projects with the identifier + * as the value. */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String externalId; - /** Optional. The level of detail to return for each summary. If not specified, - `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. + /** Optional. A identifier associated with the workload and underlying projects which allows for the + break down of billing costs for a workload. The value provided for the identifier will add a label + to the workload and contained projects with the identifier as the value. */ - public java.lang.String getView() { - return view; + public java.lang.String getExternalId() { + return externalId; } /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. + * Optional. A identifier associated with the workload and underlying projects which + * allows for the break down of billing costs for a workload. The value provided for the + * identifier will add a label to the workload and contained projects with the identifier + * as the value. */ - public List setView(java.lang.String view) { - this.view = view; + public Create setExternalId(java.lang.String externalId) { + this.externalId = externalId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - - } - } - } - - /** - * An accessor for creating requests from the Organizations collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Organizations.List request = assuredworkloads.organizations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Organizations organizations() {
- return new Organizations();
- }
-
- /**
- * The "organizations" collection of methods.
- */
- public class Organizations {
-
- /**
- * An accessor for creating requests from the Locations collection.
- *
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Locations.List request = assuredworkloads.locations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Locations locations() {
- return new Locations();
- }
-
- /**
- * The "locations" collection of methods.
- */
- public class Locations {
-
- /**
- * An accessor for creating requests from the DbFindingSummaries collection.
- *
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFindingSummaries dbFindingSummaries() {
- return new DbFindingSummaries();
- }
-
- /**
- * The "dbFindingSummaries" collection of methods.
- */
- public class DbFindingSummaries {
-
/**
- * Lists summaries of the active findings in a Data Boundary scope (an organization, folder, or
- * project), with one summary for each finding category.
+ * Deletes the workload. Make sure that workload's direct children are already in a deleted state,
+ * otherwise the request will fail with a FAILED_PRECONDITION error. In addition to
+ * assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set
+ * permission on the deleted folder to remove Assured Workloads OrgPolicies.
*
- * Create a request for the method "dbFindingSummaries.list".
+ * Create a request for the method "workloads.delete".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent scope to list finding summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
+ * @param name Required. The `name` field is used to identify the workload. Format:
+ * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ public Delete delete(java.lang.String name) throws java.io.IOException {
+ Delete result = new Delete(name);
initialize(result);
return result;
}
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 parent Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbFindingSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Delete(java.lang.String name) { + super(Assuredworkloads.this, "DELETE", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleProtobufEmpty.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent scope to list finding summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` + /** Required. The `name` field is used to identify the workload. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public List setParent(java.lang.String parent) { + public Delete setName(java.lang.String name) { 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; - } - - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the framework deployments whose findings are - summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } + this.name = name; return this; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. The etag of the workload. If this is provided, it must match the server's + * etag. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String etag; - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. + /** Optional. The etag of the workload. If this is provided, it must match the server's etag. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getEtag() { + return etag; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. The etag of the workload. If this is provided, it must match the server's + * etag. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Delete setEtag(java.lang.String etag) { + this.etag = etag; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the DbFrameworkComplianceReports collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceReports.List request = assuredworkloads.dbFrameworkComplianceReports().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceReports dbFrameworkComplianceReports() {
- return new DbFrameworkComplianceReports();
- }
-
- /**
- * The "dbFrameworkComplianceReports" collection of methods.
- */
- public class DbFrameworkComplianceReports {
-
/**
- * Gets daily compliance reports over a time range for a framework that's deployed in a Data
- * Boundary scope.
+ * This endpoint enables Assured Workloads service to offer compliance updates for the folder based
+ * assured workload. It sets up an Assured Workloads Service Agent, having permissions to read
+ * compliance controls (for example: Org Policies) applied on the workload. The caller must have
+ * `resourcemanager.folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions on
+ * the assured workload folder.
*
- * Create a request for the method "dbFrameworkComplianceReports.aggregate".
+ * Create a request for the method "workloads.enableComplianceUpdates".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Aggregate#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link EnableComplianceUpdates#execute()} method to invoke the
+ * remote operation.
*
- * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the
- * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations
- * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
- * nce_report}`
+ * @param name Required. The `name` field is used to identify the workload. Format:
+ * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @return the request
*/
- public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
- Aggregate result = new Aggregate(name);
+ public EnableComplianceUpdates enableComplianceUpdates(java.lang.String name) throws java.io.IOException {
+ EnableComplianceUpdates result = new EnableComplianceUpdates(name);
initialize(result);
return result;
}
- public class Aggregate extends AssuredworkloadsRequest{@link - * Aggregate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link EnableComplianceUpdates#execute()} method to invoke the + * remote operation.{@link EnableComplianceUpdates#initialize(com.google.api.client.googleapi + * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* - * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations - * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia - * nce_report}` + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @since 1.13 */ - protected Aggregate(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse.class); + protected EnableComplianceUpdates(java.lang.String name) { + super(Assuredworkloads.this, "PUT", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @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 Aggregate set$Xgafv(java.lang.String $Xgafv) { - return (Aggregate) super.set$Xgafv($Xgafv); + public EnableComplianceUpdates set$Xgafv(java.lang.String $Xgafv) { + return (EnableComplianceUpdates) super.set$Xgafv($Xgafv); } @Override - public Aggregate setAccessToken(java.lang.String accessToken) { - return (Aggregate) super.setAccessToken(accessToken); + public EnableComplianceUpdates setAccessToken(java.lang.String accessToken) { + return (EnableComplianceUpdates) super.setAccessToken(accessToken); } @Override - public Aggregate setAlt(java.lang.String alt) { - return (Aggregate) super.setAlt(alt); + public EnableComplianceUpdates setAlt(java.lang.String alt) { + return (EnableComplianceUpdates) super.setAlt(alt); } @Override - public Aggregate setCallback(java.lang.String callback) { - return (Aggregate) super.setCallback(callback); + public EnableComplianceUpdates setCallback(java.lang.String callback) { + return (EnableComplianceUpdates) super.setCallback(callback); } @Override - public Aggregate setFields(java.lang.String fields) { - return (Aggregate) super.setFields(fields); + public EnableComplianceUpdates setFields(java.lang.String fields) { + return (EnableComplianceUpdates) super.setFields(fields); } @Override - public Aggregate setKey(java.lang.String key) { - return (Aggregate) super.setKey(key); + public EnableComplianceUpdates setKey(java.lang.String key) { + return (EnableComplianceUpdates) super.setKey(key); } @Override - public Aggregate setOauthToken(java.lang.String oauthToken) { - return (Aggregate) super.setOauthToken(oauthToken); + public EnableComplianceUpdates setOauthToken(java.lang.String oauthToken) { + return (EnableComplianceUpdates) super.setOauthToken(oauthToken); } @Override - public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Aggregate) super.setPrettyPrint(prettyPrint); + public EnableComplianceUpdates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnableComplianceUpdates) super.setPrettyPrint(prettyPrint); } @Override - public Aggregate setQuotaUser(java.lang.String quotaUser) { - return (Aggregate) super.setQuotaUser(quotaUser); + public EnableComplianceUpdates setQuotaUser(java.lang.String quotaUser) { + return (EnableComplianceUpdates) super.setQuotaUser(quotaUser); } @Override - public Aggregate setUploadType(java.lang.String uploadType) { - return (Aggregate) super.setUploadType(uploadType); + public EnableComplianceUpdates setUploadType(java.lang.String uploadType) { + return (EnableComplianceUpdates) super.setUploadType(uploadType); } @Override - public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { - return (Aggregate) super.setUploadProtocol(uploadProtocol); + public EnableComplianceUpdates setUploadProtocol(java.lang.String uploadProtocol) { + return (EnableComplianceUpdates) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the framework compliance report to aggregate over time. The report ID is the - ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations/{organiz - ation_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + /** Required. The `name` field is used to identify the workload. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ public java.lang.String getName() { return name; } /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public Aggregate setName(java.lang.String name) { + public EnableComplianceUpdates 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 " + - "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.name = name; return this; } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the framework deployments that are included in the - report. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - public Aggregate setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - @com.google.api.client.util.Key("interval.endTime") - private String intervalEndTime; - - /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have - to be before the end. - */ - public String getIntervalEndTime() { - return intervalEndTime; - } - - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - public Aggregate setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; - return this; - } - - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; - - /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will - have to be the same or after the start. - */ - public String getIntervalStartTime() { - return intervalStartTime; - } - - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - public Aggregate setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; - return this; - } - @Override - public Aggregate set(String parameterName, Object value) { - return (Aggregate) super.set(parameterName, value); + public EnableComplianceUpdates set(String parameterName, Object value) { + return (EnableComplianceUpdates) super.set(parameterName, value); } } /** - * Fetches the current compliance report for a framework that's deployed in a Data Boundary scope - * (an organization, folder, or project). The report includes the number of passing, failing, and - * not assessed controls in the framework. + * Enable resource violation monitoring for a workload. * - * Create a request for the method "dbFrameworkComplianceReports.fetch". + * Create a request for the method "workloads.enableResourceMonitoring". * * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the + * remote operation. * - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @return the request */ - public Fetch fetch(java.lang.String name) throws java.io.IOException { - Fetch result = new Fetch(name); + public EnableResourceMonitoring enableResourceMonitoring(java.lang.String name) throws java.io.IOException { + EnableResourceMonitoring result = new EnableResourceMonitoring(name); initialize(result); return result; } - public class Fetch extends AssuredworkloadsRequest{@link - * Fetch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the + * remote operation.{@link EnableResourceMonitoring#initialize(com.google.api.client.googleap + * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
* - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @since 1.13 */ - protected Fetch(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse.class); + protected EnableResourceMonitoring(java.lang.String name) { + super(Assuredworkloads.this, "POST", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @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 Fetch set$Xgafv(java.lang.String $Xgafv) { - return (Fetch) super.set$Xgafv($Xgafv); + public EnableResourceMonitoring set$Xgafv(java.lang.String $Xgafv) { + return (EnableResourceMonitoring) super.set$Xgafv($Xgafv); } @Override - public Fetch setAccessToken(java.lang.String accessToken) { - return (Fetch) super.setAccessToken(accessToken); + public EnableResourceMonitoring setAccessToken(java.lang.String accessToken) { + return (EnableResourceMonitoring) super.setAccessToken(accessToken); } @Override - public Fetch setAlt(java.lang.String alt) { - return (Fetch) super.setAlt(alt); + public EnableResourceMonitoring setAlt(java.lang.String alt) { + return (EnableResourceMonitoring) super.setAlt(alt); } @Override - public Fetch setCallback(java.lang.String callback) { - return (Fetch) super.setCallback(callback); + public EnableResourceMonitoring setCallback(java.lang.String callback) { + return (EnableResourceMonitoring) super.setCallback(callback); } @Override - public Fetch setFields(java.lang.String fields) { - return (Fetch) super.setFields(fields); + public EnableResourceMonitoring setFields(java.lang.String fields) { + return (EnableResourceMonitoring) super.setFields(fields); } @Override - public Fetch setKey(java.lang.String key) { - return (Fetch) super.setKey(key); + public EnableResourceMonitoring setKey(java.lang.String key) { + return (EnableResourceMonitoring) super.setKey(key); } @Override - public Fetch setOauthToken(java.lang.String oauthToken) { - return (Fetch) super.setOauthToken(oauthToken); + public EnableResourceMonitoring setOauthToken(java.lang.String oauthToken) { + return (EnableResourceMonitoring) super.setOauthToken(oauthToken); } @Override - public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Fetch) super.setPrettyPrint(prettyPrint); + public EnableResourceMonitoring setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnableResourceMonitoring) super.setPrettyPrint(prettyPrint); } @Override - public Fetch setQuotaUser(java.lang.String quotaUser) { - return (Fetch) super.setQuotaUser(quotaUser); + public EnableResourceMonitoring setQuotaUser(java.lang.String quotaUser) { + return (EnableResourceMonitoring) super.setQuotaUser(quotaUser); } @Override - public Fetch setUploadType(java.lang.String uploadType) { - return (Fetch) super.setUploadType(uploadType); + public EnableResourceMonitoring setUploadType(java.lang.String uploadType) { + return (EnableResourceMonitoring) super.setUploadType(uploadType); } @Override - public Fetch setUploadProtocol(java.lang.String uploadProtocol) { - return (Fetch) super.setUploadProtocol(uploadProtocol); + public EnableResourceMonitoring setUploadProtocol(java.lang.String uploadProtocol) { + return (EnableResourceMonitoring) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organization}/ - locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `folders/{fol - der}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `project - s/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + /** Required. The `name` field is used to identify the workload. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ public java.lang.String getName() { return name; } /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public Fetch setName(java.lang.String name) { + public EnableResourceMonitoring 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 " + - "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.name = name; return this; } - /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. - */ - @com.google.api.client.util.Key - private String endTime; - - /** Optional. The end time of the report. Reserved for future use. Currently, the report always - reflects the current compliance state. - */ - public String getEndTime() { - return endTime; - } - - /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. - */ - public Fetch setEndTime(String endTime) { - this.endTime = endTime; - return this; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the results. Reserved for future use. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - public Fetch setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - @Override - public Fetch set(String parameterName, Object value) { - return (Fetch) super.set(parameterName, value); + public EnableResourceMonitoring set(String parameterName, Object value) { + return (EnableResourceMonitoring) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the DbControlComplianceSummaries collection. + * Gets Assured Workload associated with a CRM Node * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
- *
+ * Create a request for the method "workloads.get".
*
- * @return the resource collection
+ * This request holds the parameters needed by the assuredworkloads server. After setting any
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The resource name of the Workload to fetch. This is the workloads's relative path in the
+ * API, formatted as
+ * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For
+ * example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
+ * @return the request
*/
- public DbControlComplianceSummaries dbControlComplianceSummaries() {
- return new DbControlComplianceSummaries();
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
+ initialize(result);
+ return result;
}
- /**
- * The "dbControlComplianceSummaries" collection of methods.
- */
- public class DbControlComplianceSummaries {
+ public class Get extends AssuredworkloadsRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga - * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom - * plianceReports/{db_framework_compliance_report}` - * @return the request + * @param name Required. The resource name of the Workload to fetch. This is the workloads's relative path in the + * API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload.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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } } - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga - * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom - * plianceReports/{db_framework_compliance_report}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The resource name of the Workload to fetch. This is the workloads's relative + * path in the API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The resource name of the Workload to fetch. This is the workloads's relative path in the + API, formatted as + "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, + "organizations/123/locations/us-east1/workloads/assured-workload-1". + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Required. The resource name of the Workload to fetch. This is the workloads's relative + * path in the API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + */ + 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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Assured Workloads under a CRM Node. + * + * Create a request for the method "workloads.list". + * + * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent Resource to list workloads from. Must be of the form + * `organizations/{org_id}/locations/{location}`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + public class List extends AssuredworkloadsRequestThe typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceSummaries.List request = assuredworkloads.dbFrameworkComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceSummaries dbFrameworkComplianceSummaries() {
- return new DbFrameworkComplianceSummaries();
- }
-
- /**
- * The "dbFrameworkComplianceSummaries" collection of methods.
- */
- public class DbFrameworkComplianceSummaries {
-
- /**
- * Lists the compliance summaries of the frameworks that are deployed in a Data Boundary scope (an
- * organization, folder, or project).
- *
- * Create a request for the method "dbFrameworkComplianceSummaries.list".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The parent scope to list framework compliance summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
- * @return the request
- */
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
- }
-
- public class List extends AssuredworkloadsRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * @param parent Required. Parent Resource to list workloads from. Must be of the form + * `organizations/{org_id}/locations/{location}`. * @since 1.13 */ protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse.class); + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListWorkloadsResponse.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(), @@ -2584,25 +1736,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. Parent Resource to list workloads from. Must be of the form + * `organizations/{org_id}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent scope to list framework compliance summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` + /** Required. Parent Resource to list workloads from. Must be of the form + `organizations/{org_id}/locations/{location}`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. Parent Resource to list workloads from. Must be of the form + * `organizations/{org_id}/locations/{location}`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -2614,4037 +1763,1224 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ + /** + * Optional. A custom filter for filtering by properties of a workload. At this time, only + * filtering by labels is supported. + */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A filter expression that restricts the results. Reserved for future use. + /** Optional. A custom filter for filtering by properties of a workload. At this time, only filtering + by labels is supported. */ public java.lang.String getFilter() { return filter; } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ + /** + * Optional. A custom filter for filtering by properties of a workload. At this time, only + * filtering by labels is supported. + */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ + /** Optional. Page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. + /** Optional. Page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ + /** Optional. Page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. Page token returned from previous request. Page token contains context from + * previous request. Page token needs to be passed in the second and following requests. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. + /** Optional. Page token returned from previous request. Page token contains context from previous + request. Page token needs to be passed in the second and following requests. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. Page token returned from previous request. Page token contains context from + * previous request. Page token needs to be passed in the second and following requests. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** Optional. The level of detail to return for each summary. If not specified, - `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - public java.lang.String getView() { - return view; - } - - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - public List setView(java.lang.String view) { - this.view = view; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Operations collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Operations.List request = assuredworkloads.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class 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.
+ * Update the permissions settings for an existing partner workload. For force updates don't set
+ * etag field in the Workload. Only one update operation per workload can be in progress.
*
- * Create a request for the method "operations.get".
+ * Create a request for the method "workloads.mutatePartnerPermissions".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link MutatePartnerPermissions#execute()} method to invoke the
+ * remote operation.
*
- * @param name The name of the operation resource.
+ * @param name Required. The `name` field is used to identify the workload. Format:
+ * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
+ * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest}
* @return the request
*/
- public Get get(java.lang.String name) throws java.io.IOException {
- Get result = new Get(name);
+ public MutatePartnerPermissions mutatePartnerPermissions(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest content) throws java.io.IOException {
+ MutatePartnerPermissions result = new MutatePartnerPermissions(name, content);
initialize(result);
return result;
}
- public class Get extends AssuredworkloadsRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link MutatePartnerPermissions#execute()} method to invoke the + * remote operation.{@link MutatePartnerPermissions#initialize(com.google.api.client.googleap + * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
* - * @param name The name of the operation resource. + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleLongrunningOperation.class); + protected MutatePartnerPermissions(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest content) { + super(Assuredworkloads.this, "PATCH", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload.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 " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public MutatePartnerPermissions set$Xgafv(java.lang.String $Xgafv) { + return (MutatePartnerPermissions) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public MutatePartnerPermissions setAccessToken(java.lang.String accessToken) { + return (MutatePartnerPermissions) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public MutatePartnerPermissions setAlt(java.lang.String alt) { + return (MutatePartnerPermissions) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public MutatePartnerPermissions setCallback(java.lang.String callback) { + return (MutatePartnerPermissions) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public MutatePartnerPermissions setFields(java.lang.String fields) { + return (MutatePartnerPermissions) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public MutatePartnerPermissions setKey(java.lang.String key) { + return (MutatePartnerPermissions) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public MutatePartnerPermissions setOauthToken(java.lang.String oauthToken) { + return (MutatePartnerPermissions) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public MutatePartnerPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (MutatePartnerPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public MutatePartnerPermissions setQuotaUser(java.lang.String quotaUser) { + return (MutatePartnerPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public MutatePartnerPermissions setUploadType(java.lang.String uploadType) { + return (MutatePartnerPermissions) super.setUploadType(uploadType); } @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); + public MutatePartnerPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (MutatePartnerPermissions) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The `name` field is used to identify the workload. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + */ + public MutatePartnerPermissions 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 " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public MutatePartnerPermissions set(String parameterName, Object value) { + return (MutatePartnerPermissions) 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`. + * Updates an existing workload. Currently allows updating of workload display_name and labels. For + * force updates don't set etag field in the Workload. Only one update operation per workload can be + * in progress. * - * Create a request for the method "operations.list". + * Create a request for the method "workloads.patch". * * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param name Optional. The resource name of the workload. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload} * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public Patch patch(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *{@link + * Patch#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. + * @param name Optional. The resource name of the workload. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload} * @since 1.13 */ - protected List(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleLongrunningListOperationsResponse.class); + protected Patch(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) { + super(Assuredworkloads.this, "PATCH", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload.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 " + - "^organizations/[^/]+/locations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @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); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Optional. The resource name of the workload. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation's parent resource. + /** Optional. The resource name of the workload. Format: + organizations/{organization}/locations/{location}/workloads/{workload} Read-only. */ public java.lang.String getName() { return name; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Optional. The resource name of the workload. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + */ + public Patch 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 " + - "^organizations/[^/]+/locations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.name = name; return this; } - /** The standard list filter. */ + /** Required. The list of fields to be updated. */ @com.google.api.client.util.Key - private java.lang.String filter; + private String updateMask; - /** The standard list filter. + /** Required. The list of fields to be updated. */ - public java.lang.String getFilter() { - return filter; + public String getUpdateMask() { + return updateMask; } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + /** Required. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; 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; + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } + } + /** + * Restrict the list of resources allowed in the Workload environment. The current list of allowed + * products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In + * addition to assuredworkloads.workload.update permission, the user should also have + * orgpolicy.policy.set permission on the folder resource to use this functionality. + * + * Create a request for the method "workloads.restrictAllowedResources". + * + * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link RestrictAllowedResources#execute()} method to invoke the + * remote operation. + * + * @param name Required. The resource name of the Workload. This is the workloads's relative path in the API, + * formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest} + * @return the request + */ + public RestrictAllowedResources restrictAllowedResources(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest content) throws java.io.IOException { + RestrictAllowedResources result = new RestrictAllowedResources(name, content); + initialize(result); + return result; + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + public class RestrictAllowedResources extends AssuredworkloadsRequest{@link RestrictAllowedResources#initialize(com.google.api.client.googleap + * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the Workload. This is the workloads's relative path in the API, + * formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest} + * @since 1.13 */ - public java.lang.String getPageToken() { - return pageToken; + protected RestrictAllowedResources(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse.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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } } - /** 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 Workloads collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Workloads.List request = assuredworkloads.workloads().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Workloads workloads() {
- return new Workloads();
- }
-
- /**
- * The "workloads" collection of methods.
- */
- public class Workloads {
-
- /**
- * Analyzes a hypothetical move of a source resource to a target workload to surface compliance
- * risks. The analysis is best effort and is not guaranteed to be exhaustive.
- *
- * Create a request for the method "workloads.analyzeWorkloadMove".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link AnalyzeWorkloadMove#execute()} method to invoke the remote
- * operation.
- *
- * @param target Required. The resource ID of the folder-based destination workload. This workload is where the
- * source resource will hypothetically be moved to. Specify the workload's relative resource
- * name, formatted as:
- * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For
- * example: "organizations/123/locations/us-east1/workloads/assured-workload-2"
- * @return the request
- */
- public AnalyzeWorkloadMove analyzeWorkloadMove(java.lang.String target) throws java.io.IOException {
- AnalyzeWorkloadMove result = new AnalyzeWorkloadMove(target);
- initialize(result);
- return result;
- }
-
- public class AnalyzeWorkloadMove extends AssuredworkloadsRequest{@link AnalyzeWorkloadMove#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param target Required. The resource ID of the folder-based destination workload. This workload is where the - * source resource will hypothetically be moved to. Specify the workload's relative resource - * name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For - * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" - * @since 1.13 - */ - protected AnalyzeWorkloadMove(java.lang.String target) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse.class); - this.target = com.google.api.client.util.Preconditions.checkNotNull(target, "Required parameter target must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), - "Parameter target must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @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 RestrictAllowedResources set$Xgafv(java.lang.String $Xgafv) { + return (RestrictAllowedResources) super.set$Xgafv($Xgafv); } @Override - public AnalyzeWorkloadMove set$Xgafv(java.lang.String $Xgafv) { - return (AnalyzeWorkloadMove) super.set$Xgafv($Xgafv); - } - - @Override - public AnalyzeWorkloadMove setAccessToken(java.lang.String accessToken) { - return (AnalyzeWorkloadMove) super.setAccessToken(accessToken); + public RestrictAllowedResources setAccessToken(java.lang.String accessToken) { + return (RestrictAllowedResources) super.setAccessToken(accessToken); } @Override - public AnalyzeWorkloadMove setAlt(java.lang.String alt) { - return (AnalyzeWorkloadMove) super.setAlt(alt); + public RestrictAllowedResources setAlt(java.lang.String alt) { + return (RestrictAllowedResources) super.setAlt(alt); } @Override - public AnalyzeWorkloadMove setCallback(java.lang.String callback) { - return (AnalyzeWorkloadMove) super.setCallback(callback); + public RestrictAllowedResources setCallback(java.lang.String callback) { + return (RestrictAllowedResources) super.setCallback(callback); } @Override - public AnalyzeWorkloadMove setFields(java.lang.String fields) { - return (AnalyzeWorkloadMove) super.setFields(fields); + public RestrictAllowedResources setFields(java.lang.String fields) { + return (RestrictAllowedResources) super.setFields(fields); } @Override - public AnalyzeWorkloadMove setKey(java.lang.String key) { - return (AnalyzeWorkloadMove) super.setKey(key); + public RestrictAllowedResources setKey(java.lang.String key) { + return (RestrictAllowedResources) super.setKey(key); } @Override - public AnalyzeWorkloadMove setOauthToken(java.lang.String oauthToken) { - return (AnalyzeWorkloadMove) super.setOauthToken(oauthToken); + public RestrictAllowedResources setOauthToken(java.lang.String oauthToken) { + return (RestrictAllowedResources) super.setOauthToken(oauthToken); } @Override - public AnalyzeWorkloadMove setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AnalyzeWorkloadMove) super.setPrettyPrint(prettyPrint); + public RestrictAllowedResources setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RestrictAllowedResources) super.setPrettyPrint(prettyPrint); } @Override - public AnalyzeWorkloadMove setQuotaUser(java.lang.String quotaUser) { - return (AnalyzeWorkloadMove) super.setQuotaUser(quotaUser); + public RestrictAllowedResources setQuotaUser(java.lang.String quotaUser) { + return (RestrictAllowedResources) super.setQuotaUser(quotaUser); } @Override - public AnalyzeWorkloadMove setUploadType(java.lang.String uploadType) { - return (AnalyzeWorkloadMove) super.setUploadType(uploadType); + public RestrictAllowedResources setUploadType(java.lang.String uploadType) { + return (RestrictAllowedResources) super.setUploadType(uploadType); } @Override - public AnalyzeWorkloadMove setUploadProtocol(java.lang.String uploadProtocol) { - return (AnalyzeWorkloadMove) super.setUploadProtocol(uploadProtocol); + public RestrictAllowedResources setUploadProtocol(java.lang.String uploadProtocol) { + return (RestrictAllowedResources) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource ID of the folder-based destination workload. This workload is - * where the source resource will hypothetically be moved to. Specify the workload's - * relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For - * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" + * Required. The resource name of the Workload. This is the workloads's relative path in + * the API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". */ @com.google.api.client.util.Key - private java.lang.String target; + private java.lang.String name; - /** Required. The resource ID of the folder-based destination workload. This workload is where the - source resource will hypothetically be moved to. Specify the workload's relative resource name, - formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For - example: "organizations/123/locations/us-east1/workloads/assured-workload-2" + /** Required. The resource name of the Workload. This is the workloads's relative path in the API, + formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + example, "organizations/123/locations/us-east1/workloads/assured-workload-1". */ - public java.lang.String getTarget() { - return target; + public java.lang.String getName() { + return name; } /** - * Required. The resource ID of the folder-based destination workload. This workload is - * where the source resource will hypothetically be moved to. Specify the workload's - * relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For - * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" + * Required. The resource name of the Workload. This is the workloads's relative path in + * the API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". */ - public AnalyzeWorkloadMove setTarget(java.lang.String target) { + public RestrictAllowedResources setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), - "Parameter target must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } - this.target = target; + this.name = name; return this; } - /** - * Optional. List of asset types to be analyzed, including and under the source resource. - * If empty, all assets are analyzed. The complete list of asset types is available - * [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - */ - @com.google.api.client.util.Key - private java.util.ListThe typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.Updates.List request = assuredworkloads.updates().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Updates updates() {
+ return new Updates();
+ }
+
+ /**
+ * The "updates" collection of methods.
+ */
+ public class Updates {
/**
- * Optional. Page size. If a value is not specified, the default value of 10 is used. The
- * maximum value is 50.
- */
- @com.google.api.client.util.Key
- private java.lang.Integer pageSize;
-
- /** Optional. Page size. If a value is not specified, the default value of 10 is used. The maximum
- value is 50.
- */
- public java.lang.Integer getPageSize() {
- return pageSize;
- }
-
- /**
- * Optional. Page size. If a value is not specified, the default value of 10 is used. The
- * maximum value is 50.
- */
- public AnalyzeWorkloadMove setPageSize(java.lang.Integer pageSize) {
- this.pageSize = pageSize;
- return this;
- }
-
- /**
- * Optional. The page token from the previous response. It needs to be passed in the
- * second and following requests.
- */
- @com.google.api.client.util.Key
- private java.lang.String pageToken;
-
- /** Optional. The page token from the previous response. It needs to be passed in the second and
- following requests.
- */
- public java.lang.String getPageToken() {
- return pageToken;
- }
-
- /**
- * Optional. The page token from the previous response. It needs to be passed in the
- * second and following requests.
- */
- public AnalyzeWorkloadMove setPageToken(java.lang.String pageToken) {
- this.pageToken = pageToken;
- return this;
- }
-
- /**
- * The source type is a project. Specify the project's relative resource name, formatted
- * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or
- * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project
- * number, or "projects/my-project-123" when specifying a project ID.
- */
- @com.google.api.client.util.Key
- private java.lang.String project;
-
- /** The source type is a project. Specify the project's relative resource name, formatted as either a
- project number or a project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" For example:
- "projects/951040570662" when specifying a project number, or "projects/my-project-123" when
- specifying a project ID.
- */
- public java.lang.String getProject() {
- return project;
- }
-
- /**
- * The source type is a project. Specify the project's relative resource name, formatted
- * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or
- * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project
- * number, or "projects/my-project-123" when specifying a project ID.
- */
- public AnalyzeWorkloadMove setProject(java.lang.String project) {
- this.project = project;
- return this;
- }
-
- @Override
- public AnalyzeWorkloadMove set(String parameterName, Object value) {
- return (AnalyzeWorkloadMove) super.set(parameterName, value);
- }
- }
- /**
- * Creates Assured Workload.
- *
- * Create a request for the method "workloads.create".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The resource name of the new Workload's parent. Must be of the form
- * `organizations/{org_id}/locations/{location_id}`.
- * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends AssuredworkloadsRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleLongrunningOperation.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 Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the new Workload's parent. Must be of the form - `organizations/{org_id}/locations/{location_id}`. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. - */ - public Create 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; - } - - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value provided for the - * identifier will add a label to the workload and contained projects with the identifier - * as the value. - */ - @com.google.api.client.util.Key - private java.lang.String externalId; - - /** Optional. A identifier associated with the workload and underlying projects which allows for the - break down of billing costs for a workload. The value provided for the identifier will add a label - to the workload and contained projects with the identifier as the value. - */ - public java.lang.String getExternalId() { - return externalId; - } - - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value provided for the - * identifier will add a label to the workload and contained projects with the identifier - * as the value. - */ - public Create setExternalId(java.lang.String externalId) { - this.externalId = externalId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes the workload. Make sure that workload's direct children are already in a deleted state, - * otherwise the request will fail with a FAILED_PRECONDITION error. In addition to - * assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set - * permission on the deleted folder to remove Assured Workloads OrgPolicies. - * - * Create a request for the method "workloads.delete". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @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 AssuredworkloadsRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Assuredworkloads.this, "DELETE", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleProtobufEmpty.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. The etag of the workload. If this is provided, it must match the server's - * etag. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** Optional. The etag of the workload. If this is provided, it must match the server's etag. - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Optional. The etag of the workload. If this is provided, it must match the server's - * etag. - */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * This endpoint enables Assured Workloads service to offer compliance updates for the folder based - * assured workload. It sets up an Assured Workloads Service Agent, having permissions to read - * compliance controls (for example: Org Policies) applied on the workload. The caller must have - * `resourcemanager.folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions on - * the assured workload folder. - * - * Create a request for the method "workloads.enableComplianceUpdates". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link EnableComplianceUpdates#execute()} method to invoke the - * remote operation. - * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @return the request - */ - public EnableComplianceUpdates enableComplianceUpdates(java.lang.String name) throws java.io.IOException { - EnableComplianceUpdates result = new EnableComplianceUpdates(name); - initialize(result); - return result; - } - - public class EnableComplianceUpdates extends AssuredworkloadsRequest{@link EnableComplianceUpdates#initialize(com.google.api.client.googleapi - * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.
- * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 - */ - protected EnableComplianceUpdates(java.lang.String name) { - super(Assuredworkloads.this, "PUT", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public EnableComplianceUpdates set$Xgafv(java.lang.String $Xgafv) { - return (EnableComplianceUpdates) super.set$Xgafv($Xgafv); - } - - @Override - public EnableComplianceUpdates setAccessToken(java.lang.String accessToken) { - return (EnableComplianceUpdates) super.setAccessToken(accessToken); - } - - @Override - public EnableComplianceUpdates setAlt(java.lang.String alt) { - return (EnableComplianceUpdates) super.setAlt(alt); - } - - @Override - public EnableComplianceUpdates setCallback(java.lang.String callback) { - return (EnableComplianceUpdates) super.setCallback(callback); - } - - @Override - public EnableComplianceUpdates setFields(java.lang.String fields) { - return (EnableComplianceUpdates) super.setFields(fields); - } - - @Override - public EnableComplianceUpdates setKey(java.lang.String key) { - return (EnableComplianceUpdates) super.setKey(key); - } - - @Override - public EnableComplianceUpdates setOauthToken(java.lang.String oauthToken) { - return (EnableComplianceUpdates) super.setOauthToken(oauthToken); - } - - @Override - public EnableComplianceUpdates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableComplianceUpdates) super.setPrettyPrint(prettyPrint); - } - - @Override - public EnableComplianceUpdates setQuotaUser(java.lang.String quotaUser) { - return (EnableComplianceUpdates) super.setQuotaUser(quotaUser); - } - - @Override - public EnableComplianceUpdates setUploadType(java.lang.String uploadType) { - return (EnableComplianceUpdates) super.setUploadType(uploadType); - } - - @Override - public EnableComplianceUpdates setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableComplianceUpdates) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public EnableComplianceUpdates 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public EnableComplianceUpdates set(String parameterName, Object value) { - return (EnableComplianceUpdates) super.set(parameterName, value); - } - } - /** - * Enable resource violation monitoring for a workload. - * - * Create a request for the method "workloads.enableResourceMonitoring". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the - * remote operation. - * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @return the request - */ - public EnableResourceMonitoring enableResourceMonitoring(java.lang.String name) throws java.io.IOException { - EnableResourceMonitoring result = new EnableResourceMonitoring(name); - initialize(result); - return result; - } - - public class EnableResourceMonitoring extends AssuredworkloadsRequest{@link EnableResourceMonitoring#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 - */ - protected EnableResourceMonitoring(java.lang.String name) { - super(Assuredworkloads.this, "POST", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public EnableResourceMonitoring set$Xgafv(java.lang.String $Xgafv) { - return (EnableResourceMonitoring) super.set$Xgafv($Xgafv); - } - - @Override - public EnableResourceMonitoring setAccessToken(java.lang.String accessToken) { - return (EnableResourceMonitoring) super.setAccessToken(accessToken); - } - - @Override - public EnableResourceMonitoring setAlt(java.lang.String alt) { - return (EnableResourceMonitoring) super.setAlt(alt); - } - - @Override - public EnableResourceMonitoring setCallback(java.lang.String callback) { - return (EnableResourceMonitoring) super.setCallback(callback); - } - - @Override - public EnableResourceMonitoring setFields(java.lang.String fields) { - return (EnableResourceMonitoring) super.setFields(fields); - } - - @Override - public EnableResourceMonitoring setKey(java.lang.String key) { - return (EnableResourceMonitoring) super.setKey(key); - } - - @Override - public EnableResourceMonitoring setOauthToken(java.lang.String oauthToken) { - return (EnableResourceMonitoring) super.setOauthToken(oauthToken); - } - - @Override - public EnableResourceMonitoring setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableResourceMonitoring) super.setPrettyPrint(prettyPrint); - } - - @Override - public EnableResourceMonitoring setQuotaUser(java.lang.String quotaUser) { - return (EnableResourceMonitoring) super.setQuotaUser(quotaUser); - } - - @Override - public EnableResourceMonitoring setUploadType(java.lang.String uploadType) { - return (EnableResourceMonitoring) super.setUploadType(uploadType); - } - - @Override - public EnableResourceMonitoring setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableResourceMonitoring) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public EnableResourceMonitoring 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public EnableResourceMonitoring set(String parameterName, Object value) { - return (EnableResourceMonitoring) super.set(parameterName, value); - } - } - /** - * Gets Assured Workload associated with a CRM Node - * - * Create a request for the method "workloads.get". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name of the Workload to fetch. This is the workloads's relative path in the - * API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @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 AssuredworkloadsRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the Workload to fetch. This is the workloads's relative path in the - * API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The resource name of the Workload to fetch. This is the workloads's relative - * path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the Workload to fetch. This is the workloads's relative path in the - API, formatted as - "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, - "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the Workload to fetch. This is the workloads's relative - * path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists Assured Workloads under a CRM Node. - * - * Create a request for the method "workloads.list". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListWorkloadsResponse.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 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); - } - - /** - * Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Parent Resource to list workloads from. Must be of the form - `organizations/{org_id}/locations/{location}`. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - */ - public List 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; - } - - /** - * Optional. A custom filter for filtering by properties of a workload. At this time, only - * filtering by labels is supported. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A custom filter for filtering by properties of a workload. At this time, only filtering - by labels is supported. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A custom filter for filtering by properties of a workload. At this time, only - * filtering by labels is supported. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** Optional. Page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Optional. Page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following requests. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Page token returned from previous request. Page token contains context from previous - request. Page token needs to be passed in the second and following requests. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following requests. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Update the permissions settings for an existing partner workload. For force updates don't set - * etag field in the Workload. Only one update operation per workload can be in progress. - * - * Create a request for the method "workloads.mutatePartnerPermissions". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link MutatePartnerPermissions#execute()} method to invoke the - * remote operation. - * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest} - * @return the request - */ - public MutatePartnerPermissions mutatePartnerPermissions(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest content) throws java.io.IOException { - MutatePartnerPermissions result = new MutatePartnerPermissions(name, content); - initialize(result); - return result; - } - - public class MutatePartnerPermissions extends AssuredworkloadsRequest{@link MutatePartnerPermissions#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest} - * @since 1.13 - */ - protected MutatePartnerPermissions(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest content) { - super(Assuredworkloads.this, "PATCH", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public MutatePartnerPermissions set$Xgafv(java.lang.String $Xgafv) { - return (MutatePartnerPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public MutatePartnerPermissions setAccessToken(java.lang.String accessToken) { - return (MutatePartnerPermissions) super.setAccessToken(accessToken); - } - - @Override - public MutatePartnerPermissions setAlt(java.lang.String alt) { - return (MutatePartnerPermissions) super.setAlt(alt); - } - - @Override - public MutatePartnerPermissions setCallback(java.lang.String callback) { - return (MutatePartnerPermissions) super.setCallback(callback); - } - - @Override - public MutatePartnerPermissions setFields(java.lang.String fields) { - return (MutatePartnerPermissions) super.setFields(fields); - } - - @Override - public MutatePartnerPermissions setKey(java.lang.String key) { - return (MutatePartnerPermissions) super.setKey(key); - } - - @Override - public MutatePartnerPermissions setOauthToken(java.lang.String oauthToken) { - return (MutatePartnerPermissions) super.setOauthToken(oauthToken); - } - - @Override - public MutatePartnerPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MutatePartnerPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public MutatePartnerPermissions setQuotaUser(java.lang.String quotaUser) { - return (MutatePartnerPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public MutatePartnerPermissions setUploadType(java.lang.String uploadType) { - return (MutatePartnerPermissions) super.setUploadType(uploadType); - } - - @Override - public MutatePartnerPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (MutatePartnerPermissions) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public MutatePartnerPermissions 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public MutatePartnerPermissions set(String parameterName, Object value) { - return (MutatePartnerPermissions) super.set(parameterName, value); - } - } - /** - * Updates an existing workload. Currently allows updating of workload display_name and labels. For - * force updates don't set etag field in the Workload. Only one update operation per workload can be - * in progress. - * - * Create a request for the method "workloads.patch". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends AssuredworkloadsRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) { - super(Assuredworkloads.this, "PATCH", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Optional. The resource name of the workload. Format: - organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - */ - public java.lang.String getName() { - return name; - } - - /** - * Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - */ - public Patch 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - /** Required. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Required. The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Restrict the list of resources allowed in the Workload environment. The current list of allowed - * products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In - * addition to assuredworkloads.workload.update permission, the user should also have - * orgpolicy.policy.set permission on the folder resource to use this functionality. - * - * Create a request for the method "workloads.restrictAllowedResources". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link RestrictAllowedResources#execute()} method to invoke the - * remote operation. - * - * @param name Required. The resource name of the Workload. This is the workloads's relative path in the API, - * formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest} - * @return the request - */ - public RestrictAllowedResources restrictAllowedResources(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest content) throws java.io.IOException { - RestrictAllowedResources result = new RestrictAllowedResources(name, content); - initialize(result); - return result; - } - - public class RestrictAllowedResources extends AssuredworkloadsRequest{@link RestrictAllowedResources#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param name Required. The resource name of the Workload. This is the workloads's relative path in the API, - * formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest} - * @since 1.13 - */ - protected RestrictAllowedResources(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public RestrictAllowedResources set$Xgafv(java.lang.String $Xgafv) { - return (RestrictAllowedResources) super.set$Xgafv($Xgafv); - } - - @Override - public RestrictAllowedResources setAccessToken(java.lang.String accessToken) { - return (RestrictAllowedResources) super.setAccessToken(accessToken); - } - - @Override - public RestrictAllowedResources setAlt(java.lang.String alt) { - return (RestrictAllowedResources) super.setAlt(alt); - } - - @Override - public RestrictAllowedResources setCallback(java.lang.String callback) { - return (RestrictAllowedResources) super.setCallback(callback); - } - - @Override - public RestrictAllowedResources setFields(java.lang.String fields) { - return (RestrictAllowedResources) super.setFields(fields); - } - - @Override - public RestrictAllowedResources setKey(java.lang.String key) { - return (RestrictAllowedResources) super.setKey(key); - } - - @Override - public RestrictAllowedResources setOauthToken(java.lang.String oauthToken) { - return (RestrictAllowedResources) super.setOauthToken(oauthToken); - } - - @Override - public RestrictAllowedResources setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RestrictAllowedResources) super.setPrettyPrint(prettyPrint); - } - - @Override - public RestrictAllowedResources setQuotaUser(java.lang.String quotaUser) { - return (RestrictAllowedResources) super.setQuotaUser(quotaUser); - } - - @Override - public RestrictAllowedResources setUploadType(java.lang.String uploadType) { - return (RestrictAllowedResources) super.setUploadType(uploadType); - } - - @Override - public RestrictAllowedResources setUploadProtocol(java.lang.String uploadProtocol) { - return (RestrictAllowedResources) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the Workload. This is the workloads's relative path in - * the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the Workload. This is the workloads's relative path in the API, - formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the Workload. This is the workloads's relative path in - * the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - public RestrictAllowedResources 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public RestrictAllowedResources set(String parameterName, Object value) { - return (RestrictAllowedResources) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Updates collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Updates.List request = assuredworkloads.updates().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Updates updates() {
- return new Updates();
- }
-
- /**
- * The "updates" collection of methods.
- */
- public class Updates {
-
- /**
- * This endpoint creates a new operation to apply the given update.
- *
- * Create a request for the method "updates.apply".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation.
- *
- * @param name Required. The resource name of the update. Format:
- * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id}
- * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest}
- * @return the request
- */
- public Apply apply(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest content) throws java.io.IOException {
- Apply result = new Apply(name, content);
- initialize(result);
- return result;
- }
-
- public class Apply extends AssuredworkloadsRequest{@link - * Apply#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the update. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest} - * @since 1.13 - */ - protected Apply(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleLongrunningOperation.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); - } - } - - @Override - public Apply set$Xgafv(java.lang.String $Xgafv) { - return (Apply) super.set$Xgafv($Xgafv); - } - - @Override - public Apply setAccessToken(java.lang.String accessToken) { - return (Apply) super.setAccessToken(accessToken); - } - - @Override - public Apply setAlt(java.lang.String alt) { - return (Apply) super.setAlt(alt); - } - - @Override - public Apply setCallback(java.lang.String callback) { - return (Apply) super.setCallback(callback); - } - - @Override - public Apply setFields(java.lang.String fields) { - return (Apply) super.setFields(fields); - } - - @Override - public Apply setKey(java.lang.String key) { - return (Apply) super.setKey(key); - } - - @Override - public Apply setOauthToken(java.lang.String oauthToken) { - return (Apply) super.setOauthToken(oauthToken); - } - - @Override - public Apply setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Apply) super.setPrettyPrint(prettyPrint); - } - - @Override - public Apply setQuotaUser(java.lang.String quotaUser) { - return (Apply) super.setQuotaUser(quotaUser); - } - - @Override - public Apply setUploadType(java.lang.String uploadType) { - return (Apply) super.setUploadType(uploadType); - } - - @Override - public Apply setUploadProtocol(java.lang.String uploadProtocol) { - return (Apply) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ - * location_id}/workloads/{workload_id}/updates/{update_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the update. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ - * location_id}/workloads/{workload_id}/updates/{update_id} - */ - public Apply 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Apply set(String parameterName, Object value) { - return (Apply) super.set(parameterName, value); - } - } - /** - * This endpoint lists all updates for the given workload. - * - * Create a request for the method "updates.list". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse.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 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); - } - - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public List 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; - } - - /** Page size. The default value is 20 and the max allowed value is 100. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Page size. The default value is 20 and the max allowed value is 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Page size. The default value is 20 and the max allowed value is 100. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** Page token returned from previous request. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Page token returned from previous request. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Page token returned from previous request. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, 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 an existing violation. By acknowledging a violation, users acknowledge the existence
- * of a compliance violation in their workload and decide to ignore it due to a valid business
- * justification. Acknowledgement is a permanent operation and it cannot be reverted.
- *
- * Create a request for the method "violations.acknowledge".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote
- * operation.
- *
- * @param name Required. The resource name of the violation to acknowledge. Format:
- * `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violat
- * ion}`
- * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest}
- * @return the request
- */
- public Acknowledge acknowledge(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest content) throws java.io.IOException {
- Acknowledge result = new Acknowledge(name, content);
- initialize(result);
- return result;
- }
-
- public class Acknowledge extends AssuredworkloadsRequest{@link - * Acknowledge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the violation to acknowledge. Format: - * `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violat - * ion}` - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest} - * @since 1.13 - */ - protected Acknowledge(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); - } - } - - @Override - public Acknowledge set$Xgafv(java.lang.String $Xgafv) { - return (Acknowledge) super.set$Xgafv($Xgafv); - } - - @Override - public Acknowledge setAccessToken(java.lang.String accessToken) { - return (Acknowledge) super.setAccessToken(accessToken); - } - - @Override - public Acknowledge setAlt(java.lang.String alt) { - return (Acknowledge) super.setAlt(alt); - } - - @Override - public Acknowledge setCallback(java.lang.String callback) { - return (Acknowledge) super.setCallback(callback); - } - - @Override - public Acknowledge setFields(java.lang.String fields) { - return (Acknowledge) super.setFields(fields); - } - - @Override - public Acknowledge setKey(java.lang.String key) { - return (Acknowledge) super.setKey(key); - } - - @Override - public Acknowledge setOauthToken(java.lang.String oauthToken) { - return (Acknowledge) super.setOauthToken(oauthToken); - } - - @Override - public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Acknowledge) super.setPrettyPrint(prettyPrint); - } - - @Override - public Acknowledge setQuotaUser(java.lang.String quotaUser) { - return (Acknowledge) super.setQuotaUser(quotaUser); - } - - @Override - public Acknowledge setUploadType(java.lang.String uploadType) { - return (Acknowledge) super.setUploadType(uploadType); - } - - @Override - public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { - return (Acknowledge) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the violation to acknowledge. Format: `organizations/{ - * organization}/locations/{location}/workloads/{workload}/violations/{violation}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the violation to acknowledge. Format: - `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the violation to acknowledge. Format: `organizations/{ - * organization}/locations/{location}/workloads/{workload}/violations/{violation}` - */ - public Acknowledge 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Acknowledge set(String parameterName, Object value) { - return (Acknowledge) super.set(parameterName, value); - } - } - /** - * Retrieves an Assured Workloads violation by its resource name. + * This endpoint creates a new operation to apply the given update. * - * Create a request for the method "violations.get". + * Create a request for the method "updates.apply". * * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation. * - * @param name Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). - * Format: `organizations/{organization}/locations/{location}/workloads/{workload}/violations - * /{violation}` + * @param name Required. The resource name of the update. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Apply apply(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest content) throws java.io.IOException { + Apply result = new Apply(name, content); initialize(result); return result; } - public class Get extends AssuredworkloadsRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). - * Format: `organizations/{organization}/locations/{location}/workloads/{workload}/violations - * /{violation}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Violation.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The resource name of the violation to retrieve (that is, the value of - * `Violation.name`). Format: `organizations/{organization}/locations/{location}/workloa - * ds/{workload}/violations/{violation}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). - Format: - `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the violation to retrieve (that is, the value of - * `Violation.name`). Format: `organizations/{organization}/locations/{location}/workloa - * ds/{workload}/violations/{violation}` - */ - 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or - * `VIOLATION_VIEW_DATA_BOUNDARY`) that the violation belongs to. If not specified, - * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. - */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or `VIOLATION_VIEW_DATA_BOUNDARY`) - that the violation belongs to. If not specified, `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. - */ - public java.lang.String getView() { - return view; - } - - /** - * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or - * `VIOLATION_VIEW_DATA_BOUNDARY`) that the violation belongs to. If not specified, - * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. - */ - public Get setView(java.lang.String view) { - this.view = view; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across - * multiple Workloads as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash - * character) as a wildcard character instead of workload-id in the parent. Format - * `organizations/{org_id}/locations/{location}/workloads/-` - * - * Create a request for the method "violations.list". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The workload to list violations for. To list violations across all workloads in an - * organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, - * violations are listed for the entire organization and location, and the workload ID is - * ignored. Format: `organizations/{organization}/locations/{location}/workloads/{workload}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation. + *{@link + * Apply#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The workload to list violations for. To list violations across all workloads in an - * organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, - * violations are listed for the entire organization and location, and the workload ID is - * ignored. Format: `organizations/{organization}/locations/{location}/workloads/{workload}` + * @param name Required. The resource name of the update. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Apply(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleLongrunningOperation.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); } } @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); + public Apply set$Xgafv(java.lang.String $Xgafv) { + return (Apply) super.set$Xgafv($Xgafv); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Apply setAccessToken(java.lang.String accessToken) { + return (Apply) super.setAccessToken(accessToken); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Apply setAlt(java.lang.String alt) { + return (Apply) super.setAlt(alt); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Apply setCallback(java.lang.String callback) { + return (Apply) super.setCallback(callback); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Apply setFields(java.lang.String fields) { + return (Apply) super.setFields(fields); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Apply setKey(java.lang.String key) { + return (Apply) super.setKey(key); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The workload to list violations for. To list violations across all - * workloads in an organization, use `-` as the workload ID. When `view` is - * `VIOLATION_VIEW_DATA_BOUNDARY`, violations are listed for the entire organization and - * location, and the workload ID is ignored. Format: - * `organizations/{organization}/locations/{location}/workloads/{workload}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The workload to list violations for. To list violations across all workloads in an - organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, violations - are listed for the entire organization and location, and the workload ID is ignored. Format: - `organizations/{organization}/locations/{location}/workloads/{workload}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The workload to list violations for. To list violations across all - * workloads in an organization, use `-` as the workload ID. When `view` is - * `VIOLATION_VIEW_DATA_BOUNDARY`, violations are listed for the entire organization and - * location, and the workload ID is ignored. Format: - * `organizations/{organization}/locations/{location}/workloads/{workload}` - */ - public List 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; - } - - /** - * Optional. A filter expression that restricts the violations that are returned. The - * syntax follows [AIP-160](https://google.aip.dev/160). Only the equality operator - * (`=`) is supported, and expressions can be combined with `AND`, `OR`, and `NOT`. When - * `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: - * `violationId`, `category`, `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), - * `violationType` (`ORG_POLICY` or `RESOURCE`), `resourceType`, `resourceName`, - * `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, - * `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = - * "UNRESOLVED" AND complianceType = "builtin-fedramp-high"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the violations that are returned. The syntax follows - [AIP-160](https://google.aip.dev/160). Only the equality operator (`=`) is supported, and - expressions can be combined with `AND`, `OR`, and `NOT`. When `view` is - `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `violationId`, `category`, - `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), `violationType` (`ORG_POLICY` or `RESOURCE`), - `resourceType`, `resourceName`, `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, - `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = "UNRESOLVED" AND - complianceType = "builtin-fedramp-high"` - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the violations that are returned. The - * syntax follows [AIP-160](https://google.aip.dev/160). Only the equality operator - * (`=`) is supported, and expressions can be combined with `AND`, `OR`, and `NOT`. When - * `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: - * `violationId`, `category`, `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), - * `violationType` (`ORG_POLICY` or `RESOURCE`), `resourceType`, `resourceName`, - * `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, - * `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = - * "UNRESOLVED" AND complianceType = "builtin-fedramp-high"` - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The end of the time window. */ - @com.google.api.client.util.Key("interval.endTime") - private String intervalEndTime; - - /** The end of the time window. - */ - public String getIntervalEndTime() { - return intervalEndTime; - } - - /** The end of the time window. */ - public List setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; - return this; - } - - /** The start of the time window. */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; - - /** The start of the time window. - */ - public String getIntervalStartTime() { - return intervalStartTime; - } - - /** The start of the time window. */ - public List setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; - return this; - } - - /** - * Optional. A comma-separated list of fields to sort the results by. The default sort - * order is ascending; to sort in descending order, append ` desc` to the field name. - * For example, `update_time desc,category`. When `view` is - * `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `begin_time`, - * `update_time`, `resource_type`, `state`, and `category`. If not specified, results - * are sorted by `begin_time` in descending order. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. A comma-separated list of fields to sort the results by. The default sort order is - ascending; to sort in descending order, append ` desc` to the field name. For example, `update_time - desc,category`. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: - `begin_time`, `update_time`, `resource_type`, `state`, and `category`. If not specified, results - are sorted by `begin_time` in descending order. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. A comma-separated list of fields to sort the results by. The default sort - * order is ascending; to sort in descending order, append ` desc` to the field name. - * For example, `update_time desc,category`. When `view` is - * `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `begin_time`, - * `update_time`, `resource_type`, `state`, and `category`. If not specified, results - * are sorted by `begin_time` in descending order. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. The maximum number of violations to return. The service might return fewer - * violations than this value. If unspecified, at most 100 violations are returned. The - * maximum value is 1000; values above 1000 are coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of violations to return. The service might return fewer violations - than this value. If unspecified, at most 100 violations are returned. The maximum value is 1000; - values above 1000 are coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The maximum number of violations to return. The service might return fewer - * violations than this value. If unspecified, at most 100 violations are returned. The - * maximum value is 1000; values above 1000 are coerced to 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + public Apply setOauthToken(java.lang.String oauthToken) { + return (Apply) super.setOauthToken(oauthToken); } - /** - * Optional. A page token, received from a previous `ListViolations` call. Provide this - * token to retrieve the subsequent page. When paginating, all other parameters that are - * provided to `ListViolations` must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Apply setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Apply) super.setPrettyPrint(prettyPrint); + } - /** Optional. A page token, received from a previous `ListViolations` call. Provide this token to - retrieve the subsequent page. When paginating, all other parameters that are provided to - `ListViolations` must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Apply setQuotaUser(java.lang.String quotaUser) { + return (Apply) super.setQuotaUser(quotaUser); } - /** - * Optional. A page token, received from a previous `ListViolations` call. Provide this - * token to retrieve the subsequent page. When paginating, all other parameters that are - * provided to `ListViolations` must match the call that provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Apply setUploadType(java.lang.String uploadType) { + return (Apply) super.setUploadType(uploadType); + } + + @Override + public Apply setUploadProtocol(java.lang.String uploadProtocol) { + return (Apply) super.setUploadProtocol(uploadProtocol); } /** - * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or - * `VIOLATION_VIEW_DATA_BOUNDARY`) to list violations for. If not specified, - * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ + * location_id}/workloads/{workload_id}/updates/{update_id} */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String name; - /** Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or `VIOLATION_VIEW_DATA_BOUNDARY`) - to list violations for. If not specified, `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + /** Required. The resource name of the update. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} */ - public java.lang.String getView() { - return view; + public java.lang.String getName() { + return name; } /** - * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or - * `VIOLATION_VIEW_DATA_BOUNDARY`) to list violations for. If not specified, - * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ + * location_id}/workloads/{workload_id}/updates/{update_id} */ - public List setView(java.lang.String view) { - this.view = view; + public Apply 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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); + } + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Apply set(String parameterName, Object value) { + return (Apply) super.set(parameterName, value); } } - - } - } - } - } - - /** - * An accessor for creating requests from the Projects collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Projects.List request = assuredworkloads.projects().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Projects projects() {
- return new Projects();
- }
-
- /**
- * The "projects" collection of methods.
- */
- public class Projects {
-
- /**
- * An accessor for creating requests from the Locations collection.
- *
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Locations.List request = assuredworkloads.locations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Locations locations() {
- return new Locations();
- }
-
- /**
- * The "locations" collection of methods.
- */
- public class Locations {
-
- /**
- * An accessor for creating requests from the DbFindingSummaries collection.
- *
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFindingSummaries dbFindingSummaries() {
- return new DbFindingSummaries();
- }
-
- /**
- * The "dbFindingSummaries" collection of methods.
- */
- public class DbFindingSummaries {
-
- /**
- * Lists summaries of the active findings in a Data Boundary scope (an organization, folder, or
- * project), with one summary for each finding category.
- *
- * Create a request for the method "dbFindingSummaries.list".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The parent scope to list finding summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
- * @return the request
- */
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
- }
-
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - * @since 1.13 + * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * @return the request */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbFindingSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class List extends AssuredworkloadsRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse.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 List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Required. The parent scope to list finding summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - this.parent = parent; - return this; - } - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** Optional. A filter expression that restricts the framework deployments whose findings are - summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + */ + public java.lang.String getParent() { + return parent; + } - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ + public List 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; + } - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Page size. The default value is 20 and the max allowed value is 100. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Page size. The default value is 20 and the max allowed value is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** Page size. The default value is 20 and the max allowed value is 100. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Page token returned from previous request. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** Page token returned from previous request. + */ + public java.lang.String getPageToken() { + return pageToken; + } - } - /** - * An accessor for creating requests from the DbFrameworkComplianceReports collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceReports.List request = assuredworkloads.dbFrameworkComplianceReports().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceReports dbFrameworkComplianceReports() {
- return new DbFrameworkComplianceReports();
- }
+ /** Page token returned from previous request. */
+ public List setPageToken(java.lang.String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
- /**
- * The "dbFrameworkComplianceReports" collection of methods.
- */
- public class DbFrameworkComplianceReports {
+ @Override
+ public List set(String parameterName, Object value) {
+ return (List) super.set(parameterName, value);
+ }
+ }
+ }
/**
- * Gets daily compliance reports over a time range for a framework that's deployed in a Data
- * Boundary scope.
- *
- * Create a request for the method "dbFrameworkComplianceReports.aggregate".
+ * An accessor for creating requests from the Violations collection.
*
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Aggregate#execute()} method to invoke the remote operation.
+ * The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.Violations.List request = assuredworkloads.violations().list(parameters ...)}
+ *
*
- * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the
- * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations
- * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
- * nce_report}`
- * @return the request
+ * @return the resource collection
*/
- public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
- Aggregate result = new Aggregate(name);
- initialize(result);
- return result;
+ public Violations violations() {
+ return new Violations();
}
- public class Aggregate extends AssuredworkloadsRequest{@link - * Aggregate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote + * operation. * - * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations - * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia - * nce_report}` - * @since 1.13 + * @param name Required. The resource name of the violation to acknowledge. Format: + * `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violat + * ion}` + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest} + * @return the request */ - protected Aggregate(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse.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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - } - - @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 Aggregate set$Xgafv(java.lang.String $Xgafv) { - return (Aggregate) super.set$Xgafv($Xgafv); - } - - @Override - public Aggregate setAccessToken(java.lang.String accessToken) { - return (Aggregate) super.setAccessToken(accessToken); - } - - @Override - public Aggregate setAlt(java.lang.String alt) { - return (Aggregate) super.setAlt(alt); - } - - @Override - public Aggregate setCallback(java.lang.String callback) { - return (Aggregate) super.setCallback(callback); - } - - @Override - public Aggregate setFields(java.lang.String fields) { - return (Aggregate) super.setFields(fields); + public Acknowledge acknowledge(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest content) throws java.io.IOException { + Acknowledge result = new Acknowledge(name, content); + initialize(result); + return result; } - @Override - public Aggregate setKey(java.lang.String key) { - return (Aggregate) super.setKey(key); - } + public class Acknowledge extends AssuredworkloadsRequest{@link + * Acknowledge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the violation to acknowledge. Format: + * `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violat + * ion}` + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest} + * @since 1.13 + */ + protected Acknowledge(java.lang.String name, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse.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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + } + } - @Override - public Aggregate setUploadType(java.lang.String uploadType) { - return (Aggregate) super.setUploadType(uploadType); - } + @Override + public Acknowledge set$Xgafv(java.lang.String $Xgafv) { + return (Acknowledge) super.set$Xgafv($Xgafv); + } - @Override - public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { - return (Aggregate) super.setUploadProtocol(uploadProtocol); - } + @Override + public Acknowledge setAccessToken(java.lang.String accessToken) { + return (Acknowledge) super.setAccessToken(accessToken); + } - /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Acknowledge setAlt(java.lang.String alt) { + return (Acknowledge) super.setAlt(alt); + } - /** Required. The name of the framework compliance report to aggregate over time. The report ID is the - ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations/{organiz - ation_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Acknowledge setCallback(java.lang.String callback) { + return (Acknowledge) super.setCallback(callback); + } - /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` - */ - public Aggregate 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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + @Override + public Acknowledge setFields(java.lang.String fields) { + return (Acknowledge) super.setFields(fields); } - this.name = name; - return this; - } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Acknowledge setKey(java.lang.String key) { + return (Acknowledge) super.setKey(key); + } - /** Optional. A filter expression that restricts the framework deployments that are included in the - report. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Acknowledge setOauthToken(java.lang.String oauthToken) { + return (Acknowledge) super.setOauthToken(oauthToken); + } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - public Aggregate setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Acknowledge) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - @com.google.api.client.util.Key("interval.endTime") - private String intervalEndTime; + @Override + public Acknowledge setQuotaUser(java.lang.String quotaUser) { + return (Acknowledge) super.setQuotaUser(quotaUser); + } - /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have - to be before the end. - */ - public String getIntervalEndTime() { - return intervalEndTime; - } + @Override + public Acknowledge setUploadType(java.lang.String uploadType) { + return (Acknowledge) super.setUploadType(uploadType); + } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - public Aggregate setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; - return this; - } + @Override + public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { + return (Acknowledge) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; + /** + * Required. The resource name of the violation to acknowledge. Format: `organizations/{ + * organization}/locations/{location}/workloads/{workload}/violations/{violation}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will - have to be the same or after the start. - */ - public String getIntervalStartTime() { - return intervalStartTime; - } + /** Required. The resource name of the violation to acknowledge. Format: + `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}` + */ + public java.lang.String getName() { + return name; + } - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - public Aggregate setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; - return this; - } + /** + * Required. The resource name of the violation to acknowledge. Format: `organizations/{ + * organization}/locations/{location}/workloads/{workload}/violations/{violation}` + */ + public Acknowledge 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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Aggregate set(String parameterName, Object value) { - return (Aggregate) super.set(parameterName, value); + @Override + public Acknowledge set(String parameterName, Object value) { + return (Acknowledge) super.set(parameterName, value); + } } - } - /** - * Fetches the current compliance report for a framework that's deployed in a Data Boundary scope - * (an organization, folder, or project). The report includes the number of passing, failing, and - * not assessed controls in the framework. - * - * Create a request for the method "dbFrameworkComplianceReports.fetch". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` - * @return the request - */ - public Fetch fetch(java.lang.String name) throws java.io.IOException { - Fetch result = new Fetch(name); - initialize(result); - return result; - } - - public class Fetch extends AssuredworkloadsRequest{@link - * Fetch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` - * @since 1.13 + * @param name Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). + * Format: `organizations/{organization}/locations/{location}/workloads/{workload}/violations + * /{violation}` + * @return the request */ - protected Fetch(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse.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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - } - - @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(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Fetch set$Xgafv(java.lang.String $Xgafv) { - return (Fetch) super.set$Xgafv($Xgafv); - } + public class Get extends AssuredworkloadsRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). + * Format: `organizations/{organization}/locations/{location}/workloads/{workload}/violations + * /{violation}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Violation.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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + } + } - @Override - public Fetch setFields(java.lang.String fields) { - return (Fetch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Fetch setKey(java.lang.String key) { - return (Fetch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Fetch setOauthToken(java.lang.String oauthToken) { - return (Fetch) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Fetch) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Fetch setQuotaUser(java.lang.String quotaUser) { - return (Fetch) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Fetch setUploadType(java.lang.String uploadType) { - return (Fetch) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Fetch setUploadProtocol(java.lang.String uploadProtocol) { - return (Fetch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organization}/ - locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `folders/{fol - der}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `project - s/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` - */ - public Fetch 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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. - */ - @com.google.api.client.util.Key - private String endTime; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Optional. The end time of the report. Reserved for future use. Currently, the report always - reflects the current compliance state. - */ - public String getEndTime() { - return endTime; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. - */ - public Fetch setEndTime(String endTime) { - this.endTime = endTime; - return this; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** + * Required. The resource name of the violation to retrieve (that is, the value of + * `Violation.name`). Format: `organizations/{organization}/locations/{location}/workloa + * ds/{workload}/violations/{violation}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Optional. A filter expression that restricts the results. Reserved for future use. - */ - public java.lang.String getFilter() { - return filter; - } + /** Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). + Format: + `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}` + */ + public java.lang.String getName() { + return name; + } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - public Fetch setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Required. The resource name of the violation to retrieve (that is, the value of + * `Violation.name`). Format: `organizations/{organization}/locations/{location}/workloa + * ds/{workload}/violations/{violation}` + */ + 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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Fetch set(String parameterName, Object value) { - return (Fetch) super.set(parameterName, value); - } - } + /** + * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or + * `VIOLATION_VIEW_DATA_BOUNDARY`) that the violation belongs to. If not specified, + * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + */ + @com.google.api.client.util.Key + private java.lang.String view; - /** - * An accessor for creating requests from the DbControlComplianceSummaries collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbControlComplianceSummaries dbControlComplianceSummaries() {
- return new DbControlComplianceSummaries();
- }
+ /** Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or `VIOLATION_VIEW_DATA_BOUNDARY`)
+ that the violation belongs to. If not specified, `VIOLATION_VIEW_ASSURED_WORKLOADS` is used.
+ */
+ public java.lang.String getView() {
+ return view;
+ }
- /**
- * The "dbControlComplianceSummaries" collection of methods.
- */
- public class DbControlComplianceSummaries {
+ /**
+ * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or
+ * `VIOLATION_VIEW_DATA_BOUNDARY`) that the violation belongs to. If not specified,
+ * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used.
+ */
+ public Get setView(java.lang.String view) {
+ this.view = view;
+ return this;
+ }
+ @Override
+ public Get set(String parameterName, Object value) {
+ return (Get) super.set(parameterName, value);
+ }
+ }
/**
- * Lists the compliance summaries of the controls in a framework compliance report.
+ * Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across
+ * multiple Workloads as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
+ * character) as a wildcard character instead of workload-id in the parent. Format
+ * `organizations/{org_id}/locations/{location}/workloads/-`
*
- * Create a request for the method "dbControlComplianceSummaries.list".
+ * Create a request for the method "violations.list".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
- * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga
- * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c
- * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{
- * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom
- * plianceReports/{db_framework_compliance_report}`
+ * @param parent Required. The workload to list violations for. To list violations across all workloads in an
+ * organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`,
+ * violations are listed for the entire organization and location, and the workload ID is
+ * ignored. Format: `organizations/{organization}/locations/{location}/workloads/{workload}`
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
@@ -6653,37 +2989,39 @@ public List list(java.lang.String parent) throws java.io.IOException {
return result;
}
- public class List extends AssuredworkloadsRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga - * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom - * plianceReports/{db_framework_compliance_report}` + * @param parent Required. The workload to list violations for. To list violations across all workloads in an + * organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, + * violations are listed for the entire organization and location, and the workload ID is + * ignored. Format: `organizations/{organization}/locations/{location}/workloads/{workload}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.class); + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListViolationsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @@ -6753,96 +3091,170 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + * Required. The workload to list violations for. To list violations across all + * workloads in an organization, use `-` as the workload ID. When `view` is + * `VIOLATION_VIEW_DATA_BOUNDARY`, violations are listed for the entire organization and + * location, and the workload ID is ignored. Format: + * `organizations/{organization}/locations/{location}/workloads/{workload}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The framework compliance report to list control compliance summaries for. Formats: * `org - anizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc - e_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_comp - liance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framewo - rk_compliance_report}` + /** Required. The workload to list violations for. To list violations across all workloads in an + organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, violations + are listed for the entire organization and location, and the workload ID is ignored. Format: + `organizations/{organization}/locations/{location}/workloads/{workload}` */ public java.lang.String getParent() { return parent; } /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + * Required. The workload to list violations for. To list violations across all + * workloads in an organization, use `-` as the workload ID. When `view` is + * `VIOLATION_VIEW_DATA_BOUNDARY`, violations are listed for the entire organization and + * location, and the workload ID is ignored. Format: + * `organizations/{organization}/locations/{location}/workloads/{workload}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.parent = parent; return this; } /** - * Optional. A filter expression that restricts the results. The syntax follows - * [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - * `framework_name`, `framework_revision` (the major revision ID of the framework), and - * `end_time`. The `end_time` field accepts a single equality comparison with an [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - * "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are - * counted. + * Optional. A filter expression that restricts the violations that are returned. The + * syntax follows [AIP-160](https://google.aip.dev/160). Only the equality operator + * (`=`) is supported, and expressions can be combined with `AND`, `OR`, and `NOT`. When + * `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: + * `violationId`, `category`, `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), + * `violationType` (`ORG_POLICY` or `RESOURCE`), `resourceType`, `resourceName`, + * `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, + * `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = + * "UNRESOLVED" AND complianceType = "builtin-fedramp-high"` */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A filter expression that restricts the results. The syntax follows - [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - `framework_name`, `framework_revision` (the major revision ID of the framework), and `end_time`. - The `end_time` field accepts a single equality comparison with an [RFC - 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are counted. + /** Optional. A filter expression that restricts the violations that are returned. The syntax follows + [AIP-160](https://google.aip.dev/160). Only the equality operator (`=`) is supported, and + expressions can be combined with `AND`, `OR`, and `NOT`. When `view` is + `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `violationId`, `category`, + `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), `violationType` (`ORG_POLICY` or `RESOURCE`), + `resourceType`, `resourceName`, `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, + `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = "UNRESOLVED" AND + complianceType = "builtin-fedramp-high"` */ public java.lang.String getFilter() { return filter; } /** - * Optional. A filter expression that restricts the results. The syntax follows - * [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - * `framework_name`, `framework_revision` (the major revision ID of the framework), and - * `end_time`. The `end_time` field accepts a single equality comparison with an [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - * "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are - * counted. + * Optional. A filter expression that restricts the violations that are returned. The + * syntax follows [AIP-160](https://google.aip.dev/160). Only the equality operator + * (`=`) is supported, and expressions can be combined with `AND`, `OR`, and `NOT`. When + * `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: + * `violationId`, `category`, `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), + * `violationType` (`ORG_POLICY` or `RESOURCE`), `resourceType`, `resourceName`, + * `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, + * `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = + * "UNRESOLVED" AND complianceType = "builtin-fedramp-high"` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The end of the time window. */ + @com.google.api.client.util.Key("interval.endTime") + private String intervalEndTime; + + /** The end of the time window. + */ + public String getIntervalEndTime() { + return intervalEndTime; + } + + /** The end of the time window. */ + public List setIntervalEndTime(String intervalEndTime) { + this.intervalEndTime = intervalEndTime; + return this; + } + + /** The start of the time window. */ + @com.google.api.client.util.Key("interval.startTime") + private String intervalStartTime; + + /** The start of the time window. + */ + public String getIntervalStartTime() { + return intervalStartTime; + } + + /** The start of the time window. */ + public List setIntervalStartTime(String intervalStartTime) { + this.intervalStartTime = intervalStartTime; + return this; + } + + /** + * Optional. A comma-separated list of fields to sort the results by. The default sort + * order is ascending; to sort in descending order, append ` desc` to the field name. + * For example, `update_time desc,category`. When `view` is + * `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `begin_time`, + * `update_time`, `resource_type`, `state`, and `category`. If not specified, results + * are sorted by `begin_time` in descending order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. A comma-separated list of fields to sort the results by. The default sort order is + ascending; to sort in descending order, append ` desc` to the field name. For example, `update_time + desc,category`. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: + `begin_time`, `update_time`, `resource_type`, `state`, and `category`. If not specified, results + are sorted by `begin_time` in descending order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. A comma-separated list of fields to sort the results by. The default sort + * order is ascending; to sort in descending order, append ` desc` to the field name. + * For example, `update_time desc,category`. When `view` is + * `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `begin_time`, + * `update_time`, `resource_type`, `state`, and `category`. If not specified, results + * are sorted by `begin_time` in descending order. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the default page size is 50. The maximum value is 1000. + * Optional. The maximum number of violations to return. The service might return fewer + * violations than this value. If unspecified, at most 100 violations are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. + /** Optional. The maximum number of violations to return. The service might return fewer violations + than this value. If unspecified, at most 100 violations are returned. The maximum value is 1000; + values above 1000 are coerced to 1000. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the default page size is 50. The maximum value is 1000. + * Optional. The maximum number of violations to return. The service might return fewer + * violations than this value. If unspecified, at most 100 violations are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -6850,296 +3262,63 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. A page token, received from a previous `ListViolations` call. Provide this + * token to retrieve the subsequent page. When paginating, all other parameters that are + * provided to `ListViolations` must match the call that provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. + /** Optional. A page token, received from a previous `ListViolations` call. Provide this token to + retrieve the subsequent page. When paginating, all other parameters that are provided to + `ListViolations` must match the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. A page token, received from a previous `ListViolations` call. Provide this + * token to retrieve the subsequent page. When paginating, all other parameters that are + * provided to `ListViolations` must match the call that provided the page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the DbFrameworkComplianceSummaries collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceSummaries.List request = assuredworkloads.dbFrameworkComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceSummaries dbFrameworkComplianceSummaries() {
- return new DbFrameworkComplianceSummaries();
- }
-
- /**
- * The "dbFrameworkComplianceSummaries" collection of methods.
- */
- public class DbFrameworkComplianceSummaries {
-
- /**
- * Lists the compliance summaries of the frameworks that are deployed in a Data Boundary scope (an
- * organization, folder, or project).
- *
- * Create a request for the method "dbFrameworkComplianceSummaries.list".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The parent scope to list framework compliance summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
- * @return the request
- */
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
- }
-
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or `VIOLATION_VIEW_DATA_BOUNDARY`) + to list violations for. If not specified, `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + */ + public java.lang.String getView() { + return view; } - } - - @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); - } - - /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent scope to list framework compliance summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** + * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or + * `VIOLATION_VIEW_DATA_BOUNDARY`) to list violations for. If not specified, + * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + */ + public List setView(java.lang.String view) { + this.view = view; + return this; } - this.parent = parent; - return this; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the results. Reserved for future use. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** Optional. The level of detail to return for each summary. If not specified, - `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - public java.lang.String getView() { - return view; - } - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - public List setView(java.lang.String view) { - this.view = view; - return this; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } } - } } } diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/AssuredworkloadsScopes.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/AssuredworkloadsScopes.java index c5c2b4e88c9..358027b3397 100644 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/AssuredworkloadsScopes.java +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/AssuredworkloadsScopes.java @@ -23,6 +23,12 @@ */ public class AssuredworkloadsScopes { + /** See, edit, configure, and delete your Google Cloud Assured Workloads data and see the email address for your Google Account. */ + public static final String ASSUREDWORKLOADS = "https://www.googleapis.com/auth/assuredworkloads"; + + /** See your Google Cloud Assured Workloads data and the email address of your Google Account. */ + public static final String ASSUREDWORKLOADS_READONLY = "https://www.googleapis.com/auth/assuredworkloads.readonly"; + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; @@ -33,6 +39,8 @@ public class AssuredworkloadsScopes { */ public static java.util.SetThis 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 GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse extends com.google.api.client.json.GenericJson { - - /** - * The daily compliance reports for the requested time range. - * 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 GoogleCloudAssuredworkloadsV1AggregatedComplianceReport extends com.google.api.client.json.GenericJson { - - /** - * The number of passing, failing, and not assessed controls in the framework at `report_time`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails; - - /** - * The time that the compliance report represents. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String reportTime; - - /** - * The number of passing, failing, and not assessed controls in the framework at `report_time`. - * @return value or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails getControlAssessmentDetails() { - return controlAssessmentDetails; - } - - /** - * The number of passing, failing, and not assessed controls in the framework at `report_time`. - * @param controlAssessmentDetails controlAssessmentDetails or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1AggregatedComplianceReport setControlAssessmentDetails(GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails) { - this.controlAssessmentDetails = controlAssessmentDetails; - return this; - } - - /** - * The time that the compliance report represents. - * @return value or {@code null} for none - */ - public String getReportTime() { - return reportTime; - } - - /** - * The time that the compliance report represents. - * @param reportTime reportTime or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1AggregatedComplianceReport setReportTime(String reportTime) { - this.reportTime = reportTime; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1AggregatedComplianceReport set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1AggregatedComplianceReport) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1AggregatedComplianceReport clone() { - return (GoogleCloudAssuredworkloadsV1AggregatedComplianceReport) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CELExpression.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CELExpression.java deleted file mode 100644 index 71e2736ba3e..00000000000 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CELExpression.java +++ /dev/null @@ -1,100 +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; - -/** - * A Common Expression Language (CEL) expression that's used to create a rule. - * - *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 GoogleCloudAssuredworkloadsV1CELExpression extends com.google.api.client.json.GenericJson { - - /** - * Required. The logical expression in CEL. The maximum length of the condition is 1000 - * characters. For more information, see [CEL expression](https://cloud.google.com/security- - * command-center/docs/compliance-manager-write-cel-expressions). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String expression; - - /** - * The resource instance types on which this expression is defined. The format is `/`. For - * example: `compute.googleapis.com/Instance` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1StringList resourceTypesValues; - - /** - * Required. The logical expression in CEL. The maximum length of the condition is 1000 - * characters. For more information, see [CEL expression](https://cloud.google.com/security- - * command-center/docs/compliance-manager-write-cel-expressions). - * @return value or {@code null} for none - */ - public java.lang.String getExpression() { - return expression; - } - - /** - * Required. The logical expression in CEL. The maximum length of the condition is 1000 - * characters. For more information, see [CEL expression](https://cloud.google.com/security- - * command-center/docs/compliance-manager-write-cel-expressions). - * @param expression expression or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1CELExpression setExpression(java.lang.String expression) { - this.expression = expression; - return this; - } - - /** - * The resource instance types on which this expression is defined. The format is `/`. For - * example: `compute.googleapis.com/Instance` - * @return value or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1StringList getResourceTypesValues() { - return resourceTypesValues; - } - - /** - * The resource instance types on which this expression is defined. The format is `/`. For - * example: `compute.googleapis.com/Instance` - * @param resourceTypesValues resourceTypesValues or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1CELExpression setResourceTypesValues(GoogleCloudAssuredworkloadsV1StringList resourceTypesValues) { - this.resourceTypesValues = resourceTypesValues; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1CELExpression set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1CELExpression) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1CELExpression clone() { - return (GoogleCloudAssuredworkloadsV1CELExpression) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails.java deleted file mode 100644 index f86b48f531a..00000000000 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails.java +++ /dev/null @@ -1,139 +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; - -/** - * The cloud control assessment details for non-manual cloud controls. - * - *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 GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails extends com.google.api.client.json.GenericJson { - - /** - * Output only. The evaluation status of the cloud control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String evaluationState; - - /** - * The number of findings for the cloud control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer findingsCount; - - /** - * Output only. Number of organization policy findings for the cloud control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long orgPolicyFindingCount; - - /** - * Output only. Number of resource findings for the cloud control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long resourceFindingCount; - - /** - * Output only. The evaluation status of the cloud control. - * @return value or {@code null} for none - */ - public java.lang.String getEvaluationState() { - return evaluationState; - } - - /** - * Output only. The evaluation status of the cloud control. - * @param evaluationState evaluationState or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails setEvaluationState(java.lang.String evaluationState) { - this.evaluationState = evaluationState; - return this; - } - - /** - * The number of findings for the cloud control. - * @return value or {@code null} for none - */ - public java.lang.Integer getFindingsCount() { - return findingsCount; - } - - /** - * The number of findings for the cloud control. - * @param findingsCount findingsCount or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails setFindingsCount(java.lang.Integer findingsCount) { - this.findingsCount = findingsCount; - return this; - } - - /** - * Output only. Number of organization policy findings for the cloud control. - * @return value or {@code null} for none - */ - public java.lang.Long getOrgPolicyFindingCount() { - return orgPolicyFindingCount; - } - - /** - * Output only. Number of organization policy findings for the cloud control. - * @param orgPolicyFindingCount orgPolicyFindingCount or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails setOrgPolicyFindingCount(java.lang.Long orgPolicyFindingCount) { - this.orgPolicyFindingCount = orgPolicyFindingCount; - return this; - } - - /** - * Output only. Number of resource findings for the cloud control. - * @return value or {@code null} for none - */ - public java.lang.Long getResourceFindingCount() { - return resourceFindingCount; - } - - /** - * Output only. Number of resource findings for the cloud control. - * @param resourceFindingCount resourceFindingCount or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails setResourceFindingCount(java.lang.Long resourceFindingCount) { - this.resourceFindingCount = resourceFindingCount; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails clone() { - return (GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlReport.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlReport.java deleted file mode 100644 index 3d3f1d0d495..00000000000 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlReport.java +++ /dev/null @@ -1,427 +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; - -/** - * The cloud control report. - * - *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 GoogleCloudAssuredworkloadsV1CloudControlReport extends com.google.api.client.json.GenericJson { - - /** - * The list of categories for the cloud control. - * 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 GoogleCloudAssuredworkloadsV1ControlAssessmentDetails extends com.google.api.client.json.GenericJson { - - /** - * The list of controls that were assessed and are passing. - * 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 GoogleCloudAssuredworkloadsV1DbControlComplianceSummary extends com.google.api.client.json.GenericJson { - - /** - * The list of cloud control reports. - * 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 GoogleCloudAssuredworkloadsV1DbFindingSummary extends com.google.api.client.json.GenericJson { - - /** - * Output only. The category of the findings that are summarized. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String findingCategory; - - /** - * Output only. The class of the findings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String findingClass; - - /** - * Output only. The total number of active findings in the category. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long findingCount; - - /** - * Identifier. The resource name of the finding summary. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. The number of active organization policy findings in the 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 display names of the compliance frameworks that the findings are related to. - * 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 GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary extends com.google.api.client.json.GenericJson { - - /** - * The number of passing, failing, and not assessed controls in the framework. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails; - - /** - * Output only. The trend of passing controls over the trend duration. This field is only - * populated when using `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1Trend controlsPassingTrend; - - /** - * Output only. The number of findings that were generated against the framework. This field is - * only populated when using `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long findingCount; - - /** - * The resource name of the compliance framework. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String framework; - - /** - * The categories of the framework. - * 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 GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse extends com.google.api.client.json.GenericJson { - - /** - * The number of passing, failing, and not assessed controls in the framework. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails; - - /** - * The resource name of the compliance framework. For example, - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String framework; - - /** - * The categories of the framework. - * 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 GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse extends com.google.api.client.json.GenericJson { - - /** - * The list of control compliance summaries. - * 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 GoogleCloudAssuredworkloadsV1ListDbFindingSummariesResponse extends com.google.api.client.json.GenericJson { - - /** - * The list of finding summaries, one for each finding category. - * 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 GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse extends com.google.api.client.json.GenericJson { - - /** - * The list of framework compliance summaries. - * 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 GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails extends com.google.api.client.json.GenericJson { - - /** - * The guide for assessing a cloud control manually. - * 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 GoogleCloudAssuredworkloadsV1Rule extends com.google.api.client.json.GenericJson { - - /** - * The rule's logic expression in Common Expression Language (CEL). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1CELExpression celExpression; - - /** - * Optional. The rule description. The maximum length is 2000 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Required. The functionality that's enabled by the rule. - * 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 GoogleCloudAssuredworkloadsV1SimilarControls extends com.google.api.client.json.GenericJson { - - /** - * The ID of the control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String controlId; - - /** - * The name of the framework. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String framework; - - /** - * The ID of the control. - * @return value or {@code null} for none - */ - public java.lang.String getControlId() { - return controlId; - } - - /** - * The ID of the control. - * @param controlId controlId or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1SimilarControls setControlId(java.lang.String controlId) { - this.controlId = controlId; - return this; - } - - /** - * The name of the framework. - * @return value or {@code null} for none - */ - public java.lang.String getFramework() { - return framework; - } - - /** - * The name of the framework. - * @param framework framework or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1SimilarControls setFramework(java.lang.String framework) { - this.framework = framework; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1SimilarControls set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1SimilarControls) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1SimilarControls clone() { - return (GoogleCloudAssuredworkloadsV1SimilarControls) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1StringList.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1StringList.java deleted file mode 100644 index c684f93b30e..00000000000 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1StringList.java +++ /dev/null @@ -1,67 +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; - -/** - * A list of strings for the parameter value. - * - *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 GoogleCloudAssuredworkloadsV1StringList extends com.google.api.client.json.GenericJson { - - /** - * Required. The strings in the list. - * 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 GoogleCloudAssuredworkloadsV1TargetResourceDetails extends com.google.api.client.json.GenericJson { - - /** - * The create time of the target resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String createTime; - - /** - * The framework deployment name for the target resource. For example, `organizations/{organizatio - * n_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String frameworkDeployment; - - /** - * The major revision ID of the framework for the target resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long majorRevisionId; - - /** - * The minor revision ID of the framework for the target resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long minorRevisionId; - - /** - * The target resource. For example, `organizations/1234567890`, `projects/1234567890`, or - * `folders/1234567890`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetResource; - - /** - * The display name of the target resource. For example, `google.com`, `staging-project`, or - * `development-folder`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String targetResourceDisplayName; - - /** - * The update time of the target resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String updateTime; - - /** - * The create time of the target resource. - * @return value or {@code null} for none - */ - public String getCreateTime() { - return createTime; - } - - /** - * The create time of the target resource. - * @param createTime createTime or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1TargetResourceDetails setCreateTime(String createTime) { - this.createTime = createTime; - return this; - } - - /** - * The framework deployment name for the target resource. For example, `organizations/{organizatio - * n_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` - * @return value or {@code null} for none - */ - public java.lang.String getFrameworkDeployment() { - return frameworkDeployment; - } - - /** - * The framework deployment name for the target resource. For example, `organizations/{organizatio - * n_id}/locations/{location}/frameworkDeployments/{framework_deployment_id}` - * @param frameworkDeployment frameworkDeployment or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1TargetResourceDetails setFrameworkDeployment(java.lang.String frameworkDeployment) { - this.frameworkDeployment = frameworkDeployment; - return this; - } - - /** - * The major revision ID of the framework for the target resource. - * @return value or {@code null} for none - */ - public java.lang.Long getMajorRevisionId() { - return majorRevisionId; - } - - /** - * The major revision ID of the framework for the target resource. - * @param majorRevisionId majorRevisionId or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1TargetResourceDetails setMajorRevisionId(java.lang.Long majorRevisionId) { - this.majorRevisionId = majorRevisionId; - return this; - } - - /** - * The minor revision ID of the framework for the target resource. - * @return value or {@code null} for none - */ - public java.lang.Long getMinorRevisionId() { - return minorRevisionId; - } - - /** - * The minor revision ID of the framework for the target resource. - * @param minorRevisionId minorRevisionId or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1TargetResourceDetails setMinorRevisionId(java.lang.Long minorRevisionId) { - this.minorRevisionId = minorRevisionId; - return this; - } - - /** - * The target resource. For example, `organizations/1234567890`, `projects/1234567890`, or - * `folders/1234567890`. - * @return value or {@code null} for none - */ - public java.lang.String getTargetResource() { - return targetResource; - } - - /** - * The target resource. For example, `organizations/1234567890`, `projects/1234567890`, or - * `folders/1234567890`. - * @param targetResource targetResource or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1TargetResourceDetails setTargetResource(java.lang.String targetResource) { - this.targetResource = targetResource; - return this; - } - - /** - * The display name of the target resource. For example, `google.com`, `staging-project`, or - * `development-folder`. - * @return value or {@code null} for none - */ - public java.lang.String getTargetResourceDisplayName() { - return targetResourceDisplayName; - } - - /** - * The display name of the target resource. For example, `google.com`, `staging-project`, or - * `development-folder`. - * @param targetResourceDisplayName targetResourceDisplayName or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1TargetResourceDetails setTargetResourceDisplayName(java.lang.String targetResourceDisplayName) { - this.targetResourceDisplayName = targetResourceDisplayName; - return this; - } - - /** - * The update time of the target resource. - * @return value or {@code null} for none - */ - public String getUpdateTime() { - return updateTime; - } - - /** - * The update time of the target resource. - * @param updateTime updateTime or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1TargetResourceDetails setUpdateTime(String updateTime) { - this.updateTime = updateTime; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1TargetResourceDetails set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1TargetResourceDetails) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1TargetResourceDetails clone() { - return (GoogleCloudAssuredworkloadsV1TargetResourceDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Trend.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Trend.java deleted file mode 100644 index 8eb286b25e7..00000000000 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Trend.java +++ /dev/null @@ -1,91 +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; - -/** - * The trend of a compliance metric. - * - *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 GoogleCloudAssuredworkloadsV1Trend extends com.google.api.client.json.GenericJson { - - /** - * Output only. The duration for the trend. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String duration; - - /** - * Output only. The trend value as a percentage. The value can be positive or negative. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double valuePercent; - - /** - * Output only. The duration for the trend. - * @return value or {@code null} for none - */ - public String getDuration() { - return duration; - } - - /** - * Output only. The duration for the trend. - * @param duration duration or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1Trend setDuration(String duration) { - this.duration = duration; - return this; - } - - /** - * Output only. The trend value as a percentage. The value can be positive or negative. - * @return value or {@code null} for none - */ - public java.lang.Double getValuePercent() { - return valuePercent; - } - - /** - * Output only. The trend value as a percentage. The value can be positive or negative. - * @param valuePercent valuePercent or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1Trend setValuePercent(java.lang.Double valuePercent) { - this.valuePercent = valuePercent; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1Trend set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1Trend) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1Trend clone() { - return (GoogleCloudAssuredworkloadsV1Trend) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/pom.xml b/clients/google-api-services-assuredworkloads/v1/2.0.0/pom.xml index 0597da642d7..046e49be7b0 100644 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/pom.xml +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@The typical use is:
*
* {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Folders.List request = assuredworkloads.folders().list(parameters ...)}
+ * {@code Assuredworkloads.Organizations.List request = assuredworkloads.organizations().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Folders folders() {
- return new Folders();
+ public Organizations organizations() {
+ return new Organizations();
}
/**
- * The "folders" collection of methods.
+ * The "organizations" collection of methods.
*/
- public class Folders {
+ public class Organizations {
/**
* An accessor for creating requests from the Locations collection.
@@ -174,75 +174,71 @@ public Locations locations() {
public class Locations {
/**
- * An accessor for creating requests from the DbFindingSummaries collection.
+ * An accessor for creating requests from the Operations collection.
*
* The typical use is:
*
* {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
+ * {@code Assuredworkloads.Operations.List request = assuredworkloads.operations().list(parameters ...)}
*
*
* @return the resource collection
*/
- public DbFindingSummaries dbFindingSummaries() {
- return new DbFindingSummaries();
+ public Operations operations() {
+ return new Operations();
}
/**
- * The "dbFindingSummaries" collection of methods.
+ * The "operations" collection of methods.
*/
- public class DbFindingSummaries {
+ public class Operations {
/**
- * Lists summaries of the active findings in a Data Boundary scope (an organization, folder, or
- * project), with one summary for each finding category.
+ * 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 "dbFindingSummaries.list".
+ * Create a request for the method "operations.get".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent scope to list finding summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
+ * @param name The name of the operation resource.
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
initialize(result);
return result;
}
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 parent Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * @param name The name of the operation resource. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleLongrunningOperation.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @@ -257,246 +253,132 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent scope to list finding summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` + /** The name of the operation resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - public List setParent(java.lang.String parent) { + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the framework deployments whose findings are - summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the DbFrameworkComplianceReports collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceReports.List request = assuredworkloads.dbFrameworkComplianceReports().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceReports dbFrameworkComplianceReports() {
- return new DbFrameworkComplianceReports();
- }
-
- /**
- * The "dbFrameworkComplianceReports" collection of methods.
- */
- public class DbFrameworkComplianceReports {
-
/**
- * Gets daily compliance reports over a time range for a framework that's deployed in a Data
- * Boundary scope.
+ * 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 "dbFrameworkComplianceReports.aggregate".
+ * Create a request for the method "operations.list".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Aggregate#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
- * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the
- * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations
- * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
- * nce_report}`
+ * @param name The name of the operation's parent resource.
* @return the request
*/
- public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
- Aggregate result = new Aggregate(name);
+ public List list(java.lang.String name) throws java.io.IOException {
+ List result = new List(name);
initialize(result);
return result;
}
- public class Aggregate extends AssuredworkloadsRequest{@link - * Aggregate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 Required. The name of the framework compliance report to aggregate over time. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations - * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia - * nce_report}` + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected Aggregate(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse.class); + protected List(java.lang.String name) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleLongrunningListOperationsResponse.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 " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } } @@ -511,232 +393,247 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Aggregate set$Xgafv(java.lang.String $Xgafv) { - return (Aggregate) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Aggregate setAccessToken(java.lang.String accessToken) { - return (Aggregate) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Aggregate setAlt(java.lang.String alt) { - return (Aggregate) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Aggregate setCallback(java.lang.String callback) { - return (Aggregate) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Aggregate setFields(java.lang.String fields) { - return (Aggregate) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Aggregate setKey(java.lang.String key) { - return (Aggregate) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Aggregate setOauthToken(java.lang.String oauthToken) { - return (Aggregate) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Aggregate) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Aggregate setQuotaUser(java.lang.String quotaUser) { - return (Aggregate) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Aggregate setUploadType(java.lang.String uploadType) { - return (Aggregate) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { - return (Aggregate) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` - */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the framework compliance report to aggregate over time. The report ID is the - ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations/{organiz - ation_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` - */ - public Aggregate setName(java.lang.String 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 " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } this.name = name; return this; } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A filter expression that restricts the framework deployments that are included in the - report. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - public Aggregate setFilter(java.lang.String filter) { + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - @com.google.api.client.util.Key("interval.endTime") - private String intervalEndTime; + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have - to be before the end. + /** The standard list page size. */ - public String getIntervalEndTime() { - return intervalEndTime; + public java.lang.Integer getPageSize() { + return pageSize; } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - public Aggregate setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; - - /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will - have to be the same or after the start. + /** 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 String getIntervalStartTime() { - return intervalStartTime; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. + * 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 Aggregate setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Aggregate set(String parameterName, Object value) { - return (Aggregate) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Workloads collection. + * + *The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.Workloads.List request = assuredworkloads.workloads().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Workloads workloads() {
+ return new Workloads();
+ }
+
+ /**
+ * The "workloads" collection of methods.
+ */
+ public class Workloads {
+
/**
- * Fetches the current compliance report for a framework that's deployed in a Data Boundary scope
- * (an organization, folder, or project). The report includes the number of passing, failing, and
- * not assessed controls in the framework.
+ * Analyzes a hypothetical move of a source resource to a target workload to surface compliance
+ * risks. The analysis is best effort and is not guaranteed to be exhaustive.
*
- * Create a request for the method "dbFrameworkComplianceReports.fetch".
+ * Create a request for the method "workloads.analyzeWorkloadMove".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link AnalyzeWorkloadMove#execute()} method to invoke the remote
+ * operation.
*
- * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the
- * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ
- * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report
- * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com
- * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{
- * db_framework_compliance_report}`
+ * @param target Required. The resource name of the folder-based destination workload. This workload is where the
+ * source resource will hypothetically be moved to. Specify the workload's relative resource
+ * name, formatted as:
+ * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For
+ * example: "organizations/123/locations/us-east1/workloads/assured-workload-2"
* @return the request
*/
- public Fetch fetch(java.lang.String name) throws java.io.IOException {
- Fetch result = new Fetch(name);
+ public AnalyzeWorkloadMove analyzeWorkloadMove(java.lang.String target) throws java.io.IOException {
+ AnalyzeWorkloadMove result = new AnalyzeWorkloadMove(target);
initialize(result);
return result;
}
- public class Fetch extends AssuredworkloadsRequest{@link - * Fetch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link AnalyzeWorkloadMove#execute()} method to invoke the remote + * operation.{@link AnalyzeWorkloadMove#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
* - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` + * @param target Required. The resource name of the folder-based destination workload. This workload is where the + * source resource will hypothetically be moved to. Specify the workload's relative resource + * name, formatted as: + * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" * @since 1.13 */ - protected Fetch(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected AnalyzeWorkloadMove(java.lang.String target) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse.class); + this.target = com.google.api.client.util.Preconditions.checkNotNull(target, "Required parameter target must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), + "Parameter target must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @@ -751,1765 +648,1020 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Fetch set$Xgafv(java.lang.String $Xgafv) { - return (Fetch) super.set$Xgafv($Xgafv); + public AnalyzeWorkloadMove set$Xgafv(java.lang.String $Xgafv) { + return (AnalyzeWorkloadMove) super.set$Xgafv($Xgafv); } @Override - public Fetch setAccessToken(java.lang.String accessToken) { - return (Fetch) super.setAccessToken(accessToken); + public AnalyzeWorkloadMove setAccessToken(java.lang.String accessToken) { + return (AnalyzeWorkloadMove) super.setAccessToken(accessToken); } @Override - public Fetch setAlt(java.lang.String alt) { - return (Fetch) super.setAlt(alt); + public AnalyzeWorkloadMove setAlt(java.lang.String alt) { + return (AnalyzeWorkloadMove) super.setAlt(alt); } @Override - public Fetch setCallback(java.lang.String callback) { - return (Fetch) super.setCallback(callback); + public AnalyzeWorkloadMove setCallback(java.lang.String callback) { + return (AnalyzeWorkloadMove) super.setCallback(callback); } @Override - public Fetch setFields(java.lang.String fields) { - return (Fetch) super.setFields(fields); + public AnalyzeWorkloadMove setFields(java.lang.String fields) { + return (AnalyzeWorkloadMove) super.setFields(fields); } @Override - public Fetch setKey(java.lang.String key) { - return (Fetch) super.setKey(key); + public AnalyzeWorkloadMove setKey(java.lang.String key) { + return (AnalyzeWorkloadMove) super.setKey(key); } @Override - public Fetch setOauthToken(java.lang.String oauthToken) { - return (Fetch) super.setOauthToken(oauthToken); + public AnalyzeWorkloadMove setOauthToken(java.lang.String oauthToken) { + return (AnalyzeWorkloadMove) super.setOauthToken(oauthToken); } @Override - public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Fetch) super.setPrettyPrint(prettyPrint); + public AnalyzeWorkloadMove setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AnalyzeWorkloadMove) super.setPrettyPrint(prettyPrint); } @Override - public Fetch setQuotaUser(java.lang.String quotaUser) { - return (Fetch) super.setQuotaUser(quotaUser); + public AnalyzeWorkloadMove setQuotaUser(java.lang.String quotaUser) { + return (AnalyzeWorkloadMove) super.setQuotaUser(quotaUser); } @Override - public Fetch setUploadType(java.lang.String uploadType) { - return (Fetch) super.setUploadType(uploadType); + public AnalyzeWorkloadMove setUploadType(java.lang.String uploadType) { + return (AnalyzeWorkloadMove) super.setUploadType(uploadType); } @Override - public Fetch setUploadProtocol(java.lang.String uploadProtocol) { - return (Fetch) super.setUploadProtocol(uploadProtocol); + public AnalyzeWorkloadMove setUploadProtocol(java.lang.String uploadProtocol) { + return (AnalyzeWorkloadMove) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` + * Required. The resource name of the folder-based destination workload. This workload is + * where the source resource will hypothetically be moved to. Specify the workload's + * relative resource name, formatted as: + * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String target; - /** Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organization}/ - locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `folders/{fol - der}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `project - s/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + /** Required. The resource name of the folder-based destination workload. This workload is where the + source resource will hypothetically be moved to. Specify the workload's relative resource name, + formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + example: "organizations/123/locations/us-east1/workloads/assured-workload-2" */ - public java.lang.String getName() { - return name; + public java.lang.String getTarget() { + return target; } /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` + * Required. The resource name of the folder-based destination workload. This workload is + * where the source resource will hypothetically be moved to. Specify the workload's + * relative resource name, formatted as: + * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" */ - public Fetch setName(java.lang.String name) { + public AnalyzeWorkloadMove setTarget(java.lang.String target) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), + "Parameter target must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } - this.name = name; + this.target = target; return this; } /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. + * Optional. List of asset types to be analyzed, including and under the source resource. + * If empty, all assets are analyzed. The complete list of asset types is available + * [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types). */ @com.google.api.client.util.Key - private String endTime; + private java.util.ListThe typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbControlComplianceSummaries dbControlComplianceSummaries() {
- return new DbControlComplianceSummaries();
- }
+ /**
+ * Optional. The page token from the previous response. It needs to be passed in the
+ * second and following requests.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.String pageToken;
- /**
- * The "dbControlComplianceSummaries" collection of methods.
- */
- public class DbControlComplianceSummaries {
+ /** Optional. The page token from the previous response. It needs to be passed in the second and
+ following requests.
+ */
+ public java.lang.String getPageToken() {
+ return pageToken;
+ }
/**
- * Lists the compliance summaries of the controls in a framework compliance report.
- *
- * Create a request for the method "dbControlComplianceSummaries.list".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga
- * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c
- * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{
- * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom
- * plianceReports/{db_framework_compliance_report}`
- * @return the request
+ * Optional. The page token from the previous response. It needs to be passed in the
+ * second and following requests.
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
+ public AnalyzeWorkloadMove setPageToken(java.lang.String pageToken) {
+ this.pageToken = pageToken;
+ return this;
}
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga - * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom - * plianceReports/{db_framework_compliance_report}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The framework compliance report to list control compliance summaries for. Formats: * `org - anizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc - e_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_comp - liance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framewo - rk_compliance_report}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. A filter expression that restricts the results. The syntax follows - * [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - * `framework_name`, `framework_revision` (the major revision ID of the framework), and - * `end_time`. The `end_time` field accepts a single equality comparison with an [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - * "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are - * counted. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the results. The syntax follows - [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - `framework_name`, `framework_revision` (the major revision ID of the framework), and `end_time`. - The `end_time` field accepts a single equality comparison with an [RFC - 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are counted. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the results. The syntax follows - * [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - * `framework_name`, `framework_revision` (the major revision ID of the framework), and - * `end_time`. The `end_time` field accepts a single equality comparison with an [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - * "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are - * counted. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the default page size is 50. The maximum value is 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the default page size is 50. The maximum value is 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public AnalyzeWorkloadMove set(String parameterName, Object value) { + return (AnalyzeWorkloadMove) super.set(parameterName, value); } - } - } - /** - * An accessor for creating requests from the DbFrameworkComplianceSummaries collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceSummaries.List request = assuredworkloads.dbFrameworkComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceSummaries dbFrameworkComplianceSummaries() {
- return new DbFrameworkComplianceSummaries();
- }
-
- /**
- * The "dbFrameworkComplianceSummaries" collection of methods.
- */
- public class DbFrameworkComplianceSummaries {
-
/**
- * Lists the compliance summaries of the frameworks that are deployed in a Data Boundary scope (an
- * organization, folder, or project).
+ * Creates Assured Workload.
*
- * Create a request for the method "dbFrameworkComplianceSummaries.list".
+ * Create a request for the method "workloads.create".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent scope to list framework compliance summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
+ * @param parent Required. The resource name of the new Workload's parent. Must be of the form
+ * `organizations/{org_id}/locations/{location_id}`.
+ * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload}
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ public Create create(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * @param parent Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse.class); + protected Create(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleLongrunningOperation.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+$"); + "^organizations/[^/]+/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(); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @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); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent scope to list framework compliance summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` + /** Required. The resource name of the new Workload's parent. Must be of the form + `organizations/{org_id}/locations/{location_id}`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. */ - public List setParent(java.lang.String parent) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } this.parent = parent; return this; } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the results. Reserved for future use. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. + * Optional. A identifier associated with the workload and underlying projects which + * allows for the break down of billing costs for a workload. The value provided for the + * identifier will add a label to the workload and contained projects with the identifier + * as the value. */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String externalId; - /** Optional. The level of detail to return for each summary. If not specified, - `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. + /** Optional. A identifier associated with the workload and underlying projects which allows for the + break down of billing costs for a workload. The value provided for the identifier will add a label + to the workload and contained projects with the identifier as the value. */ - public java.lang.String getView() { - return view; + public java.lang.String getExternalId() { + return externalId; } /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. + * Optional. A identifier associated with the workload and underlying projects which + * allows for the break down of billing costs for a workload. The value provided for the + * identifier will add a label to the workload and contained projects with the identifier + * as the value. */ - public List setView(java.lang.String view) { - this.view = view; + public Create setExternalId(java.lang.String externalId) { + this.externalId = externalId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - - } - } - } - - /** - * An accessor for creating requests from the Organizations collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Organizations.List request = assuredworkloads.organizations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Organizations organizations() {
- return new Organizations();
- }
-
- /**
- * The "organizations" collection of methods.
- */
- public class Organizations {
-
- /**
- * An accessor for creating requests from the Locations collection.
- *
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Locations.List request = assuredworkloads.locations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Locations locations() {
- return new Locations();
- }
-
- /**
- * The "locations" collection of methods.
- */
- public class Locations {
-
- /**
- * An accessor for creating requests from the DbFindingSummaries collection.
- *
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFindingSummaries dbFindingSummaries() {
- return new DbFindingSummaries();
- }
-
- /**
- * The "dbFindingSummaries" collection of methods.
- */
- public class DbFindingSummaries {
-
/**
- * Lists summaries of the active findings in a Data Boundary scope (an organization, folder, or
- * project), with one summary for each finding category.
+ * Deletes the workload. Make sure that workload's direct children are already in a deleted state,
+ * otherwise the request will fail with a FAILED_PRECONDITION error. In addition to
+ * assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set
+ * permission on the deleted folder to remove Assured Workloads OrgPolicies.
*
- * Create a request for the method "dbFindingSummaries.list".
+ * Create a request for the method "workloads.delete".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent scope to list finding summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
+ * @param name Required. The `name` field is used to identify the workload. Format:
+ * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ public Delete delete(java.lang.String name) throws java.io.IOException {
+ Delete result = new Delete(name);
initialize(result);
return result;
}
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * 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 parent Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Delete(java.lang.String name) { + super(Assuredworkloads.this, "DELETE", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleProtobufEmpty.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent scope to list finding summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` + /** Required. The `name` field is used to identify the workload. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public List setParent(java.lang.String parent) { + public Delete setName(java.lang.String name) { 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; - } - - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the framework deployments whose findings are - summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } + this.name = name; return this; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. The etag of the workload. If this is provided, it must match the server's + * etag. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String etag; - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. + /** Optional. The etag of the workload. If this is provided, it must match the server's etag. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getEtag() { + return etag; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. The etag of the workload. If this is provided, it must match the server's + * etag. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Delete setEtag(java.lang.String etag) { + this.etag = etag; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the DbFrameworkComplianceReports collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceReports.List request = assuredworkloads.dbFrameworkComplianceReports().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceReports dbFrameworkComplianceReports() {
- return new DbFrameworkComplianceReports();
- }
-
- /**
- * The "dbFrameworkComplianceReports" collection of methods.
- */
- public class DbFrameworkComplianceReports {
-
/**
- * Gets daily compliance reports over a time range for a framework that's deployed in a Data
- * Boundary scope.
+ * This endpoint enables Assured Workloads service to offer compliance updates for the folder based
+ * assured workload. It sets up an Assured Workloads Service Agent, having permissions to read
+ * compliance controls (for example: Org Policies) applied on the workload. The caller must have
+ * `resourcemanager.folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions on
+ * the assured workload folder.
*
- * Create a request for the method "dbFrameworkComplianceReports.aggregate".
+ * Create a request for the method "workloads.enableComplianceUpdates".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Aggregate#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link EnableComplianceUpdates#execute()} method to invoke the
+ * remote operation.
*
- * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the
- * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations
- * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
- * nce_report}`
+ * @param name Required. The `name` field is used to identify the workload. Format:
+ * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
* @return the request
*/
- public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
- Aggregate result = new Aggregate(name);
+ public EnableComplianceUpdates enableComplianceUpdates(java.lang.String name) throws java.io.IOException {
+ EnableComplianceUpdates result = new EnableComplianceUpdates(name);
initialize(result);
return result;
}
- public class Aggregate extends AssuredworkloadsRequest{@link - * Aggregate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link EnableComplianceUpdates#execute()} method to invoke the + * remote operation.{@link EnableComplianceUpdates#initialize(com.google.api.client.googleapi + * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
* - * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations - * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia - * nce_report}` + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @since 1.13 */ - protected Aggregate(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse.class); + protected EnableComplianceUpdates(java.lang.String name) { + super(Assuredworkloads.this, "PUT", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @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 Aggregate set$Xgafv(java.lang.String $Xgafv) { - return (Aggregate) super.set$Xgafv($Xgafv); + public EnableComplianceUpdates set$Xgafv(java.lang.String $Xgafv) { + return (EnableComplianceUpdates) super.set$Xgafv($Xgafv); } @Override - public Aggregate setAccessToken(java.lang.String accessToken) { - return (Aggregate) super.setAccessToken(accessToken); + public EnableComplianceUpdates setAccessToken(java.lang.String accessToken) { + return (EnableComplianceUpdates) super.setAccessToken(accessToken); } @Override - public Aggregate setAlt(java.lang.String alt) { - return (Aggregate) super.setAlt(alt); + public EnableComplianceUpdates setAlt(java.lang.String alt) { + return (EnableComplianceUpdates) super.setAlt(alt); } @Override - public Aggregate setCallback(java.lang.String callback) { - return (Aggregate) super.setCallback(callback); + public EnableComplianceUpdates setCallback(java.lang.String callback) { + return (EnableComplianceUpdates) super.setCallback(callback); } @Override - public Aggregate setFields(java.lang.String fields) { - return (Aggregate) super.setFields(fields); + public EnableComplianceUpdates setFields(java.lang.String fields) { + return (EnableComplianceUpdates) super.setFields(fields); } @Override - public Aggregate setKey(java.lang.String key) { - return (Aggregate) super.setKey(key); + public EnableComplianceUpdates setKey(java.lang.String key) { + return (EnableComplianceUpdates) super.setKey(key); } @Override - public Aggregate setOauthToken(java.lang.String oauthToken) { - return (Aggregate) super.setOauthToken(oauthToken); + public EnableComplianceUpdates setOauthToken(java.lang.String oauthToken) { + return (EnableComplianceUpdates) super.setOauthToken(oauthToken); } @Override - public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Aggregate) super.setPrettyPrint(prettyPrint); + public EnableComplianceUpdates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnableComplianceUpdates) super.setPrettyPrint(prettyPrint); } @Override - public Aggregate setQuotaUser(java.lang.String quotaUser) { - return (Aggregate) super.setQuotaUser(quotaUser); + public EnableComplianceUpdates setQuotaUser(java.lang.String quotaUser) { + return (EnableComplianceUpdates) super.setQuotaUser(quotaUser); } @Override - public Aggregate setUploadType(java.lang.String uploadType) { - return (Aggregate) super.setUploadType(uploadType); + public EnableComplianceUpdates setUploadType(java.lang.String uploadType) { + return (EnableComplianceUpdates) super.setUploadType(uploadType); } @Override - public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { - return (Aggregate) super.setUploadProtocol(uploadProtocol); + public EnableComplianceUpdates setUploadProtocol(java.lang.String uploadProtocol) { + return (EnableComplianceUpdates) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the framework compliance report to aggregate over time. The report ID is the - ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations/{organiz - ation_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + /** Required. The `name` field is used to identify the workload. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ public java.lang.String getName() { return name; } /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public Aggregate setName(java.lang.String name) { + public EnableComplianceUpdates 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 " + - "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.name = name; return this; } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the framework deployments that are included in the - report. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - public Aggregate setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - @com.google.api.client.util.Key("interval.endTime") - private String intervalEndTime; - - /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have - to be before the end. - */ - public String getIntervalEndTime() { - return intervalEndTime; - } - - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - public Aggregate setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; - return this; - } - - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; - - /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will - have to be the same or after the start. - */ - public String getIntervalStartTime() { - return intervalStartTime; - } - - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - public Aggregate setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; - return this; - } - @Override - public Aggregate set(String parameterName, Object value) { - return (Aggregate) super.set(parameterName, value); + public EnableComplianceUpdates set(String parameterName, Object value) { + return (EnableComplianceUpdates) super.set(parameterName, value); } } /** - * Fetches the current compliance report for a framework that's deployed in a Data Boundary scope - * (an organization, folder, or project). The report includes the number of passing, failing, and - * not assessed controls in the framework. + * Enable resource violation monitoring for a workload. * - * Create a request for the method "dbFrameworkComplianceReports.fetch". + * Create a request for the method "workloads.enableResourceMonitoring". * * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the + * remote operation. * - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @return the request */ - public Fetch fetch(java.lang.String name) throws java.io.IOException { - Fetch result = new Fetch(name); + public EnableResourceMonitoring enableResourceMonitoring(java.lang.String name) throws java.io.IOException { + EnableResourceMonitoring result = new EnableResourceMonitoring(name); initialize(result); return result; } - public class Fetch extends AssuredworkloadsRequest{@link - * Fetch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the + * remote operation.{@link EnableResourceMonitoring#initialize(com.google.api.client.googleap + * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
* - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` + * @param name Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} * @since 1.13 */ - protected Fetch(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse.class); + protected EnableResourceMonitoring(java.lang.String name) { + super(Assuredworkloads.this, "POST", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @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 Fetch set$Xgafv(java.lang.String $Xgafv) { - return (Fetch) super.set$Xgafv($Xgafv); + public EnableResourceMonitoring set$Xgafv(java.lang.String $Xgafv) { + return (EnableResourceMonitoring) super.set$Xgafv($Xgafv); } @Override - public Fetch setAccessToken(java.lang.String accessToken) { - return (Fetch) super.setAccessToken(accessToken); + public EnableResourceMonitoring setAccessToken(java.lang.String accessToken) { + return (EnableResourceMonitoring) super.setAccessToken(accessToken); } @Override - public Fetch setAlt(java.lang.String alt) { - return (Fetch) super.setAlt(alt); + public EnableResourceMonitoring setAlt(java.lang.String alt) { + return (EnableResourceMonitoring) super.setAlt(alt); } @Override - public Fetch setCallback(java.lang.String callback) { - return (Fetch) super.setCallback(callback); + public EnableResourceMonitoring setCallback(java.lang.String callback) { + return (EnableResourceMonitoring) super.setCallback(callback); } @Override - public Fetch setFields(java.lang.String fields) { - return (Fetch) super.setFields(fields); + public EnableResourceMonitoring setFields(java.lang.String fields) { + return (EnableResourceMonitoring) super.setFields(fields); } @Override - public Fetch setKey(java.lang.String key) { - return (Fetch) super.setKey(key); + public EnableResourceMonitoring setKey(java.lang.String key) { + return (EnableResourceMonitoring) super.setKey(key); } @Override - public Fetch setOauthToken(java.lang.String oauthToken) { - return (Fetch) super.setOauthToken(oauthToken); + public EnableResourceMonitoring setOauthToken(java.lang.String oauthToken) { + return (EnableResourceMonitoring) super.setOauthToken(oauthToken); } @Override - public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Fetch) super.setPrettyPrint(prettyPrint); + public EnableResourceMonitoring setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnableResourceMonitoring) super.setPrettyPrint(prettyPrint); } @Override - public Fetch setQuotaUser(java.lang.String quotaUser) { - return (Fetch) super.setQuotaUser(quotaUser); + public EnableResourceMonitoring setQuotaUser(java.lang.String quotaUser) { + return (EnableResourceMonitoring) super.setQuotaUser(quotaUser); } @Override - public Fetch setUploadType(java.lang.String uploadType) { - return (Fetch) super.setUploadType(uploadType); + public EnableResourceMonitoring setUploadType(java.lang.String uploadType) { + return (EnableResourceMonitoring) super.setUploadType(uploadType); } @Override - public Fetch setUploadProtocol(java.lang.String uploadProtocol) { - return (Fetch) super.setUploadProtocol(uploadProtocol); + public EnableResourceMonitoring setUploadProtocol(java.lang.String uploadProtocol) { + return (EnableResourceMonitoring) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organization}/ - locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `folders/{fol - der}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `project - s/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + /** Required. The `name` field is used to identify the workload. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ public java.lang.String getName() { return name; } /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` + * Required. The `name` field is used to identify the workload. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public Fetch setName(java.lang.String name) { + public EnableResourceMonitoring 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 " + - "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.name = name; return this; } - /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. - */ - @com.google.api.client.util.Key - private String endTime; - - /** Optional. The end time of the report. Reserved for future use. Currently, the report always - reflects the current compliance state. - */ - public String getEndTime() { - return endTime; - } - - /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. - */ - public Fetch setEndTime(String endTime) { - this.endTime = endTime; - return this; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the results. Reserved for future use. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - public Fetch setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - @Override - public Fetch set(String parameterName, Object value) { - return (Fetch) super.set(parameterName, value); + public EnableResourceMonitoring set(String parameterName, Object value) { + return (EnableResourceMonitoring) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the DbControlComplianceSummaries collection. + * Gets Assured Workload associated with a CRM Node * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
- *
+ * Create a request for the method "workloads.get".
*
- * @return the resource collection
+ * This request holds the parameters needed by the assuredworkloads server. After setting any
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The resource name of the Workload to fetch. This is the workloads's relative path in the
+ * API, formatted as
+ * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For
+ * example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
+ * @return the request
*/
- public DbControlComplianceSummaries dbControlComplianceSummaries() {
- return new DbControlComplianceSummaries();
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
+ initialize(result);
+ return result;
}
- /**
- * The "dbControlComplianceSummaries" collection of methods.
- */
- public class DbControlComplianceSummaries {
+ public class Get extends AssuredworkloadsRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga - * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom - * plianceReports/{db_framework_compliance_report}` - * @return the request + * @param name Required. The resource name of the Workload to fetch. This is the workloads's relative path in the + * API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload.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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } } - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga - * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom - * plianceReports/{db_framework_compliance_report}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse.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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** + * Required. The resource name of the Workload to fetch. This is the workloads's relative + * path in the API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The resource name of the Workload to fetch. This is the workloads's relative path in the + API, formatted as + "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, + "organizations/123/locations/us-east1/workloads/assured-workload-1". + */ + public java.lang.String getName() { + return name; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Required. The resource name of the Workload to fetch. This is the workloads's relative + * path in the API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + */ + 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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } + this.name = name; + return this; + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Assured Workloads under a CRM Node. + * + * Create a request for the method "workloads.list". + * + * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent Resource to list workloads from. Must be of the form + * `organizations/{org_id}/locations/{location}`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } - /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + public class List extends AssuredworkloadsRequestThe typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceSummaries.List request = assuredworkloads.dbFrameworkComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceSummaries dbFrameworkComplianceSummaries() {
- return new DbFrameworkComplianceSummaries();
- }
-
- /**
- * The "dbFrameworkComplianceSummaries" collection of methods.
- */
- public class DbFrameworkComplianceSummaries {
-
- /**
- * Lists the compliance summaries of the frameworks that are deployed in a Data Boundary scope (an
- * organization, folder, or project).
- *
- * Create a request for the method "dbFrameworkComplianceSummaries.list".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The parent scope to list framework compliance summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
- * @return the request
- */
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
- }
-
- public class List extends AssuredworkloadsRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * @param parent Required. Parent Resource to list workloads from. Must be of the form + * `organizations/{org_id}/locations/{location}`. * @since 1.13 */ protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse.class); + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse.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(), @@ -2584,25 +1736,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. Parent Resource to list workloads from. Must be of the form + * `organizations/{org_id}/locations/{location}`. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent scope to list framework compliance summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` + /** Required. Parent Resource to list workloads from. Must be of the form + `organizations/{org_id}/locations/{location}`. */ public java.lang.String getParent() { return parent; } /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` + * Required. Parent Resource to list workloads from. Must be of the form + * `organizations/{org_id}/locations/{location}`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -2614,3894 +1763,1081 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ + /** + * Optional. A custom filter for filtering by properties of a workload. At this time, only + * filtering by labels is supported. + */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A filter expression that restricts the results. Reserved for future use. + /** Optional. A custom filter for filtering by properties of a workload. At this time, only filtering + by labels is supported. */ public java.lang.String getFilter() { return filter; } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ + /** + * Optional. A custom filter for filtering by properties of a workload. At this time, only + * filtering by labels is supported. + */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ + /** Optional. Page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. + /** Optional. Page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ + /** Optional. Page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. Page token returned from previous request. Page token contains context from + * previous request. Page token needs to be passed in the second and following requests. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. + /** Optional. Page token returned from previous request. Page token contains context from previous + request. Page token needs to be passed in the second and following requests. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. Page token returned from previous request. Page token contains context from + * previous request. Page token needs to be passed in the second and following requests. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** Optional. The level of detail to return for each summary. If not specified, - `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - public java.lang.String getView() { - return view; - } - - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - public List setView(java.lang.String view) { - this.view = view; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Operations collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Operations.List request = assuredworkloads.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class 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.
+ * Updates an existing workload. Currently allows updating of workload display_name and labels. For
+ * force updates don't set etag field in the Workload. Only one update operation per workload can be
+ * in progress.
*
- * Create a request for the method "operations.get".
+ * Create a request for the method "workloads.patch".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation resource.
+ * @param name Optional. The resource name of the workload. Format:
+ * organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
+ * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload}
* @return the request
*/
- public Get get(java.lang.String name) throws java.io.IOException {
- Get result = new Get(name);
+ public Patch patch(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload content) throws java.io.IOException {
+ Patch result = new Patch(name, content);
initialize(result);
return result;
}
- public class Get extends AssuredworkloadsRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *{@link + * Patch#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. + * @param name Optional. The resource name of the workload. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleLongrunningOperation.class); + protected Patch(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload content) { + super(Assuredworkloads.this, "PATCH", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload.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 " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @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); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Optional. The resource name of the workload. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Optional. The resource name of the workload. Format: + organizations/{organization}/locations/{location}/workloads/{workload} Read-only. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** + * Optional. The resource name of the workload. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + */ + public Patch 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 " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.name = name; return this; } + /** Required. The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) 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`. + * Restrict the list of resources allowed in the Workload environment. The current list of allowed + * products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In + * addition to assuredworkloads.workload.update permission, the user should also have + * orgpolicy.policy.set permission on the folder resource to use this functionality. * - * Create a request for the method "operations.list". + * Create a request for the method "workloads.restrictAllowedResources". * * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link RestrictAllowedResources#execute()} method to invoke the + * remote operation. * - * @param name The name of the operation's parent resource. + * @param name Required. The resource name of the Workload. This is the workloads's relative path in the API, + * formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest} * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public RestrictAllowedResources restrictAllowedResources(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest content) throws java.io.IOException { + RestrictAllowedResources result = new RestrictAllowedResources(name, content); initialize(result); return result; } - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link RestrictAllowedResources#execute()} method to invoke the + * remote operation.{@link RestrictAllowedResources#initialize(com.google.api.client.googleap + * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
* - * @param name The name of the operation's parent resource. + * @param name Required. The resource name of the Workload. This is the workloads's relative path in the API, + * formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest} * @since 1.13 */ - protected List(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleLongrunningListOperationsResponse.class); + protected RestrictAllowedResources(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesResponse.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 " + - "^organizations/[^/]+/locations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @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); + public RestrictAllowedResources set$Xgafv(java.lang.String $Xgafv) { + return (RestrictAllowedResources) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public RestrictAllowedResources setAccessToken(java.lang.String accessToken) { + return (RestrictAllowedResources) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public RestrictAllowedResources setAlt(java.lang.String alt) { + return (RestrictAllowedResources) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public RestrictAllowedResources setCallback(java.lang.String callback) { + return (RestrictAllowedResources) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public RestrictAllowedResources setFields(java.lang.String fields) { + return (RestrictAllowedResources) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public RestrictAllowedResources setKey(java.lang.String key) { + return (RestrictAllowedResources) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public RestrictAllowedResources setOauthToken(java.lang.String oauthToken) { + return (RestrictAllowedResources) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public RestrictAllowedResources setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RestrictAllowedResources) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public RestrictAllowedResources setQuotaUser(java.lang.String quotaUser) { + return (RestrictAllowedResources) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public RestrictAllowedResources setUploadType(java.lang.String uploadType) { + return (RestrictAllowedResources) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public RestrictAllowedResources setUploadProtocol(java.lang.String uploadProtocol) { + return (RestrictAllowedResources) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The resource name of the Workload. This is the workloads's relative path in + * the API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation's parent resource. + /** Required. The resource name of the Workload. This is the workloads's relative path in the API, + formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + example, "organizations/123/locations/us-east1/workloads/assured-workload-1". */ public java.lang.String getName() { return name; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. The resource name of the Workload. This is the workloads's relative path in + * the API, formatted as + * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For + * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". + */ + public RestrictAllowedResources 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 " + - "^organizations/[^/]+/locations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } 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; + @Override + public RestrictAllowedResources set(String parameterName, Object value) { + return (RestrictAllowedResources) super.set(parameterName, value); } + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * An accessor for creating requests from the Updates collection. + * + *The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.Updates.List request = assuredworkloads.updates().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Updates updates() {
+ return new Updates();
+ }
- /** The standard list page size. */
- @com.google.api.client.util.Key
- private java.lang.Integer pageSize;
+ /**
+ * The "updates" collection of methods.
+ */
+ public class Updates {
- /** The standard list page size.
+ /**
+ * This endpoint creates a new operation to apply the given update.
+ *
+ * Create a request for the method "updates.apply".
+ *
+ * This request holds the parameters needed by the assuredworkloads server. After setting any
+ * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation.
+ *
+ * @param name Required. The resource name of the update. Format:
+ * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id}
+ * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest}
+ * @return the request
*/
- public java.lang.Integer getPageSize() {
- return pageSize;
+ public Apply apply(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest content) throws java.io.IOException {
+ Apply result = new Apply(name, content);
+ initialize(result);
+ return result;
}
- /** The standard list page size. */
- public List setPageSize(java.lang.Integer pageSize) {
- this.pageSize = pageSize;
- return this;
- }
+ public class Apply extends AssuredworkloadsRequestThe typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Workloads.List request = assuredworkloads.workloads().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Workloads workloads() {
- return new Workloads();
- }
-
- /**
- * The "workloads" collection of methods.
- */
- public class Workloads {
-
- /**
- * Analyzes a hypothetical move of a source resource to a target workload to surface compliance
- * risks. The analysis is best effort and is not guaranteed to be exhaustive.
- *
- * Create a request for the method "workloads.analyzeWorkloadMove".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link AnalyzeWorkloadMove#execute()} method to invoke the remote
- * operation.
- *
- * @param target Required. The resource ID of the folder-based destination workload. This workload is where the
- * source resource will hypothetically be moved to. Specify the workload's relative resource
- * name, formatted as:
- * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For
- * example: "organizations/123/locations/us-east1/workloads/assured-workload-2"
- * @return the request
- */
- public AnalyzeWorkloadMove analyzeWorkloadMove(java.lang.String target) throws java.io.IOException {
- AnalyzeWorkloadMove result = new AnalyzeWorkloadMove(target);
- initialize(result);
- return result;
- }
-
- public class AnalyzeWorkloadMove extends AssuredworkloadsRequest{@link AnalyzeWorkloadMove#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param target Required. The resource ID of the folder-based destination workload. This workload is where the - * source resource will hypothetically be moved to. Specify the workload's relative resource - * name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For - * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" - * @since 1.13 - */ - protected AnalyzeWorkloadMove(java.lang.String target) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse.class); - this.target = com.google.api.client.util.Preconditions.checkNotNull(target, "Required parameter target must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), - "Parameter target must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @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 AnalyzeWorkloadMove set$Xgafv(java.lang.String $Xgafv) { - return (AnalyzeWorkloadMove) super.set$Xgafv($Xgafv); - } - - @Override - public AnalyzeWorkloadMove setAccessToken(java.lang.String accessToken) { - return (AnalyzeWorkloadMove) super.setAccessToken(accessToken); - } - - @Override - public AnalyzeWorkloadMove setAlt(java.lang.String alt) { - return (AnalyzeWorkloadMove) super.setAlt(alt); - } - - @Override - public AnalyzeWorkloadMove setCallback(java.lang.String callback) { - return (AnalyzeWorkloadMove) super.setCallback(callback); - } - - @Override - public AnalyzeWorkloadMove setFields(java.lang.String fields) { - return (AnalyzeWorkloadMove) super.setFields(fields); - } - - @Override - public AnalyzeWorkloadMove setKey(java.lang.String key) { - return (AnalyzeWorkloadMove) super.setKey(key); - } - - @Override - public AnalyzeWorkloadMove setOauthToken(java.lang.String oauthToken) { - return (AnalyzeWorkloadMove) super.setOauthToken(oauthToken); - } - - @Override - public AnalyzeWorkloadMove setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AnalyzeWorkloadMove) super.setPrettyPrint(prettyPrint); - } - - @Override - public AnalyzeWorkloadMove setQuotaUser(java.lang.String quotaUser) { - return (AnalyzeWorkloadMove) super.setQuotaUser(quotaUser); - } - - @Override - public AnalyzeWorkloadMove setUploadType(java.lang.String uploadType) { - return (AnalyzeWorkloadMove) super.setUploadType(uploadType); - } - - @Override - public AnalyzeWorkloadMove setUploadProtocol(java.lang.String uploadProtocol) { - return (AnalyzeWorkloadMove) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource ID of the folder-based destination workload. This workload is - * where the source resource will hypothetically be moved to. Specify the workload's - * relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For - * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" - */ - @com.google.api.client.util.Key - private java.lang.String target; - - /** Required. The resource ID of the folder-based destination workload. This workload is where the - source resource will hypothetically be moved to. Specify the workload's relative resource name, - formatted as: "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For - example: "organizations/123/locations/us-east1/workloads/assured-workload-2" - */ - public java.lang.String getTarget() { - return target; - } - - /** - * Required. The resource ID of the folder-based destination workload. This workload is - * where the source resource will hypothetically be moved to. Specify the workload's - * relative resource name, formatted as: - * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For - * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" - */ - public AnalyzeWorkloadMove setTarget(java.lang.String target) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), - "Parameter target must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.target = target; - return this; - } - - /** - * Optional. List of asset types to be analyzed, including and under the source resource. - * If empty, all assets are analyzed. The complete list of asset types is available - * [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types). - */ - @com.google.api.client.util.Key - private java.util.List{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleLongrunningOperation.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 Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource name of the new Workload's parent. Must be of the form - `organizations/{org_id}/locations/{location_id}`. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. - */ - public Create 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; - } - - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value provided for the - * identifier will add a label to the workload and contained projects with the identifier - * as the value. - */ - @com.google.api.client.util.Key - private java.lang.String externalId; - - /** Optional. A identifier associated with the workload and underlying projects which allows for the - break down of billing costs for a workload. The value provided for the identifier will add a label - to the workload and contained projects with the identifier as the value. - */ - public java.lang.String getExternalId() { - return externalId; - } - - /** - * Optional. A identifier associated with the workload and underlying projects which - * allows for the break down of billing costs for a workload. The value provided for the - * identifier will add a label to the workload and contained projects with the identifier - * as the value. - */ - public Create setExternalId(java.lang.String externalId) { - this.externalId = externalId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes the workload. Make sure that workload's direct children are already in a deleted state, - * otherwise the request will fail with a FAILED_PRECONDITION error. In addition to - * assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set - * permission on the deleted folder to remove Assured Workloads OrgPolicies. - * - * Create a request for the method "workloads.delete". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @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 AssuredworkloadsRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Assuredworkloads.this, "DELETE", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleProtobufEmpty.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. The etag of the workload. If this is provided, it must match the server's - * etag. - */ - @com.google.api.client.util.Key - private java.lang.String etag; - - /** Optional. The etag of the workload. If this is provided, it must match the server's etag. - */ - public java.lang.String getEtag() { - return etag; - } - - /** - * Optional. The etag of the workload. If this is provided, it must match the server's - * etag. - */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * This endpoint enables Assured Workloads service to offer compliance updates for the folder based - * assured workload. It sets up an Assured Workloads Service Agent, having permissions to read - * compliance controls (for example: Org Policies) applied on the workload. The caller must have - * `resourcemanager.folders.getIamPolicy` and `resourcemanager.folders.setIamPolicy` permissions on - * the assured workload folder. - * - * Create a request for the method "workloads.enableComplianceUpdates". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link EnableComplianceUpdates#execute()} method to invoke the - * remote operation. - * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @return the request - */ - public EnableComplianceUpdates enableComplianceUpdates(java.lang.String name) throws java.io.IOException { - EnableComplianceUpdates result = new EnableComplianceUpdates(name); - initialize(result); - return result; - } - - public class EnableComplianceUpdates extends AssuredworkloadsRequest{@link EnableComplianceUpdates#initialize(com.google.api.client.googleapi - * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.
- * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 - */ - protected EnableComplianceUpdates(java.lang.String name) { - super(Assuredworkloads.this, "PUT", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public EnableComplianceUpdates set$Xgafv(java.lang.String $Xgafv) { - return (EnableComplianceUpdates) super.set$Xgafv($Xgafv); - } - - @Override - public EnableComplianceUpdates setAccessToken(java.lang.String accessToken) { - return (EnableComplianceUpdates) super.setAccessToken(accessToken); - } - - @Override - public EnableComplianceUpdates setAlt(java.lang.String alt) { - return (EnableComplianceUpdates) super.setAlt(alt); - } - - @Override - public EnableComplianceUpdates setCallback(java.lang.String callback) { - return (EnableComplianceUpdates) super.setCallback(callback); - } - - @Override - public EnableComplianceUpdates setFields(java.lang.String fields) { - return (EnableComplianceUpdates) super.setFields(fields); - } - - @Override - public EnableComplianceUpdates setKey(java.lang.String key) { - return (EnableComplianceUpdates) super.setKey(key); - } - - @Override - public EnableComplianceUpdates setOauthToken(java.lang.String oauthToken) { - return (EnableComplianceUpdates) super.setOauthToken(oauthToken); - } - - @Override - public EnableComplianceUpdates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableComplianceUpdates) super.setPrettyPrint(prettyPrint); - } - - @Override - public EnableComplianceUpdates setQuotaUser(java.lang.String quotaUser) { - return (EnableComplianceUpdates) super.setQuotaUser(quotaUser); - } - - @Override - public EnableComplianceUpdates setUploadType(java.lang.String uploadType) { - return (EnableComplianceUpdates) super.setUploadType(uploadType); - } - - @Override - public EnableComplianceUpdates setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableComplianceUpdates) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public EnableComplianceUpdates 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public EnableComplianceUpdates set(String parameterName, Object value) { - return (EnableComplianceUpdates) super.set(parameterName, value); - } - } - /** - * Enable resource violation monitoring for a workload. - * - * Create a request for the method "workloads.enableResourceMonitoring". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the - * remote operation. - * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @return the request - */ - public EnableResourceMonitoring enableResourceMonitoring(java.lang.String name) throws java.io.IOException { - EnableResourceMonitoring result = new EnableResourceMonitoring(name); - initialize(result); - return result; - } - - public class EnableResourceMonitoring extends AssuredworkloadsRequest{@link EnableResourceMonitoring#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 - */ - protected EnableResourceMonitoring(java.lang.String name) { - super(Assuredworkloads.this, "POST", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public EnableResourceMonitoring set$Xgafv(java.lang.String $Xgafv) { - return (EnableResourceMonitoring) super.set$Xgafv($Xgafv); - } - - @Override - public EnableResourceMonitoring setAccessToken(java.lang.String accessToken) { - return (EnableResourceMonitoring) super.setAccessToken(accessToken); - } - - @Override - public EnableResourceMonitoring setAlt(java.lang.String alt) { - return (EnableResourceMonitoring) super.setAlt(alt); - } - - @Override - public EnableResourceMonitoring setCallback(java.lang.String callback) { - return (EnableResourceMonitoring) super.setCallback(callback); - } - - @Override - public EnableResourceMonitoring setFields(java.lang.String fields) { - return (EnableResourceMonitoring) super.setFields(fields); - } - - @Override - public EnableResourceMonitoring setKey(java.lang.String key) { - return (EnableResourceMonitoring) super.setKey(key); - } - - @Override - public EnableResourceMonitoring setOauthToken(java.lang.String oauthToken) { - return (EnableResourceMonitoring) super.setOauthToken(oauthToken); - } - - @Override - public EnableResourceMonitoring setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableResourceMonitoring) super.setPrettyPrint(prettyPrint); - } - - @Override - public EnableResourceMonitoring setQuotaUser(java.lang.String quotaUser) { - return (EnableResourceMonitoring) super.setQuotaUser(quotaUser); - } - - @Override - public EnableResourceMonitoring setUploadType(java.lang.String uploadType) { - return (EnableResourceMonitoring) super.setUploadType(uploadType); - } - - @Override - public EnableResourceMonitoring setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableResourceMonitoring) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public EnableResourceMonitoring 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public EnableResourceMonitoring set(String parameterName, Object value) { - return (EnableResourceMonitoring) super.set(parameterName, value); - } - } - /** - * Gets Assured Workload associated with a CRM Node - * - * Create a request for the method "workloads.get". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name of the Workload to fetch. This is the workloads's relative path in the - * API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @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 AssuredworkloadsRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the Workload to fetch. This is the workloads's relative path in the - * API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The resource name of the Workload to fetch. This is the workloads's relative - * path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the Workload to fetch. This is the workloads's relative path in the - API, formatted as - "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, - "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the Workload to fetch. This is the workloads's relative - * path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists Assured Workloads under a CRM Node. - * - * Create a request for the method "workloads.list". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse.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 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); - } - - /** - * Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Parent Resource to list workloads from. Must be of the form - `organizations/{org_id}/locations/{location}`. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - */ - public List 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; - } - - /** - * Optional. A custom filter for filtering by properties of a workload. At this time, only - * filtering by labels is supported. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A custom filter for filtering by properties of a workload. At this time, only filtering - by labels is supported. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A custom filter for filtering by properties of a workload. At this time, only - * filtering by labels is supported. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** Optional. Page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Optional. Page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following requests. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Page token returned from previous request. Page token contains context from previous - request. Page token needs to be passed in the second and following requests. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Page token returned from previous request. Page token contains context from - * previous request. Page token needs to be passed in the second and following requests. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing workload. Currently allows updating of workload display_name and labels. For - * force updates don't set etag field in the Workload. Only one update operation per workload can be - * in progress. - * - * Create a request for the method "workloads.patch". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends AssuredworkloadsRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload content) { - super(Assuredworkloads.this, "PATCH", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Optional. The resource name of the workload. Format: - organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - */ - public java.lang.String getName() { - return name; - } - - /** - * Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - */ - public Patch 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - /** Required. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Required. The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Restrict the list of resources allowed in the Workload environment. The current list of allowed - * products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In - * addition to assuredworkloads.workload.update permission, the user should also have - * orgpolicy.policy.set permission on the folder resource to use this functionality. - * - * Create a request for the method "workloads.restrictAllowedResources". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link RestrictAllowedResources#execute()} method to invoke the - * remote operation. - * - * @param name Required. The resource name of the Workload. This is the workloads's relative path in the API, - * formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest} - * @return the request - */ - public RestrictAllowedResources restrictAllowedResources(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest content) throws java.io.IOException { - RestrictAllowedResources result = new RestrictAllowedResources(name, content); - initialize(result); - return result; - } - - public class RestrictAllowedResources extends AssuredworkloadsRequest{@link RestrictAllowedResources#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param name Required. The resource name of the Workload. This is the workloads's relative path in the API, - * formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest} - * @since 1.13 - */ - protected RestrictAllowedResources(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } - - @Override - public RestrictAllowedResources set$Xgafv(java.lang.String $Xgafv) { - return (RestrictAllowedResources) super.set$Xgafv($Xgafv); - } - - @Override - public RestrictAllowedResources setAccessToken(java.lang.String accessToken) { - return (RestrictAllowedResources) super.setAccessToken(accessToken); - } - - @Override - public RestrictAllowedResources setAlt(java.lang.String alt) { - return (RestrictAllowedResources) super.setAlt(alt); - } - - @Override - public RestrictAllowedResources setCallback(java.lang.String callback) { - return (RestrictAllowedResources) super.setCallback(callback); - } - - @Override - public RestrictAllowedResources setFields(java.lang.String fields) { - return (RestrictAllowedResources) super.setFields(fields); - } - - @Override - public RestrictAllowedResources setKey(java.lang.String key) { - return (RestrictAllowedResources) super.setKey(key); - } - - @Override - public RestrictAllowedResources setOauthToken(java.lang.String oauthToken) { - return (RestrictAllowedResources) super.setOauthToken(oauthToken); - } - - @Override - public RestrictAllowedResources setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RestrictAllowedResources) super.setPrettyPrint(prettyPrint); - } - - @Override - public RestrictAllowedResources setQuotaUser(java.lang.String quotaUser) { - return (RestrictAllowedResources) super.setQuotaUser(quotaUser); - } - - @Override - public RestrictAllowedResources setUploadType(java.lang.String uploadType) { - return (RestrictAllowedResources) super.setUploadType(uploadType); - } - - @Override - public RestrictAllowedResources setUploadProtocol(java.lang.String uploadProtocol) { - return (RestrictAllowedResources) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the Workload. This is the workloads's relative path in - * the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the Workload. This is the workloads's relative path in the API, - formatted as "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the Workload. This is the workloads's relative path in - * the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-1". - */ - public RestrictAllowedResources 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public RestrictAllowedResources set(String parameterName, Object value) { - return (RestrictAllowedResources) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Updates collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Updates.List request = assuredworkloads.updates().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Updates updates() {
- return new Updates();
- }
-
- /**
- * The "updates" collection of methods.
- */
- public class Updates {
-
- /**
- * This endpoint creates a new operation to apply the given update.
- *
- * Create a request for the method "updates.apply".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation.
- *
- * @param name Required. The resource name of the update. Format:
- * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id}
- * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest}
- * @return the request
- */
- public Apply apply(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest content) throws java.io.IOException {
- Apply result = new Apply(name, content);
- initialize(result);
- return result;
- }
-
- public class Apply extends AssuredworkloadsRequest{@link - * Apply#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the update. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest} - * @since 1.13 - */ - protected Apply(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleLongrunningOperation.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); - } - } - - @Override - public Apply set$Xgafv(java.lang.String $Xgafv) { - return (Apply) super.set$Xgafv($Xgafv); - } - - @Override - public Apply setAccessToken(java.lang.String accessToken) { - return (Apply) super.setAccessToken(accessToken); - } - - @Override - public Apply setAlt(java.lang.String alt) { - return (Apply) super.setAlt(alt); - } - - @Override - public Apply setCallback(java.lang.String callback) { - return (Apply) super.setCallback(callback); - } - - @Override - public Apply setFields(java.lang.String fields) { - return (Apply) super.setFields(fields); - } - - @Override - public Apply setKey(java.lang.String key) { - return (Apply) super.setKey(key); - } - - @Override - public Apply setOauthToken(java.lang.String oauthToken) { - return (Apply) super.setOauthToken(oauthToken); - } - - @Override - public Apply setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Apply) super.setPrettyPrint(prettyPrint); - } - - @Override - public Apply setQuotaUser(java.lang.String quotaUser) { - return (Apply) super.setQuotaUser(quotaUser); - } - - @Override - public Apply setUploadType(java.lang.String uploadType) { - return (Apply) super.setUploadType(uploadType); - } - - @Override - public Apply setUploadProtocol(java.lang.String uploadProtocol) { - return (Apply) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ - * location_id}/workloads/{workload_id}/updates/{update_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the update. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ - * location_id}/workloads/{workload_id}/updates/{update_id} - */ - public Apply 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Apply set(String parameterName, Object value) { - return (Apply) super.set(parameterName, value); - } - } - /** - * This endpoint lists all updates for the given workload. - * - * Create a request for the method "updates.list". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponse.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 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); - } - - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - public List 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; - } - - /** Page size. The default value is 20 and the max allowed value is 100. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Page size. The default value is 20 and the max allowed value is 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** Page size. The default value is 20 and the max allowed value is 100. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** Page token returned from previous request. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Page token returned from previous request. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** Page token returned from previous request. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, 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 an existing violation. By acknowledging a violation, users acknowledge the existence
- * of a compliance violation in their workload and decide to ignore it due to a valid business
- * justification. Acknowledgement is a permanent operation and it cannot be reverted.
- *
- * Create a request for the method "violations.acknowledge".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote
- * operation.
- *
- * @param name Required. The resource name of the violation to acknowledge. Format:
- * `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violat
- * ion}`
- * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest}
- * @return the request
- */
- public Acknowledge acknowledge(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest content) throws java.io.IOException {
- Acknowledge result = new Acknowledge(name, content);
- initialize(result);
- return result;
- }
-
- public class Acknowledge extends AssuredworkloadsRequest{@link - * Acknowledge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the violation to acknowledge. Format: - * `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violat - * ion}` - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest} - * @since 1.13 - */ - protected Acknowledge(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationResponse.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); - } - } - - @Override - public Acknowledge set$Xgafv(java.lang.String $Xgafv) { - return (Acknowledge) super.set$Xgafv($Xgafv); - } - - @Override - public Acknowledge setAccessToken(java.lang.String accessToken) { - return (Acknowledge) super.setAccessToken(accessToken); - } - - @Override - public Acknowledge setAlt(java.lang.String alt) { - return (Acknowledge) super.setAlt(alt); - } - - @Override - public Acknowledge setCallback(java.lang.String callback) { - return (Acknowledge) super.setCallback(callback); - } - - @Override - public Acknowledge setFields(java.lang.String fields) { - return (Acknowledge) super.setFields(fields); - } - - @Override - public Acknowledge setKey(java.lang.String key) { - return (Acknowledge) super.setKey(key); - } - - @Override - public Acknowledge setOauthToken(java.lang.String oauthToken) { - return (Acknowledge) super.setOauthToken(oauthToken); - } - - @Override - public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Acknowledge) super.setPrettyPrint(prettyPrint); - } - - @Override - public Acknowledge setQuotaUser(java.lang.String quotaUser) { - return (Acknowledge) super.setQuotaUser(quotaUser); - } - - @Override - public Acknowledge setUploadType(java.lang.String uploadType) { - return (Acknowledge) super.setUploadType(uploadType); - } - - @Override - public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { - return (Acknowledge) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The resource name of the violation to acknowledge. Format: `organizations/{ - * organization}/locations/{location}/workloads/{workload}/violations/{violation}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the violation to acknowledge. Format: - `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the violation to acknowledge. Format: `organizations/{ - * organization}/locations/{location}/workloads/{workload}/violations/{violation}` - */ - public Acknowledge 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Acknowledge set(String parameterName, Object value) { - return (Acknowledge) super.set(parameterName, value); - } - } - /** - * Retrieves an Assured Workloads violation by its resource name. - * - * Create a request for the method "violations.get". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). - * Format: `organizations/{organization}/locations/{location}/workloads/{workload}/violations - * /{violation}` - * @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 AssuredworkloadsRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). - * Format: `organizations/{organization}/locations/{location}/workloads/{workload}/violations - * /{violation}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Violation.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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); - } - } - - @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); - } - - /** - * Required. The resource name of the violation to retrieve (that is, the value of - * `Violation.name`). Format: `organizations/{organization}/locations/{location}/workloa - * ds/{workload}/violations/{violation}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). - Format: - `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The resource name of the violation to retrieve (that is, the value of - * `Violation.name`). Format: `organizations/{organization}/locations/{location}/workloa - * ds/{workload}/violations/{violation}` - */ - 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or - * `VIOLATION_VIEW_DATA_BOUNDARY`) that the violation belongs to. If not specified, - * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. - */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or `VIOLATION_VIEW_DATA_BOUNDARY`) - that the violation belongs to. If not specified, `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. - */ - public java.lang.String getView() { - return view; - } - - /** - * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or - * `VIOLATION_VIEW_DATA_BOUNDARY`) that the violation belongs to. If not specified, - * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. - */ - public Get setView(java.lang.String view) { - this.view = view; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across - * multiple Workloads as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash - * character) as a wildcard character instead of workload-id in the parent. Format - * `organizations/{org_id}/locations/{location}/workloads/-` - * - * Create a request for the method "violations.list". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The workload to list violations for. To list violations across all workloads in an - * organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, - * violations are listed for the entire organization and location, and the workload ID is - * ignored. Format: `organizations/{organization}/locations/{location}/workloads/{workload}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation. + *{@link + * Apply#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The workload to list violations for. To list violations across all workloads in an - * organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, - * violations are listed for the entire organization and location, and the workload ID is - * ignored. Format: `organizations/{organization}/locations/{location}/workloads/{workload}` + * @param name Required. The resource name of the update. Format: + * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Apply(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleLongrunningOperation.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); } } @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); + public Apply set$Xgafv(java.lang.String $Xgafv) { + return (Apply) super.set$Xgafv($Xgafv); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Apply setAccessToken(java.lang.String accessToken) { + return (Apply) super.setAccessToken(accessToken); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Apply setAlt(java.lang.String alt) { + return (Apply) super.setAlt(alt); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Apply setCallback(java.lang.String callback) { + return (Apply) super.setCallback(callback); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Apply setFields(java.lang.String fields) { + return (Apply) super.setFields(fields); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Apply setKey(java.lang.String key) { + return (Apply) super.setKey(key); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The workload to list violations for. To list violations across all - * workloads in an organization, use `-` as the workload ID. When `view` is - * `VIOLATION_VIEW_DATA_BOUNDARY`, violations are listed for the entire organization and - * location, and the workload ID is ignored. Format: - * `organizations/{organization}/locations/{location}/workloads/{workload}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The workload to list violations for. To list violations across all workloads in an - organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, violations - are listed for the entire organization and location, and the workload ID is ignored. Format: - `organizations/{organization}/locations/{location}/workloads/{workload}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The workload to list violations for. To list violations across all - * workloads in an organization, use `-` as the workload ID. When `view` is - * `VIOLATION_VIEW_DATA_BOUNDARY`, violations are listed for the entire organization and - * location, and the workload ID is ignored. Format: - * `organizations/{organization}/locations/{location}/workloads/{workload}` - */ - public List 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; - } - - /** - * Optional. A filter expression that restricts the violations that are returned. The - * syntax follows [AIP-160](https://google.aip.dev/160). Only the equality operator - * (`=`) is supported, and expressions can be combined with `AND`, `OR`, and `NOT`. When - * `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: - * `violationId`, `category`, `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), - * `violationType` (`ORG_POLICY` or `RESOURCE`), `resourceType`, `resourceName`, - * `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, - * `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = - * "UNRESOLVED" AND complianceType = "builtin-fedramp-high"` - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the violations that are returned. The syntax follows - [AIP-160](https://google.aip.dev/160). Only the equality operator (`=`) is supported, and - expressions can be combined with `AND`, `OR`, and `NOT`. When `view` is - `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `violationId`, `category`, - `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), `violationType` (`ORG_POLICY` or `RESOURCE`), - `resourceType`, `resourceName`, `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, - `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = "UNRESOLVED" AND - complianceType = "builtin-fedramp-high"` - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * Optional. A filter expression that restricts the violations that are returned. The - * syntax follows [AIP-160](https://google.aip.dev/160). Only the equality operator - * (`=`) is supported, and expressions can be combined with `AND`, `OR`, and `NOT`. When - * `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: - * `violationId`, `category`, `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), - * `violationType` (`ORG_POLICY` or `RESOURCE`), `resourceType`, `resourceName`, - * `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, - * `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = - * "UNRESOLVED" AND complianceType = "builtin-fedramp-high"` - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The end of the time window. */ - @com.google.api.client.util.Key("interval.endTime") - private String intervalEndTime; - - /** The end of the time window. - */ - public String getIntervalEndTime() { - return intervalEndTime; - } - - /** The end of the time window. */ - public List setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; - return this; - } - - /** The start of the time window. */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; - - /** The start of the time window. - */ - public String getIntervalStartTime() { - return intervalStartTime; - } - - /** The start of the time window. */ - public List setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; - return this; - } - - /** - * Optional. A comma-separated list of fields to sort the results by. The default sort - * order is ascending; to sort in descending order, append ` desc` to the field name. - * For example, `update_time desc,category`. When `view` is - * `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `begin_time`, - * `update_time`, `resource_type`, `state`, and `category`. If not specified, results - * are sorted by `begin_time` in descending order. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. A comma-separated list of fields to sort the results by. The default sort order is - ascending; to sort in descending order, append ` desc` to the field name. For example, `update_time - desc,category`. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: - `begin_time`, `update_time`, `resource_type`, `state`, and `category`. If not specified, results - are sorted by `begin_time` in descending order. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. A comma-separated list of fields to sort the results by. The default sort - * order is ascending; to sort in descending order, append ` desc` to the field name. - * For example, `update_time desc,category`. When `view` is - * `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `begin_time`, - * `update_time`, `resource_type`, `state`, and `category`. If not specified, results - * are sorted by `begin_time` in descending order. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Optional. The maximum number of violations to return. The service might return fewer - * violations than this value. If unspecified, at most 100 violations are returned. The - * maximum value is 1000; values above 1000 are coerced to 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of violations to return. The service might return fewer violations - than this value. If unspecified, at most 100 violations are returned. The maximum value is 1000; - values above 1000 are coerced to 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The maximum number of violations to return. The service might return fewer - * violations than this value. If unspecified, at most 100 violations are returned. The - * maximum value is 1000; values above 1000 are coerced to 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; + public Apply setOauthToken(java.lang.String oauthToken) { + return (Apply) super.setOauthToken(oauthToken); } - /** - * Optional. A page token, received from a previous `ListViolations` call. Provide this - * token to retrieve the subsequent page. When paginating, all other parameters that are - * provided to `ListViolations` must match the call that provided the page token. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Apply setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Apply) super.setPrettyPrint(prettyPrint); + } - /** Optional. A page token, received from a previous `ListViolations` call. Provide this token to - retrieve the subsequent page. When paginating, all other parameters that are provided to - `ListViolations` must match the call that provided the page token. - */ - public java.lang.String getPageToken() { - return pageToken; + @Override + public Apply setQuotaUser(java.lang.String quotaUser) { + return (Apply) super.setQuotaUser(quotaUser); } - /** - * Optional. A page token, received from a previous `ListViolations` call. Provide this - * token to retrieve the subsequent page. When paginating, all other parameters that are - * provided to `ListViolations` must match the call that provided the page token. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public Apply setUploadType(java.lang.String uploadType) { + return (Apply) super.setUploadType(uploadType); + } + + @Override + public Apply setUploadProtocol(java.lang.String uploadProtocol) { + return (Apply) super.setUploadProtocol(uploadProtocol); } /** - * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or - * `VIOLATION_VIEW_DATA_BOUNDARY`) to list violations for. If not specified, - * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ + * location_id}/workloads/{workload_id}/updates/{update_id} */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String name; - /** Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or `VIOLATION_VIEW_DATA_BOUNDARY`) - to list violations for. If not specified, `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + /** Required. The resource name of the update. Format: + organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} */ - public java.lang.String getView() { - return view; + public java.lang.String getName() { + return name; } /** - * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or - * `VIOLATION_VIEW_DATA_BOUNDARY`) to list violations for. If not specified, - * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ + * location_id}/workloads/{workload_id}/updates/{update_id} */ - public List setView(java.lang.String view) { - this.view = view; + public Apply 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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); + } + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Apply set(String parameterName, Object value) { + return (Apply) super.set(parameterName, value); } } - - } - } - } - } - - /** - * An accessor for creating requests from the Projects collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Projects.List request = assuredworkloads.projects().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Projects projects() {
- return new Projects();
- }
-
- /**
- * The "projects" collection of methods.
- */
- public class Projects {
-
- /**
- * An accessor for creating requests from the Locations collection.
- *
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Locations.List request = assuredworkloads.locations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Locations locations() {
- return new Locations();
- }
-
- /**
- * The "locations" collection of methods.
- */
- public class Locations {
-
- /**
- * An accessor for creating requests from the DbFindingSummaries collection.
- *
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFindingSummaries dbFindingSummaries() {
- return new DbFindingSummaries();
- }
-
- /**
- * The "dbFindingSummaries" collection of methods.
- */
- public class DbFindingSummaries {
-
- /**
- * Lists summaries of the active findings in a Data Boundary scope (an organization, folder, or
- * project), with one summary for each finding category.
- *
- * Create a request for the method "dbFindingSummaries.list".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The parent scope to list finding summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
- * @return the request
- */
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
- }
-
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - * @since 1.13 + * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * @return the request */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class List extends AssuredworkloadsRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponse.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 List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** Required. The parent scope to list finding summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The parent scope to list finding summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - this.parent = parent; - return this; - } - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** Optional. A filter expression that restricts the framework deployments whose findings are - summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. A filter expression that restricts the framework deployments whose findings - * are summarized. The syntax follows [AIP-160](https://google.aip.dev/160). Supported - * fields are `framework_deployment`, `framework_name`, and `framework_revision` (the - * major revision ID of the framework). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + */ + public java.lang.String getParent() { + return parent; + } - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the server picks an appropriate default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ + public List 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; + } - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Page size. The default value is 20 and the max allowed value is 100. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Page size. The default value is 20 and the max allowed value is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** Page size. The default value is 20 and the max allowed value is 100. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Page token returned from previous request. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** Page token returned from previous request. + */ + public java.lang.String getPageToken() { + return pageToken; + } - } - /** - * An accessor for creating requests from the DbFrameworkComplianceReports collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceReports.List request = assuredworkloads.dbFrameworkComplianceReports().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceReports dbFrameworkComplianceReports() {
- return new DbFrameworkComplianceReports();
- }
+ /** Page token returned from previous request. */
+ public List setPageToken(java.lang.String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
- /**
- * The "dbFrameworkComplianceReports" collection of methods.
- */
- public class DbFrameworkComplianceReports {
+ @Override
+ public List set(String parameterName, Object value) {
+ return (List) super.set(parameterName, value);
+ }
+ }
+ }
/**
- * Gets daily compliance reports over a time range for a framework that's deployed in a Data
- * Boundary scope.
- *
- * Create a request for the method "dbFrameworkComplianceReports.aggregate".
+ * An accessor for creating requests from the Violations collection.
*
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link Aggregate#execute()} method to invoke the remote operation.
+ * The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.Violations.List request = assuredworkloads.violations().list(parameters ...)}
+ *
*
- * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the
- * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations
- * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
- * nce_report}`
- * @return the request
+ * @return the resource collection
*/
- public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
- Aggregate result = new Aggregate(name);
- initialize(result);
- return result;
+ public Violations violations() {
+ return new Violations();
}
- public class Aggregate extends AssuredworkloadsRequest{@link - * Aggregate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote + * operation. * - * @param name Required. The name of the framework compliance report to aggregate over time. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations - * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia - * nce_report}` - * @since 1.13 + * @param name Required. The resource name of the violation to acknowledge. Format: + * `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violat + * ion}` + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest} + * @return the request */ - protected Aggregate(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse.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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - } - - @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 Aggregate set$Xgafv(java.lang.String $Xgafv) { - return (Aggregate) super.set$Xgafv($Xgafv); - } - - @Override - public Aggregate setAccessToken(java.lang.String accessToken) { - return (Aggregate) super.setAccessToken(accessToken); - } - - @Override - public Aggregate setAlt(java.lang.String alt) { - return (Aggregate) super.setAlt(alt); - } - - @Override - public Aggregate setCallback(java.lang.String callback) { - return (Aggregate) super.setCallback(callback); - } - - @Override - public Aggregate setFields(java.lang.String fields) { - return (Aggregate) super.setFields(fields); + public Acknowledge acknowledge(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest content) throws java.io.IOException { + Acknowledge result = new Acknowledge(name, content); + initialize(result); + return result; } - @Override - public Aggregate setKey(java.lang.String key) { - return (Aggregate) super.setKey(key); - } + public class Acknowledge extends AssuredworkloadsRequest{@link + * Acknowledge#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the violation to acknowledge. Format: + * `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violat + * ion}` + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest} + * @since 1.13 + */ + protected Acknowledge(java.lang.String name, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationResponse.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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + } + } - @Override - public Aggregate setUploadType(java.lang.String uploadType) { - return (Aggregate) super.setUploadType(uploadType); - } + @Override + public Acknowledge set$Xgafv(java.lang.String $Xgafv) { + return (Acknowledge) super.set$Xgafv($Xgafv); + } - @Override - public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { - return (Aggregate) super.setUploadProtocol(uploadProtocol); - } + @Override + public Acknowledge setAccessToken(java.lang.String accessToken) { + return (Acknowledge) super.setAccessToken(accessToken); + } - /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Acknowledge setAlt(java.lang.String alt) { + return (Acknowledge) super.setAlt(alt); + } - /** Required. The name of the framework compliance report to aggregate over time. The report ID is the - ID of the compliance framework, for example `builtin-fedramp-high`. Format: `organizations/{organiz - ation_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Acknowledge setCallback(java.lang.String callback) { + return (Acknowledge) super.setCallback(callback); + } - /** - * Required. The name of the framework compliance report to aggregate over time. The - * report ID is the ID of the compliance framework, for example `builtin-fedramp-high`. - * Format: `organizations/{organization_id}/locations/{location}/dbFrameworkComplianceRepo - * rts/{db_framework_compliance_report}` - */ - public Aggregate 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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + @Override + public Acknowledge setFields(java.lang.String fields) { + return (Acknowledge) super.setFields(fields); } - this.name = name; - return this; - } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public Acknowledge setKey(java.lang.String key) { + return (Acknowledge) super.setKey(key); + } - /** Optional. A filter expression that restricts the framework deployments that are included in the - report. The syntax follows [AIP-160](https://google.aip.dev/160). Supported fields are - `framework_deployment`, `framework_name`, and `framework_revision` (the major revision ID of the - framework). - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public Acknowledge setOauthToken(java.lang.String oauthToken) { + return (Acknowledge) super.setOauthToken(oauthToken); + } - /** - * Optional. A filter expression that restricts the framework deployments that are - * included in the report. The syntax follows [AIP-160](https://google.aip.dev/160). - * Supported fields are `framework_deployment`, `framework_name`, and `framework_revision` - * (the major revision ID of the framework). - */ - public Aggregate setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Acknowledge) super.setPrettyPrint(prettyPrint); + } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - @com.google.api.client.util.Key("interval.endTime") - private String intervalEndTime; + @Override + public Acknowledge setQuotaUser(java.lang.String quotaUser) { + return (Acknowledge) super.setQuotaUser(quotaUser); + } - /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have - to be before the end. - */ - public String getIntervalEndTime() { - return intervalEndTime; - } + @Override + public Acknowledge setUploadType(java.lang.String uploadType) { + return (Acknowledge) super.setUploadType(uploadType); + } - /** - * Optional. Exclusive end of the interval. If specified, a Timestamp matching this - * interval will have to be before the end. - */ - public Aggregate setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; - return this; - } + @Override + public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { + return (Acknowledge) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; + /** + * Required. The resource name of the violation to acknowledge. Format: `organizations/{ + * organization}/locations/{location}/workloads/{workload}/violations/{violation}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will - have to be the same or after the start. - */ - public String getIntervalStartTime() { - return intervalStartTime; - } + /** Required. The resource name of the violation to acknowledge. Format: + `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}` + */ + public java.lang.String getName() { + return name; + } - /** - * Optional. Inclusive start of the interval. If specified, a Timestamp matching this - * interval will have to be the same or after the start. - */ - public Aggregate setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; - return this; - } + /** + * Required. The resource name of the violation to acknowledge. Format: `organizations/{ + * organization}/locations/{location}/workloads/{workload}/violations/{violation}` + */ + public Acknowledge 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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Aggregate set(String parameterName, Object value) { - return (Aggregate) super.set(parameterName, value); + @Override + public Acknowledge set(String parameterName, Object value) { + return (Acknowledge) super.set(parameterName, value); + } } - } - /** - * Fetches the current compliance report for a framework that's deployed in a Data Boundary scope - * (an organization, folder, or project). The report includes the number of passing, failing, and - * not assessed controls in the framework. - * - * Create a request for the method "dbFrameworkComplianceReports.fetch". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` - * @return the request - */ - public Fetch fetch(java.lang.String name) throws java.io.IOException { - Fetch result = new Fetch(name); - initialize(result); - return result; - } - - public class Fetch extends AssuredworkloadsRequest{@link - * Fetch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - * compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organ - * ization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report - * }` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_com - * pliance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` - * @since 1.13 + * @param name Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). + * Format: `organizations/{organization}/locations/{location}/workloads/{workload}/violations + * /{violation}` + * @return the request */ - protected Fetch(java.lang.String name) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse.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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - } - } - - @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(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Fetch set$Xgafv(java.lang.String $Xgafv) { - return (Fetch) super.set$Xgafv($Xgafv); - } + public class Get extends AssuredworkloadsRequest+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). + * Format: `organizations/{organization}/locations/{location}/workloads/{workload}/violations + * /{violation}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Violation.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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + } + } - @Override - public Fetch setFields(java.lang.String fields) { - return (Fetch) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Fetch setKey(java.lang.String key) { - return (Fetch) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Fetch setOauthToken(java.lang.String oauthToken) { - return (Fetch) super.setOauthToken(oauthToken); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Fetch) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Fetch setQuotaUser(java.lang.String quotaUser) { - return (Fetch) super.setQuotaUser(quotaUser); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Fetch setUploadType(java.lang.String uploadType) { - return (Fetch) super.setUploadType(uploadType); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Fetch setUploadProtocol(java.lang.String uploadProtocol) { - return (Fetch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Required. The name of the framework compliance report to retrieve. The report ID is the ID of the - compliance framework, for example `builtin-fedramp-high`. Formats: * `organizations/{organization}/ - locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `folders/{fol - der}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` * `project - s/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** - * Required. The name of the framework compliance report to retrieve. The report ID is the - * ID of the compliance framework, for example `builtin-fedramp-high`. Formats: * `organiz - * ations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReport - * s/{db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFramew - * orkComplianceReports/{db_framework_compliance_report}` - */ - public Fetch 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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } - this.name = name; - return this; - } - /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. - */ - @com.google.api.client.util.Key - private String endTime; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** Optional. The end time of the report. Reserved for future use. Currently, the report always - reflects the current compliance state. - */ - public String getEndTime() { - return endTime; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * Optional. The end time of the report. Reserved for future use. Currently, the report - * always reflects the current compliance state. - */ - public Fetch setEndTime(String endTime) { - this.endTime = endTime; - return this; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** + * Required. The resource name of the violation to retrieve (that is, the value of + * `Violation.name`). Format: `organizations/{organization}/locations/{location}/workloa + * ds/{workload}/violations/{violation}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Optional. A filter expression that restricts the results. Reserved for future use. - */ - public java.lang.String getFilter() { - return filter; - } + /** Required. The resource name of the violation to retrieve (that is, the value of `Violation.name`). + Format: + `organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}` + */ + public java.lang.String getName() { + return name; + } - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - public Fetch setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Required. The resource name of the violation to retrieve (that is, the value of + * `Violation.name`). Format: `organizations/{organization}/locations/{location}/workloa + * ds/{workload}/violations/{violation}` + */ + 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 " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Fetch set(String parameterName, Object value) { - return (Fetch) super.set(parameterName, value); - } - } + /** + * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or + * `VIOLATION_VIEW_DATA_BOUNDARY`) that the violation belongs to. If not specified, + * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + */ + @com.google.api.client.util.Key + private java.lang.String view; - /** - * An accessor for creating requests from the DbControlComplianceSummaries collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbControlComplianceSummaries dbControlComplianceSummaries() {
- return new DbControlComplianceSummaries();
- }
+ /** Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or `VIOLATION_VIEW_DATA_BOUNDARY`)
+ that the violation belongs to. If not specified, `VIOLATION_VIEW_ASSURED_WORKLOADS` is used.
+ */
+ public java.lang.String getView() {
+ return view;
+ }
- /**
- * The "dbControlComplianceSummaries" collection of methods.
- */
- public class DbControlComplianceSummaries {
+ /**
+ * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or
+ * `VIOLATION_VIEW_DATA_BOUNDARY`) that the violation belongs to. If not specified,
+ * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used.
+ */
+ public Get setView(java.lang.String view) {
+ this.view = view;
+ return this;
+ }
+ @Override
+ public Get set(String parameterName, Object value) {
+ return (Get) super.set(parameterName, value);
+ }
+ }
/**
- * Lists the compliance summaries of the controls in a framework compliance report.
+ * Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across
+ * multiple Workloads as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
+ * character) as a wildcard character instead of workload-id in the parent. Format
+ * `organizations/{org_id}/locations/{location}/workloads/-`
*
- * Create a request for the method "dbControlComplianceSummaries.list".
+ * Create a request for the method "violations.list".
*
* This request holds the parameters needed by the assuredworkloads server. After setting any
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
- * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga
- * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c
- * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{
- * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom
- * plianceReports/{db_framework_compliance_report}`
+ * @param parent Required. The workload to list violations for. To list violations across all workloads in an
+ * organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`,
+ * violations are listed for the entire organization and location, and the workload ID is
+ * ignored. Format: `organizations/{organization}/locations/{location}/workloads/{workload}`
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
@@ -6510,37 +2846,39 @@ public List list(java.lang.String parent) throws java.io.IOException {
return result;
}
- public class List extends AssuredworkloadsRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The framework compliance report to list control compliance summaries for. Formats: * `orga - * nizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_c - * ompliance_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{ - * db_framework_compliance_report}` * `projects/{project}/locations/{location}/dbFrameworkCom - * plianceReports/{db_framework_compliance_report}` + * @param parent Required. The workload to list violations for. To list violations across all workloads in an + * organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, + * violations are listed for the entire organization and location, and the workload ID is + * ignored. Format: `organizations/{organization}/locations/{location}/workloads/{workload}` * @since 1.13 */ protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse.class); + super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @@ -6610,96 +2948,170 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + * Required. The workload to list violations for. To list violations across all + * workloads in an organization, use `-` as the workload ID. When `view` is + * `VIOLATION_VIEW_DATA_BOUNDARY`, violations are listed for the entire organization and + * location, and the workload ID is ignored. Format: + * `organizations/{organization}/locations/{location}/workloads/{workload}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The framework compliance report to list control compliance summaries for. Formats: * `org - anizations/{organization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc - e_report}` * `folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_comp - liance_report}` * `projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framewo - rk_compliance_report}` + /** Required. The workload to list violations for. To list violations across all workloads in an + organization, use `-` as the workload ID. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, violations + are listed for the entire organization and location, and the workload ID is ignored. Format: + `organizations/{organization}/locations/{location}/workloads/{workload}` */ public java.lang.String getParent() { return parent; } /** - * Required. The framework compliance report to list control compliance summaries for. - * Formats: * `organizations/{organization}/locations/{location}/dbFrameworkComplianceRe - * ports/{db_framework_compliance_report}` * `folders/{folder}/locations/{location}/dbFr - * ameworkComplianceReports/{db_framework_compliance_report}` * `projects/{project}/loca - * tions/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}` + * Required. The workload to list violations for. To list violations across all + * workloads in an organization, use `-` as the workload ID. When `view` is + * `VIOLATION_VIEW_DATA_BOUNDARY`, violations are listed for the entire organization and + * location, and the workload ID is ignored. Format: + * `organizations/{organization}/locations/{location}/workloads/{workload}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } this.parent = parent; return this; } /** - * Optional. A filter expression that restricts the results. The syntax follows - * [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - * `framework_name`, `framework_revision` (the major revision ID of the framework), and - * `end_time`. The `end_time` field accepts a single equality comparison with an [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - * "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are - * counted. + * Optional. A filter expression that restricts the violations that are returned. The + * syntax follows [AIP-160](https://google.aip.dev/160). Only the equality operator + * (`=`) is supported, and expressions can be combined with `AND`, `OR`, and `NOT`. When + * `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: + * `violationId`, `category`, `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), + * `violationType` (`ORG_POLICY` or `RESOURCE`), `resourceType`, `resourceName`, + * `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, + * `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = + * "UNRESOLVED" AND complianceType = "builtin-fedramp-high"` */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A filter expression that restricts the results. The syntax follows - [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - `framework_name`, `framework_revision` (the major revision ID of the framework), and `end_time`. - The `end_time` field accepts a single equality comparison with an [RFC - 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are counted. + /** Optional. A filter expression that restricts the violations that are returned. The syntax follows + [AIP-160](https://google.aip.dev/160). Only the equality operator (`=`) is supported, and + expressions can be combined with `AND`, `OR`, and `NOT`. When `view` is + `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `violationId`, `category`, + `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), `violationType` (`ORG_POLICY` or `RESOURCE`), + `resourceType`, `resourceName`, `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, + `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = "UNRESOLVED" AND + complianceType = "builtin-fedramp-high"` */ public java.lang.String getFilter() { return filter; } /** - * Optional. A filter expression that restricts the results. The syntax follows - * [AIP-160](https://google.aip.dev/160). Supported fields are `framework_deployment`, - * `framework_name`, `framework_revision` (the major revision ID of the framework), and - * `end_time`. The `end_time` field accepts a single equality comparison with an [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp, for example `end_time = - * "2026-01-01T00:00:00Z"`. Only findings that were updated at or after this time are - * counted. + * Optional. A filter expression that restricts the violations that are returned. The + * syntax follows [AIP-160](https://google.aip.dev/160). Only the equality operator + * (`=`) is supported, and expressions can be combined with `AND`, `OR`, and `NOT`. When + * `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: + * `violationId`, `category`, `state` (`UNRESOLVED`, `RESOLVED`, or `EXCEPTION`), + * `violationType` (`ORG_POLICY` or `RESOURCE`), `resourceType`, `resourceName`, + * `project`, `associatedOrgPolicyViolationId`, `cloudControlName`, + * `workloadDisplayName`, and `complianceType` (a framework ID). Example: `state = + * "UNRESOLVED" AND complianceType = "builtin-fedramp-high"` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The end of the time window. */ + @com.google.api.client.util.Key("interval.endTime") + private String intervalEndTime; + + /** The end of the time window. + */ + public String getIntervalEndTime() { + return intervalEndTime; + } + + /** The end of the time window. */ + public List setIntervalEndTime(String intervalEndTime) { + this.intervalEndTime = intervalEndTime; + return this; + } + + /** The start of the time window. */ + @com.google.api.client.util.Key("interval.startTime") + private String intervalStartTime; + + /** The start of the time window. + */ + public String getIntervalStartTime() { + return intervalStartTime; + } + + /** The start of the time window. */ + public List setIntervalStartTime(String intervalStartTime) { + this.intervalStartTime = intervalStartTime; + return this; + } + + /** + * Optional. A comma-separated list of fields to sort the results by. The default sort + * order is ascending; to sort in descending order, append ` desc` to the field name. + * For example, `update_time desc,category`. When `view` is + * `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `begin_time`, + * `update_time`, `resource_type`, `state`, and `category`. If not specified, results + * are sorted by `begin_time` in descending order. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. A comma-separated list of fields to sort the results by. The default sort order is + ascending; to sort in descending order, append ` desc` to the field name. For example, `update_time + desc,category`. When `view` is `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: + `begin_time`, `update_time`, `resource_type`, `state`, and `category`. If not specified, results + are sorted by `begin_time` in descending order. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. A comma-separated list of fields to sort the results by. The default sort + * order is ascending; to sort in descending order, append ` desc` to the field name. + * For example, `update_time desc,category`. When `view` is + * `VIOLATION_VIEW_DATA_BOUNDARY`, the following fields are supported: `begin_time`, + * `update_time`, `resource_type`, `state`, and `category`. If not specified, results + * are sorted by `begin_time` in descending order. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the default page size is 50. The maximum value is 1000. + * Optional. The maximum number of violations to return. The service might return fewer + * violations than this value. If unspecified, at most 100 violations are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. + /** Optional. The maximum number of violations to return. The service might return fewer violations + than this value. If unspecified, at most 100 violations are returned. The maximum value is 1000; + values above 1000 are coerced to 1000. */ public java.lang.Integer getPageSize() { return pageSize; } /** - * Optional. The requested page size. The server might return fewer items than - * requested. If unspecified, the default page size is 50. The maximum value is 1000. + * Optional. The maximum number of violations to return. The service might return fewer + * violations than this value. If unspecified, at most 100 violations are returned. The + * maximum value is 1000; values above 1000 are coerced to 1000. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -6707,296 +3119,63 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. A page token, received from a previous `ListViolations` call. Provide this + * token to retrieve the subsequent page. When paginating, all other parameters that are + * provided to `ListViolations` must match the call that provided the page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. + /** Optional. A page token, received from a previous `ListViolations` call. Provide this token to + retrieve the subsequent page. When paginating, all other parameters that are provided to + `ListViolations` must match the call that provided the page token. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. + * Optional. A page token, received from a previous `ListViolations` call. Provide this + * token to retrieve the subsequent page. When paginating, all other parameters that are + * provided to `ListViolations` must match the call that provided the page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the DbFrameworkComplianceSummaries collection. - * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFrameworkComplianceSummaries.List request = assuredworkloads.dbFrameworkComplianceSummaries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public DbFrameworkComplianceSummaries dbFrameworkComplianceSummaries() {
- return new DbFrameworkComplianceSummaries();
- }
-
- /**
- * The "dbFrameworkComplianceSummaries" collection of methods.
- */
- public class DbFrameworkComplianceSummaries {
-
- /**
- * Lists the compliance summaries of the frameworks that are deployed in a Data Boundary scope (an
- * organization, folder, or project).
- *
- * Create a request for the method "dbFrameworkComplianceSummaries.list".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The parent scope to list framework compliance summaries for. Formats: *
- * `organizations/{organization}/locations/{location}` *
- * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}`
- * @return the request
- */
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
- initialize(result);
- return result;
- }
-
- public class List extends AssuredworkloadsRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Assuredworkloads.this, "GET", REST_PATH, null, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or `VIOLATION_VIEW_DATA_BOUNDARY`) + to list violations for. If not specified, `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + */ + public java.lang.String getView() { + return view; } - } - - @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); - } - - /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent scope to list framework compliance summaries for. Formats: * - `organizations/{organization}/locations/{location}` * `folders/{folder}/locations/{location}` * - `projects/{project}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The parent scope to list framework compliance summaries for. Formats: * - * `organizations/{organization}/locations/{location}` * - * `folders/{folder}/locations/{location}` * `projects/{project}/locations/{location}` - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + /** + * Optional. The violation view (`VIOLATION_VIEW_ASSURED_WORKLOADS` or + * `VIOLATION_VIEW_DATA_BOUNDARY`) to list violations for. If not specified, + * `VIOLATION_VIEW_ASSURED_WORKLOADS` is used. + */ + public List setView(java.lang.String view) { + this.view = view; + return this; } - this.parent = parent; - return this; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** Optional. A filter expression that restricts the results. Reserved for future use. - */ - public java.lang.String getFilter() { - return filter; - } - - /** Optional. A filter expression that restricts the results. Reserved for future use. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the default page size is 50. The maximum value is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the default page size is 50. The maximum value is 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A token that identifies the page of results that the server should return. Pass the - `next_page_token` value from a previous result. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A token that identifies the page of results that the server should return. - * Pass the `next_page_token` value from a previous result. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** Optional. The level of detail to return for each summary. If not specified, - `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - public java.lang.String getView() { - return view; - } - /** - * Optional. The level of detail to return for each summary. If not specified, - * `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC` is used. - */ - public List setView(java.lang.String view) { - this.view = view; - return this; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } } - } } } diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/AssuredworkloadsScopes.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/AssuredworkloadsScopes.java index c424ac93b62..cda637e516a 100644 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/AssuredworkloadsScopes.java +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/AssuredworkloadsScopes.java @@ -23,6 +23,12 @@ */ public class AssuredworkloadsScopes { + /** See, edit, configure, and delete your Google Cloud Assured Workloads data and see the email address for your Google Account. */ + public static final String ASSUREDWORKLOADS = "https://www.googleapis.com/auth/assuredworkloads"; + + /** See your Google Cloud Assured Workloads data and the email address of your Google Account. */ + public static final String ASSUREDWORKLOADS_READONLY = "https://www.googleapis.com/auth/assuredworkloads.readonly"; + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; @@ -33,6 +39,8 @@ public class AssuredworkloadsScopes { */ public static java.util.SetThis 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 GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse extends com.google.api.client.json.GenericJson { - - /** - * The daily compliance reports for the requested time range. - * 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 GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport extends com.google.api.client.json.GenericJson { - - /** - * The number of passing, failing, and not assessed controls in the framework at `report_time`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails; - - /** - * The time that the compliance report represents. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String reportTime; - - /** - * The number of passing, failing, and not assessed controls in the framework at `report_time`. - * @return value or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails getControlAssessmentDetails() { - return controlAssessmentDetails; - } - - /** - * The number of passing, failing, and not assessed controls in the framework at `report_time`. - * @param controlAssessmentDetails controlAssessmentDetails or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport setControlAssessmentDetails(GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails) { - this.controlAssessmentDetails = controlAssessmentDetails; - return this; - } - - /** - * The time that the compliance report represents. - * @return value or {@code null} for none - */ - public String getReportTime() { - return reportTime; - } - - /** - * The time that the compliance report represents. - * @param reportTime reportTime or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport setReportTime(String reportTime) { - this.reportTime = reportTime; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport clone() { - return (GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CELExpression.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CELExpression.java deleted file mode 100644 index 8ec29c9a21e..00000000000 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CELExpression.java +++ /dev/null @@ -1,100 +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; - -/** - * A Common Expression Language (CEL) expression that's used to create a rule. - * - *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 GoogleCloudAssuredworkloadsV1beta1CELExpression extends com.google.api.client.json.GenericJson { - - /** - * Required. The logical expression in CEL. The maximum length of the condition is 1000 - * characters. For more information, see [CEL expression](https://cloud.google.com/security- - * command-center/docs/compliance-manager-write-cel-expressions). - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String expression; - - /** - * The resource instance types on which this expression is defined. The format is `/`. For - * example: `compute.googleapis.com/Instance` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1beta1StringList resourceTypesValues; - - /** - * Required. The logical expression in CEL. The maximum length of the condition is 1000 - * characters. For more information, see [CEL expression](https://cloud.google.com/security- - * command-center/docs/compliance-manager-write-cel-expressions). - * @return value or {@code null} for none - */ - public java.lang.String getExpression() { - return expression; - } - - /** - * Required. The logical expression in CEL. The maximum length of the condition is 1000 - * characters. For more information, see [CEL expression](https://cloud.google.com/security- - * command-center/docs/compliance-manager-write-cel-expressions). - * @param expression expression or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1CELExpression setExpression(java.lang.String expression) { - this.expression = expression; - return this; - } - - /** - * The resource instance types on which this expression is defined. The format is `/`. For - * example: `compute.googleapis.com/Instance` - * @return value or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1StringList getResourceTypesValues() { - return resourceTypesValues; - } - - /** - * The resource instance types on which this expression is defined. The format is `/`. For - * example: `compute.googleapis.com/Instance` - * @param resourceTypesValues resourceTypesValues or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1CELExpression setResourceTypesValues(GoogleCloudAssuredworkloadsV1beta1StringList resourceTypesValues) { - this.resourceTypesValues = resourceTypesValues; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1beta1CELExpression set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1beta1CELExpression) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1beta1CELExpression clone() { - return (GoogleCloudAssuredworkloadsV1beta1CELExpression) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails.java deleted file mode 100644 index 46265f2e15a..00000000000 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails.java +++ /dev/null @@ -1,139 +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; - -/** - * The cloud control assessment details for non-manual cloud controls. - * - *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 GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails extends com.google.api.client.json.GenericJson { - - /** - * Output only. The evaluation status of the cloud control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String evaluationState; - - /** - * The number of findings for the cloud control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer findingsCount; - - /** - * Output only. Number of organization policy findings for the cloud control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long orgPolicyFindingCount; - - /** - * Output only. Number of resource findings for the cloud control. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long resourceFindingCount; - - /** - * Output only. The evaluation status of the cloud control. - * @return value or {@code null} for none - */ - public java.lang.String getEvaluationState() { - return evaluationState; - } - - /** - * Output only. The evaluation status of the cloud control. - * @param evaluationState evaluationState or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails setEvaluationState(java.lang.String evaluationState) { - this.evaluationState = evaluationState; - return this; - } - - /** - * The number of findings for the cloud control. - * @return value or {@code null} for none - */ - public java.lang.Integer getFindingsCount() { - return findingsCount; - } - - /** - * The number of findings for the cloud control. - * @param findingsCount findingsCount or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails setFindingsCount(java.lang.Integer findingsCount) { - this.findingsCount = findingsCount; - return this; - } - - /** - * Output only. Number of organization policy findings for the cloud control. - * @return value or {@code null} for none - */ - public java.lang.Long getOrgPolicyFindingCount() { - return orgPolicyFindingCount; - } - - /** - * Output only. Number of organization policy findings for the cloud control. - * @param orgPolicyFindingCount orgPolicyFindingCount or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails setOrgPolicyFindingCount(java.lang.Long orgPolicyFindingCount) { - this.orgPolicyFindingCount = orgPolicyFindingCount; - return this; - } - - /** - * Output only. Number of resource findings for the cloud control. - * @return value or {@code null} for none - */ - public java.lang.Long getResourceFindingCount() { - return resourceFindingCount; - } - - /** - * Output only. Number of resource findings for the cloud control. - * @param resourceFindingCount resourceFindingCount or {@code null} for none - */ - public GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails setResourceFindingCount(java.lang.Long resourceFindingCount) { - this.resourceFindingCount = resourceFindingCount; - return this; - } - - @Override - public GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails set(String fieldName, Object value) { - return (GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails) super.set(fieldName, value); - } - - @Override - public GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails clone() { - return (GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails) super.clone(); - } - -} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlReport.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlReport.java deleted file mode 100644 index 4a0c54f3ba5..00000000000 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlReport.java +++ /dev/null @@ -1,427 +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; - -/** - * The cloud control report. - * - *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 GoogleCloudAssuredworkloadsV1beta1CloudControlReport extends com.google.api.client.json.GenericJson { - - /** - * The list of categories for the cloud control. - * 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 GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails extends com.google.api.client.json.GenericJson { - - /** - * The list of controls that were assessed and are passing. - * 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 GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary extends com.google.api.client.json.GenericJson { - - /** - * The list of cloud control reports. - * 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 GoogleCloudAssuredworkloadsV1beta1DbFindingSummary extends com.google.api.client.json.GenericJson { - - /** - * Output only. The category of the findings that are summarized. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String findingCategory; - - /** - * Output only. The class of the findings. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String findingClass; - - /** - * Output only. The total number of active findings in the category. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long findingCount; - - /** - * Identifier. The resource name of the finding summary. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. The number of active organization policy findings in the 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 display names of the compliance frameworks that the findings are related to. - * 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 GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary extends com.google.api.client.json.GenericJson { - - /** - * The number of passing, failing, and not assessed controls in the framework. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails; - - /** - * Output only. The trend of passing controls over the trend duration. This field is only - * populated when using `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1beta1Trend controlsPassingTrend; - - /** - * Output only. The number of findings that were generated against the framework. This field is - * only populated when using `FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long findingCount; - - /** - * The resource name of the compliance framework. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String framework; - - /** - * The categories of the framework. - * 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 GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse extends com.google.api.client.json.GenericJson { - - /** - * The number of passing, failing, and not assessed controls in the framework. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails; - - /** - * The resource name of the compliance framework. For example, - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String framework; - - /** - * The categories of the framework. - * 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 GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse extends com.google.api.client.json.GenericJson { - - /** - * The list of control compliance summaries. - * 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 GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse extends com.google.api.client.json.GenericJson { - - /** - * The list of finding summaries, one for each finding category. - * 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 GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse extends com.google.api.client.json.GenericJson { - - /** - * The list of framework compliance summaries. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.List