# Modify the configuration for all ConnectionService clients::Google::Cloud::ApigeeConnect::V1::ConnectionService::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.
# Create a client using the default configurationclient=::Google::Cloud::ApigeeConnect::V1::ConnectionService::Rest::Client.new# Create a client using a custom configurationclient=::Google::Cloud::ApigeeConnect::V1::ConnectionService::Rest::Client.newdo|config|config.timeout=10.0end
Pass arguments to list_connections 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. Parent name of the form:
projects/{project_number or project_id}/endpoints/{endpoint}.
page_size (::Integer) — The maximum number of connections to return. The service may return fewer
than this value. If unspecified, at most 100 connections will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.
page_token (::String) — A page token, received from a previous ListConnections call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListConnections must
match the call that provided the page token.
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/apigee_connect/v1"# Create a client object. The client can be reused for multiple calls.client=Google::Cloud::ApigeeConnect::V1::ConnectionService::Rest::Client.new# Create a request. To set request fields, pass in keyword arguments.request=Google::Cloud::ApigeeConnect::V1::ListConnectionsRequest.new# Call the list_connections method.result=client.list_connectionsrequest# 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.eachdo|item|# Each element is of type ::Google::Cloud::ApigeeConnect::V1::Connection.pitemend
#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::ConnectionService::Rest::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-ConnectionService-Rest-Client)\n- [1.2.1](/ruby/docs/reference/google-cloud-apigee_connect-v1/1.2.1/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [1.1.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/1.1.0/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [1.0.1](/ruby/docs/reference/google-cloud-apigee_connect-v1/1.0.1/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [0.7.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.7.0/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [0.6.2](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.6.2/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [0.5.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.5.0/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [0.4.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.4.0/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [0.3.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.3.0/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [0.2.0](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.2.0/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)\n- [0.1.4](/ruby/docs/reference/google-cloud-apigee_connect-v1/0.1.4/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client) \nReference documentation and code samples for the Apigee Connect V1 API class Google::Cloud::ApigeeConnect::V1::ConnectionService::Rest::Client.\n\nREST client for the ConnectionService service.\n\n\n\u003cbr /\u003e\n\nService Interface for the Apigee Connect connection management APIs. \n\nInherits\n--------\n\n- Object \n\nIncludes\n--------\n\n- [Google::Cloud::ApigeeConnect::V1::ConnectionService::Paths](./Google-Cloud-ApigeeConnect-V1-ConnectionService-Paths)\n\nMethods\n-------\n\n### .configure\n\n def self.configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the ConnectionService Client class.\n\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client-Configuration \"Google::Cloud::ApigeeConnect::V1::ConnectionService::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-ApigeeConnect-V1-ConnectionService-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client-Configuration))\n**Example** \n\n```ruby\n# Modify the configuration for all ConnectionService clients\n::Google::Cloud::ApigeeConnect::V1::ConnectionService::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 ConnectionService 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-ConnectionService-Rest-Client#Google__Cloud__ApigeeConnect__V1__ConnectionService__Rest__Client_configure_class_ \"Google::Cloud::ApigeeConnect::V1::ConnectionService::Rest::Client.configure (method)\").\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client-Configuration \"Google::Cloud::ApigeeConnect::V1::ConnectionService::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-ApigeeConnect-V1-ConnectionService-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client-Configuration))\n\n### #initialize\n\n def initialize() { |config| ... } -\u003e Client\n\nCreate a new ConnectionService REST client object. \n**Yields**\n\n- (config) --- Configure the ConnectionService client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client-Configuration)) \n**Returns**\n\n- ([Client](./Google-Cloud-ApigeeConnect-V1-ConnectionService-Rest-Client)) --- a new instance of Client\n**Example** \n\n```ruby\n# Create a client using the default configuration\nclient = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Rest::Client.new\n\n# Create a client using a custom configuration\nclient = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Rest::Client.new do |config|\n config.timeout = 10.0\nend\n```\n\n### #list_connections\n\n def list_connections(request, options = nil) -\u003e ::Gapic::Rest::PagedEnumerable\u003c::Google::Cloud::ApigeeConnect::V1::Connection\u003e\n def list_connections(parent: nil, page_size: nil, page_token: nil) -\u003e ::Gapic::Rest::PagedEnumerable\u003c::Google::Cloud::ApigeeConnect::V1::Connection\u003e\n\nLists connections that are currently active for the given Apigee Connect\nendpoint. \n**Overloads** \n\n def list_connections(request, options = nil) -\u003e ::Gapic::Rest::PagedEnumerable\u003c::Google::Cloud::ApigeeConnect::V1::Connection\u003e\n\nPass arguments to `list_connections` via a request object, either of type [ListConnectionsRequest](/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-ListConnectionsRequest \"Google::Cloud::ApigeeConnect::V1::ListConnectionsRequest (class)\") or an equivalent Hash. \n**Parameters**\n\n- **request** ([::Google::Cloud::ApigeeConnect::V1::ListConnectionsRequest](./Google-Cloud-ApigeeConnect-V1-ListConnectionsRequest), ::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 list_connections(parent: nil, page_size: nil, page_token: nil) -\u003e ::Gapic::Rest::PagedEnumerable\u003c::Google::Cloud::ApigeeConnect::V1::Connection\u003e\n\nPass arguments to `list_connections` 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**Parameters**\n\n- **parent** (::String) --- Required. Parent name of the form: `projects/{project_number or project_id}/endpoints/{endpoint}`.\n- **page_size** (::Integer) --- The maximum number of connections to return. The service may return fewer than this value. If unspecified, at most 100 connections will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.\n- **page_token** (::String) --- A page token, received from a previous `ListConnections` call. Provide this to retrieve the subsequent page.\n\n\n When paginating, all other parameters provided to `ListConnections` must\nmatch the call that provided the page token. \n**Yields**\n\n- (result, operation) --- Access the result along with the TransportOperation object \n**Yield Parameters**\n\n- **result** (::Gapic::Rest::PagedEnumerable\\\u003c[::Google::Cloud::ApigeeConnect::V1::Connection](./Google-Cloud-ApigeeConnect-V1-Connection)\\\u003e)\n- **operation** (::Gapic::Rest::TransportOperation) \n**Returns**\n\n- (::Gapic::Rest::PagedEnumerable\\\u003c[::Google::Cloud::ApigeeConnect::V1::Connection](./Google-Cloud-ApigeeConnect-V1-Connection)\\\u003e) \n**Raises**\n\n- (::Google::Cloud::Error) --- if the REST call 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::ConnectionService::Rest::Client.new\n\n# Create a request. To set request fields, pass in keyword arguments.\nrequest = Google::Cloud::ApigeeConnect::V1::ListConnectionsRequest.new\n\n# Call the list_connections method.\nresult = client.list_connections request\n\n# The returned object is of type Gapic::PagedEnumerable. You can iterate\n# over elements, and API calls will be issued to fetch pages as needed.\nresult.each do |item|\n # Each element is of type ::Google::Cloud::ApigeeConnect::V1::Connection.\n p item\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)"]]