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 0ef5361d671..a3039efbc45 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.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.
+ * An accessor for creating requests from the DbFrameworkComplianceReports collection.
*
* The typical use is:
*
* {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
+ * {@code Assuredworkloads.DbFrameworkComplianceReports.List request = assuredworkloads.dbFrameworkComplianceReports().list(parameters ...)}
*
*
* @return the resource collection
*/
- public DbFindingSummaries dbFindingSummaries() {
- return new DbFindingSummaries();
+ public DbFrameworkComplianceReports dbFrameworkComplianceReports() {
+ return new DbFrameworkComplianceReports();
}
/**
- * The "dbFindingSummaries" collection of methods.
+ * The "dbFrameworkComplianceReports" collection of methods.
*/
- public class DbFindingSummaries {
+ public class DbFrameworkComplianceReports {
/**
- * Lists the finding summary by category for a given scope.
+ * Gets the aggregated compliance report over time for a given scope.
*
- * Create a request for the method "dbFindingSummaries.list".
+ * Create a request for the method "dbFrameworkComplianceReports.aggregate".
*
* 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 Aggregate#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent scope for the framework overview page. Formats: -
- * projects/{project}/locations/{location} - folders/{folder}/locations/{location} -
- * organizations/{organization}/locations/{location}
+ * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations
+ * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}`
* @return the request
*/
- public List list(java.lang.String parent) throws java.io.IOException {
- List result = new List(parent);
+ public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
+ Aggregate result = new Aggregate(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 Aggregate#execute()} method to invoke the remote + * operation.
{@link + * Aggregate#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 for the framework overview page. Formats: - - * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - - * organizations/{organization}/locations/{location} + * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations + * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report}` * @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 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(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 " + + "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @@ -756,88 +714,88 @@ 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 Aggregate set$Xgafv(java.lang.String $Xgafv) { + return (Aggregate) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Aggregate setAccessToken(java.lang.String accessToken) { + return (Aggregate) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Aggregate setAlt(java.lang.String alt) { + return (Aggregate) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Aggregate setCallback(java.lang.String callback) { + return (Aggregate) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Aggregate setFields(java.lang.String fields) { + return (Aggregate) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Aggregate setKey(java.lang.String key) { + return (Aggregate) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Aggregate setOauthToken(java.lang.String oauthToken) { + return (Aggregate) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Aggregate) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Aggregate setQuotaUser(java.lang.String quotaUser) { + return (Aggregate) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Aggregate setUploadType(java.lang.String uploadType) { + return (Aggregate) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { + return (Aggregate) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent scope for the framework overview page. Formats: - - * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - - * organizations/{organization}/locations/{location} + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent scope for the framework overview page. Formats: - - projects/{project}/locations/{location} - folders/{folder}/locations/{location} - - organizations/{organization}/locations/{location} + /** Required. The name of the aggregated compliance report over time to retrieve. Format: `organization + s/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repo + rt}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The parent scope for the framework overview page. Formats: - - * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - - * organizations/{organization}/locations/{location} + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` */ - public List setParent(java.lang.String parent) { + public Aggregate 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @@ -852,127 +810,107 @@ public java.lang.String getFilter() { } /** Optional. The filtering results. */ - public List setFilter(java.lang.String filter) { + public Aggregate 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. + * 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 - private java.lang.Integer pageSize; + @com.google.api.client.util.Key("interval.endTime") + private String intervalEndTime; - /** Optional. The requested page size. The server might return fewer items than requested. If - unspecified, the server picks an appropriate default. + /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have + to be before the end. */ - public java.lang.Integer getPageSize() { - return pageSize; + public String getIntervalEndTime() { + return intervalEndTime; } /** - * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this + * interval will have to be before the end. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + public Aggregate setIntervalEndTime(String intervalEndTime) { + this.intervalEndTime = intervalEndTime; return this; } /** - * Optional. A token that identifies the page of results that the server should return. + * 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 - private java.lang.String pageToken; + @com.google.api.client.util.Key("interval.startTime") + private String intervalStartTime; - /** Optional. A token that identifies the page of results that the server should return. + /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will + have to be the same or after the start. */ - public java.lang.String getPageToken() { - return pageToken; + public String getIntervalStartTime() { + return intervalStartTime; } /** - * Optional. A token that identifies the page of results that the server should return. + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this + * interval will have to be the same or after the start. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public Aggregate setIntervalStartTime(String intervalStartTime) { + this.intervalStartTime = intervalStartTime; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Aggregate set(String parameterName, Object value) { + return (Aggregate) 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.
+ * Fetches the framework compliance report for a given scope.
*
- * Create a request for the method "operations.get".
+ * 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 Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation resource.
+ * @param name Required. The name of the framework compliance report to retrieve.
* @return the request
*/
- public Get get(java.lang.String name) throws java.io.IOException {
- Get result = new Get(name);
+ public Fetch fetch(java.lang.String name) throws java.io.IOException {
+ Fetch result = new Fetch(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.
+ * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation. + *{@link + * Fetch#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 Required. The name of the framework compliance report to retrieve. * @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 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 " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @@ -987,132 +925,431 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Fetch set$Xgafv(java.lang.String $Xgafv) { + return (Fetch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Fetch setAccessToken(java.lang.String accessToken) { + return (Fetch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Fetch setAlt(java.lang.String alt) { + return (Fetch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Fetch setCallback(java.lang.String callback) { + return (Fetch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Fetch setFields(java.lang.String fields) { + return (Fetch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Fetch setKey(java.lang.String key) { + return (Fetch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Fetch setOauthToken(java.lang.String oauthToken) { + return (Fetch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Fetch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Fetch setQuotaUser(java.lang.String quotaUser) { + return (Fetch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Fetch setUploadType(java.lang.String uploadType) { + return (Fetch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Fetch setUploadProtocol(java.lang.String uploadProtocol) { + return (Fetch) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** Required. The name of the framework compliance report to retrieve. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. The name of the framework compliance report to retrieve. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** Required. The name of the framework compliance report to retrieve. */ + 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 " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } this.name = name; return this; } + /** Optional. The end time of the report. */ + @com.google.api.client.util.Key + private String endTime; + + /** Optional. The end time of the report. + */ + public String getEndTime() { + return endTime; + } + + /** Optional. The end time of the report. */ + public Fetch setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + public Fetch setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Fetch set(String parameterName, Object value) { + return (Fetch) super.set(parameterName, value); } } + /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". + * An accessor for creating requests from the DbControlComplianceSummaries collection. * - * 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. + *The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
+ *
*
- * @param name The name of the operation's parent resource.
- * @return the request
+ * @return the resource collection
*/
- public List list(java.lang.String name) throws java.io.IOException {
- List result = new List(name);
+ public DbControlComplianceSummaries dbControlComplianceSummaries() {
+ return new DbControlComplianceSummaries();
+ }
+
+ /**
+ * The "dbControlComplianceSummaries" collection of methods.
+ */
+ public class DbControlComplianceSummaries {
+
+ /**
+ * Lists the control compliance summary for a given scope.
+ *
+ * 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 parent scope for the framework overview page. Format: organizations/{organization}/loc
+ * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f
+ * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}
+ * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}
+ * @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 for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_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 parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{db_framework_compliance_report} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent scope for the framework overview page. Format: organizations/{organization}/lo + cations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repor + t} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{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. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + 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. + */ + @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. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token that identifies the page of results that the server should return. + */ + 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 framework compliance summary for a given scope.
+ *
+ * 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 for the framework compliance summary. Format:
+ * 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 name The name of the operation's parent resource. + * @param parent Required. The parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} * @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); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } } @@ -1181,107 +1418,112 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation's parent resource. + /** Required. The parent scope for the framework compliance summary. Format: + organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + projects/{project}/locations/{location} */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. The parent scope for the framework compliance summary. Format: + * 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** The standard list filter. */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key private java.lang.String filter; - /** The standard list filter. + /** Optional. The filtering results. */ public java.lang.String getFilter() { return filter; } - /** The standard list filter. */ + /** Optional. The filtering results. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** The standard list page size. */ + /** + * 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; - /** The standard list page size. + /** 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; } - /** The standard list page size. */ + /** + * 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; } - /** The standard list page token. */ + /** + * 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; - /** The standard list page token. + /** 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; } - /** The standard list page token. */ + /** + * 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; } - /** - * 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. - */ + /** Optional. Specifies the level of detail to return in the response. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String view; - /** 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. + /** Optional. Specifies the level of detail to return in the response. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getView() { + return view; } - /** - * 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; + /** Optional. Specifies the level of detail to return in the response. */ + public List setView(java.lang.String view) { + this.view = view; return this; } @@ -1292,82 +1534,117 @@ public List set(String parameterName, Object 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 Workloads collection.
+ * An accessor for creating requests from the DbFindingSummaries collection.
*
* The typical use is:
*
* {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Workloads.List request = assuredworkloads.workloads().list(parameters ...)}
+ * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Workloads workloads() {
- return new Workloads();
+ public DbFindingSummaries dbFindingSummaries() {
+ return new DbFindingSummaries();
}
/**
- * The "workloads" collection of methods.
+ * The "dbFindingSummaries" collection of methods.
*/
- public class Workloads {
+ public class DbFindingSummaries {
/**
- * 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.
+ * Lists the finding summary by category for a given scope.
*
- * Create a request for the method "workloads.analyzeWorkloadMove".
+ * 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 AnalyzeWorkloadMove#execute()} method to invoke the remote
- * operation.
+ * optional parameters, call the {@link List#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"
+ * @param parent Required. The parent scope for the framework overview page. Formats: -
+ * projects/{project}/locations/{location} - folders/{folder}/locations/{location} -
+ * organizations/{organization}/locations/{location}
* @return the request
*/
- public AnalyzeWorkloadMove analyzeWorkloadMove(java.lang.String target) throws java.io.IOException {
- AnalyzeWorkloadMove result = new AnalyzeWorkloadMove(target);
+ public List list(java.lang.String parent) throws java.io.IOException {
+ List result = new List(parent);
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.
+ * 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 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" + * @param parent Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} * @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."); + 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(TARGET_PATTERN.matcher(target).matches(), - "Parameter target must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); } } @@ -1382,872 +1659,1126 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AnalyzeWorkloadMove set$Xgafv(java.lang.String $Xgafv) { - return (AnalyzeWorkloadMove) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AnalyzeWorkloadMove setAccessToken(java.lang.String accessToken) { - return (AnalyzeWorkloadMove) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AnalyzeWorkloadMove setAlt(java.lang.String alt) { - return (AnalyzeWorkloadMove) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AnalyzeWorkloadMove setCallback(java.lang.String callback) { - return (AnalyzeWorkloadMove) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AnalyzeWorkloadMove setFields(java.lang.String fields) { - return (AnalyzeWorkloadMove) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AnalyzeWorkloadMove setKey(java.lang.String key) { - return (AnalyzeWorkloadMove) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AnalyzeWorkloadMove setOauthToken(java.lang.String oauthToken) { - return (AnalyzeWorkloadMove) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AnalyzeWorkloadMove setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AnalyzeWorkloadMove) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AnalyzeWorkloadMove setQuotaUser(java.lang.String quotaUser) { - return (AnalyzeWorkloadMove) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AnalyzeWorkloadMove setUploadType(java.lang.String uploadType) { - return (AnalyzeWorkloadMove) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AnalyzeWorkloadMove setUploadProtocol(java.lang.String uploadProtocol) { - return (AnalyzeWorkloadMove) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) 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 parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} */ @com.google.api.client.util.Key - private java.lang.String target; + private java.lang.String parent; - /** 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 parent scope for the framework overview page. Formats: - + projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + organizations/{organization}/locations/{location} */ - public java.lang.String getTarget() { - return target; + public java.lang.String getParent() { + return parent; } /** - * 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 parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} */ - public AnalyzeWorkloadMove setTarget(java.lang.String target) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), - "Parameter target must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); } - this.target = target; + this.parent = parent; 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). - */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key - private java.util.ListThe 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 {
+
/**
- * Creates Assured Workload.
+ * Gets the aggregated compliance report over time for a given scope.
*
- * Create a request for the method "workloads.create".
+ * Create a request for the method "dbFrameworkComplianceReports.aggregate".
*
* 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.
+ * optional parameters, call the {@link Aggregate#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}
+ * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations
+ * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}`
* @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);
+ public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
+ Aggregate result = new Aggregate(name);
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.
+ * optional parameters, call the {@link Aggregate#execute()} method to invoke the remote + * operation.{@link + * Aggregate#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} + * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations + * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report}` * @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."); + 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(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/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Aggregate set$Xgafv(java.lang.String $Xgafv) { + return (Aggregate) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Aggregate setAccessToken(java.lang.String accessToken) { + return (Aggregate) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Aggregate setAlt(java.lang.String alt) { + return (Aggregate) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Aggregate setCallback(java.lang.String callback) { + return (Aggregate) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Aggregate setFields(java.lang.String fields) { + return (Aggregate) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Aggregate setKey(java.lang.String key) { + return (Aggregate) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Aggregate setOauthToken(java.lang.String oauthToken) { + return (Aggregate) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Aggregate) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Aggregate setQuotaUser(java.lang.String quotaUser) { + return (Aggregate) super.setQuotaUser(quotaUser); + } + + @Override + public Aggregate setUploadType(java.lang.String uploadType) { + return (Aggregate) super.setUploadType(uploadType); + } + + @Override + public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { + return (Aggregate) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource name of the new Workload's parent. Must be of the form - `organizations/{org_id}/locations/{location_id}`. + /** Required. The name of the aggregated compliance report over time to retrieve. Format: `organization + s/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repo + rt}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` */ - public Create setParent(java.lang.String parent) { + public Aggregate 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } - this.parent = parent; + this.name = name; + return this; + } + + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + public Aggregate setFilter(java.lang.String filter) { + this.filter = filter; 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. + * 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 - private java.lang.String externalId; + @com.google.api.client.util.Key("interval.endTime") + private String intervalEndTime; - /** 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. + /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have + to be before the end. */ - public java.lang.String getExternalId() { - return externalId; + public String getIntervalEndTime() { + return intervalEndTime; } /** - * 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. + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this + * interval will have to be before the end. */ - public Create setExternalId(java.lang.String externalId) { - this.externalId = externalId; + 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 Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Aggregate set(String parameterName, Object value) { + return (Aggregate) 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. + * Fetches the framework compliance report for a given scope. * - * Create a request for the method "workloads.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Fetch#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 name Required. The name of the framework compliance report to retrieve. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Fetch fetch(java.lang.String name) throws java.io.IOException { + Fetch result = new Fetch(name); initialize(result); return result; } - public class Delete extends AssuredworkloadsRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Fetch#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} + * @param name Required. The name of the framework compliance report to retrieve. * @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); + 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Fetch set$Xgafv(java.lang.String $Xgafv) { + return (Fetch) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Fetch setAccessToken(java.lang.String accessToken) { + return (Fetch) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Fetch setAlt(java.lang.String alt) { + return (Fetch) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Fetch setCallback(java.lang.String callback) { + return (Fetch) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Fetch setFields(java.lang.String fields) { + return (Fetch) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Fetch setKey(java.lang.String key) { + return (Fetch) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Fetch setOauthToken(java.lang.String oauthToken) { + return (Fetch) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Fetch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Fetch setQuotaUser(java.lang.String quotaUser) { + return (Fetch) super.setQuotaUser(quotaUser); } - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ + @Override + public Fetch setUploadType(java.lang.String uploadType) { + return (Fetch) super.setUploadType(uploadType); + } + + @Override + public Fetch setUploadProtocol(java.lang.String uploadProtocol) { + return (Fetch) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the framework compliance report to retrieve. */ @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} + /** Required. The name of the framework compliance report to retrieve. */ 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) { + /** Required. The name of the framework compliance report to retrieve. */ + 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } this.name = name; return this; } - /** - * Optional. The etag of the workload. If this is provided, it must match the server's - * etag. - */ + /** Optional. The end time of the report. */ @com.google.api.client.util.Key - private java.lang.String etag; + private String endTime; - /** Optional. The etag of the workload. If this is provided, it must match the server's etag. + /** Optional. The end time of the report. */ - public java.lang.String getEtag() { - return etag; + public String getEndTime() { + return endTime; } - /** - * Optional. The etag of the workload. If this is provided, it must match the server's - * etag. + /** Optional. The end time of the report. */ + public Fetch setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + public Fetch setFilter(java.lang.String filter) { + this.filter = filter; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Fetch set(String parameterName, Object value) { + return (Fetch) 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. + * An accessor for creating requests from the DbControlComplianceSummaries collection. * - * 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. + *The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
+ *
*
- * @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
+ * @return the resource collection
*/
- public EnableComplianceUpdates enableComplianceUpdates(java.lang.String name) throws java.io.IOException {
- EnableComplianceUpdates result = new EnableComplianceUpdates(name);
- initialize(result);
- return result;
+ public DbControlComplianceSummaries dbControlComplianceSummaries() {
+ return new DbControlComplianceSummaries();
}
- 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.
+ * 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 name Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @since 1.13 + * @param parent Required. The parent scope for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report} + * @return the request */ - 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/[^/]+$"); - } + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public EnableComplianceUpdates set$Xgafv(java.lang.String $Xgafv) { - return (EnableComplianceUpdates) super.set$Xgafv($Xgafv); - } + 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 for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_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 EnableComplianceUpdates setFields(java.lang.String fields) { - return (EnableComplianceUpdates) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public EnableComplianceUpdates setKey(java.lang.String key) { - return (EnableComplianceUpdates) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public EnableComplianceUpdates setOauthToken(java.lang.String oauthToken) { - return (EnableComplianceUpdates) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public EnableComplianceUpdates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableComplianceUpdates) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public EnableComplianceUpdates setQuotaUser(java.lang.String quotaUser) { - return (EnableComplianceUpdates) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public EnableComplianceUpdates setUploadType(java.lang.String uploadType) { - return (EnableComplianceUpdates) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public EnableComplianceUpdates setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableComplianceUpdates) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * 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; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** 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; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * 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/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - 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". + @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 for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{db_framework_compliance_report} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent scope for the framework overview page. Format: organizations/{organization}/lo + cations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repor + t} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{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 " + + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + 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. + */ + @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. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token that identifies the page of results that the server should return. + */ + 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 framework compliance summary for a given scope.
+ *
+ * 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 EnableResourceMonitoring#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` field is used to identify the workload. Format:
- * organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
+ * @param parent Required. The parent scope for the framework compliance summary. Format:
+ * organizations/{organization}/locations/{location} folders/{folder}/locations/{location}
+ * projects/{project}/locations/{location}
* @return the request
*/
- public EnableResourceMonitoring enableResourceMonitoring(java.lang.String name) throws java.io.IOException {
- EnableResourceMonitoring result = new EnableResourceMonitoring(name);
+ public List list(java.lang.String parent) throws java.io.IOException {
+ List result = new List(parent);
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.
+ * 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` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * @param parent Required. The parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} * @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."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); } } @Override - public EnableResourceMonitoring set$Xgafv(java.lang.String $Xgafv) { - return (EnableResourceMonitoring) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public EnableResourceMonitoring setAccessToken(java.lang.String accessToken) { - return (EnableResourceMonitoring) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public EnableResourceMonitoring setAlt(java.lang.String alt) { - return (EnableResourceMonitoring) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public EnableResourceMonitoring setCallback(java.lang.String callback) { - return (EnableResourceMonitoring) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public EnableResourceMonitoring setFields(java.lang.String fields) { - return (EnableResourceMonitoring) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public EnableResourceMonitoring setKey(java.lang.String key) { - return (EnableResourceMonitoring) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public EnableResourceMonitoring setOauthToken(java.lang.String oauthToken) { - return (EnableResourceMonitoring) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public EnableResourceMonitoring setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableResourceMonitoring) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public EnableResourceMonitoring setQuotaUser(java.lang.String quotaUser) { - return (EnableResourceMonitoring) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public EnableResourceMonitoring setUploadType(java.lang.String uploadType) { - return (EnableResourceMonitoring) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public EnableResourceMonitoring setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableResourceMonitoring) super.setUploadProtocol(uploadProtocol); + 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 `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * Required. The parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + /** Required. The parent scope for the framework compliance summary. Format: + organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + projects/{project}/locations/{location} */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * Required. The parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} */ - public EnableResourceMonitoring setName(java.lang.String name) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; 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 AssuredworkloadsRequestThe 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.
+ *
+ * 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 Get#execute()} method to invoke the remote operation.
+ *
+ * @param name The name of the operation resource.
+ * @return the request
+ */
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
+ initialize(result);
+ return result;
+ }
+
+ public class Get extends 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". + * @param name The name of the operation resource. * @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); + 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(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @@ -2316,35 +2847,22 @@ 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". - */ + /** The name of the operation resource. */ @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". + /** The name of the operation resource. */ 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". - */ + /** The name of the operation resource. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; @@ -2356,50 +2874,50 @@ public Get set(String parameterName, Object value) { } } /** - * Lists Assured Workloads under a CRM Node. + * 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 "workloads.list". + * 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 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}`. + * @param name The name of the operation's parent resource. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(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.
* - * @param parent Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. + * @param name The name of the operation's parent resource. * @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."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent 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/[^/]+$"); } } @@ -2469,1371 +2987,3614 @@ 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}`. - */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. Parent Resource to list workloads from. Must be of the form - `organizations/{org_id}/locations/{location}`. + /** The name of the operation's parent resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. - */ - public List setParent(java.lang.String parent) { + /** The name of the operation's parent resource. */ + public List 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 " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^organizations/[^/]+/locations/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** - * A custom filter for filtering by properties of a workload. At this time, only filtering - * by labels is supported. - */ + /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; - /** A custom filter for filtering by properties of a workload. At this time, only filtering by labels - is supported. + /** The standard list filter. */ public java.lang.String getFilter() { return filter; } - /** - * A custom filter for filtering by properties of a workload. At this time, only filtering - * by labels is supported. - */ + /** The standard list filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** Page size. */ + /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Page size. + /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } - /** Page size. */ + /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** - * 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. - */ + /** The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** 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. + /** The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } - /** - * 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. - */ + /** The standard list 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); - } - } - /** - * 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); + /** + * 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 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.
+ * 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` 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} + * @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 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."); + 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 " + + com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), + "Parameter target must conform to the pattern " + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); } } @Override - public MutatePartnerPermissions set$Xgafv(java.lang.String $Xgafv) { - return (MutatePartnerPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public MutatePartnerPermissions setAccessToken(java.lang.String accessToken) { - return (MutatePartnerPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public MutatePartnerPermissions setAlt(java.lang.String alt) { - return (MutatePartnerPermissions) super.setAlt(alt); + public AnalyzeWorkloadMove set$Xgafv(java.lang.String $Xgafv) { + return (AnalyzeWorkloadMove) super.set$Xgafv($Xgafv); } @Override - public MutatePartnerPermissions setCallback(java.lang.String callback) { - return (MutatePartnerPermissions) super.setCallback(callback); + public AnalyzeWorkloadMove setAccessToken(java.lang.String accessToken) { + return (AnalyzeWorkloadMove) super.setAccessToken(accessToken); } @Override - public MutatePartnerPermissions setFields(java.lang.String fields) { - return (MutatePartnerPermissions) super.setFields(fields); + public AnalyzeWorkloadMove setAlt(java.lang.String alt) { + return (AnalyzeWorkloadMove) super.setAlt(alt); } @Override - public MutatePartnerPermissions setKey(java.lang.String key) { - return (MutatePartnerPermissions) super.setKey(key); + public AnalyzeWorkloadMove setCallback(java.lang.String callback) { + return (AnalyzeWorkloadMove) super.setCallback(callback); } @Override - public MutatePartnerPermissions setOauthToken(java.lang.String oauthToken) { - return (MutatePartnerPermissions) super.setOauthToken(oauthToken); + public AnalyzeWorkloadMove setFields(java.lang.String fields) { + return (AnalyzeWorkloadMove) super.setFields(fields); } @Override - public MutatePartnerPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (MutatePartnerPermissions) super.setPrettyPrint(prettyPrint); + public AnalyzeWorkloadMove setKey(java.lang.String key) { + return (AnalyzeWorkloadMove) super.setKey(key); } @Override - public MutatePartnerPermissions setQuotaUser(java.lang.String quotaUser) { - return (MutatePartnerPermissions) super.setQuotaUser(quotaUser); + public AnalyzeWorkloadMove setOauthToken(java.lang.String oauthToken) { + return (AnalyzeWorkloadMove) super.setOauthToken(oauthToken); } @Override - public MutatePartnerPermissions setUploadType(java.lang.String uploadType) { - return (MutatePartnerPermissions) super.setUploadType(uploadType); + public AnalyzeWorkloadMove setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AnalyzeWorkloadMove) super.setPrettyPrint(prettyPrint); } @Override - public MutatePartnerPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (MutatePartnerPermissions) super.setUploadProtocol(uploadProtocol); + 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 `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * 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 name; + private java.lang.String target; - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + /** 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 getName() { - return name; + public java.lang.String getTarget() { + return target; } /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * 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 MutatePartnerPermissions 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 " + + 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; } - @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 + * 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). */ - 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); + public AnalyzeWorkloadMove setAssetTypes(java.util.List{@link RestrictAllowedResources#initialize(com.google.api.client.googleap - * is.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 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} + * @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 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."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); } } @Override - public RestrictAllowedResources set$Xgafv(java.lang.String $Xgafv) { - return (RestrictAllowedResources) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public RestrictAllowedResources setAccessToken(java.lang.String accessToken) { - return (RestrictAllowedResources) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public RestrictAllowedResources setAlt(java.lang.String alt) { - return (RestrictAllowedResources) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public RestrictAllowedResources setCallback(java.lang.String callback) { - return (RestrictAllowedResources) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public RestrictAllowedResources setFields(java.lang.String fields) { - return (RestrictAllowedResources) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public RestrictAllowedResources setKey(java.lang.String key) { - return (RestrictAllowedResources) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public RestrictAllowedResources setOauthToken(java.lang.String oauthToken) { - return (RestrictAllowedResources) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public RestrictAllowedResources setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RestrictAllowedResources) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public RestrictAllowedResources setQuotaUser(java.lang.String quotaUser) { - return (RestrictAllowedResources) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public RestrictAllowedResources setUploadType(java.lang.String uploadType) { - return (RestrictAllowedResources) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public RestrictAllowedResources setUploadProtocol(java.lang.String uploadProtocol) { - return (RestrictAllowedResources) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) 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". + * 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 name; + private java.lang.String parent; - /** 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". + /** 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 getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * 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". + * Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. */ - public RestrictAllowedResources setName(java.lang.String name) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); } - this.name = name; + 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 RestrictAllowedResources set(String parameterName, Object value) { - return (RestrictAllowedResources) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Updates collection. + * 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. * - *The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Updates.List request = assuredworkloads.updates().list(parameters ...)}
- *
+ * Create a request for the method "workloads.delete".
*
- * @return the resource collection
+ * 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 Updates updates() {
- return new Updates();
+ public Delete delete(java.lang.String name) throws java.io.IOException {
+ Delete result = new Delete(name);
+ initialize(result);
+ return result;
}
- /**
- * The "updates" collection of methods.
- */
- public class Updates {
+ 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 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 + * @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 */ - 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; + 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/[^/]+$"); + } } - 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 Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Apply set$Xgafv(java.lang.String $Xgafv) { - return (Apply) super.set$Xgafv($Xgafv); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Apply setAccessToken(java.lang.String accessToken) { - return (Apply) super.setAccessToken(accessToken); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Apply setAlt(java.lang.String alt) { - return (Apply) super.setAlt(alt); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Apply setCallback(java.lang.String callback) { - return (Apply) super.setCallback(callback); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Apply setFields(java.lang.String fields) { - return (Apply) super.setFields(fields); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Apply setKey(java.lang.String key) { - return (Apply) super.setKey(key); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Apply setOauthToken(java.lang.String oauthToken) { - return (Apply) super.setOauthToken(oauthToken); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Apply setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Apply) super.setPrettyPrint(prettyPrint); - } + /** + * 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; - @Override - public Apply setQuotaUser(java.lang.String quotaUser) { - return (Apply) super.setQuotaUser(quotaUser); - } + /** 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; + } + + /** + * 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; + + /** 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; + } + + /** + * 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; + } + + /** Page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 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; + + /** 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; + } + + /** + * 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/{violati
+ * on}
+ * @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/{violati + * on} + * @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/{o + * rganization}/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/{o + * rganization}/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); + } + } + /** + * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the + * existence of compliance violations in their workload and decide to ignore them due to a valid + * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This + * is a batch version of AcknowledgeViolation. + * + * Create a request for the method "violations.batchAcknowledgeViolations". + * + * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the + * remote operation. + * + * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest} + * @return the request + */ + public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest content) throws java.io.IOException { + BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content); + initialize(result); + return result; + } + + public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest} + * @since 1.13 + */ + protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } + } + + @Override + public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { + return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); + } + + @Override + public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { + return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); + } + + @Override + public BatchAcknowledgeViolations setAlt(java.lang.String alt) { + return (BatchAcknowledgeViolations) super.setAlt(alt); + } + + @Override + public BatchAcknowledgeViolations setCallback(java.lang.String callback) { + return (BatchAcknowledgeViolations) super.setCallback(callback); + } + + @Override + public BatchAcknowledgeViolations setFields(java.lang.String fields) { + return (BatchAcknowledgeViolations) super.setFields(fields); + } + + @Override + public BatchAcknowledgeViolations setKey(java.lang.String key) { + return (BatchAcknowledgeViolations) super.setKey(key); + } + + @Override + public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { + return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); + } + + @Override + public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { + return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); + } + + @Override + public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { + return (BatchAcknowledgeViolations) super.setUploadType(uploadType); + } + + @Override + public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Optional. The parent resource shared by all violations being acknowledged. Format: + organizations/{organization}/locations/{location}/workloads/{workload} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + */ + public BatchAcknowledgeViolations setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchAcknowledgeViolations set(String parameterName, Object value) { + return (BatchAcknowledgeViolations) super.set(parameterName, value); + } + } + /** + * Retrieves Assured Workload Violation based on ID. + * + * 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 fetch (ie. Violation.name). Format: + * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati + * on} + * @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 fetch (ie. Violation.name). Format: + * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati + * on} + * @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 fetch (ie. Violation.name). Format: o + * rganizations/{organization}/locations/{location}/workloads/{workload}/violations/{vio + * lation} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Violation to fetch (ie. 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 fetch (ie. Violation.name). Format: o + * rganizations/{organization}/locations/{location}/workloads/{workload}/violations/{vio + * lation} + */ + 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 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 name. Format + * `organizations/{org_id}/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.
+ * + * @param parent Required. The Workload name. Format + * `organizations/{org_id}/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.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 " + + "^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. The Workload name. Format + * `organizations/{org_id}/locations/{location}/workloads/{workload}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The Workload name. Format + `organizations/{org_id}/locations/{location}/workloads/{workload}`. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Apply setUploadType(java.lang.String uploadType) { - return (Apply) super.setUploadType(uploadType); + /** + * Required. The Workload name. Format + * `organizations/{org_id}/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; } - @Override - public Apply setUploadProtocol(java.lang.String uploadProtocol) { - return (Apply) super.setUploadProtocol(uploadProtocol); + /** Optional. A custom filter for filtering by the Violations properties. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A custom filter for filtering by the Violations properties. + */ + public java.lang.String getFilter() { + return filter; } - /** - * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ - * location_id}/workloads/{workload_id}/updates/{update_id} + /** Optional. A custom filter for filtering by the Violations properties. */ + 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. Actionable sorting delegation. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Actionable sorting delegation. */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Actionable sorting delegation. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. Page size. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.Integer pageSize; - /** Required. The resource name of the update. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id} + /** Optional. Page size. */ - public java.lang.String getName() { - return name; + public java.lang.Integer getPageSize() { + return pageSize; } - /** - * Required. The resource name of the update. Format: organizations/{org_id}/locations/{ - * location_id}/workloads/{workload_id}/updates/{update_id} + /** Optional. Page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. Page token returned from previous request. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token returned from previous request. */ - 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; + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. Page token returned from previous request. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Apply set(String parameterName, Object value) { - return (Apply) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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 the finding summary by category for a given scope.
+ *
+ * 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 for the framework overview page. Formats: -
+ * projects/{project}/locations/{location} - folders/{folder}/locations/{location} -
+ * organizations/{organization}/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. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - * @return the request + * @param parent Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + 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/[^/]+$"); + } } - 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 setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** + * Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** Required. The parent scope for the framework overview page. Formats: - + projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + organizations/{organization}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + /** + * Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/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/[^/]+$"); } + this.parent = parent; + return this; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** Optional. The filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** 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. + */ + @com.google.api.client.util.Key + private java.lang.Integer 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 java.lang.Integer getPageSize() { + return pageSize; + } - /** 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. 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. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Optional. A token that identifies the page of results that the server should return. + */ + @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 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. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** Page token returned from previous request. */ - @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. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** Page token returned from previous request. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } - /** Page token returned from previous request. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + } + /** + * 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();
+ }
- @Override
- public List set(String parameterName, Object value) {
- return (List) super.set(parameterName, value);
- }
- }
+ /**
+ * The "dbFrameworkComplianceReports" collection of methods.
+ */
+ public class DbFrameworkComplianceReports {
- }
/**
- * An accessor for creating requests from the Violations collection.
+ * Gets the aggregated compliance report over time for a given scope.
*
- * The typical use is:
- *
- * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Violations.List request = assuredworkloads.violations().list(parameters ...)}
- *
+ * Create a request for the method "dbFrameworkComplianceReports.aggregate".
*
- * @return the resource 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.
+ *
+ * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations
+ * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}`
+ * @return the request
*/
- public Violations violations() {
- return new Violations();
+ public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
+ Aggregate result = new Aggregate(name);
+ initialize(result);
+ return result;
}
- /**
- * The "violations" collection of methods.
- */
- public class 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.
* - * @param name Required. The resource name of the Violation to acknowledge. Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati - * on} - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest} - * @return the request + * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations + * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report}` + * @since 1.13 */ - 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/{violati - * on} - * @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); + 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 Acknowledge setUploadType(java.lang.String uploadType) { - return (Acknowledge) super.setUploadType(uploadType); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { - return (Acknowledge) super.setUploadProtocol(uploadProtocol); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Required. The resource name of the Violation to acknowledge. Format: organizations/{o - * rganization}/locations/{location}/workloads/{workload}/violations/{violation} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Aggregate set$Xgafv(java.lang.String $Xgafv) { + return (Aggregate) super.set$Xgafv($Xgafv); + } - /** 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; - } + @Override + public Aggregate setAccessToken(java.lang.String accessToken) { + return (Aggregate) super.setAccessToken(accessToken); + } - /** - * Required. The resource name of the Violation to acknowledge. Format: organizations/{o - * rganization}/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 setAlt(java.lang.String alt) { + return (Aggregate) super.setAlt(alt); + } - @Override - public Acknowledge set(String parameterName, Object value) { - return (Acknowledge) super.set(parameterName, value); - } + @Override + public Aggregate setCallback(java.lang.String callback) { + return (Aggregate) super.setCallback(callback); } - /** - * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the - * existence of compliance violations in their workload and decide to ignore them due to a valid - * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This - * is a batch version of AcknowledgeViolation. - * - * Create a request for the method "violations.batchAcknowledgeViolations". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the - * remote operation. - * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest} - * @return the request - */ - public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest content) throws java.io.IOException { - BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content); - initialize(result); - return result; + + @Override + public Aggregate setFields(java.lang.String fields) { + return (Aggregate) super.setFields(fields); } - public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest} - * @since 1.13 - */ - protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } + @Override + public Aggregate setQuotaUser(java.lang.String quotaUser) { + return (Aggregate) super.setQuotaUser(quotaUser); + } - @Override - public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { - return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); - } + @Override + public Aggregate setUploadType(java.lang.String uploadType) { + return (Aggregate) super.setUploadType(uploadType); + } - @Override - public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { - return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); - } + @Override + public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { + return (Aggregate) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchAcknowledgeViolations setAlt(java.lang.String alt) { - return (BatchAcknowledgeViolations) super.setAlt(alt); - } + /** + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public BatchAcknowledgeViolations setCallback(java.lang.String callback) { - return (BatchAcknowledgeViolations) super.setCallback(callback); - } + /** Required. The name of the aggregated compliance report over time to retrieve. Format: `organization + s/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repo + rt}` + */ + public java.lang.String getName() { + return name; + } - @Override - public BatchAcknowledgeViolations setFields(java.lang.String fields) { - return (BatchAcknowledgeViolations) super.setFields(fields); + /** + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_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/[^/]+$"); } + this.name = name; + return this; + } - @Override - public BatchAcknowledgeViolations setKey(java.lang.String key) { - return (BatchAcknowledgeViolations) super.setKey(key); - } + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { - return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); - } + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); - } + /** Optional. The filtering results. */ + public Aggregate setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { - return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); - } + /** + * 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 BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { - return (BatchAcknowledgeViolations) super.setUploadType(uploadType); - } + /** 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 BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); - } + /** + * 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. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** + * Optional. 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. The parent resource shared by all violations being acknowledged. Format: - organizations/{organization}/locations/{location}/workloads/{workload} - */ - public java.lang.String getParent() { - return parent; - } + /** 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. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - public BatchAcknowledgeViolations setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.parent = parent; - return this; - } + /** + * 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 BatchAcknowledgeViolations set(String parameterName, Object value) { - return (BatchAcknowledgeViolations) super.set(parameterName, value); - } + @Override + public Aggregate set(String parameterName, Object value) { + return (Aggregate) super.set(parameterName, value); } + } + /** + * Fetches the framework compliance report for a given scope. + * + * 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. + * @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.
* - * @param name Required. The resource name of the Violation to fetch (ie. Violation.name). Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati - * on} - * @return the request + * @param name Required. The name of the framework compliance report to retrieve. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + 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/[^/]+$"); + } } - 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 fetch (ie. Violation.name). Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati - * on} - * @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 setAccessToken(java.lang.String accessToken) { + return (Fetch) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Fetch setAlt(java.lang.String alt) { + return (Fetch) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Fetch setCallback(java.lang.String callback) { + return (Fetch) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Fetch setFields(java.lang.String fields) { + return (Fetch) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Fetch setKey(java.lang.String key) { + return (Fetch) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Fetch setOauthToken(java.lang.String oauthToken) { + return (Fetch) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Fetch) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Fetch setQuotaUser(java.lang.String quotaUser) { + return (Fetch) super.setQuotaUser(quotaUser); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Fetch setUploadType(java.lang.String uploadType) { + return (Fetch) super.setUploadType(uploadType); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Fetch setUploadProtocol(java.lang.String uploadProtocol) { + return (Fetch) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** Required. The name of the framework compliance report to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the framework compliance report to retrieve. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** Required. The name of the framework compliance report to retrieve. */ + 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/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Optional. The end time of the report. */ + @com.google.api.client.util.Key + private String endTime; - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Optional. The end time of the report. + */ + public String getEndTime() { + return endTime; + } - /** - * Required. The resource name of the Violation to fetch (ie. Violation.name). Format: o - * rganizations/{organization}/locations/{location}/workloads/{workload}/violations/{vio - * lation} - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Optional. The end time of the report. */ + public Fetch setEndTime(String endTime) { + this.endTime = endTime; + return this; + } - /** Required. The resource name of the Violation to fetch (ie. Violation.name). Format: - organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - */ - public java.lang.String getName() { - return name; - } + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * Required. The resource name of the Violation to fetch (ie. Violation.name). Format: o - * rganizations/{organization}/locations/{location}/workloads/{workload}/violations/{vio - * lation} - */ - 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 filtering results. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + /** Optional. The filtering results. */ + 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); } + } + + /** + * 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();
+ }
+
+ /**
+ * The "dbControlComplianceSummaries" collection of methods.
+ */
+ public class DbControlComplianceSummaries {
+
/**
- * 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/-`
+ * Lists the control compliance summary for a given scope.
*
- * Create a request for the method "violations.list".
+ * 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 Workload name. Format
- * `organizations/{org_id}/locations/{location}/workloads/{workload}`.
+ * @param parent Required. The parent scope for the framework overview page. Format: organizations/{organization}/loc
+ * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f
+ * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}
+ * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
@@ -3842,37 +6603,37 @@ 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 Workload name. Format - * `organizations/{org_id}/locations/{location}/workloads/{workload}`. + * @param parent Required. The parent scope for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report} * @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); + 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/[^/]+/workloads/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @@ -3942,124 +6703,96 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The Workload name. Format - * `organizations/{org_id}/locations/{location}/workloads/{workload}`. + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{db_framework_compliance_report} */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The Workload name. Format - `organizations/{org_id}/locations/{location}/workloads/{workload}`. + /** Required. The parent scope for the framework overview page. Format: organizations/{organization}/lo + cations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repor + t} */ public java.lang.String getParent() { return parent; } /** - * Required. The Workload name. Format - * `organizations/{org_id}/locations/{location}/workloads/{workload}`. + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } this.parent = parent; return this; } - /** Optional. A custom filter for filtering by the Violations properties. */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A custom filter for filtering by the Violations properties. + /** Optional. The filtering results. */ public java.lang.String getFilter() { return filter; } - /** Optional. A custom filter for filtering by the Violations properties. */ + /** Optional. The filtering results. */ 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. Actionable sorting delegation. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. Actionable sorting delegation. + /** + * 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.String getOrderBy() { - return orderBy; - } - - /** Optional. Actionable sorting delegation. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** Optional. Page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; - /** Optional. Page size. + /** 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. Page size. */ + /** + * 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. Page token returned from previous request. */ + /** + * Optional. A token that identifies the page of results that the server should return. + */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. Page token returned from previous request. + /** Optional. A token that identifies the page of results that the server should return. */ public java.lang.String getPageToken() { return pageToken; } - /** Optional. Page token returned from previous request. */ + /** + * Optional. A token that identifies the page of results that the server should return. + */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; @@ -4073,80 +6806,37 @@ public List set(String parameterName, Object 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.
+ * An accessor for creating requests from the DbFrameworkComplianceSummaries collection.
*
* The typical use is:
*
* {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
+ * {@code Assuredworkloads.DbFrameworkComplianceSummaries.List request = assuredworkloads.dbFrameworkComplianceSummaries().list(parameters ...)}
*
*
* @return the resource collection
*/
- public DbFindingSummaries dbFindingSummaries() {
- return new DbFindingSummaries();
+ public DbFrameworkComplianceSummaries dbFrameworkComplianceSummaries() {
+ return new DbFrameworkComplianceSummaries();
}
/**
- * The "dbFindingSummaries" collection of methods.
+ * The "dbFrameworkComplianceSummaries" collection of methods.
*/
- public class DbFindingSummaries {
+ public class DbFrameworkComplianceSummaries {
/**
- * Lists the finding summary by category for a given scope.
+ * Lists the framework compliance summary for a given scope.
*
- * Create a request for the method "dbFindingSummaries.list".
+ * 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 for the framework overview page. Formats: -
- * projects/{project}/locations/{location} - folders/{folder}/locations/{location} -
- * organizations/{organization}/locations/{location}
+ * @param parent Required. The parent scope for the framework compliance summary. Format:
+ * 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 {
@@ -4155,30 +6845,30 @@ 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 parent scope for the framework overview page. Formats: - - * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - - * organizations/{organization}/locations/{location} + * @param parent Required. The parent scope for the framework compliance summary. Format: + * 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.GoogleCloudAssuredworkloadsV1ListDbFindingSummariesResponse.class); + 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(), @@ -4253,25 +6943,25 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent scope for the framework overview page. Formats: - - * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - - * organizations/{organization}/locations/{location} + * Required. The parent scope for the framework compliance summary. Format: + * 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 for the framework overview page. Formats: - - projects/{project}/locations/{location} - folders/{folder}/locations/{location} - - organizations/{organization}/locations/{location} + /** Required. The parent scope for the framework compliance summary. Format: + organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + projects/{project}/locations/{location} */ public java.lang.String getParent() { return parent; } /** - * Required. The parent scope for the framework overview page. Formats: - - * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - - * organizations/{organization}/locations/{location} + * Required. The parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -4301,13 +6991,13 @@ public List setFilter(java.lang.String filter) { /** * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. + * 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 server picks an appropriate default. + unspecified, the default page size is 50. The maximum value is 1000. */ public java.lang.Integer getPageSize() { return pageSize; @@ -4315,7 +7005,7 @@ public java.lang.Integer getPageSize() { /** * Optional. The requested page size. The server might return fewer items than requested. - * If unspecified, the server picks an appropriate default. + * If unspecified, the default page size is 50. The maximum value is 1000. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -4324,11 +7014,13 @@ 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. */ @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. + /** 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; @@ -4336,12 +7028,29 @@ public java.lang.String getPageToken() { /** * 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. Specifies the level of detail to return in the response. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. Specifies the level of detail to return in the response. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. Specifies the level of detail to return in the response. */ + 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); diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse.java new file mode 100644 index 00000000000..eb4b9557f46 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse.java @@ -0,0 +1,67 @@ +/* + * 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 response message for AggregateDbFrameworkComplianceReport. + * + *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 GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of aggregated compliance 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 GoogleCloudAssuredworkloadsV1AggregatedComplianceReport extends com.google.api.client.json.GenericJson { + + /** + * The control assessment details of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails; + + /** + * The report time of the aggregated compliance report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String reportTime; + + /** + * The control assessment details of the framework. + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails getControlAssessmentDetails() { + return controlAssessmentDetails; + } + + /** + * The control assessment details of the framework. + * @param controlAssessmentDetails controlAssessmentDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1AggregatedComplianceReport setControlAssessmentDetails(GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails) { + this.controlAssessmentDetails = controlAssessmentDetails; + return this; + } + + /** + * The report time of the aggregated compliance report. + * @return value or {@code null} for none + */ + public String getReportTime() { + return reportTime; + } + + /** + * The report time of the aggregated compliance report. + * @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 new file mode 100644 index 00000000000..71e2736ba3e --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CELExpression.java @@ -0,0 +1,100 @@ +/* + * 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 new file mode 100644 index 00000000000..55ebc762146 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails.java @@ -0,0 +1,91 @@ +/* + * 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. 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; + } + + @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 new file mode 100644 index 00000000000..3d3f1d0d495 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1CloudControlReport.java @@ -0,0 +1,427 @@ +/* + * 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 GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary extends com.google.api.client.json.GenericJson { + + /** + * The control assessment details of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails; + + /** + * Output only. The trend of controls that are passing for the given duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1Trend controlsPassingTrend; + + /** + * Output only. The count of the findings generated against the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long findingCount; + + /** + * The name of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String framework; + + /** + * The list of framework categories supported by 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 control assessment details of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails; + + /** + * The name of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String framework; + + /** + * The list of framework categories supported. + * 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 details. + * 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 new file mode 100644 index 00000000000..c684f93b30e --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1StringList.java @@ -0,0 +1,67 @@ +/* + * 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 new file mode 100644 index 00000000000..8eb286b25e7 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Trend.java @@ -0,0 +1,91 @@ +/* + * 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 b89be5b1703..248c1e49876 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.Organizations.List request = assuredworkloads.organizations().list(parameters ...)}
+ * {@code Assuredworkloads.Folders.List request = assuredworkloads.folders().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Organizations organizations() {
- return new Organizations();
+ public Folders folders() {
+ return new Folders();
}
/**
- * The "organizations" collection of methods.
+ * The "folders" collection of methods.
*/
- public class Organizations {
+ public class Folders {
/**
* An accessor for creating requests from the Locations collection.
@@ -399,71 +399,73 @@ public Locations locations() {
public class Locations {
/**
- * An accessor for creating requests from the Operations collection.
+ * An accessor for creating requests from the DbFindingSummaries collection.
*
* The typical use is:
*
* {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
- * {@code Assuredworkloads.Operations.List request = assuredworkloads.operations().list(parameters ...)}
+ * {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
*
*
* @return the resource collection
*/
- public Operations operations() {
- return new Operations();
+ public DbFindingSummaries dbFindingSummaries() {
+ return new DbFindingSummaries();
}
/**
- * The "operations" collection of methods.
+ * The "dbFindingSummaries" collection of methods.
*/
- public class Operations {
+ public class DbFindingSummaries {
/**
- * 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.
+ * Lists the finding summary by category for a given scope.
*
- * Create a request for the method "operations.get".
+ * 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 Get#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation resource.
+ * @param parent Required. The parent scope for the framework overview page. Formats: -
+ * projects/{project}/locations/{location} - folders/{folder}/locations/{location} -
+ * organizations/{organization}/locations/{location}
* @return the request
*/
- public Get get(java.lang.String name) throws java.io.IOException {
- Get result = new Get(name);
+ public List list(java.lang.String parent) throws java.io.IOException {
+ List result = new List(parent);
initialize(result);
return result;
}
- public class Get extends AssuredworkloadsRequest- * {@link Get#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 The name of the operation resource. + * @param parent Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} * @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); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } } @@ -478,132 +480,226 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The name of the operation resource. + /** Required. The parent scope for the framework overview page. Formats: - + projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + organizations/{organization}/locations/{location} */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** + * Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} + */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + 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. + */ + @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. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token that identifies the page of results that the server should return. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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 {
+
/**
- * Lists operations that match the specified filter in the request. If the server doesn't support
- * this method, it returns `UNIMPLEMENTED`.
+ * Gets the aggregated compliance report over time for a given scope.
*
- * Create a request for the method "operations.list".
+ * Create a request for the method "dbFrameworkComplianceReports.aggregate".
*
* 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 Aggregate#execute()} method to invoke the remote operation.
*
- * @param name The name of the operation's parent resource.
+ * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations
+ * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}`
* @return the request
*/
- public List list(java.lang.String name) throws java.io.IOException {
- List result = new List(name);
+ public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
+ Aggregate result = new Aggregate(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 Aggregate#execute()} method to invoke the remote + * operation.
{@link + * Aggregate#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 Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations + * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report}` * @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 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 " + - "^organizations/[^/]+/locations/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @@ -618,420 +714,646 @@ 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 Aggregate set$Xgafv(java.lang.String $Xgafv) { + return (Aggregate) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Aggregate setAccessToken(java.lang.String accessToken) { + return (Aggregate) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Aggregate setAlt(java.lang.String alt) { + return (Aggregate) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Aggregate setCallback(java.lang.String callback) { + return (Aggregate) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Aggregate setFields(java.lang.String fields) { + return (Aggregate) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Aggregate setKey(java.lang.String key) { + return (Aggregate) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Aggregate setOauthToken(java.lang.String oauthToken) { + return (Aggregate) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Aggregate) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Aggregate setQuotaUser(java.lang.String quotaUser) { + return (Aggregate) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Aggregate setUploadType(java.lang.String uploadType) { + return (Aggregate) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { + return (Aggregate) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation's parent resource. + /** Required. The name of the aggregated compliance report over time to retrieve. Format: `organization + s/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repo + rt}` */ public java.lang.String getName() { return name; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_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 " + - "^organizations/[^/]+/locations/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } this.name = name; return this; } - /** The standard list filter. */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key private java.lang.String filter; - /** The standard list filter. + /** Optional. The filtering results. */ public java.lang.String getFilter() { return filter; } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { + /** Optional. The filtering results. */ + public Aggregate setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * 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. + /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have + to be before the end. */ - public java.lang.Integer getPageSize() { - return pageSize; + public String getIntervalEndTime() { + return intervalEndTime; } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = 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; return this; } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** + * 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; - /** The standard list page token. + /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will + have to be the same or after the start. */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public String getIntervalStartTime() { + return intervalStartTime; } /** - * 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. + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this + * interval will have to be the same or after the start. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Aggregate setIntervalStartTime(String intervalStartTime) { + this.intervalStartTime = intervalStartTime; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Aggregate set(String parameterName, Object value) { + return (Aggregate) 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 multiple existing violations. By acknowledging violations, users acknowledge the
- * existence of compliance violations in their workload and decide to ignore them due to a valid
- * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This
- * is a batch version of AcknowledgeViolation.
+ * Fetches the framework compliance report for a given scope.
*
- * Create a request for the method "violations.batchAcknowledgeViolations".
+ * 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 BatchAcknowledgeViolations#execute()} method to invoke the
- * remote operation.
+ * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation.
*
- * @param parent Optional. The parent resource shared by all violations being acknowledged. Format:
- * organizations/{organization}/locations/{location}/workloads/{workload}
- * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest}
+ * @param name Required. The name of the framework compliance report to retrieve.
* @return the request
*/
- public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException {
- BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content);
+ public Fetch fetch(java.lang.String name) throws java.io.IOException {
+ Fetch result = new Fetch(name);
initialize(result);
return result;
}
- public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
+ * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation. + *{@link + * Fetch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} + * @param name Required. The name of the framework compliance report to retrieve. * @since 1.13 */ - protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + 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(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 " + + "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @Override - public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { - return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { - return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public BatchAcknowledgeViolations setAlt(java.lang.String alt) { - return (BatchAcknowledgeViolations) super.setAlt(alt); + public Fetch set$Xgafv(java.lang.String $Xgafv) { + return (Fetch) super.set$Xgafv($Xgafv); } @Override - public BatchAcknowledgeViolations setCallback(java.lang.String callback) { - return (BatchAcknowledgeViolations) super.setCallback(callback); + public Fetch setAccessToken(java.lang.String accessToken) { + return (Fetch) super.setAccessToken(accessToken); } @Override - public BatchAcknowledgeViolations setFields(java.lang.String fields) { - return (BatchAcknowledgeViolations) super.setFields(fields); + public Fetch setAlt(java.lang.String alt) { + return (Fetch) super.setAlt(alt); } @Override - public BatchAcknowledgeViolations setKey(java.lang.String key) { - return (BatchAcknowledgeViolations) super.setKey(key); + public Fetch setCallback(java.lang.String callback) { + return (Fetch) super.setCallback(callback); } @Override - public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { - return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); + public Fetch setFields(java.lang.String fields) { + return (Fetch) super.setFields(fields); } @Override - public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); + public Fetch setKey(java.lang.String key) { + return (Fetch) super.setKey(key); } @Override - public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { - return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); + public Fetch setOauthToken(java.lang.String oauthToken) { + return (Fetch) super.setOauthToken(oauthToken); } @Override - public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { - return (BatchAcknowledgeViolations) super.setUploadType(uploadType); + public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Fetch) super.setPrettyPrint(prettyPrint); } @Override - public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); + public Fetch setQuotaUser(java.lang.String quotaUser) { + return (Fetch) super.setQuotaUser(quotaUser); } - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ + @Override + public Fetch setUploadType(java.lang.String uploadType) { + return (Fetch) super.setUploadType(uploadType); + } + + @Override + public Fetch setUploadProtocol(java.lang.String uploadProtocol) { + return (Fetch) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the framework compliance report to retrieve. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Optional. The parent resource shared by all violations being acknowledged. Format: - organizations/{organization}/locations/{location}/workloads/{workload} + /** Required. The name of the framework compliance report to retrieve. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - public BatchAcknowledgeViolations setParent(java.lang.String parent) { + /** Required. The name of the framework compliance report to retrieve. */ + public Fetch 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/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - @Override - public BatchAcknowledgeViolations set(String parameterName, Object value) { - return (BatchAcknowledgeViolations) super.set(parameterName, value); + /** Optional. The end time of the report. */ + @com.google.api.client.util.Key + private String endTime; + + /** Optional. The end time of the report. + */ + public String getEndTime() { + return endTime; } - } - } - /** - * 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();
- }
+ /** Optional. The end time of the report. */
+ public Fetch setEndTime(String endTime) {
+ this.endTime = endTime;
+ return this;
+ }
- /**
- * The "workloads" collection of methods.
- */
- public class Workloads {
+ /** Optional. The filtering results. */
+ @com.google.api.client.util.Key
+ private java.lang.String filter;
+
+ /** Optional. The filtering results.
+ */
+ public java.lang.String getFilter() {
+ return filter;
+ }
+
+ /** Optional. The filtering results. */
+ 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);
+ }
+ }
/**
- * 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".
+ * An accessor for creating requests from the DbControlComplianceSummaries collection.
*
- * 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.
+ * The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
+ *
*
- * @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
+ * @return the resource collection
*/
- public AnalyzeWorkloadMove analyzeWorkloadMove(java.lang.String target) throws java.io.IOException {
- AnalyzeWorkloadMove result = new AnalyzeWorkloadMove(target);
- initialize(result);
- return result;
+ public DbControlComplianceSummaries dbControlComplianceSummaries() {
+ return new DbControlComplianceSummaries();
}
- 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.
+ * 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 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 + * @param parent Required. The parent scope for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report} + * @return the request */ - 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/[^/]+$"); - } + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override + 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 for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_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 parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{db_framework_compliance_report} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent scope for the framework overview page. Format: organizations/{organization}/lo + cations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repor + t} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{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. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + 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. + */ + @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. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token that identifies the page of results that the server should return. + */ + 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 framework compliance summary for a given scope.
+ *
+ * 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 for the framework compliance summary. Format:
+ * 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 for the framework compliance summary. Format: + * 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 " + + "^folders/[^/]+/locations/[^/]+$"); + } + } + + @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @@ -1042,246 +1364,282 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AnalyzeWorkloadMove set$Xgafv(java.lang.String $Xgafv) { - return (AnalyzeWorkloadMove) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AnalyzeWorkloadMove setAccessToken(java.lang.String accessToken) { - return (AnalyzeWorkloadMove) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AnalyzeWorkloadMove setAlt(java.lang.String alt) { - return (AnalyzeWorkloadMove) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AnalyzeWorkloadMove setCallback(java.lang.String callback) { - return (AnalyzeWorkloadMove) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AnalyzeWorkloadMove setFields(java.lang.String fields) { - return (AnalyzeWorkloadMove) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AnalyzeWorkloadMove setKey(java.lang.String key) { - return (AnalyzeWorkloadMove) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AnalyzeWorkloadMove setOauthToken(java.lang.String oauthToken) { - return (AnalyzeWorkloadMove) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AnalyzeWorkloadMove setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AnalyzeWorkloadMove) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AnalyzeWorkloadMove setQuotaUser(java.lang.String quotaUser) { - return (AnalyzeWorkloadMove) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AnalyzeWorkloadMove setUploadType(java.lang.String uploadType) { - return (AnalyzeWorkloadMove) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AnalyzeWorkloadMove setUploadProtocol(java.lang.String uploadProtocol) { - return (AnalyzeWorkloadMove) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) 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 parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} */ @com.google.api.client.util.Key - private java.lang.String target; + private java.lang.String parent; - /** 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 parent scope for the framework compliance summary. Format: + organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + projects/{project}/locations/{location} */ - public java.lang.String getTarget() { - return target; + public java.lang.String getParent() { + return parent; } /** - * 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 parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} */ - public AnalyzeWorkloadMove setTarget(java.lang.String target) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(TARGET_PATTERN.matcher(target).matches(), - "Parameter target must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } - this.target = target; + this.parent = parent; 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). - */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key - private java.util.ListThe 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 {
+
/**
- * Creates Assured Workload.
+ * Lists the finding summary by category for a given scope.
*
- * Create a request for the method "workloads.create".
+ * 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 Create#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link List#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.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload}
+ * @param parent Required. The parent scope for the framework overview page. Formats: -
+ * projects/{project}/locations/{location} - folders/{folder}/locations/{location} -
+ * organizations/{organization}/locations/{location}
* @return the request
*/
- 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);
+ public List list(java.lang.String parent) throws java.io.IOException {
+ List result = new List(parent);
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.
+ * 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 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} + * @param parent Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} * @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); + 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(), @@ -1291,79 +1649,92 @@ protected Create(java.lang.String parent, com.google.api.services.assuredworkloa } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + 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 resource name of the new Workload's parent. Must be of the form - * `organizations/{org_id}/locations/{location_id}`. + * Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} */ @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}`. + /** Required. The parent scope for the framework overview page. Formats: - + projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + organizations/{organization}/locations/{location} */ 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}`. + * Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} */ - public Create setParent(java.lang.String parent) { + 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 " + @@ -1373,658 +1744,754 @@ public Create setParent(java.lang.String 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. - */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key - private java.lang.String externalId; + private java.lang.String filter; - /** 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. + /** Optional. The filtering results. */ - public java.lang.String getExternalId() { - return externalId; + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + 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. + * Optional. The requested page size. The server might return fewer items than requested. + * If unspecified, the server picks an appropriate default. */ - public Create setExternalId(java.lang.String externalId) { - this.externalId = externalId; + @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. + */ + @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. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token that identifies the page of results that the server should return. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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 {
+
/**
- * 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.
+ * Gets the aggregated compliance report over time for a given scope.
*
- * Create a request for the method "workloads.delete".
+ * Create a request for the method "dbFrameworkComplianceReports.aggregate".
*
* 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.
+ * optional parameters, call the {@link Aggregate#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 name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations
+ * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}`
* @return the request
*/
- public Delete delete(java.lang.String name) throws java.io.IOException {
- Delete result = new Delete(name);
+ public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
+ Aggregate result = new Aggregate(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.
+ * optional parameters, call the {@link Aggregate#execute()} method to invoke the remote + * operation.{@link + * Aggregate#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} + * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations + * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report}` * @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); + 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Aggregate set$Xgafv(java.lang.String $Xgafv) { + return (Aggregate) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Aggregate setAccessToken(java.lang.String accessToken) { + return (Aggregate) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Aggregate setAlt(java.lang.String alt) { + return (Aggregate) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Aggregate setCallback(java.lang.String callback) { + return (Aggregate) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Aggregate setFields(java.lang.String fields) { + return (Aggregate) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Aggregate setKey(java.lang.String key) { + return (Aggregate) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Aggregate setOauthToken(java.lang.String oauthToken) { + return (Aggregate) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Aggregate) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Aggregate setQuotaUser(java.lang.String quotaUser) { + return (Aggregate) super.setQuotaUser(quotaUser); + } + + @Override + public Aggregate setUploadType(java.lang.String uploadType) { + return (Aggregate) super.setUploadType(uploadType); + } + + @Override + public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { + return (Aggregate) super.setUploadProtocol(uploadProtocol); } /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` */ @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} + /** Required. The name of the aggregated compliance report over time to retrieve. Format: `organization + s/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repo + rt}` */ 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} + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` */ - public Delete setName(java.lang.String name) { + 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } this.name = name; return this; } + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + public Aggregate setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + /** - * Optional. The etag of the workload. If this is provided, it must match the server's - * etag. + * 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 - private java.lang.String etag; + @com.google.api.client.util.Key("interval.endTime") + private String intervalEndTime; - /** Optional. The etag of the workload. If this is provided, it must match the server's etag. + /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have + to be before the end. */ - public java.lang.String getEtag() { - return etag; + public String getIntervalEndTime() { + return intervalEndTime; } /** - * Optional. The etag of the workload. If this is provided, it must match the server's - * etag. + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this + * interval will have to be before the end. */ - public Delete setEtag(java.lang.String etag) { - this.etag = etag; + 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Aggregate set(String parameterName, Object value) { + return (Aggregate) 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. + * Fetches the framework compliance report for a given scope. * - * Create a request for the method "workloads.enableComplianceUpdates". + * 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 EnableComplianceUpdates#execute()} method to invoke the - * remote operation. + * optional parameters, call the {@link Fetch#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 name Required. The name of the framework compliance report to retrieve. * @return the request */ - public EnableComplianceUpdates enableComplianceUpdates(java.lang.String name) throws java.io.IOException { - EnableComplianceUpdates result = new EnableComplianceUpdates(name); + public Fetch fetch(java.lang.String name) throws java.io.IOException { + Fetch result = new Fetch(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.
+ * optional parameters, call the {@link Fetch#execute()} method to invoke the remote operation. + *{@link + * Fetch#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} + * @param name Required. The name of the framework compliance report to retrieve. * @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); + 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @Override - public EnableComplianceUpdates set$Xgafv(java.lang.String $Xgafv) { - return (EnableComplianceUpdates) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public EnableComplianceUpdates setAccessToken(java.lang.String accessToken) { - return (EnableComplianceUpdates) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public EnableComplianceUpdates setAlt(java.lang.String alt) { - return (EnableComplianceUpdates) super.setAlt(alt); + public Fetch set$Xgafv(java.lang.String $Xgafv) { + return (Fetch) super.set$Xgafv($Xgafv); } @Override - public EnableComplianceUpdates setCallback(java.lang.String callback) { - return (EnableComplianceUpdates) super.setCallback(callback); + public Fetch setAccessToken(java.lang.String accessToken) { + return (Fetch) super.setAccessToken(accessToken); } @Override - public EnableComplianceUpdates setFields(java.lang.String fields) { - return (EnableComplianceUpdates) super.setFields(fields); + public Fetch setAlt(java.lang.String alt) { + return (Fetch) super.setAlt(alt); } @Override - public EnableComplianceUpdates setKey(java.lang.String key) { - return (EnableComplianceUpdates) super.setKey(key); + public Fetch setCallback(java.lang.String callback) { + return (Fetch) super.setCallback(callback); } @Override - public EnableComplianceUpdates setOauthToken(java.lang.String oauthToken) { - return (EnableComplianceUpdates) super.setOauthToken(oauthToken); + public Fetch setFields(java.lang.String fields) { + return (Fetch) super.setFields(fields); } @Override - public EnableComplianceUpdates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnableComplianceUpdates) super.setPrettyPrint(prettyPrint); + public Fetch setKey(java.lang.String key) { + return (Fetch) super.setKey(key); } @Override - public EnableComplianceUpdates setQuotaUser(java.lang.String quotaUser) { - return (EnableComplianceUpdates) super.setQuotaUser(quotaUser); + public Fetch setOauthToken(java.lang.String oauthToken) { + return (Fetch) super.setOauthToken(oauthToken); } @Override - public EnableComplianceUpdates setUploadType(java.lang.String uploadType) { - return (EnableComplianceUpdates) super.setUploadType(uploadType); + public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Fetch) super.setPrettyPrint(prettyPrint); } @Override - public EnableComplianceUpdates setUploadProtocol(java.lang.String uploadProtocol) { - return (EnableComplianceUpdates) super.setUploadProtocol(uploadProtocol); + public Fetch setQuotaUser(java.lang.String quotaUser) { + return (Fetch) super.setQuotaUser(quotaUser); } - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ + @Override + public Fetch setUploadType(java.lang.String uploadType) { + return (Fetch) super.setUploadType(uploadType); + } + + @Override + public Fetch setUploadProtocol(java.lang.String uploadProtocol) { + return (Fetch) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the framework compliance report to retrieve. */ @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} + /** Required. The name of the framework compliance report to retrieve. */ 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) { + /** Required. The name of the framework compliance report to retrieve. */ + 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } 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); + /** Optional. The end time of the report. */ + @com.google.api.client.util.Key + private String endTime; + + /** Optional. The end time of the report. + */ + public String getEndTime() { + return endTime; } - @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); + /** Optional. The end time of the report. */ + public Fetch setEndTime(String endTime) { + this.endTime = endTime; + return this; } - /** - * Required. The `name` field is used to identify the workload. Format: - * organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String filter; - /** Required. The `name` field is used to identify the workload. Format: - organizations/{org_id}/locations/{location_id}/workloads/{workload_id} + /** Optional. The filtering results. */ - public java.lang.String getName() { - return name; + public java.lang.String getFilter() { + return filter; } - /** - * 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; + /** Optional. The filtering results. */ + public Fetch setFilter(java.lang.String filter) { + this.filter = filter; return this; } @Override - public EnableResourceMonitoring set(String parameterName, Object value) { - return (EnableResourceMonitoring) super.set(parameterName, value); + public Fetch set(String parameterName, Object value) { + return (Fetch) super.set(parameterName, value); } } + /** - * Gets Assured Workload associated with a CRM Node - * - * Create a request for the method "workloads.get". + * An accessor for creating requests from the DbControlComplianceSummaries 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. + *The typical use is:
+ *
+ * {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+ * {@code Assuredworkloads.DbControlComplianceSummaries.List request = assuredworkloads.dbControlComplianceSummaries().list(parameters ...)}
+ *
*
- * @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
+ * @return the resource collection
*/
- public Get get(java.lang.String name) throws java.io.IOException {
- Get result = new Get(name);
- initialize(result);
- return result;
+ public DbControlComplianceSummaries dbControlComplianceSummaries() {
+ return new 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.
+ * 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 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 + * @param parent Required. The parent scope for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report} + * @return the request */ - 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 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.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + 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 for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_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 setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * 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 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". - */ - public java.lang.String getName() { - return 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 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/[^/]+$"); + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{db_framework_compliance_report} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent scope for the framework overview page. Format: organizations/{organization}/lo + cations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repor + t} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{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 " + + "^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filtering results. */ + 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. + */ + @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. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token that identifies the page of results that the server should return. + */ + 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 Assured Workloads under a CRM Node.
+ * Lists the framework compliance summary for a given scope.
*
- * Create a request for the method "workloads.list".
+ * 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. Parent Resource to list workloads from. Must be of the form
- * `organizations/{org_id}/locations/{location}`.
+ * @param parent Required. The parent scope for the framework compliance summary. Format:
+ * 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 {
@@ -2033,29 +2500,30 @@ 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. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. + * @param parent Required. The parent scope for the framework compliance summary. Format: + * 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.GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse.class); + 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(), @@ -2130,22 +2598,25 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Parent Resource to list workloads from. Must be of the form - * `organizations/{org_id}/locations/{location}`. + * Required. The parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/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}`. + /** Required. The parent scope for the framework compliance summary. Format: + organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + projects/{project}/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}`. + * Required. The parent scope for the framework compliance summary. Format: + * organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + * projects/{project}/locations/{location} */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -2157,1200 +2628,4168 @@ public List setParent(java.lang.String parent) { return this; } - /** - * A custom filter for filtering by properties of a workload. At this time, only filtering - * by labels is supported. - */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key private java.lang.String filter; - /** A custom filter for filtering by properties of a workload. At this time, only filtering by labels - is supported. + /** Optional. The filtering results. */ public java.lang.String getFilter() { return filter; } - /** - * A custom filter for filtering by properties of a workload. At this time, only filtering - * by labels is supported. - */ + /** Optional. The filtering results. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** Page size. */ + /** + * 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; - /** Page size. + /** 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; } - /** Page size. */ + /** + * 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; } /** - * 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. + * 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 token returned from previous request. Page token contains context from previous request. Page - token needs to be passed in the second and following requests. + /** 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 token returned from previous request. Page token contains context from previous - * request. Page token needs to be passed in the second and following requests. + * 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. Specifies the level of detail to return in the response. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. Specifies the level of detail to return in the response. + */ + public java.lang.String getView() { + return view; + } + + /** Optional. Specifies the level of detail to return in the response. */ + 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 {
+
/**
- * 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.
+ * 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 "workloads.patch".
+ * 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 Patch#execute()} method to invoke the remote operation.
+ * optional parameters, call the {@link Get#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}
+ * @param name The name of the operation resource.
* @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);
+ public Get get(java.lang.String name) throws java.io.IOException {
+ Get result = new Get(name);
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.
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name 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} + * @param name The name of the operation resource. * @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); + 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(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. - */ + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Optional. The resource name of the workload. Format: - organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + /** The name of the operation resource. */ 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) { + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } 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); + public Get set(String parameterName, Object value) { + return (Get) 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. + * 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 "workloads.restrictAllowedResources". + * 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 RestrictAllowedResources#execute()} method to invoke the - * remote operation. + * optional parameters, call the {@link List#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} + * @param name The name of the operation's parent resource. * @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); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); 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.
+ * 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 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} + * @param name The name of the operation's parent resource. * @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); + 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } } @Override - public RestrictAllowedResources set$Xgafv(java.lang.String $Xgafv) { - return (RestrictAllowedResources) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RestrictAllowedResources setAccessToken(java.lang.String accessToken) { - return (RestrictAllowedResources) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RestrictAllowedResources setAlt(java.lang.String alt) { - return (RestrictAllowedResources) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public RestrictAllowedResources setCallback(java.lang.String callback) { - return (RestrictAllowedResources) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public RestrictAllowedResources setFields(java.lang.String fields) { - return (RestrictAllowedResources) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public RestrictAllowedResources setKey(java.lang.String key) { - return (RestrictAllowedResources) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public RestrictAllowedResources setOauthToken(java.lang.String oauthToken) { - return (RestrictAllowedResources) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public RestrictAllowedResources setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RestrictAllowedResources) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public RestrictAllowedResources setQuotaUser(java.lang.String quotaUser) { - return (RestrictAllowedResources) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public RestrictAllowedResources setUploadType(java.lang.String uploadType) { - return (RestrictAllowedResources) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public RestrictAllowedResources setUploadProtocol(java.lang.String uploadProtocol) { - return (RestrictAllowedResources) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** - * 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". - */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** 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". + /** The name of the operation's parent resource. */ 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) { + /** 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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } this.name = name; return this; } - @Override - public RestrictAllowedResources set(String parameterName, Object value) { - return (RestrictAllowedResources) super.set(parameterName, value); - } - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * 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 filter.
+ */
+ public java.lang.String getFilter() {
+ return filter;
+ }
+
+ /** The standard list filter. */
+ public List setFilter(java.lang.String filter) {
+ this.filter = filter;
+ return this;
+ }
+
+ /** The standard list page size. */
+ @com.google.api.client.util.Key
+ private java.lang.Integer pageSize;
+
+ /** The standard list page size.
+ */
+ public java.lang.Integer getPageSize() {
+ return pageSize;
+ }
+
+ /** The standard list page size. */
+ public List setPageSize(java.lang.Integer pageSize) {
+ this.pageSize = pageSize;
+ return this;
+ }
+
+ /** The standard list page token. */
+ @com.google.api.client.util.Key
+ private java.lang.String pageToken;
+
+ /** The standard list page token.
+ */
+ public java.lang.String getPageToken() {
+ return pageToken;
+ }
+
+ /** The standard list page token. */
+ public List setPageToken(java.lang.String pageToken) {
+ this.pageToken = pageToken;
+ return this;
+ }
+
+ /**
+ * When set to `true`, operations that are reachable are returned as normal, and those
+ * that are unreachable are returned in the ListOperationsResponse.unreachable field. This
+ * can only be `true` when reading across collections. For example, when `parent` is set
+ * to `"projects/example/locations/-"`. This field is not supported by default and will
+ * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
+ * service or product specific documentation.
+ */
+ @com.google.api.client.util.Key
+ private java.lang.Boolean returnPartialSuccess;
+
+ /** When set to `true`, operations that are reachable are returned as normal, and those that are
+ unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true`
+ when reading across collections. For example, when `parent` is set to
+ `"projects/example/locations/-"`. This field is not supported by default and will result in an
+ `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific
+ documentation.
+ */
+ public java.lang.Boolean getReturnPartialSuccess() {
+ return returnPartialSuccess;
+ }
+
+ /**
+ * When set to `true`, operations that are reachable are returned as normal, and those
+ * that are unreachable are returned in the ListOperationsResponse.unreachable field. This
+ * can only be `true` when reading across collections. For example, when `parent` is set
+ * to `"projects/example/locations/-"`. This field is not supported by default and will
+ * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
+ * service or product specific documentation.
+ */
+ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) {
+ this.returnPartialSuccess = returnPartialSuccess;
+ return this;
+ }
+
+ @Override
+ public List set(String parameterName, Object value) {
+ return (List) super.set(parameterName, value);
+ }
}
+ }
+ /**
+ * An accessor for creating requests from the 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 {
+
/**
- * The "updates" collection of methods.
+ * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the
+ * existence of compliance violations in their workload and decide to ignore them due to a valid
+ * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This
+ * is a batch version of AcknowledgeViolation.
+ *
+ * Create a request for the method "violations.batchAcknowledgeViolations".
+ *
+ * This request holds the parameters needed by the assuredworkloads server. After setting any
+ * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the
+ * remote operation.
+ *
+ * @param parent Optional. The parent resource shared by all violations being acknowledged. Format:
+ * organizations/{organization}/locations/{location}/workloads/{workload}
+ * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest}
+ * @return the request
*/
- public class Updates {
+ public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException {
+ BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
* - * @param 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 + * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} + * @since 1.13 */ - 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; + protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { + return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); + } + + @Override + public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { + return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); + } + + @Override + public BatchAcknowledgeViolations setAlt(java.lang.String alt) { + return (BatchAcknowledgeViolations) super.setAlt(alt); + } + + @Override + public BatchAcknowledgeViolations setCallback(java.lang.String callback) { + return (BatchAcknowledgeViolations) super.setCallback(callback); + } + + @Override + public BatchAcknowledgeViolations setFields(java.lang.String fields) { + return (BatchAcknowledgeViolations) super.setFields(fields); + } + + @Override + public BatchAcknowledgeViolations setKey(java.lang.String key) { + return (BatchAcknowledgeViolations) super.setKey(key); + } + + @Override + public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { + return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); + } + + @Override + public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { + return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); + } + + @Override + public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { + return (BatchAcknowledgeViolations) super.setUploadType(uploadType); + } + + @Override + public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Optional. The parent resource shared by all violations being acknowledged. Format: + organizations/{organization}/locations/{location}/workloads/{workload} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + */ + public BatchAcknowledgeViolations setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchAcknowledgeViolations set(String parameterName, Object value) { + return (BatchAcknowledgeViolations) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Workloads collection. + * + *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.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; + } + + /** + * 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; + + /** 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; + } + + /** + * 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; + } + + /** Page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 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; + + /** 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; + } + + /** + * 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/{violati
+ * on}
+ * @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/{violati + * on} + * @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/{o + * rganization}/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/{o + * rganization}/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); + } + } + /** + * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the + * existence of compliance violations in their workload and decide to ignore them due to a valid + * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This + * is a batch version of AcknowledgeViolation. + * + * Create a request for the method "violations.batchAcknowledgeViolations". + * + * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the + * remote operation. + * + * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} + * @return the request + */ + public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException { + BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content); + initialize(result); + return result; + } + + public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} + * @since 1.13 + */ + protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } + } + + @Override + public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { + return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); + } + + @Override + public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { + return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); + } + + @Override + public BatchAcknowledgeViolations setAlt(java.lang.String alt) { + return (BatchAcknowledgeViolations) super.setAlt(alt); + } + + @Override + public BatchAcknowledgeViolations setCallback(java.lang.String callback) { + return (BatchAcknowledgeViolations) super.setCallback(callback); + } + + @Override + public BatchAcknowledgeViolations setFields(java.lang.String fields) { + return (BatchAcknowledgeViolations) super.setFields(fields); + } + + @Override + public BatchAcknowledgeViolations setKey(java.lang.String key) { + return (BatchAcknowledgeViolations) super.setKey(key); + } + + @Override + public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { + return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); + } + + @Override + public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { + return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); + } + + @Override + public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { + return (BatchAcknowledgeViolations) super.setUploadType(uploadType); + } + + @Override + public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Optional. The parent resource shared by all violations being acknowledged. Format: + organizations/{organization}/locations/{location}/workloads/{workload} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + */ + public BatchAcknowledgeViolations setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchAcknowledgeViolations set(String parameterName, Object value) { + return (BatchAcknowledgeViolations) super.set(parameterName, value); + } + } + /** + * Retrieves Assured Workload Violation based on ID. + * + * 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 fetch (ie. Violation.name). Format: + * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati + * on} + * @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 fetch (ie. Violation.name). Format: + * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati + * on} + * @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 fetch (ie. Violation.name). Format: o + * rganizations/{organization}/locations/{location}/workloads/{workload}/violations/{vio + * lation} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the Violation to fetch (ie. 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 fetch (ie. Violation.name). Format: o + * rganizations/{organization}/locations/{location}/workloads/{workload}/violations/{vio + * lation} + */ + 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 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 name. Format + * `organizations/{org_id}/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.
+ * + * @param parent Required. The Workload name. Format + * `organizations/{org_id}/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.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 " + + "^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. The Workload name. Format + * `organizations/{org_id}/locations/{location}/workloads/{workload}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The Workload name. Format + `organizations/{org_id}/locations/{location}/workloads/{workload}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The Workload name. Format + * `organizations/{org_id}/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 custom filter for filtering by the Violations properties. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A custom filter for filtering by the Violations properties. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. A custom filter for filtering by the Violations properties. */ + 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. Actionable sorting delegation. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Actionable sorting delegation. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Actionable sorting delegation. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** Optional. Page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** 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. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. Page token returned from previous request. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. 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 multiple existing violations. By acknowledging violations, users acknowledge the
+ * existence of compliance violations in their workload and decide to ignore them due to a valid
+ * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This
+ * is a batch version of AcknowledgeViolation.
+ *
+ * Create a request for the method "violations.batchAcknowledgeViolations".
+ *
+ * This request holds the parameters needed by the assuredworkloads server. After setting any
+ * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the
+ * remote operation.
+ *
+ * @param parent Optional. The parent resource shared by all violations being acknowledged. Format:
+ * organizations/{organization}/locations/{location}/workloads/{workload}
+ * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest}
+ * @return the request
+ */
+ public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException {
+ BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google + * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} + * @since 1.13 + */ + protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { + super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); } + } - 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 BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { + return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); + } - @Override - public Apply set$Xgafv(java.lang.String $Xgafv) { - return (Apply) super.set$Xgafv($Xgafv); - } + @Override + public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { + return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); + } - @Override - public Apply setAccessToken(java.lang.String accessToken) { - return (Apply) super.setAccessToken(accessToken); - } + @Override + public BatchAcknowledgeViolations setAlt(java.lang.String alt) { + return (BatchAcknowledgeViolations) super.setAlt(alt); + } - @Override - public Apply setAlt(java.lang.String alt) { - return (Apply) super.setAlt(alt); - } + @Override + public BatchAcknowledgeViolations setCallback(java.lang.String callback) { + return (BatchAcknowledgeViolations) super.setCallback(callback); + } - @Override - public Apply setCallback(java.lang.String callback) { - return (Apply) super.setCallback(callback); - } + @Override + public BatchAcknowledgeViolations setFields(java.lang.String fields) { + return (BatchAcknowledgeViolations) super.setFields(fields); + } - @Override - public Apply setFields(java.lang.String fields) { - return (Apply) super.setFields(fields); - } + @Override + public BatchAcknowledgeViolations setKey(java.lang.String key) { + return (BatchAcknowledgeViolations) super.setKey(key); + } - @Override - public Apply setKey(java.lang.String key) { - return (Apply) super.setKey(key); - } + @Override + public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { + return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); + } - @Override - public Apply setOauthToken(java.lang.String oauthToken) { - return (Apply) super.setOauthToken(oauthToken); - } + @Override + public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); + } - @Override - public Apply setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Apply) super.setPrettyPrint(prettyPrint); - } + @Override + public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { + return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); + } - @Override - public Apply setQuotaUser(java.lang.String quotaUser) { - return (Apply) super.setQuotaUser(quotaUser); - } + @Override + public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { + return (BatchAcknowledgeViolations) super.setUploadType(uploadType); + } - @Override - public Apply setUploadType(java.lang.String uploadType) { - return (Apply) super.setUploadType(uploadType); - } + @Override + public BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); + } - @Override - public Apply setUploadProtocol(java.lang.String uploadProtocol) { - return (Apply) super.setUploadProtocol(uploadProtocol); - } + /** + * Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * 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; + /** Optional. The parent resource shared by all violations being acknowledged. Format: + organizations/{organization}/locations/{location}/workloads/{workload} + */ + public java.lang.String getParent() { + return parent; + } - /** 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; - } + /** + * Optional. The parent resource shared by all violations being acknowledged. Format: + * organizations/{organization}/locations/{location}/workloads/{workload} + */ + public BatchAcknowledgeViolations setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } - /** - * 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 BatchAcknowledgeViolations set(String parameterName, Object value) { + return (BatchAcknowledgeViolations) super.set(parameterName, value); + } + } - @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 AssuredworkloadsRequestThe 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();
+ }
- private static final String REST_PATH = "v1beta1/{+parent}/updates";
+ /**
+ * The "projects" collection of methods.
+ */
+ public class Projects {
- private final java.util.regex.Pattern PARENT_PATTERN =
- java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$");
+ /**
+ * 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();
+ }
- /**
- * 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 the assuredworkloads server. After setting any
- * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param 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/[^/]+$"); - } - } + /** + * The "locations" collection of methods. + */ + public class Locations { - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * 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();
+ }
- @Override
- public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
- return super.buildHttpRequestUsingHead();
- }
+ /**
+ * The "dbFindingSummaries" collection of methods.
+ */
+ public class DbFindingSummaries {
- @Override
- public List set$Xgafv(java.lang.String $Xgafv) {
- return (List) super.set$Xgafv($Xgafv);
- }
+ /**
+ * Lists the finding summary by category for a given scope.
+ *
+ * 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 for the framework overview page. Formats: -
+ * projects/{project}/locations/{location} - folders/{folder}/locations/{location} -
+ * organizations/{organization}/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;
+ }
- @Override
- public List setAccessToken(java.lang.String accessToken) {
- return (List) super.setAccessToken(accessToken);
- }
+ 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 for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/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.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 List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** Required. organizations/{org_id}/locations/{location_id}/workloads/{workload_id} - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** 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; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** 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; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** Page size. The default value is 20 and the max allowed value is 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** 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; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** Page token returned from previous request. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** Page token returned from previous request. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Page token returned from previous request. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. The parent scope for the framework overview page. Formats: - + projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + organizations/{organization}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** + * Required. The parent scope for the framework overview page. Formats: - + * projects/{project}/locations/{location} - folders/{folder}/locations/{location} - + * organizations/{organization}/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/[^/]+$"); } + this.parent = parent; + return this; } - } - /** - * 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 {
+ /** Optional. The filtering results. */
+ @com.google.api.client.util.Key
+ private java.lang.String filter;
- /**
- * 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/{violati
- * on}
- * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest}
- * @return the request
+ /** Optional. The filtering results.
*/
- 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 java.lang.String getFilter() {
+ return filter;
}
- 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/{violati - * on} - * @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/[^/]+$"); - } - } + /** + * 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; + } - @Override - public Acknowledge set$Xgafv(java.lang.String $Xgafv) { - return (Acknowledge) super.set$Xgafv($Xgafv); - } + /** + * Optional. A token that identifies the page of results that the server should return. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Acknowledge setAccessToken(java.lang.String accessToken) { - return (Acknowledge) super.setAccessToken(accessToken); - } + /** Optional. A token that identifies the page of results that the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Acknowledge setAlt(java.lang.String alt) { - return (Acknowledge) super.setAlt(alt); - } + /** + * Optional. A token that identifies the page of results that the server should return. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Acknowledge setCallback(java.lang.String callback) { - return (Acknowledge) super.setCallback(callback); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } - @Override - public Acknowledge setFields(java.lang.String fields) { - return (Acknowledge) super.setFields(fields); - } + } + /** + * 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();
+ }
- @Override
- public Acknowledge setKey(java.lang.String key) {
- return (Acknowledge) super.setKey(key);
- }
+ /**
+ * The "dbFrameworkComplianceReports" collection of methods.
+ */
+ public class DbFrameworkComplianceReports {
- @Override
- public Acknowledge setOauthToken(java.lang.String oauthToken) {
- return (Acknowledge) super.setOauthToken(oauthToken);
- }
+ /**
+ * Gets the aggregated compliance report over time for a given scope.
+ *
+ * Create a request for the method "dbFrameworkComplianceReports.aggregate".
+ *
+ * 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.
+ *
+ * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations
+ * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}`
+ * @return the request
+ */
+ public Aggregate aggregate(java.lang.String name) throws java.io.IOException {
+ Aggregate result = new Aggregate(name);
+ initialize(result);
+ return result;
+ }
- @Override
- public Acknowledge setPrettyPrint(java.lang.Boolean prettyPrint) {
- return (Acknowledge) super.setPrettyPrint(prettyPrint);
- }
+ 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.
+ * + * @param name Required. The name of the aggregated compliance report over time to retrieve. Format: `organizations + * /{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report}` + * @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); + 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/[^/]+$"); } + } - /** - * Required. The resource name of the Violation to acknowledge. Format: organizations/{o - * rganization}/locations/{location}/workloads/{workload}/violations/{violation} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** 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; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Required. The resource name of the Violation to acknowledge. Format: organizations/{o - * rganization}/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$Xgafv(java.lang.String $Xgafv) { + return (Aggregate) super.set$Xgafv($Xgafv); + } - @Override - public Acknowledge set(String parameterName, Object value) { - return (Acknowledge) super.set(parameterName, value); - } + @Override + public Aggregate setAccessToken(java.lang.String accessToken) { + return (Aggregate) super.setAccessToken(accessToken); } - /** - * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the - * existence of compliance violations in their workload and decide to ignore them due to a valid - * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This - * is a batch version of AcknowledgeViolation. - * - * Create a request for the method "violations.batchAcknowledgeViolations". - * - * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the - * remote operation. - * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} - * @return the request - */ - public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException { - BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content); - initialize(result); - return result; + + @Override + public Aggregate setAlt(java.lang.String alt) { + return (Aggregate) super.setAlt(alt); } - public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} - * @since 1.13 - */ - protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - } + @Override + public Aggregate setOauthToken(java.lang.String oauthToken) { + return (Aggregate) super.setOauthToken(oauthToken); + } + + @Override + public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Aggregate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Aggregate setQuotaUser(java.lang.String quotaUser) { + return (Aggregate) super.setQuotaUser(quotaUser); + } - @Override - public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { - return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); - } + @Override + public Aggregate setUploadType(java.lang.String uploadType) { + return (Aggregate) super.setUploadType(uploadType); + } - @Override - public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { - return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); - } + @Override + public Aggregate setUploadProtocol(java.lang.String uploadProtocol) { + return (Aggregate) super.setUploadProtocol(uploadProtocol); + } - @Override - public BatchAcknowledgeViolations setAlt(java.lang.String alt) { - return (BatchAcknowledgeViolations) super.setAlt(alt); - } + /** + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_compliance_report}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public BatchAcknowledgeViolations setCallback(java.lang.String callback) { - return (BatchAcknowledgeViolations) super.setCallback(callback); - } + /** Required. The name of the aggregated compliance report over time to retrieve. Format: `organization + s/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repo + rt}` + */ + public java.lang.String getName() { + return name; + } - @Override - public BatchAcknowledgeViolations setFields(java.lang.String fields) { - return (BatchAcknowledgeViolations) super.setFields(fields); + /** + * Required. The name of the aggregated compliance report over time to retrieve. Format: ` + * organizations/{organization_id}/locations/{location}/dbFrameworkComplianceReports/{db_f + * ramework_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/[^/]+$"); } + this.name = name; + return this; + } - @Override - public BatchAcknowledgeViolations setKey(java.lang.String key) { - return (BatchAcknowledgeViolations) super.setKey(key); - } + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { - return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); - } + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); - } + /** Optional. The filtering results. */ + public Aggregate setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { - return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); - } + /** + * 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 BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { - return (BatchAcknowledgeViolations) super.setUploadType(uploadType); - } + /** 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 BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); - } + /** + * 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. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** + * Optional. 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. The parent resource shared by all violations being acknowledged. Format: - organizations/{organization}/locations/{location}/workloads/{workload} - */ - public java.lang.String getParent() { - return parent; - } + /** 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. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - public BatchAcknowledgeViolations setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - } - this.parent = parent; - return this; - } + /** + * 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 BatchAcknowledgeViolations set(String parameterName, Object value) { - return (BatchAcknowledgeViolations) super.set(parameterName, value); - } + @Override + public Aggregate set(String parameterName, Object value) { + return (Aggregate) super.set(parameterName, value); } + } + /** + * Fetches the framework compliance report for a given scope. + * + * 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. + * @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.
* - * @param name Required. The resource name of the Violation to fetch (ie. Violation.name). Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati - * on} - * @return the request + * @param name Required. The name of the framework compliance report to retrieve. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + 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/[^/]+$"); + } } - 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 fetch (ie. Violation.name). Format: - * organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violati - * on} - * @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 setAccessToken(java.lang.String accessToken) { + return (Fetch) super.setAccessToken(accessToken); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Fetch setAlt(java.lang.String alt) { + return (Fetch) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Fetch setCallback(java.lang.String callback) { + return (Fetch) super.setCallback(callback); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Fetch setFields(java.lang.String fields) { + return (Fetch) super.setFields(fields); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Fetch setKey(java.lang.String key) { + return (Fetch) super.setKey(key); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Fetch setOauthToken(java.lang.String oauthToken) { + return (Fetch) super.setOauthToken(oauthToken); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Fetch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Fetch) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + @Override + public Fetch setQuotaUser(java.lang.String quotaUser) { + return (Fetch) super.setQuotaUser(quotaUser); + } + + @Override + public Fetch setUploadType(java.lang.String uploadType) { + return (Fetch) super.setUploadType(uploadType); + } + + @Override + public Fetch setUploadProtocol(java.lang.String uploadProtocol) { + return (Fetch) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the framework compliance report to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the framework compliance report to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the framework compliance report to retrieve. */ + 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/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Optional. The end time of the report. */ + @com.google.api.client.util.Key + private String endTime; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** Optional. The end time of the report. + */ + public String getEndTime() { + return endTime; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** Optional. The end time of the report. */ + public Fetch setEndTime(String endTime) { + this.endTime = endTime; + return this; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Optional. The filtering results. */ + public Fetch setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** - * Required. The resource name of the Violation to fetch (ie. Violation.name). Format: o - * rganizations/{organization}/locations/{location}/workloads/{workload}/violations/{vio - * lation} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Fetch set(String parameterName, Object value) { + return (Fetch) super.set(parameterName, value); + } + } - /** Required. The resource name of the Violation to fetch (ie. Violation.name). Format: - organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} - */ - public java.lang.String getName() { - return name; - } + /** + * 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();
+ }
- /**
- * Required. The resource name of the Violation to fetch (ie. Violation.name). Format: o
- * rganizations/{organization}/locations/{location}/workloads/{workload}/violations/{vio
- * lation}
- */
- 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;
- }
+ /**
+ * The "dbControlComplianceSummaries" collection of methods.
+ */
+ public class DbControlComplianceSummaries {
- @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/-`
+ * Lists the control compliance summary for a given scope.
*
- * Create a request for the method "violations.list".
+ * 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 Workload name. Format
- * `organizations/{org_id}/locations/{location}/workloads/{workload}`.
+ * @param parent Required. The parent scope for the framework overview page. Format: organizations/{organization}/loc
+ * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f
+ * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report}
+ * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia
+ * nce_report}
* @return the request
*/
public List list(java.lang.String parent) throws java.io.IOException {
@@ -3359,37 +6798,37 @@ 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 Workload name. Format - * `organizations/{org_id}/locations/{location}/workloads/{workload}`. + * @param parent Required. The parent scope for the framework overview page. Format: organizations/{organization}/loc + * ations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} folders/{f + * older}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + * projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complia + * nce_report} * @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); + 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/[^/]+/workloads/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } } @@ -3459,306 +6898,361 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The Workload name. Format - * `organizations/{org_id}/locations/{location}/workloads/{workload}`. + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{db_framework_compliance_report} */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The Workload name. Format - `organizations/{org_id}/locations/{location}/workloads/{workload}`. + /** Required. The parent scope for the framework overview page. Format: organizations/{organization}/lo + cations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_report} + projects/{project}/locations/{location}/dbFrameworkComplianceReports/{db_framework_compliance_repor + t} */ public java.lang.String getParent() { return parent; } /** - * Required. The Workload name. Format - * `organizations/{org_id}/locations/{location}/workloads/{workload}`. + * Required. The parent scope for the framework overview page. Format: organizations/{or + * ganization}/locations/{location}/dbFrameworkComplianceReports/{db_framework_complianc + * e_report} folders/{folder}/locations/{location}/dbFrameworkComplianceReports/{db_fram + * ework_compliance_report} projects/{project}/locations/{location}/dbFrameworkComplianc + * eReports/{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 " + - "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); } this.parent = parent; return this; } - /** Optional. A custom filter for filtering by the Violations properties. */ + /** Optional. The filtering results. */ @com.google.api.client.util.Key private java.lang.String filter; - /** Optional. A custom filter for filtering by the Violations properties. + /** Optional. The filtering results. */ public java.lang.String getFilter() { return filter; } - /** Optional. A custom filter for filtering by the Violations properties. */ + /** Optional. The filtering results. */ 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; + /** + * 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; - /** The end of the time window. + /** 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 String getIntervalEndTime() { - return intervalEndTime; + public java.lang.Integer getPageSize() { + return pageSize; } - /** The end of the time window. */ - public List setIntervalEndTime(String intervalEndTime) { - this.intervalEndTime = intervalEndTime; + /** + * 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; } - /** The start of the time window. */ - @com.google.api.client.util.Key("interval.startTime") - private String intervalStartTime; + /** + * Optional. A token that identifies the page of results that the server should return. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** The start of the time window. + /** Optional. A token that identifies the page of results that the server should return. */ - public String getIntervalStartTime() { - return intervalStartTime; + public java.lang.String getPageToken() { + return pageToken; } - /** The start of the time window. */ - public List setIntervalStartTime(String intervalStartTime) { - this.intervalStartTime = intervalStartTime; + /** + * Optional. A token that identifies the page of results that the server should return. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Optional. Actionable sorting delegation. */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Optional. Actionable sorting delegation. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } + } - /** Optional. Actionable sorting delegation. */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + } + } + /** + * 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();
+ }
- /** Optional. Page size. */
- @com.google.api.client.util.Key
- private java.lang.Integer pageSize;
+ /**
+ * The "dbFrameworkComplianceSummaries" collection of methods.
+ */
+ public class DbFrameworkComplianceSummaries {
- /** Optional. Page size.
- */
- public java.lang.Integer getPageSize() {
- return pageSize;
- }
+ /**
+ * Lists the framework compliance summary for a given scope.
+ *
+ * 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 for the framework compliance summary. Format:
+ * 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;
+ }
- /** Optional. Page size. */
- public List setPageSize(java.lang.Integer pageSize) {
- this.pageSize = pageSize;
- 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 parent scope for the framework compliance summary. Format: + * 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. Page token returned from previous request. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @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); + } - /** Optional. Page token returned from previous request. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** Optional. Page token returned from previous request. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } - } - } - } - /** - * 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();
- }
+ @Override
+ public List setOauthToken(java.lang.String oauthToken) {
+ return (List) super.setOauthToken(oauthToken);
+ }
- /**
- * The "violations" collection of methods.
- */
- public class Violations {
+ @Override
+ public List setPrettyPrint(java.lang.Boolean prettyPrint) {
+ return (List) super.setPrettyPrint(prettyPrint);
+ }
- /**
- * Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the
- * existence of compliance violations in their workload and decide to ignore them due to a valid
- * business justification. Acknowledgement is a permanent operation and it cannot be reverted. This
- * is a batch version of AcknowledgeViolation.
- *
- * Create a request for the method "violations.batchAcknowledgeViolations".
- *
- * This request holds the parameters needed by the assuredworkloads server. After setting any
- * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the
- * remote operation.
- *
- * @param parent Optional. The parent resource shared by all violations being acknowledged. Format:
- * organizations/{organization}/locations/{location}/workloads/{workload}
- * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest}
- * @return the request
- */
- public BatchAcknowledgeViolations batchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) throws java.io.IOException {
- BatchAcknowledgeViolations result = new BatchAcknowledgeViolations(parent, content);
- initialize(result);
- return result;
- }
+ @Override
+ public List setQuotaUser(java.lang.String quotaUser) {
+ return (List) super.setQuotaUser(quotaUser);
+ }
- public class BatchAcknowledgeViolations extends AssuredworkloadsRequest{@link BatchAcknowledgeViolations#initialize(com.google.api.client.google - * apis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
- * - * @param parent Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest} - * @since 1.13 - */ - protected BatchAcknowledgeViolations(java.lang.String parent, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsRequest content) { - super(Assuredworkloads.this, "POST", REST_PATH, content, com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1BatchAcknowledgeViolationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+$"); + /** Required. The parent scope for the framework compliance summary. Format: + organizations/{organization}/locations/{location} folders/{folder}/locations/{location} + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; } - } - @Override - public BatchAcknowledgeViolations set$Xgafv(java.lang.String $Xgafv) { - return (BatchAcknowledgeViolations) super.set$Xgafv($Xgafv); - } + /** + * Required. The parent scope for the framework compliance summary. Format: + * 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/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public BatchAcknowledgeViolations setAccessToken(java.lang.String accessToken) { - return (BatchAcknowledgeViolations) super.setAccessToken(accessToken); - } + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public BatchAcknowledgeViolations setAlt(java.lang.String alt) { - return (BatchAcknowledgeViolations) super.setAlt(alt); - } + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public BatchAcknowledgeViolations setCallback(java.lang.String callback) { - return (BatchAcknowledgeViolations) super.setCallback(callback); - } + /** Optional. The filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public BatchAcknowledgeViolations setFields(java.lang.String fields) { - return (BatchAcknowledgeViolations) super.setFields(fields); - } + /** + * 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; - @Override - public BatchAcknowledgeViolations setKey(java.lang.String key) { - return (BatchAcknowledgeViolations) super.setKey(key); - } + /** 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; + } - @Override - public BatchAcknowledgeViolations setOauthToken(java.lang.String oauthToken) { - return (BatchAcknowledgeViolations) super.setOauthToken(oauthToken); - } + /** + * 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; + } - @Override - public BatchAcknowledgeViolations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BatchAcknowledgeViolations) super.setPrettyPrint(prettyPrint); - } + /** + * 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; - @Override - public BatchAcknowledgeViolations setQuotaUser(java.lang.String quotaUser) { - return (BatchAcknowledgeViolations) super.setQuotaUser(quotaUser); - } + /** 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; + } - @Override - public BatchAcknowledgeViolations setUploadType(java.lang.String uploadType) { - return (BatchAcknowledgeViolations) super.setUploadType(uploadType); - } + /** + * 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 BatchAcknowledgeViolations setUploadProtocol(java.lang.String uploadProtocol) { - return (BatchAcknowledgeViolations) super.setUploadProtocol(uploadProtocol); - } + /** Optional. Specifies the level of detail to return in the response. */ + @com.google.api.client.util.Key + private java.lang.String view; - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** Optional. Specifies the level of detail to return in the response. + */ + public java.lang.String getView() { + return view; + } - /** Optional. The parent resource shared by all violations being acknowledged. Format: - organizations/{organization}/locations/{location}/workloads/{workload} - */ - public java.lang.String getParent() { - return parent; - } + /** Optional. Specifies the level of detail to return in the response. */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } - /** - * Optional. The parent resource shared by all violations being acknowledged. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} - */ - public BatchAcknowledgeViolations setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^organizations/[^/]+$"); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } - this.parent = parent; - return this; } - @Override - public BatchAcknowledgeViolations set(String parameterName, Object value) { - return (BatchAcknowledgeViolations) super.set(parameterName, value); - } } - } } diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse.java new file mode 100644 index 00000000000..cd2050c2a7d --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse.java @@ -0,0 +1,67 @@ +/* + * 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 response message for AggregateDbFrameworkComplianceReport. + * + *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 GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of aggregated compliance 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 GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport extends com.google.api.client.json.GenericJson { + + /** + * The control assessment details of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails; + + /** + * The report time of the aggregated compliance report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String reportTime; + + /** + * The control assessment details of the framework. + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails getControlAssessmentDetails() { + return controlAssessmentDetails; + } + + /** + * The control assessment details of the framework. + * @param controlAssessmentDetails controlAssessmentDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport setControlAssessmentDetails(GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails) { + this.controlAssessmentDetails = controlAssessmentDetails; + return this; + } + + /** + * The report time of the aggregated compliance report. + * @return value or {@code null} for none + */ + public String getReportTime() { + return reportTime; + } + + /** + * The report time of the aggregated compliance report. + * @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 new file mode 100644 index 00000000000..8ec29c9a21e --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CELExpression.java @@ -0,0 +1,100 @@ +/* + * 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 new file mode 100644 index 00000000000..6902747d305 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails.java @@ -0,0 +1,91 @@ +/* + * 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. 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; + } + + @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 new file mode 100644 index 00000000000..4a0c54f3ba5 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1CloudControlReport.java @@ -0,0 +1,427 @@ +/* + * 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 finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingCategory; + + /** + * Output only. The class of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingClass; + + /** + * Output only. The count of the finding. + * 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 name of the finding summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The list of compliance frameworks that the finding belongs 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 control assessment details of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails; + + /** + * Output only. The trend of controls that are passing for the given duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1beta1Trend controlsPassingTrend; + + /** + * Output only. The count of the findings generated against the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long findingCount; + + /** + * The name of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String framework; + + /** + * The list of framework categories supported by 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 control assessment details of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails; + + /** + * The name of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String framework; + + /** + * The list of framework categories supported. + * 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 details. + * 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 { + + /** + * List of finding summary by 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.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 GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails 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.List