Class EnrollResourceRequest (0.3.3)

EnrollResourceRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for EnrollResource.

Attributes

Name Description
scope str
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}
destinations MutableSequence[google.cloud.auditmanager_v1.types.EnrollResourceRequest.EligibleDestination]
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.
validate_only bool
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.

Classes

EligibleDestination

EligibleDestination(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Details about the bucket where you want to upload the audit report.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields