Class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.ConsentsResource.RevokeRequest
Revokes the latest revision of the specified Consent by committing a new revision with
state
updated to REVOKED
. If the latest revision of the specified Consent is in the
REVOKED
state, no new revision is committed. A FAILED_PRECONDITION error occurs if the
latest revision of the given consent is in DRAFT
or REJECTED
state.
Inheritance
ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.ConsentsResource.RevokeRequest
Inherited Members
Namespace: Google.Apis.CloudHealthcare.v1
Assembly: Google.Apis.CloudHealthcare.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.ConsentsResource.RevokeRequest : CloudHealthcareBaseServiceRequest<Consent>, IClientServiceRequest<Consent>, IClientServiceRequest
Constructors
RevokeRequest(IClientService, RevokeConsentRequest, string)
Constructs a new Revoke request.
Declaration
public RevokeRequest(IClientService service, RevokeConsentRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
RevokeConsentRequest | 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
Required. The resource name of the Consent to revoke, of the form
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}
.
An INVALID_ARGUMENT error occurs if revision_id
is specified in the name.
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Revoke parameter list.
Declaration
protected override void InitParameters()