public sealed class EnrollResourceRequest : IMessage<EnrollResourceRequest>, IEquatable<EnrollResourceRequest>, IDeepCloneable<EnrollResourceRequest>, IBufferMessage, IMessageReference documentation and code samples for the Audit Manager v1 API class EnrollResourceRequest.
Request message for [EnrollResource][google.cloud.auditmanager.v1.AuditManager.EnrollResource].
Implements
IMessageEnrollResourceRequest, IEquatableEnrollResourceRequest, IDeepCloneableEnrollResourceRequest, IBufferMessage, IMessageNamespace
Google.Cloud.AuditManager.V1Assembly
Google.Cloud.AuditManager.V1.dll
Constructors
EnrollResourceRequest()
public EnrollResourceRequest()EnrollResourceRequest(EnrollResourceRequest)
public EnrollResourceRequest(EnrollResourceRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
EnrollResourceRequest |
Properties
Destinations
public RepeatedField<EnrollResourceRequest.Types.EligibleDestination> Destinations { get; }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.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldEnrollResourceRequestTypesEligibleDestination |
|
Scope
public string Scope { get; set; }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}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ValidateOnly
public bool ValidateOnly { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
bool |
|