# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.

Client for the DataStoreService service.


<br />

Service for managing [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)")
configuration.

## Inherits

- Object

## Includes

- [Google::Cloud::DiscoveryEngine::V1::DataStoreService::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Paths)

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the DataStoreService Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client-Configuration "Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all DataStoreService clients
::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.configure do |config|
  config.timeout = 10.0
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the DataStoreService Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client#Google__Cloud__DiscoveryEngine__V1__DataStoreService__Client_configure_class_ "Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client-Configuration "Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client-Configuration))

### #create_data_store

    def create_data_store(request, options = nil) -> ::Gapic::Operation
    def create_data_store(cmek_config_name: nil, disable_cmek: nil, parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil, skip_default_schema_creation: nil) -> ::Gapic::Operation

Creates a [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)").


<br />

DataStore is for storing
[Documents](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Document "Google::Cloud::DiscoveryEngine::V1::Document (class)"). To serve these
documents for Search, or Recommendation use case, an
[Engine](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-Engine "Google::Cloud::DiscoveryEngine::V1::Engine (class)") needs to be created
separately.
**Overloads**

    def create_data_store(request, options = nil) -> ::Gapic::Operation

Pass arguments to `create_data_store` via a request object, either of type [CreateDataStoreRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CreateDataStoreRequest "Google::Cloud::DiscoveryEngine::V1::CreateDataStoreRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::DiscoveryEngine::V1::CreateDataStoreRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CreateDataStoreRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_data_store(cmek_config_name: nil, disable_cmek: nil, parent: nil, data_store: nil, data_store_id: nil, create_advanced_site_search: nil, skip_default_schema_creation: nil) -> ::Gapic::Operation

Pass arguments to `create_data_store` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **cmek_config_name** (::String) --- Resource name of the CmekConfig to use for protecting this DataStore.


  Note: The following parameters are mutually exclusive: `cmek_config_name`, `disable_cmek`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **disable_cmek** (::Boolean) --- DataStore without CMEK protections. If a default CmekConfig is set for the project, setting this field will override the default CmekConfig as well.


  Note: The following parameters are mutually exclusive: `disable_cmek`, `cmek_config_name`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- **parent** (::String) --- Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}`.
- **data_store** ([::Google::Cloud::DiscoveryEngine::V1::DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore), ::Hash) --- Required. The [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)") to create.
- **data_store_id** (::String) --- Required. The ID to use for the [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)"), which will become the final component of the [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)")'s resource name.


  This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
  standard with a length limit of 63 characters. Otherwise, an
  INVALID_ARGUMENT error is returned.
- **create_advanced_site_search** (::Boolean) --- 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.
- **skip_default_schema_creation** (::Boolean) --- 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.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/discovery_engine/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::DiscoveryEngine::V1::CreateDataStoreRequest.new

# Call the create_data_store method.
result = client.create_data_store request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #delete_data_store

    def delete_data_store(request, options = nil) -> ::Gapic::Operation
    def delete_data_store(name: nil) -> ::Gapic::Operation

Deletes a [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)").
**Overloads**

    def delete_data_store(request, options = nil) -> ::Gapic::Operation

Pass arguments to `delete_data_store` via a request object, either of type [Google::Cloud::DiscoveryEngine::V1::DeleteDataStoreRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DeleteDataStoreRequest "Google::Cloud::DiscoveryEngine::V1::DeleteDataStoreRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::DiscoveryEngine::V1::DeleteDataStoreRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DeleteDataStoreRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def delete_data_store(name: nil) -> ::Gapic::Operation

Pass arguments to `delete_data_store` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Full resource name of [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)"), such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.


  If the caller does not have permission to delete the
  [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)"), regardless of
  whether or not it exists, a PERMISSION_DENIED error is returned.

  If the [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)") to delete
  does not exist, a NOT_FOUND error is returned.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::Operation)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::Operation)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/discovery_engine/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::DiscoveryEngine::V1::DeleteDataStoreRequest.new

# Call the delete_data_store method.
result = client.delete_data_store request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end
```

