public interface EnrollResourceRequestOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDestinations(int index)
public abstract EnrollResourceRequest.EligibleDestination getDestinations(int index)Required. Cloud Storage buckets that you can upload your audit reports to during the audit process.
When you enroll an organization or folder, you can choose a Cloud Storage bucket from any project in the organization or folder. If you run an audit at the project level using the service agent at the organization or folder level, all the buckets that are associated with the service agent are available.
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.EligibleDestination |
|
getDestinationsCount()
public abstract int getDestinationsCount()Required. Cloud Storage buckets that you can upload your audit reports to during the audit process.
When you enroll an organization or folder, you can choose a Cloud Storage bucket from any project in the organization or folder. If you run an audit at the project level using the service agent at the organization or folder level, all the buckets that are associated with the service agent are available.
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
|
getDestinationsList()
public abstract List<EnrollResourceRequest.EligibleDestination> getDestinationsList()Required. Cloud Storage buckets that you can upload your audit reports to during the audit process.
When you enroll an organization or folder, you can choose a Cloud Storage bucket from any project in the organization or folder. If you run an audit at the project level using the service agent at the organization or folder level, all the buckets that are associated with the service agent are available.
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<EligibleDestination> |
|
getDestinationsOrBuilder(int index)
public abstract EnrollResourceRequest.EligibleDestinationOrBuilder getDestinationsOrBuilder(int index)Required. Cloud Storage buckets that you can upload your audit reports to during the audit process.
When you enroll an organization or folder, you can choose a Cloud Storage bucket from any project in the organization or folder. If you run an audit at the project level using the service agent at the organization or folder level, all the buckets that are associated with the service agent are available.
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EnrollResourceRequest.EligibleDestinationOrBuilder |
|
getDestinationsOrBuilderList()
public abstract List<? extends EnrollResourceRequest.EligibleDestinationOrBuilder> getDestinationsOrBuilderList()Required. Cloud Storage buckets that you can upload your audit reports to during the audit process.
When you enroll an organization or folder, you can choose a Cloud Storage bucket from any project in the organization or folder. If you run an audit at the project level using the service agent at the organization or folder level, all the buckets that are associated with the service agent are available.
repeated .google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestinationOrBuilder> |
|
getScope()
public abstract String getScope()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}
string scope = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The scope. |
getScopeBytes()
public abstract ByteString getScopeBytes()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}
string scope = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for scope. |
getValidateOnly()
public abstract boolean getValidateOnly() Optional. If true, only validates the request and does not enroll the
resource. This executes standard request validation (such as schema, IAM,
and destination 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.
bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The validateOnly. |