Class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.CreateRequest
Creates a new consent store in the parent dataset. Attempting to create a consent store with the same ID as an existing store fails with an ALREADY_EXISTS error.
Inheritance
ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudHealthcare.v1
Assembly: Google.Apis.CloudHealthcare.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.CreateRequest : CloudHealthcareBaseServiceRequest<ConsentStore>, IClientServiceRequest<ConsentStore>, IClientServiceRequest
Constructors
CreateRequest(IClientService, ConsentStore, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, ConsentStore body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ConsentStore | body | |
string | parent |
Properties
ConsentStoreId
Required. The ID of the consent store to create. The string must match the following regex:
[\p{L}\p{N}_\-\.]{1,256}
. Cannot be changed after creation.
Declaration
[RequestParameter("consentStoreId", RequestParameterType.Query)]
public virtual string ConsentStoreId { get; set; }
Property Value
Type | Description |
---|---|
string |
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
Parent
Required. The name of the dataset this consent store belongs to.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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 Create parameter list.
Declaration
protected override void InitParameters()