### #get_data_store

    def get_data_store(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1::DataStore
    def get_data_store(name: nil) -> ::Google::Cloud::DiscoveryEngine::V1::DataStore

Gets a [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)").
**Overloads**

    def get_data_store(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1::DataStore

Pass arguments to `get_data_store` via a request object, either of type [GetDataStoreRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-GetDataStoreRequest "Google::Cloud::DiscoveryEngine::V1::GetDataStoreRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::DiscoveryEngine::V1::GetDataStoreRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-GetDataStoreRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def get_data_store(name: nil) -> ::Google::Cloud::DiscoveryEngine::V1::DataStore

Pass arguments to `get_data_store` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Full resource name of [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)"), such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.


  If the caller does not have permission to access the
  [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)"), regardless of
  whether or not it exists, a PERMISSION_DENIED error is returned.

  If the requested [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)")
  does not exist, a NOT_FOUND error is returned.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::DiscoveryEngine::V1::DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/discovery_engine/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::DiscoveryEngine::V1::GetDataStoreRequest.new

# Call the get_data_store method.
result = client.get_data_store request

# The returned object is of type Google::Cloud::DiscoveryEngine::V1::DataStore.
p result
```

### #initialize

    def initialize() { |config| ... } -> Client

Create a new DataStoreService client object.
**Yields**

- (config) --- Configure the DataStoreService client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new do |config|
  config.timeout = 10.0
end
```

### #list_data_stores

    def list_data_stores(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::DataStore>
    def list_data_stores(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::DataStore>

Lists all the {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s
associated with the project.
**Overloads**

    def list_data_stores(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::DataStore>

Pass arguments to `list_data_stores` via a request object, either of type [ListDataStoresRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ListDataStoresRequest "Google::Cloud::DiscoveryEngine::V1::ListDataStoresRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::DiscoveryEngine::V1::ListDataStoresRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ListDataStoresRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def list_data_stores(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::DataStore>

Pass arguments to `list_data_stores` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. The parent branch resource name, such as `projects/{project}/locations/{location}/collections/{collection_id}`.


  If the caller does not have permission to list
  {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}s under this
  location, regardless of whether or not this data store exists, a
  PERMISSION_DENIED error is returned.
- **page_size** (::Integer) --- Maximum number of [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)")s to return. If unspecified, defaults to 10. The maximum allowed value is 50. Values above 50 will be coerced to 50.


  If this field is negative, an INVALID_ARGUMENT is returned.
- **page_token** (::String) --- A page token [ListDataStoresResponse.next_page_token](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ListDataStoresResponse#Google__Cloud__DiscoveryEngine__V1__ListDataStoresResponse_next_page_token_instance_ "Google::Cloud::DiscoveryEngine::V1::ListDataStoresResponse#next_page_token (method)"), received from a previous [DataStoreService.ListDataStores](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client#Google__Cloud__DiscoveryEngine__V1__DataStoreService__Client_list_data_stores_instance_ "Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#list_data_stores (method)") call. Provide this to retrieve the subsequent page.


  When paginating, all other parameters provided to
  [DataStoreService.ListDataStores](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client#Google__Cloud__DiscoveryEngine__V1__DataStoreService__Client_list_data_stores_instance_ "Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client#list_data_stores (method)")
  must match the call that provided the page token. Otherwise, an
  INVALID_ARGUMENT error is returned.
- **filter** (::String) --- Filter by solution type . For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::DiscoveryEngine::V1::DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::DiscoveryEngine::V1::DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/discovery_engine/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::DiscoveryEngine::V1::ListDataStoresRequest.new

# Call the list_data_stores method.
result = client.list_data_stores request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::DiscoveryEngine::V1::DataStore.
  p item
end
```

### #location_client

    def location_client() -> Google::Cloud::Location::Locations::Client

Get the associated client for mix-in of the Locations.
**Returns**

- (Google::Cloud::Location::Locations::Client)

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #operations_client

    def operations_client() -> ::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Operations

Get the associated client for long-running operations.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::DataStoreService::Operations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Operations))

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_data_store

    def update_data_store(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1::DataStore
    def update_data_store(data_store: nil, update_mask: nil) -> ::Google::Cloud::DiscoveryEngine::V1::DataStore

Updates a [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)")
**Overloads**

    def update_data_store(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1::DataStore

Pass arguments to `update_data_store` via a request object, either of type [UpdateDataStoreRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UpdateDataStoreRequest "Google::Cloud::DiscoveryEngine::V1::UpdateDataStoreRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::DiscoveryEngine::V1::UpdateDataStoreRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-UpdateDataStoreRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def update_data_store(data_store: nil, update_mask: nil) -> ::Google::Cloud::DiscoveryEngine::V1::DataStore

Pass arguments to `update_data_store` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **data_store** ([::Google::Cloud::DiscoveryEngine::V1::DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore), ::Hash) --- Required. The [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)") to update.


  If the caller does not have permission to update the
  [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)"), regardless of
  whether or not it exists, a PERMISSION_DENIED error is returned.

  If the [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)") to update
  does not exist, a NOT_FOUND error is returned.
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Protobuf-FieldMask), ::Hash) --- Indicates which fields in the provided [DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore "Google::Cloud::DiscoveryEngine::V1::DataStore (class)") to update.


  If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
  is returned.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::DiscoveryEngine::V1::DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1::DataStore](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStore))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/discovery_engine/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::DiscoveryEngine::V1::UpdateDataStoreRequest.new

# Call the update_data_store method.
result = client.update_data_store request

# The returned object is of type Google::Cloud::DiscoveryEngine::V1::DataStore.
p result
```