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: com.google.apis google-api-services-assuredworkloads - v1-rev20260623-2.0.0 + v1-rev20260719-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-assuredworkloads:v1-rev20260623-2.0.0' + implementation 'com.google.apis:google-api-services-assuredworkloads:v1-rev20260719-2.0.0' } ``` diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/Assuredworkloads.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/Assuredworkloads.java index 27453dc6ac9..a4cc05292f4 100644 --- a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/Assuredworkloads.java +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/Assuredworkloads.java @@ -631,117 +631,75 @@ 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 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 { + public class Aggregate extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+parent}/dbFindingSummaries"; + private static final String REST_PATH = "v1/{+name}:aggregate"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/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 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)} + * 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 { + public class Fetch extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:fetch"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * 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 { + + private static final String REST_PATH = "v1/{+parent}/dbControlComplianceSummaries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + + /** + * 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 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. 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+name}/operations"; + private static final String REST_PATH = "v1/{+parent}/dbFrameworkComplianceSummaries"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists the framework compliance summary for a given scope. * - * Create a request for the method "operations.list". + * Create a request for the method "dbFrameworkComplianceSummaries.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 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+target}:analyzeWorkloadMove"; + private static final String REST_PATH = "v1/{+parent}/dbFindingSummaries"; - private final java.util.regex.Pattern TARGET_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * 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 the assuredworkloads server. After setting any - * 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.

