Class ProjectsResource.LocationsResource.AuditSchedulesResource.CreateRequest
Creates a new audit schedule in a given project and location.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudAuditManager.v1
Assembly: Google.Apis.CloudAuditManager.v1.dll
Syntax
public class ProjectsResource.LocationsResource.AuditSchedulesResource.CreateRequest : CloudAuditManagerBaseServiceRequest<AuditSchedule>, IClientServiceRequest<AuditSchedule>, IClientServiceRequest
Constructors
CreateRequest(IClientService, AuditSchedule, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, AuditSchedule body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| AuditSchedule | body | |
| string | parent |
Properties
AuditScheduleId
Required. ID to use for the audit schedule, which becomes the final component of the audit schedule's resource name.
Declaration
[RequestParameter("auditScheduleId", RequestParameterType.Query)]
public virtual string AuditScheduleId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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.
Declaration
[RequestParameter("validateOnly", RequestParameterType.Query)]
public virtual bool? ValidateOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()