Class ProjectsResource.LocationsResource.DataPoliciesResource.PatchRequest
Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.
Inheritance
Inherited Members
Namespace: Google.Apis.BigQueryDataPolicyService.v1
Assembly: Google.Apis.BigQueryDataPolicyService.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DataPoliciesResource.PatchRequest : BigQueryDataPolicyServiceBaseServiceRequest<DataPolicy>, IClientServiceRequest<DataPolicy>, IClientServiceRequest
Constructors
PatchRequest(IClientService, DataPolicy, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, DataPolicy body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
DataPolicy | body | |
string | name |
Properties
AllowMissing
Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored.
Declaration
[RequestParameter("allowMissing", RequestParameterType.Query)]
public virtual bool? AllowMissing { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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
Name
Output only. Resource name of this data policy, in the format of
projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}
.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
The update mask applies to the resource. For the FieldMask
definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not
set, defaults to all of the fields that are allowed to update. Updates to the name
and
dataPolicyId
fields are not allowed.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()