diff --git a/clients/google-api-services-auditmanager/v1/2.0.0/README.md b/clients/google-api-services-auditmanager/v1/2.0.0/README.md index e5d5ffe129e..245e16f2d5f 100644 --- a/clients/google-api-services-auditmanager/v1/2.0.0/README.md +++ b/clients/google-api-services-auditmanager/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-auditmanager - v1-rev20260907-2.0.0 + v1-rev20260908-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-auditmanager:v1-rev20260907-2.0.0' + implementation 'com.google.apis:google-api-services-auditmanager:v1-rev20260908-2.0.0' } ``` diff --git a/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/CloudAuditManager.java b/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/CloudAuditManager.java index 5bf412dfd4f..6561c669b52 100644 --- a/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/CloudAuditManager.java +++ b/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/CloudAuditManager.java @@ -866,211 +866,242 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the AuditScopeReports collection. + * An accessor for creating requests from the AuditSchedules collection. * *

The typical use is:

*
        *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.AuditScopeReports.List request = auditmanager.auditScopeReports().list(parameters ...)}
+       *   {@code CloudAuditManager.AuditSchedules.List request = auditmanager.auditSchedules().list(parameters ...)}
        * 
* * @return the resource collection */ - public AuditScopeReports auditScopeReports() { - return new AuditScopeReports(); + public AuditSchedules auditSchedules() { + return new AuditSchedules(); } /** - * The "auditScopeReports" collection of methods. + * The "auditSchedules" collection of methods. */ - public class AuditScopeReports { + public class AuditSchedules { /** - * Generates an audit scope report for the given standard. The report includes the following: * The - * technical attributes and constraints that Audit Manager uses to verify your compliance with a - * framework. * A list of Google Cloud services and resources that are within the scope of the - * framework. + * Creates a new audit schedule in a given project and location. * - * Create a request for the method "auditScopeReports.generate". + * Create a request for the method "auditSchedules.create". * * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param scope Required. Project or folder that the audit scope report is generated for, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest} + * @param parent Required. Project or folder that this audit schedule is for, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} * @return the request */ - public Generate generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest content) throws java.io.IOException { - Generate result = new Generate(scope, content); + public Create create(java.lang.String parent, com.google.api.services.auditmanager.v1.model.AuditSchedule content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Generate extends CloudAuditManagerRequest { + public class Create extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+scope}/auditScopeReports:generate"; + private static final String REST_PATH = "v1/{+parent}/auditSchedules"; - private final java.util.regex.Pattern SCOPE_PATTERN = + private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+$"); /** - * Generates an audit scope report for the given standard. The report includes the following: * - * The technical attributes and constraints that Audit Manager uses to verify your compliance with - * a framework. * A list of Google Cloud services and resources that are within the scope of the - * framework. + * Creates a new audit schedule in a given project and location. * - * Create a request for the method "auditScopeReports.generate". + * Create a request for the method "auditSchedules.create". * * This request holds the parameters needed by the the auditmanager server. After setting any - * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

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

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

* - * @param scope Required. Project or folder that the audit scope report is generated for, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest} + * @param parent Required. Project or folder that this audit schedule is for, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} * @since 1.13 */ - protected Generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest content) { - super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditScopeReport.class); - this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); + protected Create(java.lang.String parent, com.google.api.services.auditmanager.v1.model.AuditSchedule content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditSchedule.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(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + "^folders/[^/]+/locations/[^/]+$"); } } @Override - public Generate set$Xgafv(java.lang.String $Xgafv) { - return (Generate) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Generate setAccessToken(java.lang.String accessToken) { - return (Generate) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Generate setAlt(java.lang.String alt) { - return (Generate) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Generate setCallback(java.lang.String callback) { - return (Generate) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Generate setFields(java.lang.String fields) { - return (Generate) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Generate setKey(java.lang.String key) { - return (Generate) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Generate setOauthToken(java.lang.String oauthToken) { - return (Generate) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Generate) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Generate setQuotaUser(java.lang.String quotaUser) { - return (Generate) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Generate setUploadType(java.lang.String uploadType) { - return (Generate) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Generate setUploadProtocol(java.lang.String uploadProtocol) { - return (Generate) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. Project or folder that the audit scope report is generated for, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` + * Required. Project or folder that this audit schedule is for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String scope; + private java.lang.String parent; - /** Required. Project or folder that the audit scope report is generated for, in one of the following - formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * - `organizations/{organization}/locations/{location}` + /** Required. Project or folder that this audit schedule is for, in one of the following formats: * + `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` */ - public java.lang.String getScope() { - return scope; + public java.lang.String getParent() { + return parent; } /** - * Required. Project or folder that the audit scope report is generated for, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` + * Required. Project or folder that this audit schedule is for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` */ - public Generate setScope(java.lang.String scope) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + "^folders/[^/]+/locations/[^/]+$"); } - this.scope = scope; + this.parent = parent; return this; } - @Override - public Generate set(String parameterName, Object value) { - return (Generate) super.set(parameterName, value); + /** + * Required. ID to use for the audit schedule, which becomes the final component of the + * audit schedule's resource name. + */ + @com.google.api.client.util.Key + private java.lang.String auditScheduleId; + + /** Required. ID to use for the audit schedule, which becomes the final component of the audit + schedule's resource name. + */ + public java.lang.String getAuditScheduleId() { + return auditScheduleId; } - } - } - /** - * An accessor for creating requests from the OperationDetails collection. - * - *

The typical use is:

- *
-       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.OperationDetails.List request = auditmanager.operationDetails().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public OperationDetails operationDetails() { - return new OperationDetails(); - } + /** + * Required. ID to use for the audit schedule, which becomes the final component of the + * audit schedule's resource name. + */ + public Create setAuditScheduleId(java.lang.String auditScheduleId) { + this.auditScheduleId = auditScheduleId; + return this; + } - /** - * The "operationDetails" collection of methods. - */ - public class OperationDetails { + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If `true`, only validates the request and does not create the audit schedule. This + executes standard request validation (such as schema, framework existence, scope, and IAM checks) + and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code + (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without + creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form + and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test + your scripts, permissions, and parameters safely without consuming resource quotas. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + public Create setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } /** - * Gets details about the long-running operation to generate audit reports. + * Gets details of a single audit schedule. * - * Create a request for the method "operationDetails.get". + * Create a request for the method "auditSchedules.get". * * This request holds the parameters needed by the auditmanager 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. + * @param name Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -1079,33 +1110,36 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudAuditManagerRequest { + public class Get extends CloudAuditManagerRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/operationDetails/[^/]+$"); + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); /** - * Gets details about the long-running operation to generate audit reports. + * Gets details of a single audit schedule. * - * Create a request for the method "operationDetails.get". + * Create a request for the method "auditSchedules.get". * * This request holds the parameters needed by the the auditmanager 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 The name of the operation resource. + * @param name Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Operation.class); + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.AuditSchedule.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/operationDetails/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); } } @@ -1174,22 +1208,35 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. Name of the audit schedule to retrieve, in one of the following formats: * + `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` + */ 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 " + - "^folders/[^/]+/locations/[^/]+/operationDetails/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); } this.name = name; return this; @@ -1200,72 +1247,54 @@ public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the OperationIds collection. - * - *

The typical use is:

- *
-       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.OperationIds.List request = auditmanager.operationIds().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public OperationIds operationIds() { - return new OperationIds(); - } - - /** - * The "operationIds" collection of methods. - */ - public class OperationIds { - /** - * Gets details about the long-running operation to generate audit reports. + * Lists audit schedules in a given project and location. * - * Create a request for the method "operationIds.get". + * Create a request for the method "auditSchedules.list". * * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param parent Required. Parent for the audit schedule, in one of the following 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 CloudAuditManagerRequest { + public class List extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/auditSchedules"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/operationIds/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+$"); /** - * Gets details about the long-running operation to generate audit reports. + * Lists audit schedules in a given project and location. * - * Create a request for the method "operationIds.get". + * Create a request for the method "auditSchedules.list". * * This request holds the parameters needed by the the auditmanager 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. Parent for the audit schedule, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListAuditSchedulesResponse.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 " + - "^folders/[^/]+/locations/[^/]+/operationIds/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+$"); } } @@ -1280,1102 +1309,882 @@ 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. Parent for the audit schedule, in one of the following 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. Parent for the audit schedule, in one of the following 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. Parent for the audit schedule, in one of the following 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 " + - "^folders/[^/]+/locations/[^/]+/operationIds/[^/]+$"); + 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; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of items to return in a single page. The service might return fewer items + than this value. If unspecified, the service picks an appropriate default. The maximum value is + 100; values above 100 are reduced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - } - } - /** - * An accessor for creating requests from the ResourceEnrollmentStatuses collection. - * - *

The typical use is:

- *
-       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.ResourceEnrollmentStatuses.List request = auditmanager.resourceEnrollmentStatuses().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public ResourceEnrollmentStatuses resourceEnrollmentStatuses() { - return new ResourceEnrollmentStatuses(); - } + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * The "resourceEnrollmentStatuses" collection of methods. - */ - public class ResourceEnrollmentStatuses { + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + 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); + } + } /** - * Gets a resource and its enrollment status. + * Updates an existing audit schedule. * - * Create a request for the method "resourceEnrollmentStatuses.get". + * Create a request for the method "auditSchedules.patch". * * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. Name of the resource enrollment status, in one of the following formats: * - * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_sta - * tus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enro - * llment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentSta - * tuses/{resource_enrollment_status}` + * @param name Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Patch patch(java.lang.String name, com.google.api.services.auditmanager.v1.model.AuditSchedule content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Get extends CloudAuditManagerRequest { + public class Patch extends CloudAuditManagerRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); /** - * Gets a resource and its enrollment status. + * Updates an existing audit schedule. * - * Create a request for the method "resourceEnrollmentStatuses.get". + * Create a request for the method "auditSchedules.patch". * * This request holds the parameters needed by the the auditmanager 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 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 Required. Name of the resource enrollment status, in one of the following formats: * - * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_sta - * tus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enro - * llment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentSta - * tuses/{resource_enrollment_status}` + * @param name Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ResourceEnrollmentStatus.class); + protected Patch(java.lang.String name, com.google.api.services.auditmanager.v1.model.AuditSchedule content) { + super(CloudAuditManager.this, "PATCH", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditSchedule.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^folders/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); } } @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); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. Name of the resource enrollment status, in one of the following formats: * `f - * olders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_st - * atus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_ - * enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnroll - * mentStatuses/{resource_enrollment_status}` + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Name of the resource enrollment status, in one of the following formats: * - `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * - `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * - `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_ - status}` + /** Identifier. Unique identifier for the audit schedule. Format: + projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} */ public java.lang.String getName() { return name; } /** - * Required. Name of the resource enrollment status, in one of the following formats: * `f - * olders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_st - * atus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_ - * enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnroll - * mentStatuses/{resource_enrollment_status}` + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} */ - public Get setName(java.lang.String name) { + 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 " + - "^folders/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); } this.name = name; return this; } + /** Optional. List of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. List of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. List of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** + * Optional. If `true`, only validates the request and does not update the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If `true`, only validates the request and does not update the audit schedule. This + executes standard request validation (such as schema, framework existence, scope, and IAM checks) + and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code + (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without + creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form + and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test + your scripts, permissions, and parameters safely without consuming resource quotas. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If `true`, only validates the request and does not update the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + public Patch setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the AuditScopeReports collection. + * + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.AuditScopeReports.List request = auditmanager.auditScopeReports().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AuditScopeReports auditScopeReports() { + return new AuditScopeReports(); + } + + /** + * The "auditScopeReports" collection of methods. + */ + public class AuditScopeReports { + /** - * Lists all the folders and projects in an organization or folder, along with their enrollments. + * Generates an audit scope report for the given standard. The report includes the following: * The + * technical attributes and constraints that Audit Manager uses to verify your compliance with a + * framework. * A list of Google Cloud services and resources that are within the scope of the + * framework. * - * Create a request for the method "resourceEnrollmentStatuses.list". + * Create a request for the method "auditScopeReports.generate". * * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Generate#execute()} method to invoke the remote operation. * - * @param parent Required. Parent organization or folder to list enrollment statuses for, in one of the following - * formats: * `folders/{folder}/locations/{location}` * + * @param scope Required. Project or folder that the audit scope report is generated for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Generate generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest content) throws java.io.IOException { + Generate result = new Generate(scope, content); initialize(result); return result; } - public class List extends CloudAuditManagerRequest { + public class Generate extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+parent}/resourceEnrollmentStatuses"; + private static final String REST_PATH = "v1/{+scope}/auditScopeReports:generate"; - private final java.util.regex.Pattern PARENT_PATTERN = + private final java.util.regex.Pattern SCOPE_PATTERN = java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+$"); /** - * Lists all the folders and projects in an organization or folder, along with their enrollments. + * Generates an audit scope report for the given standard. The report includes the following: * + * The technical attributes and constraints that Audit Manager uses to verify your compliance with + * a framework. * A list of Google Cloud services and resources that are within the scope of the + * framework. * - * Create a request for the method "resourceEnrollmentStatuses.list". + * Create a request for the method "auditScopeReports.generate". * * This request holds the parameters needed by the the auditmanager 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 Generate#execute()} method to invoke the remote operation. + *

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

* - * @param parent Required. Parent organization or folder to list enrollment statuses for, in one of the following - * formats: * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` + * @param scope Required. Project or folder that the audit scope report is generated for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListResourceEnrollmentStatusesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditScopeReport.class); + this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope 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(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + "^folders/[^/]+/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); + public Generate set$Xgafv(java.lang.String $Xgafv) { + return (Generate) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Generate setAccessToken(java.lang.String accessToken) { + return (Generate) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Generate setAlt(java.lang.String alt) { + return (Generate) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Generate setCallback(java.lang.String callback) { + return (Generate) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Generate setFields(java.lang.String fields) { + return (Generate) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Generate setKey(java.lang.String key) { + return (Generate) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Generate setOauthToken(java.lang.String oauthToken) { + return (Generate) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generate) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Generate setQuotaUser(java.lang.String quotaUser) { + return (Generate) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Generate setUploadType(java.lang.String uploadType) { + return (Generate) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Generate setUploadProtocol(java.lang.String uploadProtocol) { + return (Generate) super.setUploadProtocol(uploadProtocol); } /** - * Required. Parent organization or folder to list enrollment statuses for, in one of the - * following formats: * `folders/{folder}/locations/{location}` * + * Required. Project or folder that the audit scope report is generated for, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * * `organizations/{organization}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String scope; - /** Required. Parent organization or folder to list enrollment statuses for, in one of the following - formats: * `folders/{folder}/locations/{location}` * + /** Required. Project or folder that the audit scope report is generated for, in one of the following + formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getScope() { + return scope; } /** - * Required. Parent organization or folder to list enrollment statuses for, in one of the - * following formats: * `folders/{folder}/locations/{location}` * + * Required. Project or folder that the audit scope report is generated for, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * * `organizations/{organization}/locations/{location}` */ - public List setParent(java.lang.String parent) { + public Generate setScope(java.lang.String scope) { 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(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + "^folders/[^/]+/locations/[^/]+$"); } - this.parent = parent; - return this; - } - - /** - * Optional. Maximum number of items to return in a single page. The service might return - * fewer items than this value. If unspecified, the service picks an appropriate default. - * The maximum value is 100; values above 100 are reduced to 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. Maximum number of items to return in a single page. The service might return fewer items - than this value. If unspecified, the service picks an appropriate default. The maximum value is - 100; values above 100 are reduced to 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. Maximum number of items to return in a single page. The service might return - * fewer items than this value. If unspecified, the service picks an appropriate default. - * The maximum value is 100; values above 100 are reduced to 100. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. A page token, received from a previous call, to retrieve the next page of - * results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. A page token, received from a previous call, to retrieve the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. A page token, received from a previous call, to retrieve the next page of - * results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + this.scope = scope; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Generate set(String parameterName, Object value) { + return (Generate) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Standards collection. + * An accessor for creating requests from the OperationDetails collection. * *

The typical use is:

*
        *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.Standards.List request = auditmanager.standards().list(parameters ...)}
+       *   {@code CloudAuditManager.OperationDetails.List request = auditmanager.operationDetails().list(parameters ...)}
        * 
* * @return the resource collection */ - public Standards standards() { - return new Standards(); + public OperationDetails operationDetails() { + return new OperationDetails(); } /** - * The "standards" collection of methods. + * The "operationDetails" collection of methods. */ - public class Standards { + public class OperationDetails { /** - * An accessor for creating requests from the Controls collection. + * Gets details about the long-running operation to generate audit reports. * - *

The typical use is:

- *
-         *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-         *   {@code CloudAuditManager.Controls.List request = auditmanager.controls().list(parameters ...)}
-         * 
+ * Create a request for the method "operationDetails.get". * - * @return the resource collection + * This request holds the parameters needed by the auditmanager 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 Controls controls() { - return new Controls(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * The "controls" collection of methods. - */ - public class Controls { + public class Get extends CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/operationDetails/[^/]+$"); /** - * Lists the controls that you must implement to become compliant to a regulatory standard. + * Gets details about the long-running operation to generate audit reports. * - * Create a request for the method "controls.list". + * Create a request for the method "operationDetails.get". * - * This request holds the parameters needed by the auditmanager 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 auditmanager 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 parent Required. Standard to list controls for, in one of the following formats: * - * `projects/{project}/locations/{location}/standards/{standard}` * - * `folders/{folder}/locations/{location}/standards/{standard}` * - * `organizations/{organization}/locations/{location}/standards/{standard}` - * @return the request + * @param name The name of the operation resource. + * @since 1.13 */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/operationDetails/[^/]+$"); + } } - public class List extends CloudAuditManagerRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1/{+parent}/controls"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/standards/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * Lists the controls that you must implement to become compliant to a regulatory standard. - * - * Create a request for the method "controls.list". - * - * This request holds the parameters needed by the the auditmanager 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. Standard to list controls for, in one of the following formats: * - * `projects/{project}/locations/{location}/standards/{standard}` * - * `folders/{folder}/locations/{location}/standards/{standard}` * - * `organizations/{organization}/locations/{location}/standards/{standard}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListControlsResponse.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/[^/]+/standards/[^/]+$"); - } - } - - @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 Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - 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); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. Standard to list controls for, in one of the following formats: * - * `projects/{project}/locations/{location}/standards/{standard}` * - * `folders/{folder}/locations/{location}/standards/{standard}` * - * `organizations/{organization}/locations/{location}/standards/{standard}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - /** Required. Standard to list controls for, in one of the following formats: * - `projects/{project}/locations/{location}/standards/{standard}` * - `folders/{folder}/locations/{location}/standards/{standard}` * - `organizations/{organization}/locations/{location}/standards/{standard}` - */ - public java.lang.String getParent() { - return parent; + /** 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 " + + "^folders/[^/]+/locations/[^/]+/operationDetails/[^/]+$"); } + this.name = name; + return this; + } - /** - * Required. Standard to list controls for, in one of the following formats: * - * `projects/{project}/locations/{location}/standards/{standard}` * - * `folders/{folder}/locations/{location}/standards/{standard}` * - * `organizations/{organization}/locations/{location}/standards/{standard}` - */ - 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/[^/]+/standards/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } - /** - * Optional. Maximum number of items to return in a single page. The service might - * return fewer items than this value. If unspecified, the service picks an appropriate - * default. The maximum value is 100; values above 100 are reduced to 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + } + /** + * An accessor for creating requests from the OperationIds collection. + * + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.OperationIds.List request = auditmanager.operationIds().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public OperationIds operationIds() { + return new OperationIds(); + } - /** Optional. Maximum number of items to return in a single page. The service might return fewer items - than this value. If unspecified, the service picks an appropriate default. The maximum value is - 100; values above 100 are reduced to 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * The "operationIds" collection of methods. + */ + public class OperationIds { - /** - * Optional. Maximum number of items to return in a single page. The service might - * return fewer items than this value. If unspecified, the service picks an appropriate - * default. The maximum value is 100; values above 100 are reduced to 100. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * Gets details about the long-running operation to generate audit reports. + * + * Create a request for the method "operationIds.get". + * + * This request holds the parameters needed by the auditmanager 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; + } - /** - * Optional. A page token, received from a previous call, to retrieve the next page of - * results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + public class Get extends CloudAuditManagerRequest { - /** Optional. A page token, received from a previous call, to retrieve the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + private static final String REST_PATH = "v1/{+name}"; - /** - * Optional. A page token, received from a previous call, to retrieve the next page of - * results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/operationIds/[^/]+$"); - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** + * Gets details about the long-running operation to generate audit reports. + * + * Create a request for the method "operationIds.get". + * + * This request holds the parameters needed by the the auditmanager 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^folders/[^/]+/locations/[^/]+/operationIds/[^/]+$"); } } - } - } - } - } - - /** - * An accessor for creating requests from the Organizations collection. - * - *

The typical use is:

- *
-   *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-   *   {@code CloudAuditManager.Organizations.List request = auditmanager.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 CloudAuditManager auditmanager = new CloudAuditManager(...);}
-     *   {@code CloudAuditManager.Locations.List request = auditmanager.locations().list(parameters ...)}
-     * 
- * - * @return the resource collection - */ - public Locations locations() { - return new Locations(); - } - - /** - * The "locations" collection of methods. - */ - public class Locations { - - /** - * Adds your project, folder, or organization to Audit Manager. This method creates the Audit - * Manager service agent in your workload and grants required permissions to the service agent. If - * you make this request on a workload that's already enrolled, then this method overrides the - * existing set of destinations. - * - * Create a request for the method "locations.enrollResource". - * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link EnrollResource#execute()} method to invoke the remote operation. - * - * @param scope Required. Organization, folder, or project to enroll in Audit Manager, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.EnrollResourceRequest} - * @return the request - */ - public EnrollResource enrollResource(java.lang.String scope, com.google.api.services.auditmanager.v1.model.EnrollResourceRequest content) throws java.io.IOException { - EnrollResource result = new EnrollResource(scope, content); - initialize(result); - return result; - } - - public class EnrollResource extends CloudAuditManagerRequest { - - private static final String REST_PATH = "v1/{+scope}:enrollResource"; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private final java.util.regex.Pattern SCOPE_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** - * Adds your project, folder, or organization to Audit Manager. This method creates the Audit - * Manager service agent in your workload and grants required permissions to the service agent. If - * you make this request on a workload that's already enrolled, then this method overrides the - * existing set of destinations. - * - * Create a request for the method "locations.enrollResource". - * - * This request holds the parameters needed by the the auditmanager server. After setting any - * optional parameters, call the {@link EnrollResource#execute()} method to invoke the remote - * operation.

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

- * - * @param scope Required. Organization, folder, or project to enroll in Audit Manager, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.EnrollResourceRequest} - * @since 1.13 - */ - protected EnrollResource(java.lang.String scope, com.google.api.services.auditmanager.v1.model.EnrollResourceRequest content) { - super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Enrollment.class); - this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - } - @Override - public EnrollResource set$Xgafv(java.lang.String $Xgafv) { - return (EnrollResource) super.set$Xgafv($Xgafv); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public EnrollResource setAccessToken(java.lang.String accessToken) { - return (EnrollResource) super.setAccessToken(accessToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public EnrollResource setAlt(java.lang.String alt) { - return (EnrollResource) super.setAlt(alt); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public EnrollResource setCallback(java.lang.String callback) { - return (EnrollResource) super.setCallback(callback); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public EnrollResource setFields(java.lang.String fields) { - return (EnrollResource) super.setFields(fields); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public EnrollResource setKey(java.lang.String key) { - return (EnrollResource) super.setKey(key); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public EnrollResource setOauthToken(java.lang.String oauthToken) { - return (EnrollResource) super.setOauthToken(oauthToken); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public EnrollResource setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnrollResource) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public EnrollResource setQuotaUser(java.lang.String quotaUser) { - return (EnrollResource) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public EnrollResource setUploadType(java.lang.String uploadType) { - return (EnrollResource) super.setUploadType(uploadType); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public EnrollResource setUploadProtocol(java.lang.String uploadProtocol) { - return (EnrollResource) super.setUploadProtocol(uploadProtocol); - } + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * Required. Organization, folder, or project to enroll in Audit Manager, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String scope; + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } - /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following - formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * - `organizations/{organization}/locations/{location}` - */ - public java.lang.String getScope() { - return scope; - } + /** 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 " + + "^folders/[^/]+/locations/[^/]+/operationIds/[^/]+$"); + } + this.name = name; + return this; + } - /** - * Required. Organization, folder, or project to enroll in Audit Manager, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - public EnrollResource setScope(java.lang.String scope) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } - this.scope = scope; - return this; } - @Override - public EnrollResource set(String parameterName, Object value) { - return (EnrollResource) super.set(parameterName, value); - } } - /** - * An accessor for creating requests from the AuditReports collection. + * An accessor for creating requests from the ResourceEnrollmentStatuses collection. * *

The typical use is:

*
        *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.AuditReports.List request = auditmanager.auditReports().list(parameters ...)}
+       *   {@code CloudAuditManager.ResourceEnrollmentStatuses.List request = auditmanager.resourceEnrollmentStatuses().list(parameters ...)}
        * 
* * @return the resource collection */ - public AuditReports auditReports() { - return new AuditReports(); + public ResourceEnrollmentStatuses resourceEnrollmentStatuses() { + return new ResourceEnrollmentStatuses(); } /** - * The "auditReports" collection of methods. + * The "resourceEnrollmentStatuses" collection of methods. */ - public class AuditReports { - - /** - * Registers audit report generation requests. This method returns the operation identifier that you - * can use to track the report generation progress. - * - * Create a request for the method "auditReports.generate". - * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Generate#execute()} method to invoke the remote operation. - * - * @param scope Required. Organization, folder, or project that the audit applies to, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest} - * @return the request - */ - public Generate generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest content) throws java.io.IOException { - Generate result = new Generate(scope, content); - initialize(result); - return result; - } - - public class Generate extends CloudAuditManagerRequest { - - private static final String REST_PATH = "v1/{+scope}/auditReports:generate"; - - private final java.util.regex.Pattern SCOPE_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); - - /** - * Registers audit report generation requests. This method returns the operation identifier that - * you can use to track the report generation progress. - * - * Create a request for the method "auditReports.generate". - * - * This request holds the parameters needed by the the auditmanager server. After setting any - * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. - *

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

- * - * @param scope Required. Organization, folder, or project that the audit applies to, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest} - * @since 1.13 - */ - protected Generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest content) { - super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Operation.class); - this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Generate set$Xgafv(java.lang.String $Xgafv) { - return (Generate) super.set$Xgafv($Xgafv); - } - - @Override - public Generate setAccessToken(java.lang.String accessToken) { - return (Generate) super.setAccessToken(accessToken); - } - - @Override - public Generate setAlt(java.lang.String alt) { - return (Generate) super.setAlt(alt); - } - - @Override - public Generate setCallback(java.lang.String callback) { - return (Generate) super.setCallback(callback); - } - - @Override - public Generate setFields(java.lang.String fields) { - return (Generate) super.setFields(fields); - } - - @Override - public Generate setKey(java.lang.String key) { - return (Generate) super.setKey(key); - } - - @Override - public Generate setOauthToken(java.lang.String oauthToken) { - return (Generate) super.setOauthToken(oauthToken); - } - - @Override - public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Generate) super.setPrettyPrint(prettyPrint); - } - - @Override - public Generate setQuotaUser(java.lang.String quotaUser) { - return (Generate) super.setQuotaUser(quotaUser); - } - - @Override - public Generate setUploadType(java.lang.String uploadType) { - return (Generate) super.setUploadType(uploadType); - } - - @Override - public Generate setUploadProtocol(java.lang.String uploadProtocol) { - return (Generate) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. Organization, folder, or project that the audit applies to, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String scope; - - /** Required. Organization, folder, or project that the audit applies to, in one of the following - formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * - `organizations/{organization}/locations/{location}` - */ - public java.lang.String getScope() { - return scope; - } - - /** - * Required. Organization, folder, or project that the audit applies to, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - public Generate setScope(java.lang.String scope) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); - } - this.scope = scope; - return this; - } + public class ResourceEnrollmentStatuses { - @Override - public Generate set(String parameterName, Object value) { - return (Generate) super.set(parameterName, value); - } - } /** - * Gets the full metadata and findings for an audit report. + * Gets a resource and its enrollment status. * - * Create a request for the method "auditReports.get". + * Create a request for the method "resourceEnrollmentStatuses.get". * * This request holds the parameters needed by the auditmanager server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. Name of the audit report, in one of the following formats: * - * `projects/{project}/locations/{location}/auditReports/{audit_report}` * - * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * @param name Required. Name of the resource enrollment status, in one of the following formats: * + * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_sta + * tus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enro + * llment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentSta + * tuses/{resource_enrollment_status}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -2384,36 +2193,37 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudAuditManagerRequest { + public class Get extends CloudAuditManagerRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/auditReports/[^/]+$"); + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); /** - * Gets the full metadata and findings for an audit report. + * Gets a resource and its enrollment status. * - * Create a request for the method "auditReports.get". + * Create a request for the method "resourceEnrollmentStatuses.get". * * This request holds the parameters needed by the the auditmanager 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. Name of the audit report, in one of the following formats: * - * `projects/{project}/locations/{location}/auditReports/{audit_report}` * - * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * @param name Required. Name of the resource enrollment status, in one of the following formats: * + * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_sta + * tus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enro + * llment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentSta + * tuses/{resource_enrollment_status}` * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.AuditReport.class); + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ResourceEnrollmentStatus.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/[^/]+/auditReports/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); } } @@ -2483,34 +2293,37 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Name of the audit report, in one of the following formats: * - * `projects/{project}/locations/{location}/auditReports/{audit_report}` * - * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * Required. Name of the resource enrollment status, in one of the following formats: * `f + * olders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_st + * atus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_ + * enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnroll + * mentStatuses/{resource_enrollment_status}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Name of the audit report, in one of the following formats: * - `projects/{project}/locations/{location}/auditReports/{audit_report}` * - `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + /** Required. Name of the resource enrollment status, in one of the following formats: * + `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * + `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * + `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_ + status}` */ public java.lang.String getName() { return name; } /** - * Required. Name of the audit report, in one of the following formats: * - * `projects/{project}/locations/{location}/auditReports/{audit_report}` * - * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * Required. Name of the resource enrollment status, in one of the following formats: * `f + * olders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_st + * atus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_ + * enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnroll + * mentStatuses/{resource_enrollment_status}` */ 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/[^/]+/auditReports/[^/]+$"); + "^folders/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); } this.name = name; return this; @@ -2522,17 +2335,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists the audit reports for the organization, folder, or project that you specify as the parent - * scope. + * Lists all the folders and projects in an organization or folder, along with their enrollments. * - * Create a request for the method "auditReports.list". + * Create a request for the method "resourceEnrollmentStatuses.list". * * This request holds the parameters needed by the auditmanager server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. Parent organization, folder, or project to list reports for, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * + * @param parent Required. Parent organization or folder to list enrollment statuses for, in one of the following + * formats: * `folders/{folder}/locations/{location}` * * `organizations/{organization}/locations/{location}` * @return the request */ @@ -2542,37 +2353,35 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends CloudAuditManagerRequest { + public class List extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+parent}/auditReports"; + private static final String REST_PATH = "v1/{+parent}/resourceEnrollmentStatuses"; private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+$"); /** - * Lists the audit reports for the organization, folder, or project that you specify as the parent - * scope. + * Lists all the folders and projects in an organization or folder, along with their enrollments. * - * Create a request for the method "auditReports.list". + * Create a request for the method "resourceEnrollmentStatuses.list". * * This request holds the parameters needed by the the auditmanager 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 organization, folder, or project to list reports for, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * + * @param parent Required. Parent organization or folder to list enrollment statuses for, in one of the following + * formats: * `folders/{folder}/locations/{location}` * * `organizations/{organization}/locations/{location}` * @since 1.13 */ protected List(java.lang.String parent) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListAuditReportsResponse.class); + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListResourceEnrollmentStatusesResponse.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/[^/]+$"); + "^folders/[^/]+/locations/[^/]+$"); } } @@ -2642,16 +2451,15 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Parent organization, folder, or project to list reports for, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` + * Required. Parent organization or folder to list enrollment statuses for, in one of the + * following formats: * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. Parent organization, folder, or project to list reports for, in one of the following - formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + /** Required. Parent organization or folder to list enrollment statuses for, in one of the following + formats: * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */ public java.lang.String getParent() { @@ -2659,16 +2467,15 @@ public java.lang.String getParent() { } /** - * Required. Parent organization, folder, or project to list reports for, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * + * Required. Parent organization or folder to list enrollment statuses for, in one of the + * following formats: * `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 " + - "^organizations/[^/]+/locations/[^/]+$"); + "^folders/[^/]+/locations/[^/]+$"); } this.parent = parent; return this; @@ -2730,366 +2537,2576 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the AuditScopeReports collection. + * An accessor for creating requests from the Standards collection. * *

