Class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.ConsentsResource.PatchRequest
Updates the latest revision of the specified Consent by committing a new revision with the
changes. A FAILED_PRECONDITION error occurs if the latest revision of the specified Consent
is in the REJECTED
or REVOKED
state.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudHealthcare.v1
Assembly: Google.Apis.CloudHealthcare.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.ConsentsResource.PatchRequest : CloudHealthcareBaseServiceRequest<Consent>, IClientServiceRequest<Consent>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Consent, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Consent body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Consent | body | |
string | name |
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
Name
Identifier. Resource name of the Consent, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}
.
Cannot be changed after creation.
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
Required. The update mask to apply to the resource. For the FieldMask
definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
Only the user_id
, policies
, consent_artifact
, and metadata
fields can be
updated.
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()