+ * 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.List assetTypes; + private java.lang.String filter; - /** 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. */ - public java.util.List getAssetTypes() { - return assetTypes; + public java.lang.String getFilter() { + return filter; } - /** - * 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). - */ - public AnalyzeWorkloadMove setAssetTypes(java.util.List assetTypes) { - this.assetTypes = assetTypes; + /** Optional. The filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * Optional. Page size. If a value is not specified, the default value of 10 is used. The - * maximum value is 50. + * 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. Page size. If a value is not specified, the default value of 10 is used. The maximum - value is 50. + /** 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. Page size. If a value is not specified, the default value of 10 is used. The - * maximum value is 50. + * Optional. The requested page size. The server might return fewer items than requested. + * If unspecified, the server picks an appropriate default. */ - public AnalyzeWorkloadMove setPageSize(java.lang.Integer pageSize) { + public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. The page token from the previous response. It needs to be passed in the - * second and following requests. + * 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. The page token from the previous response. It needs to be passed in the second and - following requests. + /** Optional. A token that identifies the page of results that the server should return. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. The page token from the previous response. It needs to be passed in the - * second and following requests. + * Optional. A token that identifies the page of results that the server should return. */ - public AnalyzeWorkloadMove setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * The source type is a project. Specify the project's relative resource name, formatted - * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or - * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project - * number, or "projects/my-project-123" when specifying a project ID. - */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** The source type is a project. Specify the project's relative resource name, formatted as either a - project number or a project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" For example: - "projects/951040570662" when specifying a project number, or "projects/my-project-123" when - specifying a project ID. - */ - public java.lang.String getProject() { - return project; - } - - /** - * The source type is a project. Specify the project's relative resource name, formatted - * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or - * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project - * number, or "projects/my-project-123" when specifying a project ID. - */ - public AnalyzeWorkloadMove setProject(java.lang.String project) { - this.project = project; - return this; - } - @Override - public AnalyzeWorkloadMove set(String parameterName, Object value) { - return (AnalyzeWorkloadMove) super.set(parameterName, value); + 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 { + /** - * 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 { + public class Aggregate extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+parent}/workloads"; + private static final String REST_PATH = "v1/{+name}:aggregate"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/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 the assuredworkloads server. After setting any - * 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.

+ * 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 { + public class Fetch extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:fetch"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/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. + * 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 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. *

{@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 { - - private static final String REST_PATH = "v1/{+name}:enableComplianceUpdates"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + /** + * The "dbControlComplianceSummaries" collection of methods. + */ + public class DbControlComplianceSummaries { /** - * 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. + * Lists the control compliance summary for a given scope. * - * Create a request for the method "workloads.enableComplianceUpdates". + * Create a request for the method "dbControlComplianceSummaries.list". * - * This request holds the parameters needed by the the assuredworkloads server. After setting any - * optional parameters, call the {@link EnableComplianceUpdates#execute()} method to invoke the - * remote operation.

{@link EnableComplianceUpdates#initialize(com.google.api.client.googleapi - * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

+ * 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 { - @Override - public EnableComplianceUpdates setAccessToken(java.lang.String accessToken) { - return (EnableComplianceUpdates) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+parent}/dbControlComplianceSummaries"; - @Override - public EnableComplianceUpdates setAlt(java.lang.String alt) { - return (EnableComplianceUpdates) super.setAlt(alt); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - @Override - public EnableComplianceUpdates setCallback(java.lang.String callback) { - return (EnableComplianceUpdates) super.setCallback(callback); - } + /** + * 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 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. 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+name}:enableResourceMonitoring"; + private static final String REST_PATH = "v1/{+parent}/dbFrameworkComplianceSummaries"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * Enable resource violation monitoring for a workload. + * Lists the framework compliance summary for a given scope. * - * Create a request for the method "workloads.enableResourceMonitoring". + * Create a request for the method "dbFrameworkComplianceSummaries.list". * * This request holds the parameters needed by the the assuredworkloads server. After setting any - * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the - * remote operation.

{@link EnableResourceMonitoring#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

+ * 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 AssuredworkloadsRequest { + /** Optional. The filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; - private static final String REST_PATH = "v1/{+name}"; + /** Optional. The filtering results. + */ + public java.lang.String getFilter() { + return filter; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + /** Optional. The filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } /** - * Gets Assured Workload associated with a CRM Node + * Optional. The requested page size. The server might return fewer items than requested. + * If unspecified, the default page size is 50. The maximum value is 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The requested page size. The server might return fewer items than requested. If + unspecified, the default page size is 50. The maximum value is 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The requested page size. The server might return fewer items than requested. + * If unspecified, the default page size is 50. The maximum value is 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A token that identifies the page of results that the server should return. + * Pass the next_page_token value from a previous result. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token that identifies the page of results that the server should return. Pass the + next_page_token value from a previous result. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A token that identifies the page of results that the server should return. + * Pass the next_page_token value from a previous result. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Optional. 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 { + + /** + * 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "workloads.get". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the the assuredworkloads server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * @param name 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+parent}/workloads"; + private static final String REST_PATH = "v1/{+name}/operations"; - private final java.util.regex.Pattern PARENT_PATTERN = + private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * 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 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. 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 { + public class AnalyzeWorkloadMove extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+name}:mutatePartnerPermissions"; + private static final String REST_PATH = "v1/{+target}:analyzeWorkloadMove"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern TARGET_PATTERN = java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); /** - * 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. + * 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.mutatePartnerPermissions". + * Create a request for the method "workloads.analyzeWorkloadMove". * * This request holds the parameters needed by the the assuredworkloads server. After setting any - * optional parameters, call the {@link MutatePartnerPermissions#execute()} method to invoke the - * remote operation.

{@link MutatePartnerPermissions#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

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

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

- * - * @param name 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 assetTypes) { + this.assetTypes = assetTypes; + return this; } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + /** + * Optional. Page size. If a value is not specified, the default value of 10 is used. The + * maximum value is 50. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + /** Optional. Page size. If a value is not specified, the default value of 10 is used. The maximum + value is 50. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + /** + * Optional. Page size. If a value is not specified, the default value of 10 is used. The + * maximum value is 50. + */ + public AnalyzeWorkloadMove setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } /** - * Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + * Optional. The page token from the previous response. It needs to be passed in the + * second and following requests. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String pageToken; - /** Optional. The resource name of the workload. Format: - organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + /** Optional. The page token from the previous response. It needs to be passed in the second and + following requests. */ - public java.lang.String getName() { - return name; + public java.lang.String getPageToken() { + return pageToken; } /** - * Optional. The resource name of the workload. Format: - * organizations/{organization}/locations/{location}/workloads/{workload} Read-only. + * Optional. The page token from the previous response. It needs to be passed in the + * second and following requests. */ - 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; + public AnalyzeWorkloadMove setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Required. The list of fields to be updated. */ + /** + * The source type is a project. Specify the project's relative resource name, formatted + * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or + * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project + * number, or "projects/my-project-123" when specifying a project ID. + */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String project; - /** Required. The list of fields to be updated. + /** The source type is a project. Specify the project's relative resource name, formatted as either a + project number or a project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" For example: + "projects/951040570662" when specifying a project number, or "projects/my-project-123" when + specifying a project ID. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getProject() { + return project; } - /** Required. The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * The source type is a project. Specify the project's relative resource name, formatted + * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or + * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project + * number, or "projects/my-project-123" when specifying a project ID. + */ + public AnalyzeWorkloadMove setProject(java.lang.String project) { + this.project = project; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public AnalyzeWorkloadMove set(String parameterName, Object value) { + return (AnalyzeWorkloadMove) 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. + * Creates Assured Workload. * - * Create a request for the method "workloads.restrictAllowedResources". + * Create a request for the method "workloads.create". * * This request holds the parameters needed by the assuredworkloads server. After setting any - * optional parameters, call the {@link RestrictAllowedResources#execute()} method to invoke the - * remote operation. + * optional parameters, call the {@link Create#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} + * @param parent Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. + * @param content the {@link com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload} * @return the request */ - public 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); + public Create create(java.lang.String parent, com.google.api.services.assuredworkloads.v1.model.GoogleCloudAssuredworkloadsV1Workload content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class RestrictAllowedResources extends AssuredworkloadsRequest { + public class Create extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+name}:restrictAllowedResources"; + private static final String REST_PATH = "v1/{+parent}/workloads"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * 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. + * Creates Assured Workload. * - * Create a request for the method "workloads.restrictAllowedResources". + * Create a request for the method "workloads.create". * * This request holds the parameters needed by the the assuredworkloads server. After setting any - * optional parameters, call the {@link RestrictAllowedResources#execute()} method to invoke the - * remote operation.

{@link RestrictAllowedResources#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

+ * 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); /** - * This endpoint creates a new operation to apply the given update. + * 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 "updates.apply". + * 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 Apply#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

* - * @param name 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 { + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+name}:apply"; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/updates/[^/]+$"); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link Apply#execute()} method to invoke the remote operation. - *

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

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

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

+ * + * @param name Required. The `name` 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 { + + private static final String REST_PATH = "v1/{+name}:enableResourceMonitoring"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * Enable resource violation monitoring for a workload. + * + * Create a request for the method "workloads.enableResourceMonitoring". + * + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the + * remote operation.

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

+ * + * @param name Required. The `name` 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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * Gets Assured Workload associated with a CRM Node + * + * Create a request for the method "workloads.get". + * + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name 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 { + + private static final String REST_PATH = "v1/{+parent}/workloads"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Lists Assured Workloads under a CRM Node. + * + * Create a request for the method "workloads.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. 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 { + + private static final String REST_PATH = "v1/{+name}:mutatePartnerPermissions"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * 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 the assuredworkloads server. After setting any + * optional parameters, call the {@link MutatePartnerPermissions#execute()} method to invoke the + * remote operation.

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

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

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

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

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

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

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

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

{@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 { + + private static final String REST_PATH = "v1/{+parent}/violations:batchAcknowledgeViolations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * 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 the assuredworkloads server. After setting any + * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the + * remote operation.

{@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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + + /** + * Retrieves Assured Workload Violation based on ID. + * + * Create a request for the method "violations.get". + * + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name 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 { + + private static final String REST_PATH = "v1/{+parent}/violations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * 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 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. 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 { + + private static final String REST_PATH = "v1/{+parent}/dbFindingSummaries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** - * This endpoint lists all updates for the given workload. + * Lists the finding summary by category for a given scope. * - * Create a request for the method "updates.list". + * 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. + * 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} - * @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 { + @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(); + } - private static final String REST_PATH = "v1/{+parent}/updates"; + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** - * 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.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 { + + private static final String REST_PATH = "v1/{+name}:aggregate"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); /** - * 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. + * Gets the aggregated compliance report over time for a given scope. * - * Create a request for the method "violations.acknowledge". + * 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 Acknowledge#execute()} method to invoke the remote - * operation. + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * 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 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 { - - private static final String REST_PATH = "v1/{+name}:acknowledge"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/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 the assuredworkloads server. After setting any - * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote - * operation.

{@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 { + @Override + public Aggregate setKey(java.lang.String key) { + return (Aggregate) super.setKey(key); + } - private static final String REST_PATH = "v1/{+parent}/violations:batchAcknowledgeViolations"; + @Override + public Aggregate setOauthToken(java.lang.String oauthToken) { + return (Aggregate) super.setOauthToken(oauthToken); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + @Override + public Aggregate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Aggregate) 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the - * remote operation.

{@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 { + + private static final String REST_PATH = "v1/{+name}:fetch"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + /** - * Retrieves Assured Workload Violation based on ID. + * Fetches the framework compliance report for a given scope. * - * Create a request for the method "violations.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. + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * 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 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 { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + @Override + public Fetch set$Xgafv(java.lang.String $Xgafv) { + return (Fetch) super.set$Xgafv($Xgafv); + } - /** - * Retrieves Assured Workload Violation based on ID. - * - * Create a request for the method "violations.get". - * - * This request holds the parameters needed by the the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+parent}/violations"; + private static final String REST_PATH = "v1/{+parent}/dbControlComplianceSummaries"; private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); /** - * 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 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. 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1/{+parent}/dbFindingSummaries"; + private static final String REST_PATH = "v1/{+parent}/dbFrameworkComplianceSummaries"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * 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 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. 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.List aggregatedComplianceReports; + + /** + * The list of aggregated compliance reports. + * @return value or {@code null} for none + */ + public java.util.List getAggregatedComplianceReports() { + return aggregatedComplianceReports; + } + + /** + * The list of aggregated compliance reports. + * @param aggregatedComplianceReports aggregatedComplianceReports or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse setAggregatedComplianceReports(java.util.List aggregatedComplianceReports) { + this.aggregatedComplianceReports = aggregatedComplianceReports; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse clone() { + return (GoogleCloudAssuredworkloadsV1AggregateDbFrameworkComplianceReportResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1AggregatedComplianceReport.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1AggregatedComplianceReport.java new file mode 100644 index 00000000000..1bc4bff5cac --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1AggregatedComplianceReport.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 aggregated compliance 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 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.List categories; + + /** + * The name of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudControl; + + /** + * The details of a cloud control assessment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails cloudControlAssessmentDetails; + + /** + * The name of the cloud control deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudControlDeployment; + + /** + * The type of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudControlType; + + /** + * The description of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The display name of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The enforcement mode of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforcementMode; + + /** + * The category of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingCategory; + + /** + * The severity of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingSeverity; + + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List frameworkMajorRevisionIds; + + /** + * The major revision ID of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long majorRevisionId; + + /** + * The details of a manual cloud control assessment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails manualCloudControlAssessmentDetails; + + /** + * The minor revision ID of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minorRevisionId; + + /** + * The list of rules that correspond to the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rules; + + /** + * The list of similar controls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List similarControls; + + /** + * The list of categories for the cloud control. + * @return value or {@code null} for none + */ + public java.util.List getCategories() { + return categories; + } + + /** + * The list of categories for the cloud control. + * @param categories categories or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setCategories(java.util.List categories) { + this.categories = categories; + return this; + } + + /** + * The name of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getCloudControl() { + return cloudControl; + } + + /** + * The name of the cloud control. + * @param cloudControl cloudControl or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setCloudControl(java.lang.String cloudControl) { + this.cloudControl = cloudControl; + return this; + } + + /** + * The details of a cloud control assessment. + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails getCloudControlAssessmentDetails() { + return cloudControlAssessmentDetails; + } + + /** + * The details of a cloud control assessment. + * @param cloudControlAssessmentDetails cloudControlAssessmentDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setCloudControlAssessmentDetails(GoogleCloudAssuredworkloadsV1CloudControlAssessmentDetails cloudControlAssessmentDetails) { + this.cloudControlAssessmentDetails = cloudControlAssessmentDetails; + return this; + } + + /** + * The name of the cloud control deployment. + * @return value or {@code null} for none + */ + public java.lang.String getCloudControlDeployment() { + return cloudControlDeployment; + } + + /** + * The name of the cloud control deployment. + * @param cloudControlDeployment cloudControlDeployment or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setCloudControlDeployment(java.lang.String cloudControlDeployment) { + this.cloudControlDeployment = cloudControlDeployment; + return this; + } + + /** + * The type of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getCloudControlType() { + return cloudControlType; + } + + /** + * The type of the cloud control. + * @param cloudControlType cloudControlType or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setCloudControlType(java.lang.String cloudControlType) { + this.cloudControlType = cloudControlType; + return this; + } + + /** + * The description of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * The description of the cloud control. + * @param description description or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The display name of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name of the cloud control. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The enforcement mode of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getEnforcementMode() { + return enforcementMode; + } + + /** + * The enforcement mode of the cloud control. + * @param enforcementMode enforcementMode or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setEnforcementMode(java.lang.String enforcementMode) { + this.enforcementMode = enforcementMode; + return this; + } + + /** + * The category of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getFindingCategory() { + return findingCategory; + } + + /** + * The category of the finding. + * @param findingCategory findingCategory or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setFindingCategory(java.lang.String findingCategory) { + this.findingCategory = findingCategory; + return this; + } + + /** + * The severity of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getFindingSeverity() { + return findingSeverity; + } + + /** + * The severity of the finding. + * @param findingSeverity findingSeverity or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setFindingSeverity(java.lang.String findingSeverity) { + this.findingSeverity = findingSeverity; + return this; + } + + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * @return value or {@code null} for none + */ + public java.util.List getFrameworkMajorRevisionIds() { + return frameworkMajorRevisionIds; + } + + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * @param frameworkMajorRevisionIds frameworkMajorRevisionIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setFrameworkMajorRevisionIds(java.util.List frameworkMajorRevisionIds) { + this.frameworkMajorRevisionIds = frameworkMajorRevisionIds; + return this; + } + + /** + * The major revision ID of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.Long getMajorRevisionId() { + return majorRevisionId; + } + + /** + * The major revision ID of the cloud control. + * @param majorRevisionId majorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setMajorRevisionId(java.lang.Long majorRevisionId) { + this.majorRevisionId = majorRevisionId; + return this; + } + + /** + * The details of a manual cloud control assessment. + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails getManualCloudControlAssessmentDetails() { + return manualCloudControlAssessmentDetails; + } + + /** + * The details of a manual cloud control assessment. + * @param manualCloudControlAssessmentDetails manualCloudControlAssessmentDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setManualCloudControlAssessmentDetails(GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails manualCloudControlAssessmentDetails) { + this.manualCloudControlAssessmentDetails = manualCloudControlAssessmentDetails; + return this; + } + + /** + * The minor revision ID of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.Long getMinorRevisionId() { + return minorRevisionId; + } + + /** + * The minor revision ID of the cloud control. + * @param minorRevisionId minorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setMinorRevisionId(java.lang.Long minorRevisionId) { + this.minorRevisionId = minorRevisionId; + return this; + } + + /** + * The list of rules that correspond to the cloud control. + * @return value or {@code null} for none + */ + public java.util.List getRules() { + return rules; + } + + /** + * The list of rules that correspond to the cloud control. + * @param rules rules or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setRules(java.util.List rules) { + this.rules = rules; + return this; + } + + /** + * The list of similar controls. + * @return value or {@code null} for none + */ + public java.util.List getSimilarControls() { + return similarControls; + } + + /** + * The list of similar controls. + * @param similarControls similarControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CloudControlReport setSimilarControls(java.util.List similarControls) { + this.similarControls = similarControls; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1CloudControlReport set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1CloudControlReport) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1CloudControlReport clone() { + return (GoogleCloudAssuredworkloadsV1CloudControlReport) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ControlAssessmentDetails.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ControlAssessmentDetails.java new file mode 100644 index 00000000000..0abdcb3d209 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ControlAssessmentDetails.java @@ -0,0 +1,235 @@ +/* + * 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 details for a control assessment. + * + *

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 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.List assessedPassingControlIds; + + /** + * The number of controls that were assessed and are passing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer assessedPassingControls; + + /** + * The list of controls that are failing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List failingControlIds; + + /** + * The number of controls that are failing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failingControls; + + /** + * The list of controls that aren't assessed because they require manual review. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List notAssessedControlIds; + + /** + * The number of controls that aren't assessed because they require manual review. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer notAssessedControls; + + /** + * The list of controls that are passing or not assessed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List passingControlIds; + + /** + * The number of controls that are passing or not assessed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer passingControls; + + /** + * The list of controls that were assessed and are passing. + * @return value or {@code null} for none + */ + public java.util.List getAssessedPassingControlIds() { + return assessedPassingControlIds; + } + + /** + * The list of controls that were assessed and are passing. + * @param assessedPassingControlIds assessedPassingControlIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails setAssessedPassingControlIds(java.util.List assessedPassingControlIds) { + this.assessedPassingControlIds = assessedPassingControlIds; + return this; + } + + /** + * The number of controls that were assessed and are passing. + * @return value or {@code null} for none + */ + public java.lang.Integer getAssessedPassingControls() { + return assessedPassingControls; + } + + /** + * The number of controls that were assessed and are passing. + * @param assessedPassingControls assessedPassingControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails setAssessedPassingControls(java.lang.Integer assessedPassingControls) { + this.assessedPassingControls = assessedPassingControls; + return this; + } + + /** + * The list of controls that are failing. + * @return value or {@code null} for none + */ + public java.util.List getFailingControlIds() { + return failingControlIds; + } + + /** + * The list of controls that are failing. + * @param failingControlIds failingControlIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails setFailingControlIds(java.util.List failingControlIds) { + this.failingControlIds = failingControlIds; + return this; + } + + /** + * The number of controls that are failing. + * @return value or {@code null} for none + */ + public java.lang.Integer getFailingControls() { + return failingControls; + } + + /** + * The number of controls that are failing. + * @param failingControls failingControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails setFailingControls(java.lang.Integer failingControls) { + this.failingControls = failingControls; + return this; + } + + /** + * The list of controls that aren't assessed because they require manual review. + * @return value or {@code null} for none + */ + public java.util.List getNotAssessedControlIds() { + return notAssessedControlIds; + } + + /** + * The list of controls that aren't assessed because they require manual review. + * @param notAssessedControlIds notAssessedControlIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails setNotAssessedControlIds(java.util.List notAssessedControlIds) { + this.notAssessedControlIds = notAssessedControlIds; + return this; + } + + /** + * The number of controls that aren't assessed because they require manual review. + * @return value or {@code null} for none + */ + public java.lang.Integer getNotAssessedControls() { + return notAssessedControls; + } + + /** + * The number of controls that aren't assessed because they require manual review. + * @param notAssessedControls notAssessedControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails setNotAssessedControls(java.lang.Integer notAssessedControls) { + this.notAssessedControls = notAssessedControls; + return this; + } + + /** + * The list of controls that are passing or not assessed. + * @return value or {@code null} for none + */ + public java.util.List getPassingControlIds() { + return passingControlIds; + } + + /** + * The list of controls that are passing or not assessed. + * @param passingControlIds passingControlIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails setPassingControlIds(java.util.List passingControlIds) { + this.passingControlIds = passingControlIds; + return this; + } + + /** + * The number of controls that are passing or not assessed. + * @return value or {@code null} for none + */ + public java.lang.Integer getPassingControls() { + return passingControls; + } + + /** + * The number of controls that are passing or not assessed. + * @param passingControls passingControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails setPassingControls(java.lang.Integer passingControls) { + this.passingControls = passingControls; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1ControlAssessmentDetails) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1ControlAssessmentDetails clone() { + return (GoogleCloudAssuredworkloadsV1ControlAssessmentDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbControlComplianceSummary.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbControlComplianceSummary.java new file mode 100644 index 00000000000..968db3798a1 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbControlComplianceSummary.java @@ -0,0 +1,316 @@ +/* + * 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 details for control compliance. + * + *

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 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.List cloudControlReports; + + static { + // hack to force ProGuard to consider GoogleCloudAssuredworkloadsV1CloudControlReport used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAssuredworkloadsV1CloudControlReport.class); + } + + /** + * The list of compliance frameworks that the control belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List complianceFrameworks; + + /** + * The name of the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String control; + + /** + * The responsibility type for the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String controlResponsibilityType; + + /** + * The description of the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The display name of the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Whether the control is a fake control. Fake controls are created and mapped to cloud controls + * that don't belong to a control group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isFakeControl; + + /** + * Identifier. The name of the control compliance summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The overall evaluation status of the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String overallEvaluationState; + + /** + * The list of similar controls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List similarControls; + + /** + * The total number of findings for the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalFindingsCount; + + /** + * The list of cloud control reports. + * @return value or {@code null} for none + */ + public java.util.List getCloudControlReports() { + return cloudControlReports; + } + + /** + * The list of cloud control reports. + * @param cloudControlReports cloudControlReports or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setCloudControlReports(java.util.List cloudControlReports) { + this.cloudControlReports = cloudControlReports; + return this; + } + + /** + * The list of compliance frameworks that the control belongs to. + * @return value or {@code null} for none + */ + public java.util.List getComplianceFrameworks() { + return complianceFrameworks; + } + + /** + * The list of compliance frameworks that the control belongs to. + * @param complianceFrameworks complianceFrameworks or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setComplianceFrameworks(java.util.List complianceFrameworks) { + this.complianceFrameworks = complianceFrameworks; + return this; + } + + /** + * The name of the control. + * @return value or {@code null} for none + */ + public java.lang.String getControl() { + return control; + } + + /** + * The name of the control. + * @param control control or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setControl(java.lang.String control) { + this.control = control; + return this; + } + + /** + * The responsibility type for the control. + * @return value or {@code null} for none + */ + public java.lang.String getControlResponsibilityType() { + return controlResponsibilityType; + } + + /** + * The responsibility type for the control. + * @param controlResponsibilityType controlResponsibilityType or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setControlResponsibilityType(java.lang.String controlResponsibilityType) { + this.controlResponsibilityType = controlResponsibilityType; + return this; + } + + /** + * The description of the control. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * The description of the control. + * @param description description or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The display name of the control. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name of the control. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Whether the control is a fake control. Fake controls are created and mapped to cloud controls + * that don't belong to a control group. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsFakeControl() { + return isFakeControl; + } + + /** + * Whether the control is a fake control. Fake controls are created and mapped to cloud controls + * that don't belong to a control group. + * @param isFakeControl isFakeControl or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setIsFakeControl(java.lang.Boolean isFakeControl) { + this.isFakeControl = isFakeControl; + return this; + } + + /** + * Identifier. The name of the control compliance summary. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the control compliance summary. + * @param name name or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The overall evaluation status of the control. + * @return value or {@code null} for none + */ + public java.lang.String getOverallEvaluationState() { + return overallEvaluationState; + } + + /** + * Output only. The overall evaluation status of the control. + * @param overallEvaluationState overallEvaluationState or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setOverallEvaluationState(java.lang.String overallEvaluationState) { + this.overallEvaluationState = overallEvaluationState; + return this; + } + + /** + * The list of similar controls. + * @return value or {@code null} for none + */ + public java.util.List getSimilarControls() { + return similarControls; + } + + /** + * The list of similar controls. + * @param similarControls similarControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setSimilarControls(java.util.List similarControls) { + this.similarControls = similarControls; + return this; + } + + /** + * The total number of findings for the control. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalFindingsCount() { + return totalFindingsCount; + } + + /** + * The total number of findings for the control. + * @param totalFindingsCount totalFindingsCount or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary setTotalFindingsCount(java.lang.Integer totalFindingsCount) { + this.totalFindingsCount = totalFindingsCount; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1DbControlComplianceSummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1DbControlComplianceSummary clone() { + return (GoogleCloudAssuredworkloadsV1DbControlComplianceSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary.java new file mode 100644 index 00000000000..0def90fafc8 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary.java @@ -0,0 +1,331 @@ +/* + * 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 details for a framework compliance summary. + * + *

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 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.List frameworkCategories; + + /** + * Optional. The display name for the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkDisplayName; + + /** + * The type of framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkType; + + /** + * The major revision ID of the framework. + * 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. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minorRevisionId; + + /** + * Identifier. The name of the framework compliance summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The list of cloud providers supported by the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedCloudProviders; + + /** + * The target resource details for the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetResourceDetails; + + /** + * 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 GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setControlAssessmentDetails(GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails) { + this.controlAssessmentDetails = controlAssessmentDetails; + return this; + } + + /** + * Output only. The trend of controls that are passing for the given duration. + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1Trend getControlsPassingTrend() { + return controlsPassingTrend; + } + + /** + * Output only. The trend of controls that are passing for the given duration. + * @param controlsPassingTrend controlsPassingTrend or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setControlsPassingTrend(GoogleCloudAssuredworkloadsV1Trend controlsPassingTrend) { + this.controlsPassingTrend = controlsPassingTrend; + return this; + } + + /** + * Output only. The count of the findings generated against the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getFindingCount() { + return findingCount; + } + + /** + * Output only. The count of the findings generated against the framework. + * @param findingCount findingCount or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setFindingCount(java.lang.Long findingCount) { + this.findingCount = findingCount; + 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 GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setFramework(java.lang.String framework) { + this.framework = framework; + return this; + } + + /** + * The list of framework categories supported by the framework. + * @return value or {@code null} for none + */ + public java.util.List getFrameworkCategories() { + return frameworkCategories; + } + + /** + * The list of framework categories supported by the framework. + * @param frameworkCategories frameworkCategories or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setFrameworkCategories(java.util.List frameworkCategories) { + this.frameworkCategories = frameworkCategories; + return this; + } + + /** + * Optional. The display name for the framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkDisplayName() { + return frameworkDisplayName; + } + + /** + * Optional. The display name for the framework. + * @param frameworkDisplayName frameworkDisplayName or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setFrameworkDisplayName(java.lang.String frameworkDisplayName) { + this.frameworkDisplayName = frameworkDisplayName; + return this; + } + + /** + * The type of framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkType() { + return frameworkType; + } + + /** + * The type of framework. + * @param frameworkType frameworkType or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setFrameworkType(java.lang.String frameworkType) { + this.frameworkType = frameworkType; + return this; + } + + /** + * The major revision ID of the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getMajorRevisionId() { + return majorRevisionId; + } + + /** + * The major revision ID of the framework. + * @param majorRevisionId majorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setMajorRevisionId(java.lang.Long majorRevisionId) { + this.majorRevisionId = majorRevisionId; + return this; + } + + /** + * The minor revision ID of the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getMinorRevisionId() { + return minorRevisionId; + } + + /** + * The minor revision ID of the framework. + * @param minorRevisionId minorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setMinorRevisionId(java.lang.Long minorRevisionId) { + this.minorRevisionId = minorRevisionId; + return this; + } + + /** + * Identifier. The name of the framework compliance summary. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the framework compliance summary. + * @param name name or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The list of cloud providers supported by the framework. + * @return value or {@code null} for none + */ + public java.util.List getSupportedCloudProviders() { + return supportedCloudProviders; + } + + /** + * The list of cloud providers supported by the framework. + * @param supportedCloudProviders supportedCloudProviders or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setSupportedCloudProviders(java.util.List supportedCloudProviders) { + this.supportedCloudProviders = supportedCloudProviders; + return this; + } + + /** + * The target resource details for the framework. + * @return value or {@code null} for none + */ + public java.util.List getTargetResourceDetails() { + return targetResourceDetails; + } + + /** + * The target resource details for the framework. + * @param targetResourceDetails targetResourceDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary setTargetResourceDetails(java.util.List targetResourceDetails) { + this.targetResourceDetails = targetResourceDetails; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary clone() { + return (GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse.java new file mode 100644 index 00000000000..3cfa3adaf0a --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse.java @@ -0,0 +1,331 @@ +/* + * 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 FetchDbFrameworkComplianceReport. + * + *

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 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.List frameworkCategories; + + /** + * The description of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkDescription; + + /** + * Optional. The display name for the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkDisplayName; + + /** + * The type of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkType; + + /** + * The latest major revision ID of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long majorRevisionId; + + /** + * The latest minor revision ID of the latest major revision of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minorRevisionId; + + /** + * The name of the framework compliance report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The list of cloud providers that are supported by the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedCloudProviders; + + /** + * The target resource details of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetResourceDetails; + + /** + * Output only. The last updated time of the report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * 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 GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setControlAssessmentDetails(GoogleCloudAssuredworkloadsV1ControlAssessmentDetails controlAssessmentDetails) { + this.controlAssessmentDetails = controlAssessmentDetails; + 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 GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setFramework(java.lang.String framework) { + this.framework = framework; + return this; + } + + /** + * The list of framework categories supported. + * @return value or {@code null} for none + */ + public java.util.List getFrameworkCategories() { + return frameworkCategories; + } + + /** + * The list of framework categories supported. + * @param frameworkCategories frameworkCategories or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setFrameworkCategories(java.util.List frameworkCategories) { + this.frameworkCategories = frameworkCategories; + return this; + } + + /** + * The description of the framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkDescription() { + return frameworkDescription; + } + + /** + * The description of the framework. + * @param frameworkDescription frameworkDescription or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setFrameworkDescription(java.lang.String frameworkDescription) { + this.frameworkDescription = frameworkDescription; + return this; + } + + /** + * Optional. The display name for the framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkDisplayName() { + return frameworkDisplayName; + } + + /** + * Optional. The display name for the framework. + * @param frameworkDisplayName frameworkDisplayName or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setFrameworkDisplayName(java.lang.String frameworkDisplayName) { + this.frameworkDisplayName = frameworkDisplayName; + return this; + } + + /** + * The type of the framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkType() { + return frameworkType; + } + + /** + * The type of the framework. + * @param frameworkType frameworkType or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setFrameworkType(java.lang.String frameworkType) { + this.frameworkType = frameworkType; + return this; + } + + /** + * The latest major revision ID of the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getMajorRevisionId() { + return majorRevisionId; + } + + /** + * The latest major revision ID of the framework. + * @param majorRevisionId majorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setMajorRevisionId(java.lang.Long majorRevisionId) { + this.majorRevisionId = majorRevisionId; + return this; + } + + /** + * The latest minor revision ID of the latest major revision of the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getMinorRevisionId() { + return minorRevisionId; + } + + /** + * The latest minor revision ID of the latest major revision of the framework. + * @param minorRevisionId minorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setMinorRevisionId(java.lang.Long minorRevisionId) { + this.minorRevisionId = minorRevisionId; + return this; + } + + /** + * The name of the framework compliance report. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the framework compliance report. + * @param name name or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The list of cloud providers that are supported by the framework. + * @return value or {@code null} for none + */ + public java.util.List getSupportedCloudProviders() { + return supportedCloudProviders; + } + + /** + * The list of cloud providers that are supported by the framework. + * @param supportedCloudProviders supportedCloudProviders or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setSupportedCloudProviders(java.util.List supportedCloudProviders) { + this.supportedCloudProviders = supportedCloudProviders; + return this; + } + + /** + * The target resource details of the framework. + * @return value or {@code null} for none + */ + public java.util.List getTargetResourceDetails() { + return targetResourceDetails; + } + + /** + * The target resource details of the framework. + * @param targetResourceDetails targetResourceDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setTargetResourceDetails(java.util.List targetResourceDetails) { + this.targetResourceDetails = targetResourceDetails; + return this; + } + + /** + * Output only. The last updated time of the report. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The last updated time of the report. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse clone() { + return (GoogleCloudAssuredworkloadsV1FetchDbFrameworkComplianceReportResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.java new file mode 100644 index 00000000000..0de900363b0 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse.java @@ -0,0 +1,97 @@ +/* + * 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 ListDBControlComplianceSummaries. + * + *

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 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.List dbControlComplianceSummaries; + + static { + // hack to force ProGuard to consider GoogleCloudAssuredworkloadsV1DbControlComplianceSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAssuredworkloadsV1DbControlComplianceSummary.class); + } + + /** + * Output only. The token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of control compliance details. + * @return value or {@code null} for none + */ + public java.util.List getDbControlComplianceSummaries() { + return dbControlComplianceSummaries; + } + + /** + * The list of control compliance details. + * @param dbControlComplianceSummaries dbControlComplianceSummaries or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse setDbControlComplianceSummaries(java.util.List dbControlComplianceSummaries) { + this.dbControlComplianceSummaries = dbControlComplianceSummaries; + return this; + } + + /** + * Output only. The token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. The token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse clone() { + return (GoogleCloudAssuredworkloadsV1ListDbControlComplianceSummariesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse.java new file mode 100644 index 00000000000..10f46890758 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse.java @@ -0,0 +1,97 @@ +/* + * 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 ListDbFrameworkComplianceSummariesResponse. + * + *

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 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.List dbFrameworkComplianceSummaries; + + static { + // hack to force ProGuard to consider GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAssuredworkloadsV1DbFrameworkComplianceSummary.class); + } + + /** + * Output only. The token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of framework compliance summaries. + * @return value or {@code null} for none + */ + public java.util.List getDbFrameworkComplianceSummaries() { + return dbFrameworkComplianceSummaries; + } + + /** + * The list of framework compliance summaries. + * @param dbFrameworkComplianceSummaries dbFrameworkComplianceSummaries or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse setDbFrameworkComplianceSummaries(java.util.List dbFrameworkComplianceSummaries) { + this.dbFrameworkComplianceSummaries = dbFrameworkComplianceSummaries; + return this; + } + + /** + * Output only. The token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. The token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse clone() { + return (GoogleCloudAssuredworkloadsV1ListDbFrameworkComplianceSummariesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails.java new file mode 100644 index 00000000000..d5c8603a46a --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails.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 details for a manual cloud control assessment. + * + *

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 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.List manualCloudControlGuide; + + /** + * The guide for assessing a cloud control manually. + * @return value or {@code null} for none + */ + public java.util.List getManualCloudControlGuide() { + return manualCloudControlGuide; + } + + /** + * The guide for assessing a cloud control manually. + * @param manualCloudControlGuide manualCloudControlGuide or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails setManualCloudControlGuide(java.util.List manualCloudControlGuide) { + this.manualCloudControlGuide = manualCloudControlGuide; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails clone() { + return (GoogleCloudAssuredworkloadsV1ManualCloudControlAssessmentDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Rule.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Rule.java new file mode 100644 index 00000000000..2c34d1ade6f --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1Rule.java @@ -0,0 +1,115 @@ +/* + * 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 rule in the cloud control. + * + *

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 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.List ruleActionTypes; + + /** + * The rule's logic expression in Common Expression Language (CEL). + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1CELExpression getCelExpression() { + return celExpression; + } + + /** + * The rule's logic expression in Common Expression Language (CEL). + * @param celExpression celExpression or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1Rule setCelExpression(GoogleCloudAssuredworkloadsV1CELExpression celExpression) { + this.celExpression = celExpression; + return this; + } + + /** + * Optional. The rule description. The maximum length is 2000 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The rule description. The maximum length is 2000 characters. + * @param description description or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1Rule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The functionality that's enabled by the rule. + * @return value or {@code null} for none + */ + public java.util.List getRuleActionTypes() { + return ruleActionTypes; + } + + /** + * Required. The functionality that's enabled by the rule. + * @param ruleActionTypes ruleActionTypes or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1Rule setRuleActionTypes(java.util.List ruleActionTypes) { + this.ruleActionTypes = ruleActionTypes; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1Rule set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1Rule) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1Rule clone() { + return (GoogleCloudAssuredworkloadsV1Rule) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1SimilarControls.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1SimilarControls.java new file mode 100644 index 00000000000..a57baf2d1f0 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1SimilarControls.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 similar 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 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.List values; + + /** + * Required. The strings in the list. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Required. The strings in the list. + * @param values values or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1StringList setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1StringList set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1StringList) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1StringList clone() { + return (GoogleCloudAssuredworkloadsV1StringList) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1TargetResourceDetails.java b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1TargetResourceDetails.java new file mode 100644 index 00000000000..9fe7844a901 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1/2.0.0/com/google/api/services/assuredworkloads/v1/model/GoogleCloudAssuredworkloadsV1TargetResourceDetails.java @@ -0,0 +1,220 @@ +/* + * 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 details for a target resource. + * + *

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 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 @@ com.google.apis google-api-services-assuredworkloads - v1-rev20260623-2.0.0 - Assured Workloads API v1-rev20260623-2.0.0 + v1-rev20260719-2.0.0 + Assured Workloads API v1-rev20260719-2.0.0 jar 2011 diff --git a/clients/google-api-services-assuredworkloads/v1/README.md b/clients/google-api-services-assuredworkloads/v1/README.md index 0ef5361d671..a3039efbc45 100644 --- a/clients/google-api-services-assuredworkloads/v1/README.md +++ b/clients/google-api-services-assuredworkloads/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-assuredworkloads - v1-rev20260623-2.0.0 + v1-rev20260719-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-assuredworkloads:v1-rev20260623-2.0.0' + implementation 'com.google.apis:google-api-services-assuredworkloads:v1-rev20260719-2.0.0' } ``` diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/README.md b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/README.md index a04aa11568b..02dc67e5ae6 100644 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-assuredworkloads - v1beta1-rev20260623-2.0.0 + v1beta1-rev20260719-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-assuredworkloads:v1beta1-rev20260623-2.0.0' + implementation 'com.google.apis:google-api-services-assuredworkloads:v1beta1-rev20260719-2.0.0' } ``` diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/Assuredworkloads.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/Assuredworkloads.java index 2b21560c5a9..7aa09396f1a 100644 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/Assuredworkloads.java +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/Assuredworkloads.java @@ -359,24 +359,24 @@ public RevertArchivedResourceEvents set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Organizations collection. + * An accessor for creating requests from the Folders collection. * *

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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+parent}/dbFindingSummaries"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+$"); /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * 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 { + public class Aggregate extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+name}/operations"; + private static final String REST_PATH = "v1beta1/{+name}:aggregate"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/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 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)} + * 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 { + public class Fetch extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+parent}/violations:batchAcknowledgeViolations"; + private static final String REST_PATH = "v1beta1/{+name}:fetch"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the - * remote operation.

{@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 { - - private static final String REST_PATH = "v1beta1/{+target}:analyzeWorkloadMove"; - - private final java.util.regex.Pattern TARGET_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + /** + * The "dbControlComplianceSummaries" collection of methods. + */ + public class DbControlComplianceSummaries { /** - * 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 control compliance summary for a given scope. * - * Create a request for the method "workloads.analyzeWorkloadMove". + * Create a request for the method "dbControlComplianceSummaries.list". * - * This request holds the parameters needed by the the assuredworkloads server. After setting any - * 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.

+ * 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/dbControlComplianceSummaries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + + /** + * 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 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. 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/dbFrameworkComplianceSummaries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+$"); + + /** + * 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 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. 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.List assetTypes; + private java.lang.String filter; - /** 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. */ - public java.util.List getAssetTypes() { - return assetTypes; + public java.lang.String getFilter() { + return filter; } - /** - * 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). - */ - public AnalyzeWorkloadMove setAssetTypes(java.util.List assetTypes) { - this.assetTypes = assetTypes; + /** Optional. The filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * Optional. Page size. If a value is not specified, the default value of 10 is used. The - * maximum value is 50. + * 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. Page size. If a value is not specified, the default value of 10 is used. The maximum - value is 50. + /** 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. If a value is not specified, the default value of 10 is used. The - * maximum value is 50. + * 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 AnalyzeWorkloadMove setPageSize(java.lang.Integer pageSize) { + public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** - * Optional. The page token from the previous response. It needs to be passed in the - * second and following requests. + * 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. The page token from the previous response. It 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; } /** - * Optional. The page token from the previous response. It 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 AnalyzeWorkloadMove setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** - * The source type is a project. Specify the project's relative resource name, formatted - * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or - * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project - * number, or "projects/my-project-123" when specifying a project ID. - */ + /** Optional. Specifies the level of detail to return in the response. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String view; - /** The source type is a project. Specify the project's relative resource name, formatted as either a - project number or a project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" For example: - "projects/951040570662" when specifying a project number, or "projects/my-project-123" when - specifying a project ID. + /** Optional. Specifies the level of detail to return in the response. */ - public java.lang.String getProject() { - return project; + public java.lang.String getView() { + return view; } - /** - * The source type is a project. Specify the project's relative resource name, formatted - * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or - * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project - * number, or "projects/my-project-123" when specifying a project ID. - */ - public AnalyzeWorkloadMove setProject(java.lang.String project) { - this.project = project; + /** 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 AnalyzeWorkloadMove set(String parameterName, Object value) { - return (AnalyzeWorkloadMove) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + } + } + + /** + * An accessor for creating requests from the Organizations collection. + * + *

The typical use is:

+ *
+   *   {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+   *   {@code Assuredworkloads.Organizations.List request = assuredworkloads.organizations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Organizations organizations() { + return new Organizations(); + } + + /** + * The "organizations" collection of methods. + */ + public class Organizations { + + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+     *   {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+     *   {@code Assuredworkloads.Locations.List request = assuredworkloads.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * An accessor for creating requests from the DbFindingSummaries collection. + * + *

The typical use is:

+ *
+       *   {@code Assuredworkloads assuredworkloads = new Assuredworkloads(...);}
+       *   {@code Assuredworkloads.DbFindingSummaries.List request = assuredworkloads.dbFindingSummaries().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public DbFindingSummaries dbFindingSummaries() { + return new DbFindingSummaries(); + } + + /** + * The "dbFindingSummaries" collection of methods. + */ + public class DbFindingSummaries { + /** - * 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+parent}/workloads"; + private static final String REST_PATH = "v1beta1/{+parent}/dbFindingSummaries"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * 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 the assuredworkloads server. After setting any - * 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.

+ * 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 { + public class Aggregate extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+name}"; + private static final String REST_PATH = "v1beta1/{+name}:aggregate"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/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 the assuredworkloads server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - *

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

+ * 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 { + public class Fetch extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+name}:enableComplianceUpdates"; + private static final String REST_PATH = "v1beta1/{+name}:fetch"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link EnableComplianceUpdates#execute()} method to invoke the - * remote operation.

{@link EnableComplianceUpdates#initialize(com.google.api.client.googleapi - * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

+ * 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 { - - private static final String REST_PATH = "v1beta1/{+name}:enableResourceMonitoring"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); - - /** - * Enable resource violation monitoring for a workload. - * - * Create a request for the method "workloads.enableResourceMonitoring". - * - * This request holds the parameters needed by the the assuredworkloads server. After setting any - * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the - * remote operation.

{@link EnableResourceMonitoring#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

- * - * @param name Required. The `name` 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 { - - private static final String REST_PATH = "v1beta1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + /** + * The "dbControlComplianceSummaries" collection of methods. + */ + public class DbControlComplianceSummaries { /** - * Gets Assured Workload associated with a CRM Node + * Lists the control compliance summary for a given scope. * - * Create a request for the method "workloads.get". + * Create a request for the method "dbControlComplianceSummaries.list". * - * This request holds the parameters needed by the the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * 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 { - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + private static final String REST_PATH = "v1beta1/{+parent}/dbControlComplianceSummaries"; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** + * 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 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. 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+parent}/workloads"; + private static final String REST_PATH = "v1beta1/{+parent}/dbFrameworkComplianceSummaries"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * 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 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. 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 { + public class Get extends AssuredworkloadsRequest { private static final String REST_PATH = "v1beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/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 the assuredworkloads server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - *

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

+ * 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+name}:restrictAllowedResources"; + private static final String REST_PATH = "v1beta1/{+name}/operations"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link RestrictAllowedResources#execute()} method to invoke the - * remote operation.

{@link RestrictAllowedResources#initialize(com.google.api.client.googleap - * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

+ * 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/violations:batchAcknowledgeViolations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * This endpoint creates a new operation to apply the given update. + * 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 "updates.apply". + * 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 Apply#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the + * remote operation.

{@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 { + + private static final String REST_PATH = "v1beta1/{+target}:analyzeWorkloadMove"; + + private final java.util.regex.Pattern TARGET_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/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 the assuredworkloads server. After setting any + * 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 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 assetTypes; + + /** 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). + */ + public java.util.List getAssetTypes() { + return assetTypes; + } + + /** + * 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). + */ + public AnalyzeWorkloadMove setAssetTypes(java.util.List assetTypes) { + this.assetTypes = assetTypes; + return this; + } + + /** + * Optional. Page size. If a value is not specified, the default value of 10 is used. The + * maximum value is 50. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Page size. If a value is not specified, the default value of 10 is used. The maximum + value is 50. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Page size. If a value is not specified, the default value of 10 is used. The + * maximum value is 50. + */ + public AnalyzeWorkloadMove setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The page token from the previous response. It needs to be passed in the + * second and following requests. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The page token from the previous response. It needs to be passed in the second and + following requests. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The page token from the previous response. It needs to be passed in the + * second and following requests. + */ + public AnalyzeWorkloadMove setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * The source type is a project. Specify the project's relative resource name, formatted + * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or + * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project + * number, or "projects/my-project-123" when specifying a project ID. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The source type is a project. Specify the project's relative resource name, formatted as either a + project number or a project ID: "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" For example: + "projects/951040570662" when specifying a project number, or "projects/my-project-123" when + specifying a project ID. + */ + public java.lang.String getProject() { + return project; + } + + /** + * The source type is a project. Specify the project's relative resource name, formatted + * as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or + * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project + * number, or "projects/my-project-123" when specifying a project ID. + */ + public AnalyzeWorkloadMove setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public AnalyzeWorkloadMove set(String parameterName, Object value) { + return (AnalyzeWorkloadMove) super.set(parameterName, value); + } + } + /** + * Creates Assured Workload. + * + * Create a request for the method "workloads.create". + * + * This request holds the parameters needed by the assuredworkloads server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the new Workload's parent. Must be of the form + * `organizations/{org_id}/locations/{location_id}`. + * @param content the {@link com.google.api.services.assuredworkloads.v1beta1.model.GoogleCloudAssuredworkloadsV1beta1Workload} + * @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); + initialize(result); + return result; + } + + public class Create extends AssuredworkloadsRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/workloads"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Creates Assured Workload. + * + * Create a request for the method "workloads.create". + * + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

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

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

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

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

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

+ * + * @param name Required. The `name` 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 { + + private static final String REST_PATH = "v1beta1/{+name}:enableResourceMonitoring"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * Enable resource violation monitoring for a workload. + * + * Create a request for the method "workloads.enableResourceMonitoring". + * + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link EnableResourceMonitoring#execute()} method to invoke the + * remote operation.

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

+ * + * @param name Required. The `name` 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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * Gets Assured Workload associated with a CRM Node + * + * Create a request for the method "workloads.get". + * + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/workloads"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Lists Assured Workloads under a CRM Node. + * + * Create a request for the method "workloads.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. 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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * 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 the assuredworkloads server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

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

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

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

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

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

+ * + * @param 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/updates"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * 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/[^/]+$"); + } + } + + @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 { + + private static final String REST_PATH = "v1beta1/{+name}:acknowledge"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/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 the assuredworkloads server. After setting any + * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote + * operation.

{@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 { + + private static final String REST_PATH = "v1beta1/{+parent}/violations:batchAcknowledgeViolations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * 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 the assuredworkloads server. After setting any + * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the + * remote operation.

{@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 { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + + /** + * Retrieves Assured Workload Violation based on ID. + * + * Create a request for the method "violations.get". + * + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/violations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + + /** + * 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 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. 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/violations:batchAcknowledgeViolations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+$"); + + /** + * 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 the assuredworkloads server. After setting any + * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the + * remote operation.

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

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

- * - * @param 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 AssuredworkloadsRequest { + /** + * 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(); + } - 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 { - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + private static final String REST_PATH = "v1beta1/{+parent}/dbFindingSummaries"; - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + /** + * 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 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. 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 { + /** Optional. The filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - private static final String REST_PATH = "v1beta1/{+name}:acknowledge"; + /** + * 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; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^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 java.lang.Integer getPageSize() { + return pageSize; + } - /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link Acknowledge#execute()} method to invoke the remote - * operation.

{@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 { - @Override - public Acknowledge setQuotaUser(java.lang.String quotaUser) { - return (Acknowledge) super.setQuotaUser(quotaUser); - } + private static final String REST_PATH = "v1beta1/{+name}:aggregate"; - @Override - public Acknowledge setUploadType(java.lang.String uploadType) { - return (Acknowledge) super.setUploadType(uploadType); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); - @Override - public Acknowledge setUploadProtocol(java.lang.String uploadProtocol) { - return (Acknowledge) super.setUploadProtocol(uploadProtocol); + /** + * 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 the assuredworkloads server. After setting any + * 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 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 { + @Override + public Aggregate setCallback(java.lang.String callback) { + return (Aggregate) super.setCallback(callback); + } - private static final String REST_PATH = "v1beta1/{+parent}/violations:batchAcknowledgeViolations"; + @Override + public Aggregate setFields(java.lang.String fields) { + return (Aggregate) super.setFields(fields); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + @Override + public Aggregate setKey(java.lang.String key) { + return (Aggregate) super.setKey(key); + } - /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the - * remote operation.

{@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 { + + private static final String REST_PATH = "v1beta1/{+name}:fetch"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); + /** - * Retrieves Assured Workload Violation based on ID. + * Fetches the framework compliance report for a given scope. * - * Create a request for the method "violations.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. + * This request holds the parameters needed by the the assuredworkloads server. After setting any + * 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 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 { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1beta1/{+name}"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+/violations/[^/]+$"); + @Override + public Fetch set$Xgafv(java.lang.String $Xgafv) { + return (Fetch) super.set$Xgafv($Xgafv); + } - /** - * Retrieves Assured Workload Violation based on ID. - * - * Create a request for the method "violations.get". - * - * This request holds the parameters needed by the the assuredworkloads server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param name 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 { + public class List extends AssuredworkloadsRequest { - private static final String REST_PATH = "v1beta1/{+parent}/violations"; + private static final String REST_PATH = "v1beta1/{+parent}/dbControlComplianceSummaries"; private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dbFrameworkComplianceReports/[^/]+$"); /** - * 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 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. 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 { + + private static final String REST_PATH = "v1beta1/{+parent}/dbFrameworkComplianceSummaries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * 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 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. 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 { + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - private static final String REST_PATH = "v1beta1/{+parent}/violations:batchAcknowledgeViolations"; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+$"); + /** + * 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; - /** - * 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 the assuredworkloads server. After setting any - * optional parameters, call the {@link BatchAcknowledgeViolations#execute()} method to invoke the - * remote operation.

{@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.List aggregatedComplianceReports; + + /** + * The list of aggregated compliance reports. + * @return value or {@code null} for none + */ + public java.util.List getAggregatedComplianceReports() { + return aggregatedComplianceReports; + } + + /** + * The list of aggregated compliance reports. + * @param aggregatedComplianceReports aggregatedComplianceReports or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse setAggregatedComplianceReports(java.util.List aggregatedComplianceReports) { + this.aggregatedComplianceReports = aggregatedComplianceReports; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse clone() { + return (GoogleCloudAssuredworkloadsV1beta1AggregateDbFrameworkComplianceReportResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport.java new file mode 100644 index 00000000000..a372c972de9 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1AggregatedComplianceReport.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 aggregated compliance 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 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.List categories; + + /** + * The name of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudControl; + + /** + * The details of a cloud control assessment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails cloudControlAssessmentDetails; + + /** + * The name of the cloud control deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudControlDeployment; + + /** + * The type of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cloudControlType; + + /** + * The description of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The display name of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The enforcement mode of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String enforcementMode; + + /** + * The category of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingCategory; + + /** + * The severity of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String findingSeverity; + + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.util.List frameworkMajorRevisionIds; + + /** + * The major revision ID of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long majorRevisionId; + + /** + * The details of a manual cloud control assessment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails manualCloudControlAssessmentDetails; + + /** + * The minor revision ID of the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minorRevisionId; + + /** + * The list of rules that correspond to the cloud control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rules; + + /** + * The list of similar controls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List similarControls; + + /** + * The list of categories for the cloud control. + * @return value or {@code null} for none + */ + public java.util.List getCategories() { + return categories; + } + + /** + * The list of categories for the cloud control. + * @param categories categories or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setCategories(java.util.List categories) { + this.categories = categories; + return this; + } + + /** + * The name of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getCloudControl() { + return cloudControl; + } + + /** + * The name of the cloud control. + * @param cloudControl cloudControl or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setCloudControl(java.lang.String cloudControl) { + this.cloudControl = cloudControl; + return this; + } + + /** + * The details of a cloud control assessment. + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails getCloudControlAssessmentDetails() { + return cloudControlAssessmentDetails; + } + + /** + * The details of a cloud control assessment. + * @param cloudControlAssessmentDetails cloudControlAssessmentDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setCloudControlAssessmentDetails(GoogleCloudAssuredworkloadsV1beta1CloudControlAssessmentDetails cloudControlAssessmentDetails) { + this.cloudControlAssessmentDetails = cloudControlAssessmentDetails; + return this; + } + + /** + * The name of the cloud control deployment. + * @return value or {@code null} for none + */ + public java.lang.String getCloudControlDeployment() { + return cloudControlDeployment; + } + + /** + * The name of the cloud control deployment. + * @param cloudControlDeployment cloudControlDeployment or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setCloudControlDeployment(java.lang.String cloudControlDeployment) { + this.cloudControlDeployment = cloudControlDeployment; + return this; + } + + /** + * The type of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getCloudControlType() { + return cloudControlType; + } + + /** + * The type of the cloud control. + * @param cloudControlType cloudControlType or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setCloudControlType(java.lang.String cloudControlType) { + this.cloudControlType = cloudControlType; + return this; + } + + /** + * The description of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * The description of the cloud control. + * @param description description or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The display name of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name of the cloud control. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The enforcement mode of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.String getEnforcementMode() { + return enforcementMode; + } + + /** + * The enforcement mode of the cloud control. + * @param enforcementMode enforcementMode or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setEnforcementMode(java.lang.String enforcementMode) { + this.enforcementMode = enforcementMode; + return this; + } + + /** + * The category of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getFindingCategory() { + return findingCategory; + } + + /** + * The category of the finding. + * @param findingCategory findingCategory or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setFindingCategory(java.lang.String findingCategory) { + this.findingCategory = findingCategory; + return this; + } + + /** + * The severity of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getFindingSeverity() { + return findingSeverity; + } + + /** + * The severity of the finding. + * @param findingSeverity findingSeverity or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setFindingSeverity(java.lang.String findingSeverity) { + this.findingSeverity = findingSeverity; + return this; + } + + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * @return value or {@code null} for none + */ + public java.util.List getFrameworkMajorRevisionIds() { + return frameworkMajorRevisionIds; + } + + /** + * The major revision IDs of the frameworks that the cloud control belongs to. + * @param frameworkMajorRevisionIds frameworkMajorRevisionIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setFrameworkMajorRevisionIds(java.util.List frameworkMajorRevisionIds) { + this.frameworkMajorRevisionIds = frameworkMajorRevisionIds; + return this; + } + + /** + * The major revision ID of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.Long getMajorRevisionId() { + return majorRevisionId; + } + + /** + * The major revision ID of the cloud control. + * @param majorRevisionId majorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setMajorRevisionId(java.lang.Long majorRevisionId) { + this.majorRevisionId = majorRevisionId; + return this; + } + + /** + * The details of a manual cloud control assessment. + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails getManualCloudControlAssessmentDetails() { + return manualCloudControlAssessmentDetails; + } + + /** + * The details of a manual cloud control assessment. + * @param manualCloudControlAssessmentDetails manualCloudControlAssessmentDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setManualCloudControlAssessmentDetails(GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails manualCloudControlAssessmentDetails) { + this.manualCloudControlAssessmentDetails = manualCloudControlAssessmentDetails; + return this; + } + + /** + * The minor revision ID of the cloud control. + * @return value or {@code null} for none + */ + public java.lang.Long getMinorRevisionId() { + return minorRevisionId; + } + + /** + * The minor revision ID of the cloud control. + * @param minorRevisionId minorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setMinorRevisionId(java.lang.Long minorRevisionId) { + this.minorRevisionId = minorRevisionId; + return this; + } + + /** + * The list of rules that correspond to the cloud control. + * @return value or {@code null} for none + */ + public java.util.List getRules() { + return rules; + } + + /** + * The list of rules that correspond to the cloud control. + * @param rules rules or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setRules(java.util.List rules) { + this.rules = rules; + return this; + } + + /** + * The list of similar controls. + * @return value or {@code null} for none + */ + public java.util.List getSimilarControls() { + return similarControls; + } + + /** + * The list of similar controls. + * @param similarControls similarControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport setSimilarControls(java.util.List similarControls) { + this.similarControls = similarControls; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1CloudControlReport) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1CloudControlReport clone() { + return (GoogleCloudAssuredworkloadsV1beta1CloudControlReport) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails.java new file mode 100644 index 00000000000..5b3a47c918e --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails.java @@ -0,0 +1,235 @@ +/* + * 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 details for a control assessment. + * + *

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 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.List assessedPassingControlIds; + + /** + * The number of controls that were assessed and are passing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer assessedPassingControls; + + /** + * The list of controls that are failing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List failingControlIds; + + /** + * The number of controls that are failing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failingControls; + + /** + * The list of controls that aren't assessed because they require manual review. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List notAssessedControlIds; + + /** + * The number of controls that aren't assessed because they require manual review. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer notAssessedControls; + + /** + * The list of controls that are passing or not assessed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List passingControlIds; + + /** + * The number of controls that are passing or not assessed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer passingControls; + + /** + * The list of controls that were assessed and are passing. + * @return value or {@code null} for none + */ + public java.util.List getAssessedPassingControlIds() { + return assessedPassingControlIds; + } + + /** + * The list of controls that were assessed and are passing. + * @param assessedPassingControlIds assessedPassingControlIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails setAssessedPassingControlIds(java.util.List assessedPassingControlIds) { + this.assessedPassingControlIds = assessedPassingControlIds; + return this; + } + + /** + * The number of controls that were assessed and are passing. + * @return value or {@code null} for none + */ + public java.lang.Integer getAssessedPassingControls() { + return assessedPassingControls; + } + + /** + * The number of controls that were assessed and are passing. + * @param assessedPassingControls assessedPassingControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails setAssessedPassingControls(java.lang.Integer assessedPassingControls) { + this.assessedPassingControls = assessedPassingControls; + return this; + } + + /** + * The list of controls that are failing. + * @return value or {@code null} for none + */ + public java.util.List getFailingControlIds() { + return failingControlIds; + } + + /** + * The list of controls that are failing. + * @param failingControlIds failingControlIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails setFailingControlIds(java.util.List failingControlIds) { + this.failingControlIds = failingControlIds; + return this; + } + + /** + * The number of controls that are failing. + * @return value or {@code null} for none + */ + public java.lang.Integer getFailingControls() { + return failingControls; + } + + /** + * The number of controls that are failing. + * @param failingControls failingControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails setFailingControls(java.lang.Integer failingControls) { + this.failingControls = failingControls; + return this; + } + + /** + * The list of controls that aren't assessed because they require manual review. + * @return value or {@code null} for none + */ + public java.util.List getNotAssessedControlIds() { + return notAssessedControlIds; + } + + /** + * The list of controls that aren't assessed because they require manual review. + * @param notAssessedControlIds notAssessedControlIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails setNotAssessedControlIds(java.util.List notAssessedControlIds) { + this.notAssessedControlIds = notAssessedControlIds; + return this; + } + + /** + * The number of controls that aren't assessed because they require manual review. + * @return value or {@code null} for none + */ + public java.lang.Integer getNotAssessedControls() { + return notAssessedControls; + } + + /** + * The number of controls that aren't assessed because they require manual review. + * @param notAssessedControls notAssessedControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails setNotAssessedControls(java.lang.Integer notAssessedControls) { + this.notAssessedControls = notAssessedControls; + return this; + } + + /** + * The list of controls that are passing or not assessed. + * @return value or {@code null} for none + */ + public java.util.List getPassingControlIds() { + return passingControlIds; + } + + /** + * The list of controls that are passing or not assessed. + * @param passingControlIds passingControlIds or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails setPassingControlIds(java.util.List passingControlIds) { + this.passingControlIds = passingControlIds; + return this; + } + + /** + * The number of controls that are passing or not assessed. + * @return value or {@code null} for none + */ + public java.lang.Integer getPassingControls() { + return passingControls; + } + + /** + * The number of controls that are passing or not assessed. + * @param passingControls passingControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails setPassingControls(java.lang.Integer passingControls) { + this.passingControls = passingControls; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails clone() { + return (GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary.java new file mode 100644 index 00000000000..84bbc76dbe2 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary.java @@ -0,0 +1,316 @@ +/* + * 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 details for control compliance. + * + *

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 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.List cloudControlReports; + + static { + // hack to force ProGuard to consider GoogleCloudAssuredworkloadsV1beta1CloudControlReport used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAssuredworkloadsV1beta1CloudControlReport.class); + } + + /** + * The list of compliance frameworks that the control belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List complianceFrameworks; + + /** + * The name of the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String control; + + /** + * The responsibility type for the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String controlResponsibilityType; + + /** + * The description of the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The display name of the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Whether the control is a fake control. Fake controls are created and mapped to cloud controls + * that don't belong to a control group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isFakeControl; + + /** + * Identifier. The name of the control compliance summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The overall evaluation status of the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String overallEvaluationState; + + /** + * The list of similar controls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List similarControls; + + /** + * The total number of findings for the control. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalFindingsCount; + + /** + * The list of cloud control reports. + * @return value or {@code null} for none + */ + public java.util.List getCloudControlReports() { + return cloudControlReports; + } + + /** + * The list of cloud control reports. + * @param cloudControlReports cloudControlReports or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setCloudControlReports(java.util.List cloudControlReports) { + this.cloudControlReports = cloudControlReports; + return this; + } + + /** + * The list of compliance frameworks that the control belongs to. + * @return value or {@code null} for none + */ + public java.util.List getComplianceFrameworks() { + return complianceFrameworks; + } + + /** + * The list of compliance frameworks that the control belongs to. + * @param complianceFrameworks complianceFrameworks or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setComplianceFrameworks(java.util.List complianceFrameworks) { + this.complianceFrameworks = complianceFrameworks; + return this; + } + + /** + * The name of the control. + * @return value or {@code null} for none + */ + public java.lang.String getControl() { + return control; + } + + /** + * The name of the control. + * @param control control or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setControl(java.lang.String control) { + this.control = control; + return this; + } + + /** + * The responsibility type for the control. + * @return value or {@code null} for none + */ + public java.lang.String getControlResponsibilityType() { + return controlResponsibilityType; + } + + /** + * The responsibility type for the control. + * @param controlResponsibilityType controlResponsibilityType or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setControlResponsibilityType(java.lang.String controlResponsibilityType) { + this.controlResponsibilityType = controlResponsibilityType; + return this; + } + + /** + * The description of the control. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * The description of the control. + * @param description description or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The display name of the control. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The display name of the control. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Whether the control is a fake control. Fake controls are created and mapped to cloud controls + * that don't belong to a control group. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsFakeControl() { + return isFakeControl; + } + + /** + * Whether the control is a fake control. Fake controls are created and mapped to cloud controls + * that don't belong to a control group. + * @param isFakeControl isFakeControl or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setIsFakeControl(java.lang.Boolean isFakeControl) { + this.isFakeControl = isFakeControl; + return this; + } + + /** + * Identifier. The name of the control compliance summary. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the control compliance summary. + * @param name name or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The overall evaluation status of the control. + * @return value or {@code null} for none + */ + public java.lang.String getOverallEvaluationState() { + return overallEvaluationState; + } + + /** + * Output only. The overall evaluation status of the control. + * @param overallEvaluationState overallEvaluationState or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setOverallEvaluationState(java.lang.String overallEvaluationState) { + this.overallEvaluationState = overallEvaluationState; + return this; + } + + /** + * The list of similar controls. + * @return value or {@code null} for none + */ + public java.util.List getSimilarControls() { + return similarControls; + } + + /** + * The list of similar controls. + * @param similarControls similarControls or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setSimilarControls(java.util.List similarControls) { + this.similarControls = similarControls; + return this; + } + + /** + * The total number of findings for the control. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalFindingsCount() { + return totalFindingsCount; + } + + /** + * The total number of findings for the control. + * @param totalFindingsCount totalFindingsCount or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary setTotalFindingsCount(java.lang.Integer totalFindingsCount) { + this.totalFindingsCount = totalFindingsCount; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary clone() { + return (GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.java new file mode 100644 index 00000000000..baed8897ca1 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.java @@ -0,0 +1,211 @@ +/* + * 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 details for a finding. + * + *

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 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.List relatedFrameworks; + + /** + * Output only. The severity of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String severity; + + /** + * Output only. The last updated time of the finding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The category of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getFindingCategory() { + return findingCategory; + } + + /** + * Output only. The category of the finding. + * @param findingCategory findingCategory or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary setFindingCategory(java.lang.String findingCategory) { + this.findingCategory = findingCategory; + return this; + } + + /** + * Output only. The class of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getFindingClass() { + return findingClass; + } + + /** + * Output only. The class of the finding. + * @param findingClass findingClass or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary setFindingClass(java.lang.String findingClass) { + this.findingClass = findingClass; + return this; + } + + /** + * Output only. The count of the finding. + * @return value or {@code null} for none + */ + public java.lang.Long getFindingCount() { + return findingCount; + } + + /** + * Output only. The count of the finding. + * @param findingCount findingCount or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary setFindingCount(java.lang.Long findingCount) { + this.findingCount = findingCount; + return this; + } + + /** + * Identifier. The name of the finding summary. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the finding summary. + * @param name name or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The list of compliance frameworks that the finding belongs to. + * @return value or {@code null} for none + */ + public java.util.List getRelatedFrameworks() { + return relatedFrameworks; + } + + /** + * Optional. The list of compliance frameworks that the finding belongs to. + * @param relatedFrameworks relatedFrameworks or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary setRelatedFrameworks(java.util.List relatedFrameworks) { + this.relatedFrameworks = relatedFrameworks; + return this; + } + + /** + * Output only. The severity of the finding. + * @return value or {@code null} for none + */ + public java.lang.String getSeverity() { + return severity; + } + + /** + * Output only. The severity of the finding. + * @param severity severity or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary setSeverity(java.lang.String severity) { + this.severity = severity; + return this; + } + + /** + * Output only. The last updated time of the finding. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The last updated time of the finding. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1DbFindingSummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1DbFindingSummary clone() { + return (GoogleCloudAssuredworkloadsV1beta1DbFindingSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary.java new file mode 100644 index 00000000000..f164ef8418c --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary.java @@ -0,0 +1,331 @@ +/* + * 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 details for a framework compliance summary. + * + *

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 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.List frameworkCategories; + + /** + * Optional. The display name for the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkDisplayName; + + /** + * The type of framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkType; + + /** + * The major revision ID of the framework. + * 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. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minorRevisionId; + + /** + * Identifier. The name of the framework compliance summary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The list of cloud providers supported by the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedCloudProviders; + + /** + * The target resource details for the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetResourceDetails; + + /** + * 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 GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setControlAssessmentDetails(GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails) { + this.controlAssessmentDetails = controlAssessmentDetails; + return this; + } + + /** + * Output only. The trend of controls that are passing for the given duration. + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1Trend getControlsPassingTrend() { + return controlsPassingTrend; + } + + /** + * Output only. The trend of controls that are passing for the given duration. + * @param controlsPassingTrend controlsPassingTrend or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setControlsPassingTrend(GoogleCloudAssuredworkloadsV1beta1Trend controlsPassingTrend) { + this.controlsPassingTrend = controlsPassingTrend; + return this; + } + + /** + * Output only. The count of the findings generated against the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getFindingCount() { + return findingCount; + } + + /** + * Output only. The count of the findings generated against the framework. + * @param findingCount findingCount or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setFindingCount(java.lang.Long findingCount) { + this.findingCount = findingCount; + 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 GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setFramework(java.lang.String framework) { + this.framework = framework; + return this; + } + + /** + * The list of framework categories supported by the framework. + * @return value or {@code null} for none + */ + public java.util.List getFrameworkCategories() { + return frameworkCategories; + } + + /** + * The list of framework categories supported by the framework. + * @param frameworkCategories frameworkCategories or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setFrameworkCategories(java.util.List frameworkCategories) { + this.frameworkCategories = frameworkCategories; + return this; + } + + /** + * Optional. The display name for the framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkDisplayName() { + return frameworkDisplayName; + } + + /** + * Optional. The display name for the framework. + * @param frameworkDisplayName frameworkDisplayName or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setFrameworkDisplayName(java.lang.String frameworkDisplayName) { + this.frameworkDisplayName = frameworkDisplayName; + return this; + } + + /** + * The type of framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkType() { + return frameworkType; + } + + /** + * The type of framework. + * @param frameworkType frameworkType or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setFrameworkType(java.lang.String frameworkType) { + this.frameworkType = frameworkType; + return this; + } + + /** + * The major revision ID of the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getMajorRevisionId() { + return majorRevisionId; + } + + /** + * The major revision ID of the framework. + * @param majorRevisionId majorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setMajorRevisionId(java.lang.Long majorRevisionId) { + this.majorRevisionId = majorRevisionId; + return this; + } + + /** + * The minor revision ID of the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getMinorRevisionId() { + return minorRevisionId; + } + + /** + * The minor revision ID of the framework. + * @param minorRevisionId minorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setMinorRevisionId(java.lang.Long minorRevisionId) { + this.minorRevisionId = minorRevisionId; + return this; + } + + /** + * Identifier. The name of the framework compliance summary. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the framework compliance summary. + * @param name name or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The list of cloud providers supported by the framework. + * @return value or {@code null} for none + */ + public java.util.List getSupportedCloudProviders() { + return supportedCloudProviders; + } + + /** + * The list of cloud providers supported by the framework. + * @param supportedCloudProviders supportedCloudProviders or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setSupportedCloudProviders(java.util.List supportedCloudProviders) { + this.supportedCloudProviders = supportedCloudProviders; + return this; + } + + /** + * The target resource details for the framework. + * @return value or {@code null} for none + */ + public java.util.List getTargetResourceDetails() { + return targetResourceDetails; + } + + /** + * The target resource details for the framework. + * @param targetResourceDetails targetResourceDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary setTargetResourceDetails(java.util.List targetResourceDetails) { + this.targetResourceDetails = targetResourceDetails; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary clone() { + return (GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse.java new file mode 100644 index 00000000000..888be078f93 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse.java @@ -0,0 +1,331 @@ +/* + * 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 FetchDbFrameworkComplianceReport. + * + *

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 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.List frameworkCategories; + + /** + * The description of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkDescription; + + /** + * Optional. The display name for the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkDisplayName; + + /** + * The type of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frameworkType; + + /** + * The latest major revision ID of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long majorRevisionId; + + /** + * The latest minor revision ID of the latest major revision of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minorRevisionId; + + /** + * The name of the framework compliance report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The list of cloud providers that are supported by the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedCloudProviders; + + /** + * The target resource details of the framework. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetResourceDetails; + + /** + * Output only. The last updated time of the report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * 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 GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setControlAssessmentDetails(GoogleCloudAssuredworkloadsV1beta1ControlAssessmentDetails controlAssessmentDetails) { + this.controlAssessmentDetails = controlAssessmentDetails; + 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 GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setFramework(java.lang.String framework) { + this.framework = framework; + return this; + } + + /** + * The list of framework categories supported. + * @return value or {@code null} for none + */ + public java.util.List getFrameworkCategories() { + return frameworkCategories; + } + + /** + * The list of framework categories supported. + * @param frameworkCategories frameworkCategories or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setFrameworkCategories(java.util.List frameworkCategories) { + this.frameworkCategories = frameworkCategories; + return this; + } + + /** + * The description of the framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkDescription() { + return frameworkDescription; + } + + /** + * The description of the framework. + * @param frameworkDescription frameworkDescription or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setFrameworkDescription(java.lang.String frameworkDescription) { + this.frameworkDescription = frameworkDescription; + return this; + } + + /** + * Optional. The display name for the framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkDisplayName() { + return frameworkDisplayName; + } + + /** + * Optional. The display name for the framework. + * @param frameworkDisplayName frameworkDisplayName or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setFrameworkDisplayName(java.lang.String frameworkDisplayName) { + this.frameworkDisplayName = frameworkDisplayName; + return this; + } + + /** + * The type of the framework. + * @return value or {@code null} for none + */ + public java.lang.String getFrameworkType() { + return frameworkType; + } + + /** + * The type of the framework. + * @param frameworkType frameworkType or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setFrameworkType(java.lang.String frameworkType) { + this.frameworkType = frameworkType; + return this; + } + + /** + * The latest major revision ID of the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getMajorRevisionId() { + return majorRevisionId; + } + + /** + * The latest major revision ID of the framework. + * @param majorRevisionId majorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setMajorRevisionId(java.lang.Long majorRevisionId) { + this.majorRevisionId = majorRevisionId; + return this; + } + + /** + * The latest minor revision ID of the latest major revision of the framework. + * @return value or {@code null} for none + */ + public java.lang.Long getMinorRevisionId() { + return minorRevisionId; + } + + /** + * The latest minor revision ID of the latest major revision of the framework. + * @param minorRevisionId minorRevisionId or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setMinorRevisionId(java.lang.Long minorRevisionId) { + this.minorRevisionId = minorRevisionId; + return this; + } + + /** + * The name of the framework compliance report. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the framework compliance report. + * @param name name or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The list of cloud providers that are supported by the framework. + * @return value or {@code null} for none + */ + public java.util.List getSupportedCloudProviders() { + return supportedCloudProviders; + } + + /** + * The list of cloud providers that are supported by the framework. + * @param supportedCloudProviders supportedCloudProviders or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setSupportedCloudProviders(java.util.List supportedCloudProviders) { + this.supportedCloudProviders = supportedCloudProviders; + return this; + } + + /** + * The target resource details of the framework. + * @return value or {@code null} for none + */ + public java.util.List getTargetResourceDetails() { + return targetResourceDetails; + } + + /** + * The target resource details of the framework. + * @param targetResourceDetails targetResourceDetails or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setTargetResourceDetails(java.util.List targetResourceDetails) { + this.targetResourceDetails = targetResourceDetails; + return this; + } + + /** + * Output only. The last updated time of the report. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The last updated time of the report. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse clone() { + return (GoogleCloudAssuredworkloadsV1beta1FetchDbFrameworkComplianceReportResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse.java new file mode 100644 index 00000000000..159c80673b8 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse.java @@ -0,0 +1,97 @@ +/* + * 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 ListDBControlComplianceSummaries. + * + *

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 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.List dbControlComplianceSummaries; + + static { + // hack to force ProGuard to consider GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAssuredworkloadsV1beta1DbControlComplianceSummary.class); + } + + /** + * Output only. The token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of control compliance details. + * @return value or {@code null} for none + */ + public java.util.List getDbControlComplianceSummaries() { + return dbControlComplianceSummaries; + } + + /** + * The list of control compliance details. + * @param dbControlComplianceSummaries dbControlComplianceSummaries or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse setDbControlComplianceSummaries(java.util.List dbControlComplianceSummaries) { + this.dbControlComplianceSummaries = dbControlComplianceSummaries; + return this; + } + + /** + * Output only. The token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. The token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse clone() { + return (GoogleCloudAssuredworkloadsV1beta1ListDbControlComplianceSummariesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse.java new file mode 100644 index 00000000000..f25084e4585 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse.java @@ -0,0 +1,97 @@ +/* + * 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 ListDbFindingSummaries. + * + *

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 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.List dbFindingSummaries; + + static { + // hack to force ProGuard to consider GoogleCloudAssuredworkloadsV1beta1DbFindingSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAssuredworkloadsV1beta1DbFindingSummary.class); + } + + /** + * Output only. The token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * List of finding summary by category. + * @return value or {@code null} for none + */ + public java.util.List getDbFindingSummaries() { + return dbFindingSummaries; + } + + /** + * List of finding summary by category. + * @param dbFindingSummaries dbFindingSummaries or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse setDbFindingSummaries(java.util.List dbFindingSummaries) { + this.dbFindingSummaries = dbFindingSummaries; + return this; + } + + /** + * Output only. The token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. The token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse clone() { + return (GoogleCloudAssuredworkloadsV1beta1ListDbFindingSummariesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse.java new file mode 100644 index 00000000000..976ef8679b3 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse.java @@ -0,0 +1,97 @@ +/* + * 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 ListDbFrameworkComplianceSummariesResponse. + * + *

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 GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of framework compliance summaries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dbFrameworkComplianceSummaries; + + static { + // hack to force ProGuard to consider GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudAssuredworkloadsV1beta1DbFrameworkComplianceSummary.class); + } + + /** + * Output only. The token to retrieve the next page of results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of framework compliance summaries. + * @return value or {@code null} for none + */ + public java.util.List getDbFrameworkComplianceSummaries() { + return dbFrameworkComplianceSummaries; + } + + /** + * The list of framework compliance summaries. + * @param dbFrameworkComplianceSummaries dbFrameworkComplianceSummaries or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse setDbFrameworkComplianceSummaries(java.util.List dbFrameworkComplianceSummaries) { + this.dbFrameworkComplianceSummaries = dbFrameworkComplianceSummaries; + return this; + } + + /** + * Output only. The token to retrieve the next page of results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. The token to retrieve the next page of results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse clone() { + return (GoogleCloudAssuredworkloadsV1beta1ListDbFrameworkComplianceSummariesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails.java new file mode 100644 index 00000000000..5850ec7c3f2 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails.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 details for a manual cloud control assessment. + * + *

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 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 manualCloudControlGuide; + + /** + * The guide for assessing a cloud control manually. + * @return value or {@code null} for none + */ + public java.util.List getManualCloudControlGuide() { + return manualCloudControlGuide; + } + + /** + * The guide for assessing a cloud control manually. + * @param manualCloudControlGuide manualCloudControlGuide or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails setManualCloudControlGuide(java.util.List manualCloudControlGuide) { + this.manualCloudControlGuide = manualCloudControlGuide; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails clone() { + return (GoogleCloudAssuredworkloadsV1beta1ManualCloudControlAssessmentDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1Rule.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1Rule.java new file mode 100644 index 00000000000..b9d605e7555 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1Rule.java @@ -0,0 +1,115 @@ +/* + * 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 rule in the cloud control. + * + *

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 GoogleCloudAssuredworkloadsV1beta1Rule 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 GoogleCloudAssuredworkloadsV1beta1CELExpression 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.List ruleActionTypes; + + /** + * The rule's logic expression in Common Expression Language (CEL). + * @return value or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1CELExpression getCelExpression() { + return celExpression; + } + + /** + * The rule's logic expression in Common Expression Language (CEL). + * @param celExpression celExpression or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1Rule setCelExpression(GoogleCloudAssuredworkloadsV1beta1CELExpression celExpression) { + this.celExpression = celExpression; + return this; + } + + /** + * Optional. The rule description. The maximum length is 2000 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The rule description. The maximum length is 2000 characters. + * @param description description or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1Rule setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The functionality that's enabled by the rule. + * @return value or {@code null} for none + */ + public java.util.List getRuleActionTypes() { + return ruleActionTypes; + } + + /** + * Required. The functionality that's enabled by the rule. + * @param ruleActionTypes ruleActionTypes or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1Rule setRuleActionTypes(java.util.List ruleActionTypes) { + this.ruleActionTypes = ruleActionTypes; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1Rule set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1Rule) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1Rule clone() { + return (GoogleCloudAssuredworkloadsV1beta1Rule) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1SimilarControls.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1SimilarControls.java new file mode 100644 index 00000000000..56169100eab --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1SimilarControls.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 similar 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 GoogleCloudAssuredworkloadsV1beta1SimilarControls 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 GoogleCloudAssuredworkloadsV1beta1SimilarControls 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 GoogleCloudAssuredworkloadsV1beta1SimilarControls setFramework(java.lang.String framework) { + this.framework = framework; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1SimilarControls set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1SimilarControls) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1SimilarControls clone() { + return (GoogleCloudAssuredworkloadsV1beta1SimilarControls) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1StringList.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1StringList.java new file mode 100644 index 00000000000..892e3fad078 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1StringList.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; + +/** + * 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 GoogleCloudAssuredworkloadsV1beta1StringList 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.List values; + + /** + * Required. The strings in the list. + * @return value or {@code null} for none + */ + public java.util.List getValues() { + return values; + } + + /** + * Required. The strings in the list. + * @param values values or {@code null} for none + */ + public GoogleCloudAssuredworkloadsV1beta1StringList setValues(java.util.List values) { + this.values = values; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1StringList set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1StringList) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1StringList clone() { + return (GoogleCloudAssuredworkloadsV1beta1StringList) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails.java new file mode 100644 index 00000000000..1b6357f50ff --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails.java @@ -0,0 +1,220 @@ +/* + * 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 details for a target resource. + * + *

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 GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails 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 GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails 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 GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails 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 GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails 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 GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails 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 GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails 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 GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails 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 GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails clone() { + return (GoogleCloudAssuredworkloadsV1beta1TargetResourceDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1Trend.java b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1Trend.java new file mode 100644 index 00000000000..7c567246212 --- /dev/null +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/com/google/api/services/assuredworkloads/v1beta1/model/GoogleCloudAssuredworkloadsV1beta1Trend.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 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 GoogleCloudAssuredworkloadsV1beta1Trend 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 GoogleCloudAssuredworkloadsV1beta1Trend 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 GoogleCloudAssuredworkloadsV1beta1Trend setValuePercent(java.lang.Double valuePercent) { + this.valuePercent = valuePercent; + return this; + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1Trend set(String fieldName, Object value) { + return (GoogleCloudAssuredworkloadsV1beta1Trend) super.set(fieldName, value); + } + + @Override + public GoogleCloudAssuredworkloadsV1beta1Trend clone() { + return (GoogleCloudAssuredworkloadsV1beta1Trend) super.clone(); + } + +} diff --git a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/pom.xml b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/pom.xml index 117b631b8e2..28bd5e18152 100644 --- a/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-assuredworkloads/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-assuredworkloads - v1beta1-rev20260623-2.0.0 - Assured Workloads API v1beta1-rev20260623-2.0.0 + v1beta1-rev20260719-2.0.0 + Assured Workloads API v1beta1-rev20260719-2.0.0 jar 2011 diff --git a/clients/google-api-services-assuredworkloads/v1beta1/README.md b/clients/google-api-services-assuredworkloads/v1beta1/README.md index a04aa11568b..02dc67e5ae6 100644 --- a/clients/google-api-services-assuredworkloads/v1beta1/README.md +++ b/clients/google-api-services-assuredworkloads/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-assuredworkloads - v1beta1-rev20260623-2.0.0 + v1beta1-rev20260719-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-assuredworkloads:v1beta1-rev20260623-2.0.0' + implementation 'com.google.apis:google-api-services-assuredworkloads:v1beta1-rev20260719-2.0.0' } ```