Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.DataPoliciesResource

The "dataPolicies" collection of methods.

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

Constructors

DataPoliciesResource(IClientService)

Constructs a new resource.

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

Methods

AddGrantees(AddGranteesRequest, string)

Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request contains a duplicate grantee, the grantee will be ignored. If the request contains a grantee that already exists, the grantee will be ignored.

Declaration
public virtual ProjectsResource.LocationsResource.DataPoliciesResource.AddGranteesRequest AddGrantees(AddGranteesRequest body, string dataPolicy)
Parameters
Type Name Description
AddGranteesRequest body

The body of the request.

string dataPolicy

Required. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.AddGranteesRequest

Create(CreateDataPolicyRequest, string)

Creates a new data policy under a project with the given data_policy_id (used as the display name), and data policy type.

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

The body of the request.

string parent

Required. Resource name of the project that the data policy will belong to. The format is projects/{project_number}/locations/{location_id}.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.CreateRequest

Delete(string)

Deletes the data policy specified by its resource name.

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

Required. Resource name of the data policy to delete. Format is projects/{project_number}/locations/{location_id}/dataPolicies/{id}.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.DeleteRequest

Get(string)

Gets the data policy specified by its resource name.

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

Required. Resource name of the requested data policy. Format is projects/{project_number}/locations/{location_id}/dataPolicies/{id}.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.GetRequest

GetIamPolicy(GetIamPolicyRequest, string)

Gets the IAM policy for the specified data policy.

Declaration
public virtual ProjectsResource.LocationsResource.DataPoliciesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.GetIamPolicyRequest

List(string)

List all of the data policies in the specified parent project.

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

Required. Resource name of the project for which to list data policies. Format is projects/{project_number}/locations/{location_id}.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.ListRequest

Patch(DataPolicy, string)

Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.

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

The body of the request.

string name

Identifier. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.PatchRequest

RemoveGrantees(RemoveGranteesRequest, string)

Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request contains a grantee that does not exist, the grantee will be ignored.

Declaration
public virtual ProjectsResource.LocationsResource.DataPoliciesResource.RemoveGranteesRequest RemoveGrantees(RemoveGranteesRequest body, string dataPolicy)
Parameters
Type Name Description
RemoveGranteesRequest body

The body of the request.

string dataPolicy

Required. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.RemoveGranteesRequest

SetIamPolicy(SetIamPolicyRequest, string)

Sets the IAM policy for the specified data policy.

Declaration
public virtual ProjectsResource.LocationsResource.DataPoliciesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

Returns the caller's permission on the specified data policy resource.

Declaration
public virtual ProjectsResource.LocationsResource.DataPoliciesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.DataPoliciesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX