Class ProjectsResource.LocationsResource.EnrollResourceRequest
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.
Inheritance
ProjectsResource.LocationsResource.EnrollResourceRequest
Inherited Members
Namespace: Google.Apis.CloudAuditManager.v1
Assembly: Google.Apis.CloudAuditManager.v1.dll
Syntax
public class ProjectsResource.LocationsResource.EnrollResourceRequest : CloudAuditManagerBaseServiceRequest<Enrollment>, IClientServiceRequest<Enrollment>, IClientServiceRequest
Constructors
EnrollResourceRequest(IClientService, EnrollResourceRequest, string)
Constructs a new EnrollResource request.
Declaration
public EnrollResourceRequest(IClientService service, EnrollResourceRequest body, string scope)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| EnrollResourceRequest | body | |
| string | scope |
Properties
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
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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}
Declaration
[RequestParameter("scope", RequestParameterType.Path)]
public virtual string Scope { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes EnrollResource parameter list.
Declaration
protected override void InitParameters()