Class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.ConsentsResource.RejectRequest
Rejects the latest revision of the specified Consent by committing a new revision with
state
updated to REJECTED
. If the latest revision of the specified Consent is in the
REJECTED
state, no new revision is committed. A FAILED_PRECONDITION error occurs if the
latest revision of the specified Consent is in the ACTIVE
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.RejectRequest : CloudHealthcareBaseServiceRequest<Consent>, IClientServiceRequest<Consent>, IClientServiceRequest
Constructors
RejectRequest(IClientService, RejectConsentRequest, string)
Constructs a new Reject request.
Declaration
public RejectRequest(IClientService service, RejectConsentRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
RejectConsentRequest | 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 reject, 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 Reject parameter list.
Declaration
protected override void InitParameters()