Class ProjectsResource.LocationsResource.DataPoliciesResource
The "dataPolicies" collection of methods.
Inherited Members
Namespace: Google.Apis.BigQueryDataPolicyService.v1
Assembly: Google.Apis.BigQueryDataPolicyService.v1.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
Create(DataPolicy, string)
Creates a new data policy under a project with the given dataPolicyId
(used as the display name),
policy tag, and data policy type.
Declaration
public virtual ProjectsResource.LocationsResource.DataPoliciesResource.CreateRequest Create(DataPolicy body, string parent)
Parameters
Type | Name | Description |
---|---|---|
DataPolicy | body | The body of the request. |
string | parent | Required. Resource name of the project that the data policy will belong to. The format is
|
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
|
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
|
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
|
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 | Output only. Resource name of this data policy, in the format of
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.DataPoliciesResource.PatchRequest |
Rename(RenameDataPolicyRequest, string)
Renames the id (display name) of the specified data policy.
Declaration
public virtual ProjectsResource.LocationsResource.DataPoliciesResource.RenameRequest Rename(RenameDataPolicyRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
RenameDataPolicyRequest | body | The body of the request. |
string | name | Required. Resource name of the data policy to rename. The format is
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.DataPoliciesResource.RenameRequest |
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 |