Class ProjectsResource.LocationsResource.DataStoresResource.CreateRequest
Creates a DataStore. DataStore is for storing Documents. To serve these documents for Search, or Recommendation use case, an Engine needs to be created separately.
Inheritance
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1
Assembly: Google.Apis.DiscoveryEngine.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DataStoresResource.CreateRequest : DiscoveryEngineBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudDiscoveryengineV1DataStore, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudDiscoveryengineV1DataStore body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudDiscoveryengineV1DataStore | body | |
string | parent |
Properties
CmekConfigName
Resource name of the CmekConfig to use for protecting this DataStore.
Declaration
[RequestParameter("cmekConfigName", RequestParameterType.Query)]
public virtual string CmekConfigName { get; set; }
Property Value
Type | Description |
---|---|
string |
CreateAdvancedSiteSearch
A boolean flag indicating whether user want to directly create an advanced data store for site search. If the data store is not configured as site search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will be ignored.
Declaration
[RequestParameter("createAdvancedSiteSearch", RequestParameterType.Query)]
public virtual bool? CreateAdvancedSiteSearch { get; set; }
Property Value
Type | Description |
---|---|
bool? |
DataStoreId
Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name. This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
Declaration
[RequestParameter("dataStoreId", RequestParameterType.Query)]
public virtual string DataStoreId { get; set; }
Property Value
Type | Description |
---|---|
string |
DisableCmek
DataStore without CMEK protections. If a default CmekConfig is set for the project, setting this field will override the default CmekConfig as well.
Declaration
[RequestParameter("disableCmek", RequestParameterType.Query)]
public virtual bool? DisableCmek { 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
Parent
Required. The parent resource name, such as
projects/{project}/locations/{location}/collections/{collection}
.
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
SkipDefaultSchemaCreation
A boolean flag indicating whether to skip the default schema creation for the data store. Only
enable this flag if you are certain that the default schema is incompatible with your use case.
If set to true, you must manually create a schema for the data store before any documents can be
ingested. This flag cannot be specified if data_store.starting_schema
is specified.
Declaration
[RequestParameter("skipDefaultSchemaCreation", RequestParameterType.Query)]
public virtual bool? SkipDefaultSchemaCreation { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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()