The typical use is:

*
        *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.AuditScopeReports.List request = auditmanager.auditScopeReports().list(parameters ...)}
+       *   {@code CloudAuditManager.Standards.List request = auditmanager.standards().list(parameters ...)}
        * 
* * @return the resource collection */ - public AuditScopeReports auditScopeReports() { - return new AuditScopeReports(); + public Standards standards() { + return new Standards(); } /** - * The "auditScopeReports" collection of methods. + * The "standards" collection of methods. */ - public class AuditScopeReports { + public class Standards { /** - * Generates an audit scope report for the given standard. The report includes the following: * The - * technical attributes and constraints that Audit Manager uses to verify your compliance with a - * framework. * A list of Google Cloud services and resources that are within the scope of the - * framework. - * - * Create a request for the method "auditScopeReports.generate". + * An accessor for creating requests from the Controls collection. * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Generate#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+         *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+         *   {@code CloudAuditManager.Controls.List request = auditmanager.controls().list(parameters ...)}
+         * 
* - * @param scope Required. Project or folder that the audit scope report is generated for, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest} - * @return the request + * @return the resource collection */ - public Generate generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest content) throws java.io.IOException { - Generate result = new Generate(scope, content); - initialize(result); - return result; + public Controls controls() { + return new Controls(); } - public class Generate extends CloudAuditManagerRequest { - - private static final String REST_PATH = "v1/{+scope}/auditScopeReports:generate"; - - private final java.util.regex.Pattern SCOPE_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + /** + * The "controls" collection of methods. + */ + public class Controls { /** - * Generates an audit scope report for the given standard. The report includes the following: * - * The technical attributes and constraints that Audit Manager uses to verify your compliance with - * a framework. * A list of Google Cloud services and resources that are within the scope of the - * framework. + * Lists the controls that you must implement to become compliant to a regulatory standard. * - * Create a request for the method "auditScopeReports.generate". + * Create a request for the method "controls.list". * - * This request holds the parameters needed by the the auditmanager server. After setting any - * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. - *

{@link - * Generate#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 auditmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param scope Required. Project or folder that the audit scope report is generated for, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest} - * @since 1.13 + * @param parent Required. Standard to list controls for, in one of the following formats: * + * `projects/{project}/locations/{location}/standards/{standard}` * + * `folders/{folder}/locations/{location}/standards/{standard}` * + * `organizations/{organization}/locations/{location}/standards/{standard}` + * @return the request */ - protected Generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest content) { - super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditScopeReport.class); - this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); - } + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public Generate set$Xgafv(java.lang.String $Xgafv) { - return (Generate) super.set$Xgafv($Xgafv); - } + public class List extends CloudAuditManagerRequest { - @Override - public Generate setAccessToken(java.lang.String accessToken) { - return (Generate) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+parent}/controls"; - @Override - public Generate setAlt(java.lang.String alt) { - return (Generate) super.setAlt(alt); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^folders/[^/]+/locations/[^/]+/standards/[^/]+$"); - @Override - public Generate setCallback(java.lang.String callback) { - return (Generate) super.setCallback(callback); - } + /** + * Lists the controls that you must implement to become compliant to a regulatory standard. + * + * Create a request for the method "controls.list". + * + * This request holds the parameters needed by the the auditmanager 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. Standard to list controls for, in one of the following formats: * + * `projects/{project}/locations/{location}/standards/{standard}` * + * `folders/{folder}/locations/{location}/standards/{standard}` * + * `organizations/{organization}/locations/{location}/standards/{standard}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListControlsResponse.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/[^/]+/standards/[^/]+$"); + } + } - @Override - public Generate setFields(java.lang.String fields) { - return (Generate) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Generate setKey(java.lang.String key) { - return (Generate) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Generate setOauthToken(java.lang.String oauthToken) { - return (Generate) super.setOauthToken(oauthToken); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Generate) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Generate setQuotaUser(java.lang.String quotaUser) { - return (Generate) super.setQuotaUser(quotaUser); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Generate setUploadType(java.lang.String uploadType) { - return (Generate) super.setUploadType(uploadType); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Generate setUploadProtocol(java.lang.String uploadProtocol) { - return (Generate) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** - * Required. Project or folder that the audit scope report is generated for, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String scope; + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** Required. Project or folder that the audit scope report is generated for, in one of the following - formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * - `organizations/{organization}/locations/{location}` - */ - public java.lang.String getScope() { - return scope; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * Required. Project or folder that the audit scope report is generated for, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - public Generate setScope(java.lang.String scope) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } - this.scope = scope; - return this; - } - @Override - public Generate set(String parameterName, Object value) { - return (Generate) super.set(parameterName, value); - } - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - } - /** - * An accessor for creating requests from the OperationDetails collection. - * - *

The typical use is:

- *
+            @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. Standard to list controls for, in one of the following formats: *
+             * `projects/{project}/locations/{location}/standards/{standard}` *
+             * `folders/{folder}/locations/{location}/standards/{standard}` *
+             * `organizations/{organization}/locations/{location}/standards/{standard}`
+             */
+            @com.google.api.client.util.Key
+            private java.lang.String parent;
+
+            /** Required. Standard to list controls for, in one of the following formats: *
+           `projects/{project}/locations/{location}/standards/{standard}` *
+           `folders/{folder}/locations/{location}/standards/{standard}` *
+           `organizations/{organization}/locations/{location}/standards/{standard}`
+             */
+            public java.lang.String getParent() {
+              return parent;
+            }
+
+            /**
+             * Required. Standard to list controls for, in one of the following formats: *
+             * `projects/{project}/locations/{location}/standards/{standard}` *
+             * `folders/{folder}/locations/{location}/standards/{standard}` *
+             * `organizations/{organization}/locations/{location}/standards/{standard}`
+             */
+            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/[^/]+/standards/[^/]+$");
+              }
+              this.parent = parent;
+              return this;
+            }
+
+            /**
+             * Optional. Maximum number of items to return in a single page. The service might
+             * return fewer items than this value. If unspecified, the service picks an appropriate
+             * default. The maximum value is 100; values above 100 are reduced to 100.
+             */
+            @com.google.api.client.util.Key
+            private java.lang.Integer pageSize;
+
+            /** Optional. Maximum number of items to return in a single page. The service might return fewer items
+           than this value. If unspecified, the service picks an appropriate default. The maximum value is
+           100; values above 100 are reduced to 100.
+             */
+            public java.lang.Integer getPageSize() {
+              return pageSize;
+            }
+
+            /**
+             * Optional. Maximum number of items to return in a single page. The service might
+             * return fewer items than this value. If unspecified, the service picks an appropriate
+             * default. The maximum value is 100; values above 100 are reduced to 100.
+             */
+            public List setPageSize(java.lang.Integer pageSize) {
+              this.pageSize = pageSize;
+              return this;
+            }
+
+            /**
+             * Optional. A page token, received from a previous call, to retrieve the next page of
+             * results.
+             */
+            @com.google.api.client.util.Key
+            private java.lang.String pageToken;
+
+            /** Optional. A page token, received from a previous call, to retrieve the next page of results.
+             */
+            public java.lang.String getPageToken() {
+              return pageToken;
+            }
+
+            /**
+             * Optional. A page token, received from a previous call, to retrieve the next page of
+             * results.
+             */
+            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 Organizations collection.
+   *
+   * 

The typical use is:

+ *
+   *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+   *   {@code CloudAuditManager.Organizations.List request = auditmanager.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 CloudAuditManager auditmanager = new CloudAuditManager(...);}
+     *   {@code CloudAuditManager.Locations.List request = auditmanager.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Adds your project, folder, or organization to Audit Manager. This method creates the Audit + * Manager service agent in your workload and grants required permissions to the service agent. If + * you make this request on a workload that's already enrolled, then this method overrides the + * existing set of destinations. + * + * Create a request for the method "locations.enrollResource". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link EnrollResource#execute()} method to invoke the remote operation. + * + * @param scope Required. Organization, folder, or project to enroll in Audit Manager, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.EnrollResourceRequest} + * @return the request + */ + public EnrollResource enrollResource(java.lang.String scope, com.google.api.services.auditmanager.v1.model.EnrollResourceRequest content) throws java.io.IOException { + EnrollResource result = new EnrollResource(scope, content); + initialize(result); + return result; + } + + public class EnrollResource extends CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+scope}:enrollResource"; + + private final java.util.regex.Pattern SCOPE_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Adds your project, folder, or organization to Audit Manager. This method creates the Audit + * Manager service agent in your workload and grants required permissions to the service agent. If + * you make this request on a workload that's already enrolled, then this method overrides the + * existing set of destinations. + * + * Create a request for the method "locations.enrollResource". + * + * This request holds the parameters needed by the the auditmanager server. After setting any + * optional parameters, call the {@link EnrollResource#execute()} method to invoke the remote + * operation.

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

+ * + * @param scope Required. Organization, folder, or project to enroll in Audit Manager, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.EnrollResourceRequest} + * @since 1.13 + */ + protected EnrollResource(java.lang.String scope, com.google.api.services.auditmanager.v1.model.EnrollResourceRequest content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Enrollment.class); + this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public EnrollResource set$Xgafv(java.lang.String $Xgafv) { + return (EnrollResource) super.set$Xgafv($Xgafv); + } + + @Override + public EnrollResource setAccessToken(java.lang.String accessToken) { + return (EnrollResource) super.setAccessToken(accessToken); + } + + @Override + public EnrollResource setAlt(java.lang.String alt) { + return (EnrollResource) super.setAlt(alt); + } + + @Override + public EnrollResource setCallback(java.lang.String callback) { + return (EnrollResource) super.setCallback(callback); + } + + @Override + public EnrollResource setFields(java.lang.String fields) { + return (EnrollResource) super.setFields(fields); + } + + @Override + public EnrollResource setKey(java.lang.String key) { + return (EnrollResource) super.setKey(key); + } + + @Override + public EnrollResource setOauthToken(java.lang.String oauthToken) { + return (EnrollResource) super.setOauthToken(oauthToken); + } + + @Override + public EnrollResource setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnrollResource) super.setPrettyPrint(prettyPrint); + } + + @Override + public EnrollResource setQuotaUser(java.lang.String quotaUser) { + return (EnrollResource) super.setQuotaUser(quotaUser); + } + + @Override + public EnrollResource setUploadType(java.lang.String uploadType) { + return (EnrollResource) super.setUploadType(uploadType); + } + + @Override + public EnrollResource setUploadProtocol(java.lang.String uploadProtocol) { + return (EnrollResource) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Organization, folder, or project to enroll in Audit Manager, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String scope; + + /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following + formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + `organizations/{organization}/locations/{location}` + */ + public java.lang.String getScope() { + return scope; + } + + /** + * Required. Organization, folder, or project to enroll in Audit Manager, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + public EnrollResource setScope(java.lang.String scope) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.scope = scope; + return this; + } + + @Override + public EnrollResource set(String parameterName, Object value) { + return (EnrollResource) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the AuditReports collection. + * + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.AuditReports.List request = auditmanager.auditReports().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AuditReports auditReports() { + return new AuditReports(); + } + + /** + * The "auditReports" collection of methods. + */ + public class AuditReports { + + /** + * Registers audit report generation requests. This method returns the operation identifier that you + * can use to track the report generation progress. + * + * Create a request for the method "auditReports.generate". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * + * @param scope Required. Organization, folder, or project that the audit applies to, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest} + * @return the request + */ + public Generate generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest content) throws java.io.IOException { + Generate result = new Generate(scope, content); + initialize(result); + return result; + } + + public class Generate extends CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+scope}/auditReports:generate"; + + private final java.util.regex.Pattern SCOPE_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Registers audit report generation requests. This method returns the operation identifier that + * you can use to track the report generation progress. + * + * Create a request for the method "auditReports.generate". + * + * This request holds the parameters needed by the the auditmanager server. After setting any + * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. + *

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

