# Modify the configuration for all InstanceService clients::Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.configuredo|config|config.timeout=10.0end
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.
Pass arguments to get_instance via a request object, either of type
GetInstanceRequest or an equivalent Hash.
Parameters
request (::Google::Cloud::Chronicle::V1::GetInstanceRequest, ::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.
Pass arguments to get_instance 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. The name of the instance to retrieve.
Format:
projects/{project_id}/locations/{location}/instances/{instance}
Yields
(result, operation) — Access the result along with the TransportOperation object
(::Google::Cloud::Error) — if the REST call is aborted.
Example
Basic example
require"google/cloud/chronicle/v1"# Create a client object. The client can be reused for multiple calls.client=Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.new# Create a request. To set request fields, pass in keyword arguments.request=Google::Cloud::Chronicle::V1::GetInstanceRequest.new# Call the get_instance method.result=client.get_instancerequest# The returned object is of type Google::Cloud::Chronicle::V1::Instance.presult
# Create a client using the default configurationclient=::Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.new# Create a client using a custom configurationclient=::Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.newdo|config|config.timeout=10.0end
#logger
deflogger()->Logger
The logger used for request/response debug logging.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Chronicle V1 API - Class Google::Cloud::Chronicle::V1::InstanceService::Rest::Client (v0.1.0)\n\nReference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.\n\nREST client for the InstanceService service.\n\n\n\u003cbr /\u003e\n\nInstanceService provides the entry interface for the Chronicle API. \n\nInherits\n--------\n\n- Object \n\nIncludes\n--------\n\n- [Google::Cloud::Chronicle::V1::InstanceService::Paths](./Google-Cloud-Chronicle-V1-InstanceService-Paths)\n\nMethods\n-------\n\n### .configure\n\n def self.configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the InstanceService Client class.\n\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-InstanceService-Rest-Client-Configuration \"Google::Cloud::Chronicle::V1::InstanceService::Rest::Client::Configuration (class)\")\nfor a description of the configuration fields. \n**Yields**\n\n- (config) --- Configure the Client client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Chronicle-V1-InstanceService-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-Chronicle-V1-InstanceService-Rest-Client-Configuration))\n**Example** \n\n```ruby\n# Modify the configuration for all InstanceService clients\n::Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.configure do |config|\n config.timeout = 10.0\nend\n```\n\n### #configure\n\n def configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the InstanceService Client instance.\n\n\nThe configuration is set to the derived mode, meaning that values can be changed,\nbut structural changes (adding new fields, etc.) are not allowed. Structural changes\nshould be made on [Client.configure](/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-InstanceService-Rest-Client#Google__Cloud__Chronicle__V1__InstanceService__Rest__Client_configure_class_ \"Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.configure (method)\").\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-InstanceService-Rest-Client-Configuration \"Google::Cloud::Chronicle::V1::InstanceService::Rest::Client::Configuration (class)\")\nfor a description of the configuration fields. \n**Yields**\n\n- (config) --- Configure the Client client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Chronicle-V1-InstanceService-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-Chronicle-V1-InstanceService-Rest-Client-Configuration))\n\n### #get_instance\n\n def get_instance(request, options = nil) -\u003e ::Google::Cloud::Chronicle::V1::Instance\n def get_instance(name: nil) -\u003e ::Google::Cloud::Chronicle::V1::Instance\n\nGets a Instance. \n**Overloads** \n\n def get_instance(request, options = nil) -\u003e ::Google::Cloud::Chronicle::V1::Instance\n\nPass arguments to `get_instance` via a request object, either of type [GetInstanceRequest](/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-GetInstanceRequest \"Google::Cloud::Chronicle::V1::GetInstanceRequest (class)\") or an equivalent Hash. \n**Parameters**\n\n- **request** ([::Google::Cloud::Chronicle::V1::GetInstanceRequest](./Google-Cloud-Chronicle-V1-GetInstanceRequest), ::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.\n- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional. \n\n def get_instance(name: nil) -\u003e ::Google::Cloud::Chronicle::V1::Instance\n\nPass arguments to `get_instance` 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). \n**Parameter**\n\n- **name** (::String) --- Required. The name of the instance to retrieve. Format: `projects/{project_id}/locations/{location}/instances/{instance}` \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** ([::Google::Cloud::Chronicle::V1::Instance](./Google-Cloud-Chronicle-V1-Instance))\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- ([::Google::Cloud::Chronicle::V1::Instance](./Google-Cloud-Chronicle-V1-Instance)) \n**Raises**\n\n- (::Google::Cloud::Error) --- if the REST call is aborted.\n**Example**\n\nBasic example \n\n```ruby\nrequire \"google/cloud/chronicle/v1\"\n\n# Create a client object. The client can be reused for multiple calls.\nclient = Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.new\n\n# Create a request. To set request fields, pass in keyword arguments.\nrequest = Google::Cloud::Chronicle::V1::GetInstanceRequest.new\n\n# Call the get_instance method.\nresult = client.get_instance request\n\n# The returned object is of type Google::Cloud::Chronicle::V1::Instance.\np result\n```\n\n### #initialize\n\n def initialize() { |config| ... } -\u003e Client\n\nCreate a new InstanceService REST client object. \n**Yields**\n\n- (config) --- Configure the InstanceService client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Chronicle-V1-InstanceService-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client](./Google-Cloud-Chronicle-V1-InstanceService-Rest-Client)) --- a new instance of Client\n**Example** \n\n```ruby\n# Create a client using the default configuration\nclient = ::Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.new\n\n# Create a client using a custom configuration\nclient = ::Google::Cloud::Chronicle::V1::InstanceService::Rest::Client.new do |config|\n config.timeout = 10.0\nend\n```\n\n### #logger\n\n def logger() -\u003e Logger\n\nThe logger used for request/response debug logging. \n**Returns**\n\n- (Logger)\n\n### #universe_domain\n\n def universe_domain() -\u003e String\n\nThe effective universe domain \n**Returns**\n\n- (String)"]]