Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.ContentPoliciesResource

The "contentPolicies" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.ContentPoliciesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DLP.v2
Assembly: Google.Apis.DLP.v2.dll
Syntax
public class ProjectsResource.LocationsResource.ContentPoliciesResource

Constructors

ContentPoliciesResource(IClientService)

Constructs a new resource.

Declaration
public ContentPoliciesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(GooglePrivacyDlpV2CreateContentPolicyRequest, string)

Create a ContentPolicy.

Declaration
public virtual ProjectsResource.LocationsResource.ContentPoliciesResource.CreateRequest Create(GooglePrivacyDlpV2CreateContentPolicyRequest body, string parent)
Parameters
Type Name Description
GooglePrivacyDlpV2CreateContentPolicyRequest body

The body of the request.

string parent

Required. Parent resource name. The format of this value varies depending on the scope of the request (project or organization): + Projects scope: projects/{project_id}/locations/{location_id}

  • Organizations scope: organizations/{org_id}/locations/{location_id}
Returns
Type Description
ProjectsResource.LocationsResource.ContentPoliciesResource.CreateRequest

Delete(string)

Delete a ContentPolicy.

Declaration
public virtual ProjectsResource.LocationsResource.ContentPoliciesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. Resource name of the ContentPolicy to be deleted, in the format: projects/{project}/locations/{location}/contentPolicies/{content_policy}.

Returns
Type Description
ProjectsResource.LocationsResource.ContentPoliciesResource.DeleteRequest

Get(string)

Get a ContentPolicy.

Declaration
public virtual ProjectsResource.LocationsResource.ContentPoliciesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. Resource name in the format: projects/{project}/locations/{location}/contentPolicies/{content_policy}.

Returns
Type Description
ProjectsResource.LocationsResource.ContentPoliciesResource.GetRequest

List(string)

Lists ContentPolicies in a parent.

Declaration
public virtual ProjectsResource.LocationsResource.ContentPoliciesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. Resource name of the organization or project, for example, organizations/433245324/locations/europe or projects/project-id/locations/asia.

Returns
Type Description
ProjectsResource.LocationsResource.ContentPoliciesResource.ListRequest

Patch(GooglePrivacyDlpV2UpdateContentPolicyRequest, string)

Update a ContentPolicy.

Declaration
public virtual ProjectsResource.LocationsResource.ContentPoliciesResource.PatchRequest Patch(GooglePrivacyDlpV2UpdateContentPolicyRequest body, string name)
Parameters
Type Name Description
GooglePrivacyDlpV2UpdateContentPolicyRequest body

The body of the request.

string name

Required. Resource name in the format: projects/{project}/locations/{location}/contentPolicies/{content_policy}.

Returns
Type Description
ProjectsResource.LocationsResource.ContentPoliciesResource.PatchRequest
In this article
Back to top Generated by DocFX