Reference documentation and code samples for the Apigee Connect V1 API class Google::Cloud::ApigeeConnect::V1::Tether::Client.
Client for the Tether service.
Tether provides a way for the control plane to send HTTP API requests to
services in data planes that runs in a remote datacenter without
requiring customers to open firewalls on their runtime plane.
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.
Egress streams egress requests and responses. Logically, this is not
actually a streaming request, but uses streaming as a mechanism to flip
the client-server relationship of gRPC so that the server can act as a
client.
The listener, the RPC server, accepts connections from the dialer,
the RPC client.
The listener streams http requests and the dialer streams http responses.
require"google/cloud/apigee_connect/v1"# Create a client object. The client can be reused for multiple calls.client=Google::Cloud::ApigeeConnect::V1::Tether::Client.new# Create an input stream.input=Gapic::StreamInput.new# Call the egress method to start streaming.output=client.egressinput# Send requests on the stream. For each request object, set fields by# passing keyword arguments. Be sure to close the stream when done.input << Google::Cloud::ApigeeConnect::V1::EgressResponse.newinput << Google::Cloud::ApigeeConnect::V1::EgressResponse.newinput.close# The returned object is a streamed enumerable yielding elements of type# ::Google::Cloud::ApigeeConnect::V1::EgressRequestoutput.eachdo|current_response|pcurrent_responseend
# Create a client using the default configurationclient=::Google::Cloud::ApigeeConnect::V1::Tether::Client.new# Create a client using a custom configurationclient=::Google::Cloud::ApigeeConnect::V1::Tether::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-04 UTC."],[],[],null,["# Apigee Connect V1 API - Class Google::Cloud::ApigeeConnect::V1::Tether::Client (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [1.2.1](/ruby/docs/reference/google-cloud-apigee_connect-v1/1.2.1/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [1.1.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/1.1.0/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [1.0.1](/ruby/docs/reference/google-cloud-apigee_connect-v1/1.0.1/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [0.7.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.7.0/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [0.6.2](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.6.2/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [0.5.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.5.0/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [0.4.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.4.0/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [0.3.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.3.0/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [0.2.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.2.0/Google-Cloud-ApigeeConnect-V1-Tether-Client)\n- [0.1.4](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.1.4/Google-Cloud-ApigeeConnect-V1-Tether-Client) \nReference documentation and code samples for the Apigee Connect V1 API class Google::Cloud::ApigeeConnect::V1::Tether::Client.\n\nClient for the Tether service.\n\n\n\u003cbr /\u003e\n\nTether provides a way for the control plane to send HTTP API requests to\nservices in data planes that runs in a remote datacenter without\nrequiring customers to open firewalls on their runtime plane. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### .configure\n\n def self.configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the Tether Client class.\n\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-Tether-Client-Configuration \"Google::Cloud::ApigeeConnect::V1::Tether::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-ApigeeConnect-V1-Tether-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-ApigeeConnect-V1-Tether-Client-Configuration))\n**Example** \n\n```ruby\n# Modify the configuration for all Tether clients\n::Google::Cloud::ApigeeConnect::V1::Tether::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 Tether 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-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-Tether-Client#Google__Cloud__ApigeeConnect__V1__Tether__Client_configure_class_ \"Google::Cloud::ApigeeConnect::V1::Tether::Client.configure (method)\").\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-Tether-Client-Configuration \"Google::Cloud::ApigeeConnect::V1::Tether::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-ApigeeConnect-V1-Tether-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-ApigeeConnect-V1-Tether-Client-Configuration))\n\n### #egress\n\n def egress(request, options = nil) { |response, operation| ... } -\u003e ::Enumerable\u003c::Google::Cloud::ApigeeConnect::V1::EgressRequest\u003e\n\nEgress streams egress requests and responses. Logically, this is not\nactually a streaming request, but uses streaming as a mechanism to flip\nthe client-server relationship of gRPC so that the server can act as a\nclient.\nThe listener, the RPC server, accepts connections from the dialer,\nthe RPC client.\nThe listener streams http requests and the dialer streams http responses. \n**Parameters**\n\n- **request** (::Gapic::StreamInput, ::Enumerable\\\u003c[::Google::Cloud::ApigeeConnect::V1::EgressResponse](./Google-Cloud-ApigeeConnect-V1-EgressResponse), ::Hash\\\u003e) --- An enumerable of [EgressResponse](/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-EgressResponse \"Google::Cloud::ApigeeConnect::V1::EgressResponse (class)\") instances.\n- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. \n**Yields**\n\n- (response, operation) --- Access the result along with the RPC operation \n**Yield Parameters**\n\n- **response** (::Enumerable\\\u003c[::Google::Cloud::ApigeeConnect::V1::EgressRequest](./Google-Cloud-ApigeeConnect-V1-EgressRequest)\\\u003e)\n- **operation** (::GRPC::ActiveCall::Operation) \n**Returns**\n\n- (::Enumerable\\\u003c[::Google::Cloud::ApigeeConnect::V1::EgressRequest](./Google-Cloud-ApigeeConnect-V1-EgressRequest)\\\u003e) \n**Raises**\n\n- (::Google::Cloud::Error) --- if the RPC is aborted.\n**Example**\n\nBasic example \n\n```ruby\nrequire \"google/cloud/apigee_connect/v1\"\n\n# Create a client object. The client can be reused for multiple calls.\nclient = Google::Cloud::ApigeeConnect::V1::Tether::Client.new\n\n# Create an input stream.\ninput = Gapic::StreamInput.new\n\n# Call the egress method to start streaming.\noutput = client.egress input\n\n# Send requests on the stream. For each request object, set fields by\n# passing keyword arguments. Be sure to close the stream when done.\ninput \u003c\u003c Google::Cloud::ApigeeConnect::V1::EgressResponse.new\ninput \u003c\u003c Google::Cloud::ApigeeConnect::V1::EgressResponse.new\ninput.close\n\n# The returned object is a streamed enumerable yielding elements of type\n# ::Google::Cloud::ApigeeConnect::V1::EgressRequest\noutput.each do |current_response|\n p current_response\nend\n```\n\n### #initialize\n\n def initialize() { |config| ... } -\u003e Client\n\nCreate a new Tether client object. \n**Yields**\n\n- (config) --- Configure the Tether client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-ApigeeConnect-V1-Tether-Client-Configuration)) \n**Returns**\n\n- ([Client](./Google-Cloud-ApigeeConnect-V1-Tether-Client)) --- a new instance of Client\n**Example** \n\n```ruby\n# Create a client using the default configuration\nclient = ::Google::Cloud::ApigeeConnect::V1::Tether::Client.new\n\n# Create a client using a custom configuration\nclient = ::Google::Cloud::ApigeeConnect::V1::Tether::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)"]]