+ * + * @param scope Required. Organization, folder, or project that the audit applies to, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest} + * @since 1.13 + */ + protected Generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Operation.class); + this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Generate set$Xgafv(java.lang.String $Xgafv) { + return (Generate) super.set$Xgafv($Xgafv); + } + + @Override + public Generate setAccessToken(java.lang.String accessToken) { + return (Generate) super.setAccessToken(accessToken); + } + + @Override + public Generate setAlt(java.lang.String alt) { + return (Generate) super.setAlt(alt); + } + + @Override + public Generate setCallback(java.lang.String callback) { + return (Generate) super.setCallback(callback); + } + + @Override + public Generate setFields(java.lang.String fields) { + return (Generate) super.setFields(fields); + } + + @Override + public Generate setKey(java.lang.String key) { + return (Generate) super.setKey(key); + } + + @Override + public Generate setOauthToken(java.lang.String oauthToken) { + return (Generate) super.setOauthToken(oauthToken); + } + + @Override + public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Generate setQuotaUser(java.lang.String quotaUser) { + return (Generate) super.setQuotaUser(quotaUser); + } + + @Override + public Generate setUploadType(java.lang.String uploadType) { + return (Generate) super.setUploadType(uploadType); + } + + @Override + public Generate setUploadProtocol(java.lang.String uploadProtocol) { + return (Generate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Organization, folder, or project that the audit applies to, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String scope; + + /** Required. Organization, folder, or project that the audit applies to, in one of the following + formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + `organizations/{organization}/locations/{location}` + */ + public java.lang.String getScope() { + return scope; + } + + /** + * Required. Organization, folder, or project that the audit applies to, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + public Generate setScope(java.lang.String scope) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.scope = scope; + return this; + } + + @Override + public Generate set(String parameterName, Object value) { + return (Generate) super.set(parameterName, value); + } + } + /** + * Gets the full metadata and findings for an audit report. + * + * Create a request for the method "auditReports.get". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the audit report, in one of the following formats: * + * `projects/{project}/locations/{location}/auditReports/{audit_report}` * + * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * @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 CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/auditReports/[^/]+$"); + + /** + * Gets the full metadata and findings for an audit report. + * + * Create a request for the method "auditReports.get". + * + * This request holds the parameters needed by the the auditmanager 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. Name of the audit report, in one of the following formats: * + * `projects/{project}/locations/{location}/auditReports/{audit_report}` * + * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.AuditReport.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/[^/]+/auditReports/[^/]+$"); + } + } + + @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. Name of the audit report, in one of the following formats: * + * `projects/{project}/locations/{location}/auditReports/{audit_report}` * + * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the audit report, in one of the following formats: * + `projects/{project}/locations/{location}/auditReports/{audit_report}` * + `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the audit report, in one of the following formats: * + * `projects/{project}/locations/{location}/auditReports/{audit_report}` * + * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + */ + 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/[^/]+/auditReports/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists the audit reports for the organization, folder, or project that you specify as the parent + * scope. + * + * Create a request for the method "auditReports.list". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent organization, folder, or project to list reports for, in one of the following + * 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 CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+parent}/auditReports"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Lists the audit reports for the organization, folder, or project that you specify as the parent + * scope. + * + * Create a request for the method "auditReports.list". + * + * This request holds the parameters needed by the the auditmanager 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 organization, folder, or project to list reports for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListAuditReportsResponse.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 organization, folder, or project to list reports for, in one of the + * following 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. Parent organization, folder, or project to list reports for, in one of the following + formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + `organizations/{organization}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent organization, folder, or project to list reports for, in one of the + * following 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 " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of items to return in a single page. The service might return fewer items + than this value. If unspecified, the service picks an appropriate default. The maximum value is + 100; values above 100 are reduced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + 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 AuditSchedules collection. + * + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.AuditSchedules.List request = auditmanager.auditSchedules().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AuditSchedules auditSchedules() { + return new AuditSchedules(); + } + + /** + * The "auditSchedules" collection of methods. + */ + public class AuditSchedules { + + /** + * Creates a new audit schedule in a given project and location. + * + * Create a request for the method "auditSchedules.create". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. Project or folder that this audit schedule is for, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.auditmanager.v1.model.AuditSchedule content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+parent}/auditSchedules"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Creates a new audit schedule in a given project and location. + * + * Create a request for the method "auditSchedules.create". + * + * This request holds the parameters needed by the the auditmanager 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. Project or folder that this audit schedule is for, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.auditmanager.v1.model.AuditSchedule content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditSchedule.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. Project or folder that this audit schedule is for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. Project or folder that this audit schedule is for, in one of the following formats: * + `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Project or folder that this audit schedule is for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` + */ + 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; + } + + /** + * Required. ID to use for the audit schedule, which becomes the final component of the + * audit schedule's resource name. + */ + @com.google.api.client.util.Key + private java.lang.String auditScheduleId; + + /** Required. ID to use for the audit schedule, which becomes the final component of the audit + schedule's resource name. + */ + public java.lang.String getAuditScheduleId() { + return auditScheduleId; + } + + /** + * Required. ID to use for the audit schedule, which becomes the final component of the + * audit schedule's resource name. + */ + public Create setAuditScheduleId(java.lang.String auditScheduleId) { + this.auditScheduleId = auditScheduleId; + return this; + } + + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If `true`, only validates the request and does not create the audit schedule. This + executes standard request validation (such as schema, framework existence, scope, and IAM checks) + and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code + (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without + creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form + and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test + your scripts, permissions, and parameters safely without consuming resource quotas. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + public Create setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets details of a single audit schedule. + * + * Create a request for the method "auditSchedules.get". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` + * @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 CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); + + /** + * Gets details of a single audit schedule. + * + * Create a request for the method "auditSchedules.get". + * + * This request holds the parameters needed by the the auditmanager 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. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.AuditSchedule.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/[^/]+/auditSchedules/[^/]+$"); + } + } + + @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. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the audit schedule to retrieve, in one of the following formats: * + `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` + */ + 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/[^/]+/auditSchedules/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists audit schedules in a given project and location. + * + * Create a request for the method "auditSchedules.list". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Parent for the audit schedule, in one of the following 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 CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+parent}/auditSchedules"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Lists audit schedules in a given project and location. + * + * Create a request for the method "auditSchedules.list". + * + * This request holds the parameters needed by the the auditmanager 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 for the audit schedule, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListAuditSchedulesResponse.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 for the audit schedule, in one of the following 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. Parent for the audit schedule, in one of the following formats: * + `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + `organizations/{organization}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. Parent for the audit schedule, in one of the following 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 " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of items to return in a single page. The service might return fewer items + than this value. If unspecified, the service picks an appropriate default. The maximum value is + 100; values above 100 are reduced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + 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 audit schedule. + * + * Create a request for the method "auditSchedules.patch". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.auditmanager.v1.model.AuditSchedule content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); + + /** + * Updates an existing audit schedule. + * + * Create a request for the method "auditSchedules.patch". + * + * This request holds the parameters needed by the the auditmanager 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 Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.auditmanager.v1.model.AuditSchedule content) { + super(CloudAuditManager.this, "PATCH", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditSchedule.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/[^/]+/auditSchedules/[^/]+$"); + } + } + + @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); + } + + /** + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Unique identifier for the audit schedule. Format: + projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + */ + 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/[^/]+/auditSchedules/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. List of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. List of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. List of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** + * Optional. If `true`, only validates the request and does not update the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If `true`, only validates the request and does not update the audit schedule. This + executes standard request validation (such as schema, framework existence, scope, and IAM checks) + and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code + (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without + creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form + and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test + your scripts, permissions, and parameters safely without consuming resource quotas. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If `true`, only validates the request and does not update the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + public Patch setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the AuditScopeReports collection. + * + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.AuditScopeReports.List request = auditmanager.auditScopeReports().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AuditScopeReports auditScopeReports() { + return new AuditScopeReports(); + } + + /** + * The "auditScopeReports" collection of methods. + */ + public class AuditScopeReports { + + /** + * Generates an audit scope report for the given standard. The report includes the following: * The + * technical attributes and constraints that Audit Manager uses to verify your compliance with a + * framework. * A list of Google Cloud services and resources that are within the scope of the + * framework. + * + * Create a request for the method "auditScopeReports.generate". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * + * @param scope Required. Project or folder that the audit scope report is generated for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest} + * @return the request + */ + public Generate generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest content) throws java.io.IOException { + Generate result = new Generate(scope, content); + initialize(result); + return result; + } + + public class Generate extends CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+scope}/auditScopeReports:generate"; + + private final java.util.regex.Pattern SCOPE_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Generates an audit scope report for the given standard. The report includes the following: * + * The technical attributes and constraints that Audit Manager uses to verify your compliance with + * a framework. * A list of Google Cloud services and resources that are within the scope of the + * framework. + * + * Create a request for the method "auditScopeReports.generate". + * + * This request holds the parameters needed by the the auditmanager server. After setting any + * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. + *

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

+ * + * @param scope Required. Project or folder that the audit scope report is generated for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest} + * @since 1.13 + */ + protected Generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditScopeReportRequest content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditScopeReport.class); + this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Generate set$Xgafv(java.lang.String $Xgafv) { + return (Generate) super.set$Xgafv($Xgafv); + } + + @Override + public Generate setAccessToken(java.lang.String accessToken) { + return (Generate) super.setAccessToken(accessToken); + } + + @Override + public Generate setAlt(java.lang.String alt) { + return (Generate) super.setAlt(alt); + } + + @Override + public Generate setCallback(java.lang.String callback) { + return (Generate) super.setCallback(callback); + } + + @Override + public Generate setFields(java.lang.String fields) { + return (Generate) super.setFields(fields); + } + + @Override + public Generate setKey(java.lang.String key) { + return (Generate) super.setKey(key); + } + + @Override + public Generate setOauthToken(java.lang.String oauthToken) { + return (Generate) super.setOauthToken(oauthToken); + } + + @Override + public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generate) super.setPrettyPrint(prettyPrint); + } + + @Override + public Generate setQuotaUser(java.lang.String quotaUser) { + return (Generate) super.setQuotaUser(quotaUser); + } + + @Override + public Generate setUploadType(java.lang.String uploadType) { + return (Generate) super.setUploadType(uploadType); + } + + @Override + public Generate setUploadProtocol(java.lang.String uploadProtocol) { + return (Generate) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Project or folder that the audit scope report is generated for, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String scope; + + /** Required. Project or folder that the audit scope report is generated for, in one of the following + formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + `organizations/{organization}/locations/{location}` + */ + public java.lang.String getScope() { + return scope; + } + + /** + * Required. Project or folder that the audit scope report is generated for, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + public Generate setScope(java.lang.String scope) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.scope = scope; + return this; + } + + @Override + public Generate set(String parameterName, Object value) { + return (Generate) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the OperationDetails collection. + * + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.OperationDetails.List request = auditmanager.operationDetails().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public OperationDetails operationDetails() { + return new OperationDetails(); + } + + /** + * The "operationDetails" collection of methods. + */ + public class OperationDetails { + + /** + * Gets details about the long-running operation to generate audit reports. + * + * Create a request for the method "operationDetails.get". + * + * This request holds the parameters needed by the auditmanager 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 CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operationDetails/[^/]+$"); + + /** + * Gets details about the long-running operation to generate audit reports. + * + * Create a request for the method "operationDetails.get". + * + * This request holds the parameters needed by the the auditmanager 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Operation.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/[^/]+/operationDetails/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return 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/[^/]+/operationDetails/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the OperationIds collection. + * + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.OperationIds.List request = auditmanager.operationIds().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public OperationIds operationIds() { + return new OperationIds(); + } + + /** + * The "operationIds" collection of methods. + */ + public class OperationIds { + + /** + * Gets details about the long-running operation to generate audit reports. + * + * Create a request for the method "operationIds.get". + * + * This request holds the parameters needed by the auditmanager 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 CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operationIds/[^/]+$"); + + /** + * Gets details about the long-running operation to generate audit reports. + * + * Create a request for the method "operationIds.get". + * + * This request holds the parameters needed by the the auditmanager 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Operation.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/[^/]+/operationIds/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return 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/[^/]+/operationIds/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
        *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.OperationDetails.List request = auditmanager.operationDetails().list(parameters ...)}
+       *   {@code CloudAuditManager.Operations.List request = auditmanager.operations().list(parameters ...)}
        * 
* * @return the resource collection */ - public OperationDetails operationDetails() { - return new OperationDetails(); + public Operations operations() { + return new Operations(); } /** - * The "operationDetails" collection of methods. + * The "operations" collection of methods. */ - public class OperationDetails { + public class Operations { /** - * Gets details about the long-running operation to generate audit reports. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "operationDetails.get". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource. + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.auditmanager.v1.model.CancelOperationRequest} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Cancel cancel(java.lang.String name, com.google.api.services.auditmanager.v1.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); initialize(result); return result; } - public class Get extends CloudAuditManagerRequest { + public class Cancel extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operationDetails/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * Gets details about the long-running operation to generate audit reports. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. * - * Create a request for the method "operationDetails.get". + * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the the auditmanager 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 Cancel#execute()} method to invoke the remote operation. + *

{@link + * Cancel#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 The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.auditmanager.v1.model.CancelOperationRequest} * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Operation.class); + protected Cancel(java.lang.String name, com.google.api.services.auditmanager.v1.model.CancelOperationRequest content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Empty.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/[^/]+/operationDetails/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the auditmanager 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudAuditManager.this, "DELETE", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Empty.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/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { + /** The name of the operation resource to be deleted. */ + 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/[^/]+/operationDetails/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the OperationIds collection. - * - *

The typical use is:

- *
-       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.OperationIds.List request = auditmanager.operationIds().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public OperationIds operationIds() { - return new OperationIds(); - } - - /** - * The "operationIds" collection of methods. - */ - public class OperationIds { - /** - * Gets details about the long-running operation to generate audit reports. + * 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 "operationIds.get". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the auditmanager server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. @@ -3108,12 +5125,13 @@ public class Get extends CloudAuditManagerRequest @@ -3129,7 +5147,7 @@ protected Get(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/[^/]+/operationIds/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @@ -3210,171 +5228,6 @@ public java.lang.String getName() { /** 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/[^/]+/operationIds/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - - } - /** - * An accessor for creating requests from the Operations collection. - * - *

The typical use is:

- *
-       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.Operations.List request = auditmanager.operations().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Operations operations() { - return new Operations(); - } - - /** - * The "operations" collection of methods. - */ - public class Operations { - - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be cancelled. - * @param content the {@link com.google.api.services.auditmanager.v1.model.CancelOperationRequest} - * @return the request - */ - public Cancel cancel(java.lang.String name, com.google.api.services.auditmanager.v1.model.CancelOperationRequest content) throws java.io.IOException { - Cancel result = new Cancel(name, content); - initialize(result); - return result; - } - - public class Cancel extends CloudAuditManagerRequest { - - private static final String REST_PATH = "v1/{+name}:cancel"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); - - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the the auditmanager server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - *

{@link - * Cancel#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 to be cancelled. - * @param content the {@link com.google.api.services.auditmanager.v1.model.CancelOperationRequest} - * @since 1.13 - */ - protected Cancel(java.lang.String name, com.google.api.services.auditmanager.v1.model.CancelOperationRequest content) { - super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Empty.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/[^/]+$"); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be cancelled. */ - public Cancel 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 " + @@ -3385,153 +5238,268 @@ public Cancel setName(java.lang.String name) { } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * 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.delete". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be deleted. + * @param name The name of the operation's parent resource. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class Delete extends CloudAuditManagerRequest { + public class List extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+name}/operations"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * 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.delete". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the the auditmanager 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 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 to be deleted. + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected Delete(java.lang.String name) { - super(CloudAuditManager.this, "DELETE", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Empty.class); + protected List(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListOperationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } } @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** The name of the operation resource to be deleted. */ + @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; - /** The name of the operation resource to be deleted. + /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } - /** The name of the operation resource to be deleted. */ - public Delete 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/[^/]+/operations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+$"); } this.name = name; return this; } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the ResourceEnrollmentStatuses collection. + * + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.ResourceEnrollmentStatuses.List request = auditmanager.resourceEnrollmentStatuses().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public ResourceEnrollmentStatuses resourceEnrollmentStatuses() { + return new ResourceEnrollmentStatuses(); + } + + /** + * The "resourceEnrollmentStatuses" collection of methods. + */ + public class ResourceEnrollmentStatuses { + /** - * 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. + * Gets a resource and its enrollment status. * - * Create a request for the method "operations.get". + * Create a request for the method "resourceEnrollmentStatuses.get". * * This request holds the parameters needed by the auditmanager 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. + * @param name Required. Name of the resource enrollment status, in one of the following formats: * + * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_sta + * tus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enro + * llment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentSta + * tuses/{resource_enrollment_status}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -3540,34 +5508,37 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudAuditManagerRequest { + public class Get extends CloudAuditManagerRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); /** - * 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. + * Gets a resource and its enrollment status. * - * Create a request for the method "operations.get". + * Create a request for the method "resourceEnrollmentStatuses.get". * * This request holds the parameters needed by the the auditmanager 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 The name of the operation resource. + * @param name Required. Name of the resource enrollment status, in one of the following formats: * + * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_sta + * tus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enro + * llment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentSta + * tuses/{resource_enrollment_status}` * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Operation.class); + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ResourceEnrollmentStatus.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); } } @@ -3636,22 +5607,38 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation resource. */ + /** + * Required. Name of the resource enrollment status, in one of the following formats: * `f + * olders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_st + * atus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_ + * enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnroll + * mentStatuses/{resource_enrollment_status}` + */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the operation resource. + /** Required. Name of the resource enrollment status, in one of the following formats: * + `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * + `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * + `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_ + status}` */ public java.lang.String getName() { return name; } - /** The name of the operation resource. */ + /** + * Required. Name of the resource enrollment status, in one of the following formats: * `f + * olders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_st + * atus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_ + * enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnroll + * mentStatuses/{resource_enrollment_status}` + */ 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/[^/]+/operations/[^/]+$"); + "^organizations/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); } this.name = name; return this; @@ -3663,50 +5650,52 @@ public Get set(String parameterName, Object value) { } } /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists all the folders and projects in an organization or folder, along with their enrollments. * - * Create a request for the method "operations.list". + * Create a request for the method "resourceEnrollmentStatuses.list". * * This request holds the parameters needed by the auditmanager server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The name of the operation's parent resource. + * @param parent Required. Parent organization or folder to list enrollment statuses for, in one of the following + * formats: * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class List extends CloudAuditManagerRequest { + public class List extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+name}/operations"; + private static final String REST_PATH = "v1/{+parent}/resourceEnrollmentStatuses"; - private final java.util.regex.Pattern NAME_PATTERN = + private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. + * Lists all the folders and projects in an organization or folder, along with their enrollments. * - * Create a request for the method "operations.list". + * Create a request for the method "resourceEnrollmentStatuses.list". * * This request holds the parameters needed by the the auditmanager 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. Parent organization or folder to list enrollment statuses for, in one of the following + * formats: * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` * @since 1.13 */ - protected List(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListResourceEnrollmentStatusesResponse.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 " + + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + "^organizations/[^/]+/locations/[^/]+$"); } } @@ -3776,107 +5765,82 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The name of the operation's parent resource. */ + /** + * Required. Parent organization or folder to list enrollment statuses for, in one of the + * following formats: * `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's parent resource. + /** Required. Parent organization or folder to list enrollment statuses for, in one of the following + formats: * `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's parent resource. */ - public List setName(java.lang.String name) { + /** + * Required. Parent organization or folder to list enrollment statuses for, in one of the + * following formats: * `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 " + + 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; } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. */ - 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. + /** Optional. Maximum number of items to return in a single page. The service might return fewer items + than this value. If unspecified, the service picks an appropriate default. The maximum value is + 100; values above 100 are reduced to 100. */ public java.lang.Integer getPageSize() { return pageSize; } - /** The standard list page size. */ + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } - /** The standard list page token. */ + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** The standard list page token. + /** Optional. A page token, received from a previous call, to retrieve the next page of results. */ 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. + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @@ -3888,1397 +5852,1603 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the ResourceEnrollmentStatuses collection. + * An accessor for creating requests from the Standards collection. * *

