Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::UserStoreService::Rest::Client.
REST client for the UserStoreService service.
Service for managing User Stores.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the UserStoreService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all UserStoreService clients ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the UserStoreService 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.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#get_user_store
def get_user_store(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::UserStore
def get_user_store(name: nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreGets the User Store.
def get_user_store(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreget_user_store via a request object, either of type
GetUserStoreRequest or an equivalent Hash.
- request (::Google::Cloud::DiscoveryEngine::V1beta::GetUserStoreRequest, ::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_user_store(name: nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreget_user_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).
-
name (::String) — Required. The name of the User Store to get.
Format:
projects/{project}/locations/{location}/userStores/{user_store_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DiscoveryEngine::V1beta::UserStore)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/discovery_engine/v1beta" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DiscoveryEngine::V1beta::UserStoreService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DiscoveryEngine::V1beta::GetUserStoreRequest.new # Call the get_user_store method. result = client.get_user_store request # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::UserStore. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new UserStoreService REST client object.
- (config) — Configure the UserStoreService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreService::Rest::Client.new do |config| config.timeout = 10.0 end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_user_store
def update_user_store(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::UserStore
def update_user_store(user_store: nil, update_mask: nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreUpdates the User Store.
def update_user_store(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreupdate_user_store via a request object, either of type
Google::Cloud::DiscoveryEngine::V1beta::UpdateUserStoreRequest or an equivalent Hash.
- request (::Google::Cloud::DiscoveryEngine::V1beta::UpdateUserStoreRequest, ::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_user_store(user_store: nil, update_mask: nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::UserStoreupdate_user_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).
-
user_store (::Google::Cloud::DiscoveryEngine::V1beta::UserStore, ::Hash) — Required. The User Store to update.
Format:
projects/{project}/locations/{location}/userStores/{user_store_id} - update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::DiscoveryEngine::V1beta::UserStore)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/discovery_engine/v1beta" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DiscoveryEngine::V1beta::UserStoreService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DiscoveryEngine::V1beta::UpdateUserStoreRequest.new # Call the update_user_store method. result = client.update_user_store request # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::UserStore. p result