The typical use is:

*
        *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.ResourceEnrollmentStatuses.List request = auditmanager.resourceEnrollmentStatuses().list(parameters ...)}
+       *   {@code CloudAuditManager.Standards.List request = auditmanager.standards().list(parameters ...)}
        * 
* * @return the resource collection */ - public ResourceEnrollmentStatuses resourceEnrollmentStatuses() { - return new ResourceEnrollmentStatuses(); + public Standards standards() { + return new Standards(); } /** - * The "resourceEnrollmentStatuses" collection of methods. + * The "standards" collection of methods. */ - public class ResourceEnrollmentStatuses { + public class Standards { /** - * Gets a resource and its enrollment status. - * - * Create a request for the method "resourceEnrollmentStatuses.get". + * An accessor for creating requests from the Controls collection. * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+         *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+         *   {@code CloudAuditManager.Controls.List request = auditmanager.controls().list(parameters ...)}
+         * 
* - * @param name Required. Name of the resource enrollment status, in one of the following formats: * - * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_sta - * tus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enro - * llment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentSta - * tuses/{resource_enrollment_status}` - * @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 Controls controls() { + return new Controls(); } - public class Get extends CloudAuditManagerRequest { + /** + * The "controls" collection of methods. + */ + public class Controls { - private static final String REST_PATH = "v1/{+name}"; + /** + * Lists the controls that you must implement to become compliant to a regulatory standard. + * + * Create a request for the method "controls.list". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. Standard to list controls for, in one of the following formats: * + * `projects/{project}/locations/{location}/standards/{standard}` * + * `folders/{folder}/locations/{location}/standards/{standard}` * + * `organizations/{organization}/locations/{location}/standards/{standard}` + * @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 CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+parent}/controls"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/standards/[^/]+$"); + + /** + * Lists the controls that you must implement to become compliant to a regulatory standard. + * + * Create a request for the method "controls.list". + * + * This request holds the parameters needed by the the auditmanager 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. Standard to list controls for, in one of the following formats: * + * `projects/{project}/locations/{location}/standards/{standard}` * + * `folders/{folder}/locations/{location}/standards/{standard}` * + * `organizations/{organization}/locations/{location}/standards/{standard}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListControlsResponse.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/[^/]+/standards/[^/]+$"); + } + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/resourceEnrollmentStatuses/[^/]+$"); + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** - * Gets a resource and its enrollment status. - * - * Create a request for the method "resourceEnrollmentStatuses.get". - * - * This request holds the parameters needed by the the auditmanager 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. Name of the resource enrollment status, in one of the following formats: * - * `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_sta - * tus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enro - * llment_status}` * `organizations/{organization}/locations/{location}/resourceEnrollmentSta - * tuses/{resource_enrollment_status}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ResourceEnrollmentStatus.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/[^/]+/resourceEnrollmentStatuses/[^/]+$"); + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** + * Required. Standard to list controls for, in one of the following formats: * + * `projects/{project}/locations/{location}/standards/{standard}` * + * `folders/{folder}/locations/{location}/standards/{standard}` * + * `organizations/{organization}/locations/{location}/standards/{standard}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Required. Standard to list controls for, in one of the following formats: * + `projects/{project}/locations/{location}/standards/{standard}` * + `folders/{folder}/locations/{location}/standards/{standard}` * + `organizations/{organization}/locations/{location}/standards/{standard}` + */ + public java.lang.String getParent() { + return parent; + } - /** - * Required. Name of the resource enrollment status, in one of the following formats: * `f - * olders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_st - * atus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_ - * enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnroll - * mentStatuses/{resource_enrollment_status}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Required. Standard to list controls for, in one of the following formats: * + * `projects/{project}/locations/{location}/standards/{standard}` * + * `folders/{folder}/locations/{location}/standards/{standard}` * + * `organizations/{organization}/locations/{location}/standards/{standard}` + */ + 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/[^/]+/standards/[^/]+$"); + } + this.parent = parent; + return this; + } - /** Required. Name of the resource enrollment status, in one of the following formats: * - `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * - `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}` * - `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_ - status}` - */ - public java.lang.String getName() { - return name; - } + /** + * Optional. Maximum number of items to return in a single page. The service might + * return fewer items than this value. If unspecified, the service picks an appropriate + * default. The maximum value is 100; values above 100 are reduced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * Required. Name of the resource enrollment status, in one of the following formats: * `f - * olders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_st - * atus}` * `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_ - * enrollment_status}` * `organizations/{organization}/locations/{location}/resourceEnroll - * mentStatuses/{resource_enrollment_status}` - */ - 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/[^/]+/resourceEnrollmentStatuses/[^/]+$"); + /** Optional. Maximum number of items to return in a single page. The service might return fewer items + than this value. If unspecified, the service picks an appropriate default. The maximum value is + 100; values above 100 are reduced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists all the folders and projects in an organization or folder, along with their enrollments. - * - * Create a request for the method "resourceEnrollmentStatuses.list". - * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. Parent organization or folder to list enrollment statuses for, in one of the following - * formats: * `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 CloudAuditManagerRequest { + /** + * Optional. Maximum number of items to return in a single page. The service might + * return fewer items than this value. If unspecified, the service picks an appropriate + * default. The maximum value is 100; values above 100 are reduced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - private static final String REST_PATH = "v1/{+parent}/resourceEnrollmentStatuses"; + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + /** Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * Lists all the folders and projects in an organization or folder, along with their enrollments. - * - * Create a request for the method "resourceEnrollmentStatuses.list". - * - * This request holds the parameters needed by the the auditmanager 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 organization or folder to list enrollment statuses for, in one of the following - * formats: * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListResourceEnrollmentStatusesResponse.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/[^/]+$"); + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - @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); - } + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+   *   {@code CloudAuditManager.Projects.List request = auditmanager.projects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * The "projects" collection of methods. + */ + public class Projects { - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+     *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+     *   {@code CloudAuditManager.Locations.List request = auditmanager.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** + * The "locations" collection of methods. + */ + public class Locations { - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** + * Adds your project, folder, or organization to Audit Manager. This method creates the Audit + * Manager service agent in your workload and grants required permissions to the service agent. If + * you make this request on a workload that's already enrolled, then this method overrides the + * existing set of destinations. + * + * Create a request for the method "locations.enrollResource". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link EnrollResource#execute()} method to invoke the remote operation. + * + * @param scope Required. Organization, folder, or project to enroll in Audit Manager, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.EnrollResourceRequest} + * @return the request + */ + public EnrollResource enrollResource(java.lang.String scope, com.google.api.services.auditmanager.v1.model.EnrollResourceRequest content) throws java.io.IOException { + EnrollResource result = new EnrollResource(scope, content); + initialize(result); + return result; + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + public class EnrollResource extends CloudAuditManagerRequest { - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + private static final String REST_PATH = "v1/{+scope}:enrollResource"; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + private final java.util.regex.Pattern SCOPE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + /** + * Adds your project, folder, or organization to Audit Manager. This method creates the Audit + * Manager service agent in your workload and grants required permissions to the service agent. If + * you make this request on a workload that's already enrolled, then this method overrides the + * existing set of destinations. + * + * Create a request for the method "locations.enrollResource". + * + * This request holds the parameters needed by the the auditmanager server. After setting any + * optional parameters, call the {@link EnrollResource#execute()} method to invoke the remote + * operation.

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

+ * + * @param scope Required. Organization, folder, or project to enroll in Audit Manager, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.EnrollResourceRequest} + * @since 1.13 + */ + protected EnrollResource(java.lang.String scope, com.google.api.services.auditmanager.v1.model.EnrollResourceRequest content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Enrollment.class); + this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public EnrollResource set$Xgafv(java.lang.String $Xgafv) { + return (EnrollResource) super.set$Xgafv($Xgafv); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public EnrollResource setAccessToken(java.lang.String accessToken) { + return (EnrollResource) super.setAccessToken(accessToken); + } - /** - * Required. Parent organization or folder to list enrollment statuses for, in one of the - * following formats: * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public EnrollResource setAlt(java.lang.String alt) { + return (EnrollResource) super.setAlt(alt); + } - /** Required. Parent organization or folder to list enrollment statuses for, in one of the following - formats: * `folders/{folder}/locations/{location}` * - `organizations/{organization}/locations/{location}` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public EnrollResource setCallback(java.lang.String callback) { + return (EnrollResource) super.setCallback(callback); + } - /** - * Required. Parent organization or folder to list enrollment statuses for, in one of the - * following formats: * `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 " + - "^organizations/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public EnrollResource setFields(java.lang.String fields) { + return (EnrollResource) super.setFields(fields); + } - /** - * Optional. Maximum number of items to return in a single page. The service might return - * fewer items than this value. If unspecified, the service picks an appropriate default. - * The maximum value is 100; values above 100 are reduced to 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public EnrollResource setKey(java.lang.String key) { + return (EnrollResource) super.setKey(key); + } - /** Optional. Maximum number of items to return in a single page. The service might return fewer items - than this value. If unspecified, the service picks an appropriate default. The maximum value is - 100; values above 100 are reduced to 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public EnrollResource setOauthToken(java.lang.String oauthToken) { + return (EnrollResource) super.setOauthToken(oauthToken); + } + + @Override + public EnrollResource setPrettyPrint(java.lang.Boolean prettyPrint) { + return (EnrollResource) super.setPrettyPrint(prettyPrint); + } + + @Override + public EnrollResource setQuotaUser(java.lang.String quotaUser) { + return (EnrollResource) super.setQuotaUser(quotaUser); + } - /** - * Optional. Maximum number of items to return in a single page. The service might return - * fewer items than this value. If unspecified, the service picks an appropriate default. - * The maximum value is 100; values above 100 are reduced to 100. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public EnrollResource setUploadType(java.lang.String uploadType) { + return (EnrollResource) super.setUploadType(uploadType); + } - /** - * Optional. A page token, received from a previous call, to retrieve the next page of - * results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public EnrollResource setUploadProtocol(java.lang.String uploadProtocol) { + return (EnrollResource) super.setUploadProtocol(uploadProtocol); + } - /** Optional. A page token, received from a previous call, to retrieve the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Required. Organization, folder, or project to enroll in Audit Manager, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String scope; - /** - * Optional. A page token, received from a previous call, to retrieve the next page of - * results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following + formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + `organizations/{organization}/locations/{location}` + */ + public java.lang.String getScope() { + return scope; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** + * Required. Organization, folder, or project to enroll in Audit Manager, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + public EnrollResource setScope(java.lang.String scope) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.scope = scope; + return this; } + @Override + public EnrollResource set(String parameterName, Object value) { + return (EnrollResource) super.set(parameterName, value); + } } /** - * An accessor for creating requests from the Standards collection. + * Gets information about a location. * - *

The typical use is:

- *
-       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.Standards.List request = auditmanager.standards().list(parameters ...)}
-       * 
+ * Create a request for the method "locations.get". * - * @return the resource collection + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Resource name for the location. + * @return the request */ - public Standards standards() { - return new Standards(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - /** - * The "standards" collection of methods. - */ - public class Standards { + public class Get extends CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * An accessor for creating requests from the Controls collection. + * Gets information about a location. * - *

The typical use is:

- *
-         *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-         *   {@code CloudAuditManager.Controls.List request = auditmanager.controls().list(parameters ...)}
-         * 
+ * Create a request for the method "locations.get". * - * @return the resource collection + * This request holds the parameters needed by the the auditmanager 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 Resource name for the location. + * @since 1.13 */ - public Controls controls() { - return new Controls(); + protected Get(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Location.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/[^/]+$"); + } } - /** - * The "controls" collection of methods. + @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); + } + + /** Resource name for the location. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Resource name for the location. */ - public class Controls { + public java.lang.String getName() { + return name; + } - /** - * Lists the controls that you must implement to become compliant to a regulatory standard. - * - * Create a request for the method "controls.list". - * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. Standard to list controls for, in one of the following formats: * - * `projects/{project}/locations/{location}/standards/{standard}` * - * `folders/{folder}/locations/{location}/standards/{standard}` * - * `organizations/{organization}/locations/{location}/standards/{standard}` - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + /** Resource name for the location. */ + 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 " + + "^projects/[^/]+/locations/[^/]+$"); } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all projects. + * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method + * lists locations visible to that specific project. This includes public, private, or other + * project-specific locations enabled for the project. For gRPC and client library implementations, + * the resource name is passed as the `name` field. For direct service calls, the resource name is + * incorporated into the request path based on the specific service implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } - public class List extends CloudAuditManagerRequest { + public class List extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+parent}/controls"; + private static final String REST_PATH = "v1/{+name}/locations"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/standards/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); - /** - * Lists the controls that you must implement to become compliant to a regulatory standard. - * - * Create a request for the method "controls.list". - * - * This request holds the parameters needed by the the auditmanager 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. Standard to list controls for, in one of the following formats: * - * `projects/{project}/locations/{location}/standards/{standard}` * - * `folders/{folder}/locations/{location}/standards/{standard}` * - * `organizations/{organization}/locations/{location}/standards/{standard}` - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListControlsResponse.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/[^/]+/standards/[^/]+$"); - } - } + /** + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all + * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, + * the method lists locations visible to that specific project. This includes public, private, or + * other project-specific locations enabled for the project. For gRPC and client library + * implementations, the resource name is passed as the `name` field. For direct service calls, the + * resource name is incorporated into the request path based on the specific service + * implementation and version. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the auditmanager 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 resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListLocationsResponse.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/[^/]+$"); + } + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @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 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 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 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 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 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 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 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 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 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 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 setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * Required. Standard to list controls for, in one of the following formats: * - * `projects/{project}/locations/{location}/standards/{standard}` * - * `folders/{folder}/locations/{location}/standards/{standard}` * - * `organizations/{organization}/locations/{location}/standards/{standard}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** The resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Required. Standard to list controls for, in one of the following formats: * - `projects/{project}/locations/{location}/standards/{standard}` * - `folders/{folder}/locations/{location}/standards/{standard}` * - `organizations/{organization}/locations/{location}/standards/{standard}` - */ - public java.lang.String getParent() { - return parent; - } + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } - /** - * Required. Standard to list controls for, in one of the following formats: * - * `projects/{project}/locations/{location}/standards/{standard}` * - * `folders/{folder}/locations/{location}/standards/{standard}` * - * `organizations/{organization}/locations/{location}/standards/{standard}` - */ - 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/[^/]+/standards/[^/]+$"); - } - this.parent = parent; - return this; - } + /** The resource that owns the locations collection, if applicable. */ + 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 " + + "^projects/[^/]+$"); + } + this.name = name; + return this; + } - /** - * Optional. Maximum number of items to return in a single page. The service might - * return fewer items than this value. If unspecified, the service picks an appropriate - * default. The maximum value is 100; values above 100 are reduced to 100. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; - /** Optional. Maximum number of items to return in a single page. The service might return fewer items - than this value. If unspecified, the service picks an appropriate default. The maximum value is - 100; values above 100 are reduced to 100. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for + internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + return this; + } - /** - * Optional. Maximum number of items to return in a single page. The service might - * return fewer items than this value. If unspecified, the service picks an appropriate - * default. The maximum value is 100; values above 100 are reduced to 100. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; - /** - * Optional. A page token, received from a previous call, to retrieve the next page of - * results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like + `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; + } - /** Optional. A page token, received from a previous call, to retrieve the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - /** - * Optional. A page token, received from a previous call, to retrieve the next page of - * results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** The maximum number of results to return. If not set, the service selects a default. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** The maximum number of results to return. If not set, the service selects a default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + /** The maximum number of results to return. If not set, the service selects a default. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - } - } - } - /** - * An accessor for creating requests from the Projects collection. - * - *

The typical use is:

- *
-   *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-   *   {@code CloudAuditManager.Projects.List request = auditmanager.projects().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Projects projects() { - return new Projects(); - } + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * The "projects" collection of methods. - */ - public class Projects { + /** A page token received from the `next_page_token` field in the response. Send that page token to + receive the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * An accessor for creating requests from the Locations collection. - * - *

The typical use is:

- *
-     *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-     *   {@code CloudAuditManager.Locations.List request = auditmanager.locations().list(parameters ...)}
-     * 
- * - * @return the resource collection - */ - public Locations locations() { - return new Locations(); - } + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * The "locations" collection of methods. - */ - public class Locations { + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Adds your project, folder, or organization to Audit Manager. This method creates the Audit - * Manager service agent in your workload and grants required permissions to the service agent. If - * you make this request on a workload that's already enrolled, then this method overrides the - * existing set of destinations. - * - * Create a request for the method "locations.enrollResource". + * An accessor for creating requests from the AuditReports collection. * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link EnrollResource#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+       *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
+       *   {@code CloudAuditManager.AuditReports.List request = auditmanager.auditReports().list(parameters ...)}
+       * 
* - * @param scope Required. Organization, folder, or project to enroll in Audit Manager, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.EnrollResourceRequest} - * @return the request + * @return the resource collection */ - public EnrollResource enrollResource(java.lang.String scope, com.google.api.services.auditmanager.v1.model.EnrollResourceRequest content) throws java.io.IOException { - EnrollResource result = new EnrollResource(scope, content); - initialize(result); - return result; + public AuditReports auditReports() { + return new AuditReports(); } - public class EnrollResource extends CloudAuditManagerRequest { - - private static final String REST_PATH = "v1/{+scope}:enrollResource"; - - private final java.util.regex.Pattern SCOPE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "auditReports" collection of methods. + */ + public class AuditReports { /** - * Adds your project, folder, or organization to Audit Manager. This method creates the Audit - * Manager service agent in your workload and grants required permissions to the service agent. If - * you make this request on a workload that's already enrolled, then this method overrides the - * existing set of destinations. + * Registers audit report generation requests. This method returns the operation identifier that you + * can use to track the report generation progress. * - * Create a request for the method "locations.enrollResource". + * Create a request for the method "auditReports.generate". * - * This request holds the parameters needed by the the auditmanager server. After setting any - * optional parameters, call the {@link EnrollResource#execute()} method to invoke the remote - * operation.

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

+ * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Generate#execute()} method to invoke the remote operation. * - * @param scope Required. Organization, folder, or project to enroll in Audit Manager, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.EnrollResourceRequest} - * @since 1.13 + * @param scope Required. Organization, folder, or project that the audit applies to, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest} + * @return the request */ - protected EnrollResource(java.lang.String scope, com.google.api.services.auditmanager.v1.model.EnrollResourceRequest content) { - super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Enrollment.class); - this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } + public Generate generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest content) throws java.io.IOException { + Generate result = new Generate(scope, content); + initialize(result); + return result; } - @Override - public EnrollResource set$Xgafv(java.lang.String $Xgafv) { - return (EnrollResource) super.set$Xgafv($Xgafv); - } + public class Generate extends CloudAuditManagerRequest { - @Override - public EnrollResource setAccessToken(java.lang.String accessToken) { - return (EnrollResource) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+scope}/auditReports:generate"; - @Override - public EnrollResource setAlt(java.lang.String alt) { - return (EnrollResource) super.setAlt(alt); - } + private final java.util.regex.Pattern SCOPE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public EnrollResource setCallback(java.lang.String callback) { - return (EnrollResource) super.setCallback(callback); - } + /** + * Registers audit report generation requests. This method returns the operation identifier that + * you can use to track the report generation progress. + * + * Create a request for the method "auditReports.generate". + * + * This request holds the parameters needed by the the auditmanager server. After setting any + * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. + *

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

+ * + * @param scope Required. Organization, folder, or project that the audit applies to, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest} + * @since 1.13 + */ + protected Generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Operation.class); + this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } - @Override - public EnrollResource setFields(java.lang.String fields) { - return (EnrollResource) super.setFields(fields); - } + @Override + public Generate set$Xgafv(java.lang.String $Xgafv) { + return (Generate) super.set$Xgafv($Xgafv); + } - @Override - public EnrollResource setKey(java.lang.String key) { - return (EnrollResource) super.setKey(key); - } + @Override + public Generate setAccessToken(java.lang.String accessToken) { + return (Generate) super.setAccessToken(accessToken); + } - @Override - public EnrollResource setOauthToken(java.lang.String oauthToken) { - return (EnrollResource) super.setOauthToken(oauthToken); - } + @Override + public Generate setAlt(java.lang.String alt) { + return (Generate) super.setAlt(alt); + } - @Override - public EnrollResource setPrettyPrint(java.lang.Boolean prettyPrint) { - return (EnrollResource) super.setPrettyPrint(prettyPrint); - } + @Override + public Generate setCallback(java.lang.String callback) { + return (Generate) super.setCallback(callback); + } - @Override - public EnrollResource setQuotaUser(java.lang.String quotaUser) { - return (EnrollResource) super.setQuotaUser(quotaUser); - } + @Override + public Generate setFields(java.lang.String fields) { + return (Generate) super.setFields(fields); + } - @Override - public EnrollResource setUploadType(java.lang.String uploadType) { - return (EnrollResource) super.setUploadType(uploadType); - } + @Override + public Generate setKey(java.lang.String key) { + return (Generate) super.setKey(key); + } - @Override - public EnrollResource setUploadProtocol(java.lang.String uploadProtocol) { - return (EnrollResource) super.setUploadProtocol(uploadProtocol); - } + @Override + public Generate setOauthToken(java.lang.String oauthToken) { + return (Generate) super.setOauthToken(oauthToken); + } - /** - * Required. Organization, folder, or project to enroll in Audit Manager, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - @com.google.api.client.util.Key - private java.lang.String scope; + @Override + public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Generate) super.setPrettyPrint(prettyPrint); + } - /** Required. Organization, folder, or project to enroll in Audit Manager, in one of the following - formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * - `organizations/{organization}/locations/{location}` - */ - public java.lang.String getScope() { - return scope; - } + @Override + public Generate setQuotaUser(java.lang.String quotaUser) { + return (Generate) super.setQuotaUser(quotaUser); + } - /** - * Required. Organization, folder, or project to enroll in Audit Manager, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - */ - public EnrollResource setScope(java.lang.String scope) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public Generate setUploadType(java.lang.String uploadType) { + return (Generate) super.setUploadType(uploadType); } - this.scope = scope; - return this; - } - @Override - public EnrollResource set(String parameterName, Object value) { - return (EnrollResource) super.set(parameterName, value); - } - } - /** - * Gets information about a location. - * - * Create a request for the method "locations.get". - * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Resource name for the location. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + @Override + public Generate setUploadProtocol(java.lang.String uploadProtocol) { + return (Generate) super.setUploadProtocol(uploadProtocol); + } - public class Get extends CloudAuditManagerRequest { + /** + * Required. Organization, folder, or project that the audit applies to, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String scope; - private static final String REST_PATH = "v1/{+name}"; + /** Required. Organization, folder, or project that the audit applies to, in one of the following + formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + `organizations/{organization}/locations/{location}` + */ + public java.lang.String getScope() { + return scope; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * Required. Organization, folder, or project that the audit applies to, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + public Generate setScope(java.lang.String scope) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), + "Parameter scope must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.scope = scope; + return this; + } + @Override + public Generate set(String parameterName, Object value) { + return (Generate) super.set(parameterName, value); + } + } /** - * Gets information about a location. + * Gets the full metadata and findings for an audit report. * - * Create a request for the method "locations.get". + * Create a request for the method "auditReports.get". * - * This request holds the parameters needed by the the auditmanager 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 auditmanager server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Resource name for the location. - * @since 1.13 + * @param name Required. Name of the audit report, in one of the following formats: * + * `projects/{project}/locations/{location}/auditReports/{audit_report}` * + * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * @return the request */ - protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.Location.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/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class Get extends CloudAuditManagerRequest { - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1/{+name}"; - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/auditReports/[^/]+$"); - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + /** + * Gets the full metadata and findings for an audit report. + * + * Create a request for the method "auditReports.get". + * + * This request holds the parameters needed by the the auditmanager 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. Name of the audit report, in one of the following formats: * + * `projects/{project}/locations/{location}/auditReports/{audit_report}` * + * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.AuditReport.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/[^/]+/auditReports/[^/]+$"); + } + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** Resource name for the location. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** Resource name for the location. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** Resource name for the location. */ - 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 " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the ListLocationsRequest.name field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all projects. - * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method - * lists locations visible to that specific project. This includes public, private, or other - * project-specific locations enabled for the project. For gRPC and client library implementations, - * the resource name is passed as the `name` field. For direct service calls, the resource name is - * incorporated into the request path based on the specific service implementation and version. - * - * Create a request for the method "locations.list". - * - * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The resource that owns the locations collection, if applicable. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - public class List extends CloudAuditManagerRequest { + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - private static final String REST_PATH = "v1/{+name}/locations"; + /** + * Required. Name of the audit report, in one of the following formats: * + * `projects/{project}/locations/{location}/auditReports/{audit_report}` * + * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + */ + @com.google.api.client.util.Key + private java.lang.String name; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + /** Required. Name of the audit report, in one of the following formats: * + `projects/{project}/locations/{location}/auditReports/{audit_report}` * + `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Name of the audit report, in one of the following formats: * + * `projects/{project}/locations/{location}/auditReports/{audit_report}` * + * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * + * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + */ + 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 " + + "^projects/[^/]+/locations/[^/]+/auditReports/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Lists information about the supported locations for this service. This method lists locations - * based on the resource scope provided in the ListLocationsRequest.name field: * **Global - * locations**: If `name` is empty, the method lists the public locations available to all - * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, - * the method lists locations visible to that specific project. This includes public, private, or - * other project-specific locations enabled for the project. For gRPC and client library - * implementations, the resource name is passed as the `name` field. For direct service calls, the - * resource name is incorporated into the request path based on the specific service - * implementation and version. + * Lists the audit reports for the organization, folder, or project that you specify as the parent + * scope. * - * Create a request for the method "locations.list". + * Create a request for the method "auditReports.list". * - * This request holds the parameters needed by the the auditmanager 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.

+ * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The resource that owns the locations collection, if applicable. - * @since 1.13 + * @param parent Required. Parent organization, folder, or project to list reports for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @return the request */ - protected List(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListLocationsResponse.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/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + public class List extends CloudAuditManagerRequest { - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + private static final String REST_PATH = "v1/{+parent}/auditReports"; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * Lists the audit reports for the organization, folder, or project that you specify as the parent + * scope. + * + * Create a request for the method "auditReports.list". + * + * This request holds the parameters needed by the the auditmanager 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 organization, folder, or project to list reports for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListAuditReportsResponse.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 setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** The resource that owns the locations collection, if applicable. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** The resource that owns the locations collection, if applicable. - */ - public java.lang.String getName() { - return name; - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** The resource that owns the locations collection, if applicable. */ - 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 " + - "^projects/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - this.name = name; - return this; - } - /** - * Optional. Do not use this field unless explicitly documented otherwise. This is primarily - * for internal usage. - */ - @com.google.api.client.util.Key - private java.util.List extraLocationTypes; + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for - internal usage. - */ - public java.util.List getExtraLocationTypes() { - return extraLocationTypes; - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** - * Optional. Do not use this field unless explicitly documented otherwise. This is primarily - * for internal usage. - */ - public List setExtraLocationTypes(java.util.List extraLocationTypes) { - this.extraLocationTypes = extraLocationTypes; - return this; - } + /** + * Required. Parent organization, folder, or project to list reports for, in one of the + * following formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` * + * `organizations/{organization}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * A filter to narrow down results to a preferred subset. The filtering language accepts - * strings like `"displayName=tokyo"`, and is documented in more detail in - * [AIP-160](https://google.aip.dev/160). - */ - @com.google.api.client.util.Key - private java.lang.String filter; + /** Required. Parent organization, folder, or project to list reports for, in one of the following + formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + `organizations/{organization}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } - /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like - `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). - */ - public java.lang.String getFilter() { - return filter; - } + /** + * Required. Parent organization, folder, or project to list reports for, in one of the + * following 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; + } - /** - * A filter to narrow down results to a preferred subset. The filtering language accepts - * strings like `"displayName=tokyo"`, and is documented in more detail in - * [AIP-160](https://google.aip.dev/160). - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** The maximum number of results to return. If not set, the service selects a default. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + /** Optional. Maximum number of items to return in a single page. The service might return fewer items + than this value. If unspecified, the service picks an appropriate default. The maximum value is + 100; values above 100 are reduced to 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - /** The maximum number of results to return. If not set, the service selects a default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + /** + * Optional. Maximum number of items to return in a single page. The service might return + * fewer items than this value. If unspecified, the service picks an appropriate default. + * The maximum value is 100; values above 100 are reduced to 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** The maximum number of results to return. If not set, the service selects a default. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - /** - * A page token received from the `next_page_token` field in the response. Send that page - * token to receive the subsequent page. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Optional. A page token, received from a previous call, to retrieve the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** A page token received from the `next_page_token` field in the response. Send that page token to - receive the subsequent page. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** + * Optional. A page token, received from a previous call, to retrieve the next page of + * results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** - * A page token received from the `next_page_token` field in the response. Send that page - * token to receive the subsequent page. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } } - /** - * An accessor for creating requests from the AuditReports collection. + * An accessor for creating requests from the AuditSchedules collection. * *

The typical use is:

*
        *   {@code CloudAuditManager auditmanager = new CloudAuditManager(...);}
-       *   {@code CloudAuditManager.AuditReports.List request = auditmanager.auditReports().list(parameters ...)}
+       *   {@code CloudAuditManager.AuditSchedules.List request = auditmanager.auditSchedules().list(parameters ...)}
        * 
* * @return the resource collection */ - public AuditReports auditReports() { - return new AuditReports(); + public AuditSchedules auditSchedules() { + return new AuditSchedules(); } /** - * The "auditReports" collection of methods. + * The "auditSchedules" collection of methods. */ - public class AuditReports { + public class AuditSchedules { /** - * Registers audit report generation requests. This method returns the operation identifier that you - * can use to track the report generation progress. + * Creates a new audit schedule in a given project and location. * - * Create a request for the method "auditReports.generate". + * Create a request for the method "auditSchedules.create". * * This request holds the parameters needed by the auditmanager server. After setting any optional - * parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param scope Required. Organization, folder, or project that the audit applies to, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest} + * @param parent Required. Project or folder that this audit schedule is for, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} * @return the request */ - public Generate generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest content) throws java.io.IOException { - Generate result = new Generate(scope, content); + public Create create(java.lang.String parent, com.google.api.services.auditmanager.v1.model.AuditSchedule content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Generate extends CloudAuditManagerRequest { + public class Create extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+scope}/auditReports:generate"; + private static final String REST_PATH = "v1/{+parent}/auditSchedules"; - private final java.util.regex.Pattern SCOPE_PATTERN = + private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Registers audit report generation requests. This method returns the operation identifier that - * you can use to track the report generation progress. + * Creates a new audit schedule in a given project and location. * - * Create a request for the method "auditReports.generate". + * Create a request for the method "auditSchedules.create". * * This request holds the parameters needed by the the auditmanager server. After setting any - * optional parameters, call the {@link Generate#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. *

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

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

* - * @param scope Required. Organization, folder, or project that the audit applies to, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` - * @param content the {@link com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest} + * @param parent Required. Project or folder that this audit schedule is for, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} * @since 1.13 */ - protected Generate(java.lang.String scope, com.google.api.services.auditmanager.v1.model.GenerateAuditReportRequest content) { - super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.Operation.class); - this.scope = com.google.api.client.util.Preconditions.checkNotNull(scope, "Required parameter scope must be specified."); + protected Create(java.lang.String parent, com.google.api.services.auditmanager.v1.model.AuditSchedule content) { + super(CloudAuditManager.this, "POST", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditSchedule.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(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Generate set$Xgafv(java.lang.String $Xgafv) { - return (Generate) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Generate setAccessToken(java.lang.String accessToken) { - return (Generate) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Generate setAlt(java.lang.String alt) { - return (Generate) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Generate setCallback(java.lang.String callback) { - return (Generate) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Generate setFields(java.lang.String fields) { - return (Generate) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Generate setKey(java.lang.String key) { - return (Generate) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Generate setOauthToken(java.lang.String oauthToken) { - return (Generate) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Generate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Generate) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Generate setQuotaUser(java.lang.String quotaUser) { - return (Generate) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Generate setUploadType(java.lang.String uploadType) { - return (Generate) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Generate setUploadProtocol(java.lang.String uploadProtocol) { - return (Generate) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. Organization, folder, or project that the audit applies to, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` + * Required. Project or folder that this audit schedule is for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` */ @com.google.api.client.util.Key - private java.lang.String scope; + private java.lang.String parent; - /** Required. Organization, folder, or project that the audit applies to, in one of the following - formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * - `organizations/{organization}/locations/{location}` + /** Required. Project or folder that this audit schedule is for, in one of the following formats: * + `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` */ - public java.lang.String getScope() { - return scope; + public java.lang.String getParent() { + return parent; } /** - * Required. Organization, folder, or project that the audit applies to, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * - * `organizations/{organization}/locations/{location}` + * Required. Project or folder that this audit schedule is for, in one of the following + * formats: * `projects/{project}/locations/{location}` * + * `folders/{folder}/locations/{location}` */ - public Generate setScope(java.lang.String scope) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SCOPE_PATTERN.matcher(scope).matches(), - "Parameter scope must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } - this.scope = scope; + this.parent = parent; + return this; + } + + /** + * Required. ID to use for the audit schedule, which becomes the final component of the + * audit schedule's resource name. + */ + @com.google.api.client.util.Key + private java.lang.String auditScheduleId; + + /** Required. ID to use for the audit schedule, which becomes the final component of the audit + schedule's resource name. + */ + public java.lang.String getAuditScheduleId() { + return auditScheduleId; + } + + /** + * Required. ID to use for the audit schedule, which becomes the final component of the + * audit schedule's resource name. + */ + public Create setAuditScheduleId(java.lang.String auditScheduleId) { + this.auditScheduleId = auditScheduleId; + return this; + } + + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If `true`, only validates the request and does not create the audit schedule. This + executes standard request validation (such as schema, framework existence, scope, and IAM checks) + and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code + (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without + creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form + and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test + your scripts, permissions, and parameters safely without consuming resource quotas. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If `true`, only validates the request and does not create the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + public Create setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; return this; } @Override - public Generate set(String parameterName, Object value) { - return (Generate) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Gets the full metadata and findings for an audit report. + * Gets details of a single audit schedule. * - * Create a request for the method "auditReports.get". + * Create a request for the method "auditSchedules.get". * * This request holds the parameters needed by the auditmanager server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. Name of the audit report, in one of the following formats: * - * `projects/{project}/locations/{location}/auditReports/{audit_report}` * - * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * @param name Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -5287,36 +7457,36 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudAuditManagerRequest { + public class Get extends CloudAuditManagerRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/auditReports/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); /** - * Gets the full metadata and findings for an audit report. + * Gets details of a single audit schedule. * - * Create a request for the method "auditReports.get". + * Create a request for the method "auditSchedules.get". * * This request holds the parameters needed by the the auditmanager 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. Name of the audit report, in one of the following formats: * - * `projects/{project}/locations/{location}/auditReports/{audit_report}` * - * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * @param name Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.AuditReport.class); + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.AuditSchedule.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/[^/]+/auditReports/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); } } @@ -5386,34 +7556,34 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Name of the audit report, in one of the following formats: * - * `projects/{project}/locations/{location}/auditReports/{audit_report}` * - * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. Name of the audit report, in one of the following formats: * - `projects/{project}/locations/{location}/auditReports/{audit_report}` * - `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + /** Required. Name of the audit schedule to retrieve, in one of the following formats: * + `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` */ public java.lang.String getName() { return name; } /** - * Required. Name of the audit report, in one of the following formats: * - * `projects/{project}/locations/{location}/auditReports/{audit_report}` * - * `folders/{folder}/locations/{location}/auditReports/{audit_report}` * - * `organizations/{organization}/locations/{location}/auditReports/{audit_report}` + * Required. Name of the audit schedule to retrieve, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` * + * `organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule}` */ 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 " + - "^projects/[^/]+/locations/[^/]+/auditReports/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); } this.name = name; return this; @@ -5425,17 +7595,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists the audit reports for the organization, folder, or project that you specify as the parent - * scope. + * Lists audit schedules in a given project and location. * - * Create a request for the method "auditReports.list". + * Create a request for the method "auditSchedules.list". * * This request holds the parameters needed by the auditmanager server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. Parent organization, folder, or project to list reports for, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * + * @param parent Required. Parent for the audit schedule, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * * `organizations/{organization}/locations/{location}` * @return the request */ @@ -5445,32 +7613,30 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends CloudAuditManagerRequest { + public class List extends CloudAuditManagerRequest { - private static final String REST_PATH = "v1/{+parent}/auditReports"; + private static final String REST_PATH = "v1/{+parent}/auditSchedules"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists the audit reports for the organization, folder, or project that you specify as the parent - * scope. + * Lists audit schedules in a given project and location. * - * Create a request for the method "auditReports.list". + * Create a request for the method "auditSchedules.list". * * This request holds the parameters needed by the the auditmanager 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 organization, folder, or project to list reports for, in one of the following - * formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * + * @param parent Required. Parent for the audit schedule, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * * `organizations/{organization}/locations/{location}` * @since 1.13 */ protected List(java.lang.String parent) { - super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListAuditReportsResponse.class); + super(CloudAuditManager.this, "GET", REST_PATH, null, com.google.api.services.auditmanager.v1.model.ListAuditSchedulesResponse.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(), @@ -5545,16 +7711,15 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. Parent organization, folder, or project to list reports for, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * + * Required. Parent for the audit schedule, in one of the following 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. Parent organization, folder, or project to list reports for, in one of the following - formats: * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * + /** Required. Parent for the audit schedule, in one of the following formats: * + `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * `organizations/{organization}/locations/{location}` */ public java.lang.String getParent() { @@ -5562,9 +7727,8 @@ public java.lang.String getParent() { } /** - * Required. Parent organization, folder, or project to list reports for, in one of the - * following formats: * `projects/{project}/locations/{location}` * - * `folders/{folder}/locations/{location}` * + * Required. Parent for the audit schedule, in one of the following formats: * + * `projects/{project}/locations/{location}` * `folders/{folder}/locations/{location}` * * `organizations/{organization}/locations/{location}` */ public List setParent(java.lang.String parent) { @@ -5630,6 +7794,212 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + /** + * Updates an existing audit schedule. + * + * Create a request for the method "auditSchedules.patch". + * + * This request holds the parameters needed by the auditmanager server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.auditmanager.v1.model.AuditSchedule content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CloudAuditManagerRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); + + /** + * Updates an existing audit schedule. + * + * Create a request for the method "auditSchedules.patch". + * + * This request holds the parameters needed by the the auditmanager 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 Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * @param content the {@link com.google.api.services.auditmanager.v1.model.AuditSchedule} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.auditmanager.v1.model.AuditSchedule content) { + super(CloudAuditManager.this, "PATCH", REST_PATH, content, com.google.api.services.auditmanager.v1.model.AuditSchedule.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/[^/]+/auditSchedules/[^/]+$"); + } + } + + @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); + } + + /** + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Unique identifier for the audit schedule. Format: + projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + */ + 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 " + + "^projects/[^/]+/locations/[^/]+/auditSchedules/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. List of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. List of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. List of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + /** + * Optional. If `true`, only validates the request and does not update the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. If `true`, only validates the request and does not update the audit schedule. This + executes standard request validation (such as schema, framework existence, scope, and IAM checks) + and skips the apply phase. Use this field for the following purposes: * **Infrastructure as Code + (IaC)**: Allow tools like Terraform to run dry-run mutations (e.g., `terraform plan`) without + creating real resources or incurring costs. * **User Interface Validation**: Enable real-time form + and permission validation in custom UIs before submitting requests. * **CI/CD & Automation**: Test + your scripts, permissions, and parameters safely without consuming resource quotas. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If `true`, only validates the request and does not update the audit schedule. + * This executes standard request validation (such as schema, framework existence, scope, + * and IAM checks) and skips the apply phase. Use this field for the following purposes: * + * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run dry-run mutations + * (e.g., `terraform plan`) without creating real resources or incurring costs. * **User + * Interface Validation**: Enable real-time form and permission validation in custom UIs + * before submitting requests. * **CI/CD & Automation**: Test your scripts, permissions, + * and parameters safely without consuming resource quotas. + */ + public Patch setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } } /** diff --git a/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/AuditSchedule.java b/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/AuditSchedule.java new file mode 100644 index 00000000000..5e285b04afe --- /dev/null +++ b/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/AuditSchedule.java @@ -0,0 +1,353 @@ +/* + * 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.auditmanager.v1.model; + +/** + * An audit schedule, in one of the following formats: * + * `projects/{project}/locations/{location}/auditSchedules/{audit_schedule}` * + * `folders/{folder}/locations/{location}/auditSchedules/{audit_schedule}` + * + *

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 Audit Manager 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 AuditSchedule extends com.google.api.client.json.GenericJson { + + /** + * Required. Framework (set of controls) that the audit scope report is generated against. For + * example, `NIST_800_53`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String complianceFramework; + + /** + * Output only. Timestamp when the schedule was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Display name for the audit schedule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Describes the error if the schedule is in an error state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. + * The format is `gs://{bucket_name}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Output only. Timestamp when the audit run was last triggered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastTriggerTime; + + /** + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Calculated timestamp for the next scheduled run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String nextRunTime; + + /** + * Required. Format for the audit report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reportFormat; + + /** + * Required. Configuration that defines when and how often audit runs are automatically triggered + * for this schedule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ScheduleConfig scheduleConfig; + + /** + * Optional. State of the audit schedule. While most states are managed by the system, you can use + * UpdateAuditSchedule to start, pause, or delete the schedule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Timestamp when the schedule was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. Framework (set of controls) that the audit scope report is generated against. For + * example, `NIST_800_53`. + * @return value or {@code null} for none + */ + public java.lang.String getComplianceFramework() { + return complianceFramework; + } + + /** + * Required. Framework (set of controls) that the audit scope report is generated against. For + * example, `NIST_800_53`. + * @param complianceFramework complianceFramework or {@code null} for none + */ + public AuditSchedule setComplianceFramework(java.lang.String complianceFramework) { + this.complianceFramework = complianceFramework; + return this; + } + + /** + * Output only. Timestamp when the schedule was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the schedule was created. + * @param createTime createTime or {@code null} for none + */ + public AuditSchedule setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Display name for the audit schedule. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. Display name for the audit schedule. + * @param displayName displayName or {@code null} for none + */ + public AuditSchedule setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Describes the error if the schedule is in an error state. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Output only. Describes the error if the schedule is in an error state. + * @param errorMessage errorMessage or {@code null} for none + */ + public AuditSchedule setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. + * The format is `gs://{bucket_name}`. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * Required. Cloud Storage bucket where Audit Manager can upload the audit report and evidence. + * The format is `gs://{bucket_name}`. + * @param gcsUri gcsUri or {@code null} for none + */ + public AuditSchedule setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * Output only. Timestamp when the audit run was last triggered. + * @return value or {@code null} for none + */ + public String getLastTriggerTime() { + return lastTriggerTime; + } + + /** + * Output only. Timestamp when the audit run was last triggered. + * @param lastTriggerTime lastTriggerTime or {@code null} for none + */ + public AuditSchedule setLastTriggerTime(String lastTriggerTime) { + this.lastTriggerTime = lastTriggerTime; + return this; + } + + /** + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Unique identifier for the audit schedule. Format: + * projects/{project}/locations/{location}/auditSchedules/{audit_schedule} + * folders/{folder}/locations/{location}/auditSchedules/{audit_schedule} + * organizations/{organization}/locations/{location}/auditSchedules/{audit_schedule} + * @param name name or {@code null} for none + */ + public AuditSchedule setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Calculated timestamp for the next scheduled run. + * @return value or {@code null} for none + */ + public String getNextRunTime() { + return nextRunTime; + } + + /** + * Output only. Calculated timestamp for the next scheduled run. + * @param nextRunTime nextRunTime or {@code null} for none + */ + public AuditSchedule setNextRunTime(String nextRunTime) { + this.nextRunTime = nextRunTime; + return this; + } + + /** + * Required. Format for the audit report. + * @return value or {@code null} for none + */ + public java.lang.String getReportFormat() { + return reportFormat; + } + + /** + * Required. Format for the audit report. + * @param reportFormat reportFormat or {@code null} for none + */ + public AuditSchedule setReportFormat(java.lang.String reportFormat) { + this.reportFormat = reportFormat; + return this; + } + + /** + * Required. Configuration that defines when and how often audit runs are automatically triggered + * for this schedule. + * @return value or {@code null} for none + */ + public ScheduleConfig getScheduleConfig() { + return scheduleConfig; + } + + /** + * Required. Configuration that defines when and how often audit runs are automatically triggered + * for this schedule. + * @param scheduleConfig scheduleConfig or {@code null} for none + */ + public AuditSchedule setScheduleConfig(ScheduleConfig scheduleConfig) { + this.scheduleConfig = scheduleConfig; + return this; + } + + /** + * Optional. State of the audit schedule. While most states are managed by the system, you can use + * UpdateAuditSchedule to start, pause, or delete the schedule. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Optional. State of the audit schedule. While most states are managed by the system, you can use + * UpdateAuditSchedule to start, pause, or delete the schedule. + * @param state state or {@code null} for none + */ + public AuditSchedule setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. Timestamp when the schedule was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the schedule was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public AuditSchedule setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AuditSchedule set(String fieldName, Object value) { + return (AuditSchedule) super.set(fieldName, value); + } + + @Override + public AuditSchedule clone() { + return (AuditSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/ListAuditSchedulesResponse.java b/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/ListAuditSchedulesResponse.java new file mode 100644 index 00000000000..0138db03560 --- /dev/null +++ b/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/ListAuditSchedulesResponse.java @@ -0,0 +1,123 @@ +/* + * 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.auditmanager.v1.model; + +/** + * Response message for ListAuditSchedules. + * + *

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 Audit Manager 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 ListAuditSchedulesResponse extends com.google.api.client.json.GenericJson { + + /** + * List of audit schedules. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List auditSchedules; + + static { + // hack to force ProGuard to consider AuditSchedule 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(AuditSchedule.class); + } + + /** + * A token that you can send as the `page_token` in a subsequent request to retrieve the next page + * of results. If this field is empty, there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Locations that can't be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * List of audit schedules. + * @return value or {@code null} for none + */ + public java.util.List getAuditSchedules() { + return auditSchedules; + } + + /** + * List of audit schedules. + * @param auditSchedules auditSchedules or {@code null} for none + */ + public ListAuditSchedulesResponse setAuditSchedules(java.util.List auditSchedules) { + this.auditSchedules = auditSchedules; + return this; + } + + /** + * A token that you can send as the `page_token` in a subsequent request to retrieve the next page + * of results. If this field is empty, there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that you can send as the `page_token` in a subsequent request to retrieve the next page + * of results. If this field is empty, there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAuditSchedulesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Locations that can't be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Locations that can't be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAuditSchedulesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAuditSchedulesResponse set(String fieldName, Object value) { + return (ListAuditSchedulesResponse) super.set(fieldName, value); + } + + @Override + public ListAuditSchedulesResponse clone() { + return (ListAuditSchedulesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/ScheduleConfig.java b/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/ScheduleConfig.java new file mode 100644 index 00000000000..4ac0f9b27d9 --- /dev/null +++ b/clients/google-api-services-auditmanager/v1/2.0.0/com/google/api/services/auditmanager/v1/model/ScheduleConfig.java @@ -0,0 +1,147 @@ +/* + * 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.auditmanager.v1.model; + +/** + * Timing and frequency parameters for recurring audit runs. + * + *

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 Audit Manager 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 ScheduleConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Required. Frequency of audit runs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frequency; + + /** + * Required. Date and time when the first audit run is triggered. Subsequent runs are based on + * this time and the chosen frequency. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Optional. Time zone for the audit schedule in IANA format (for example, `America/New_York`). + * The time zone is used to interpret the `start_time` and the `end_time`, and to calculate + * subsequent run dates. If not specified, the time zone default is UTC. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Optional. Date that the schedule stops. If not specified, the schedule runs indefinitely. + * @param endTime endTime or {@code null} for none + */ + public ScheduleConfig setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Required. Frequency of audit runs. + * @return value or {@code null} for none + */ + public java.lang.String getFrequency() { + return frequency; + } + + /** + * Required. Frequency of audit runs. + * @param frequency frequency or {@code null} for none + */ + public ScheduleConfig setFrequency(java.lang.String frequency) { + this.frequency = frequency; + return this; + } + + /** + * Required. Date and time when the first audit run is triggered. Subsequent runs are based on + * this time and the chosen frequency. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Required. Date and time when the first audit run is triggered. Subsequent runs are based on + * this time and the chosen frequency. + * @param startTime startTime or {@code null} for none + */ + public ScheduleConfig setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Optional. Time zone for the audit schedule in IANA format (for example, `America/New_York`). + * The time zone is used to interpret the `start_time` and the `end_time`, and to calculate + * subsequent run dates. If not specified, the time zone default is UTC. + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Optional. Time zone for the audit schedule in IANA format (for example, `America/New_York`). + * The time zone is used to interpret the `start_time` and the `end_time`, and to calculate + * subsequent run dates. If not specified, the time zone default is UTC. + * @param timeZone timeZone or {@code null} for none + */ + public ScheduleConfig setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + @Override + public ScheduleConfig set(String fieldName, Object value) { + return (ScheduleConfig) super.set(fieldName, value); + } + + @Override + public ScheduleConfig clone() { + return (ScheduleConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-auditmanager/v1/2.0.0/pom.xml b/clients/google-api-services-auditmanager/v1/2.0.0/pom.xml index caea5e9d6f0..9e2ffd2b189 100644 --- a/clients/google-api-services-auditmanager/v1/2.0.0/pom.xml +++ b/clients/google-api-services-auditmanager/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-auditmanager - v1-rev20260907-2.0.0 - Audit Manager API v1-rev20260907-2.0.0 + v1-rev20260908-2.0.0 + Audit Manager API v1-rev20260908-2.0.0 jar 2011 diff --git a/clients/google-api-services-auditmanager/v1/README.md b/clients/google-api-services-auditmanager/v1/README.md index e5d5ffe129e..245e16f2d5f 100644 --- a/clients/google-api-services-auditmanager/v1/README.md +++ b/clients/google-api-services-auditmanager/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-auditmanager - v1-rev20260907-2.0.0 + v1-rev20260908-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-auditmanager:v1-rev20260907-2.0.0' + implementation 'com.google.apis:google-api-services-auditmanager:v1-rev20260908-2.0.0' } ```