Reference documentation and code samples for the Connectors V1 API class Google::Cloud::Connectors::V1::Connectors::Rest::Client.
REST client for the Connectors service.
Connectors is the interface for managing Connectors.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the Connectors Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all Connectors clients ::Google::Cloud::Connectors::V1::Connectors::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the Connectors 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)
#create_connection
def create_connection(request, options = nil) -> ::Gapic::Operation
def create_connection(parent: nil, connection_id: nil, connection: nil) -> ::Gapic::OperationCreates a new Connection in a given project and location.
def create_connection(request, options = nil) -> ::Gapic::Operationcreate_connection via a request object, either of type
Google::Cloud::Connectors::V1::CreateConnectionRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::CreateConnectionRequest, ::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_connection(parent: nil, connection_id: nil, connection: nil) -> ::Gapic::Operationcreate_connection 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).
-
parent (::String) — Required. Parent resource of the Connection, of the form:
projects/*/locations/* - connection_id (::String) — Required. Identifier to assign to the Connection. Must be unique within scope of the parent resource.
- connection (::Google::Cloud::Connectors::V1::Connection, ::Hash) — Required. Connection resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::CreateConnectionRequest.new # Call the create_connection method. result = client.create_connection 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_connection
def delete_connection(request, options = nil) -> ::Gapic::Operation
def delete_connection(name: nil) -> ::Gapic::OperationDeletes a single Connection.
def delete_connection(request, options = nil) -> ::Gapic::Operationdelete_connection via a request object, either of type
DeleteConnectionRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::DeleteConnectionRequest, ::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_connection(name: nil) -> ::Gapic::Operationdelete_connection 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. Resource name of the form:
projects/*/locations/*/connections/*
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::DeleteConnectionRequest.new # Call the delete_connection method. result = client.delete_connection 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_connection
def get_connection(request, options = nil) -> ::Google::Cloud::Connectors::V1::Connection
def get_connection(name: nil, view: nil) -> ::Google::Cloud::Connectors::V1::ConnectionGets details of a single Connection.
def get_connection(request, options = nil) -> ::Google::Cloud::Connectors::V1::Connectionget_connection via a request object, either of type
GetConnectionRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::GetConnectionRequest, ::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_connection(name: nil, view: nil) -> ::Google::Cloud::Connectors::V1::Connectionget_connection 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. Resource name of the form:
projects/*/locations/*/connections/* -
view (::Google::Cloud::Connectors::V1::ConnectionView) — Specifies which fields of the Connection are returned in the response.
Defaults to
BASICview.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Connectors::V1::Connection)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::GetConnectionRequest.new # Call the get_connection method. result = client.get_connection request # The returned object is of type Google::Cloud::Connectors::V1::Connection. p result
#get_connection_schema_metadata
def get_connection_schema_metadata(request, options = nil) -> ::Google::Cloud::Connectors::V1::ConnectionSchemaMetadata
def get_connection_schema_metadata(name: nil) -> ::Google::Cloud::Connectors::V1::ConnectionSchemaMetadataGets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.
def get_connection_schema_metadata(request, options = nil) -> ::Google::Cloud::Connectors::V1::ConnectionSchemaMetadataget_connection_schema_metadata via a request object, either of type
GetConnectionSchemaMetadataRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::GetConnectionSchemaMetadataRequest, ::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_connection_schema_metadata(name: nil) -> ::Google::Cloud::Connectors::V1::ConnectionSchemaMetadataget_connection_schema_metadata 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. Connection name Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Connectors::V1::ConnectionSchemaMetadata)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::GetConnectionSchemaMetadataRequest.new # Call the get_connection_schema_metadata method. result = client.get_connection_schema_metadata request # The returned object is of type Google::Cloud::Connectors::V1::ConnectionSchemaMetadata. p result
#get_connector
def get_connector(request, options = nil) -> ::Google::Cloud::Connectors::V1::Connector
def get_connector(name: nil) -> ::Google::Cloud::Connectors::V1::ConnectorGets details of a single Connector.
def get_connector(request, options = nil) -> ::Google::Cloud::Connectors::V1::Connectorget_connector via a request object, either of type
GetConnectorRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::GetConnectorRequest, ::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_connector(name: nil) -> ::Google::Cloud::Connectors::V1::Connectorget_connector 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. Resource name of the form:
projects/*/locations/*/providers/*/connectors/*Only global location is supported for Connector resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Connectors::V1::Connector)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::GetConnectorRequest.new # Call the get_connector method. result = client.get_connector request # The returned object is of type Google::Cloud::Connectors::V1::Connector. p result
#get_connector_version
def get_connector_version(request, options = nil) -> ::Google::Cloud::Connectors::V1::ConnectorVersion
def get_connector_version(name: nil, view: nil) -> ::Google::Cloud::Connectors::V1::ConnectorVersionGets details of a single connector version.
def get_connector_version(request, options = nil) -> ::Google::Cloud::Connectors::V1::ConnectorVersionget_connector_version via a request object, either of type
GetConnectorVersionRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::GetConnectorVersionRequest, ::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_connector_version(name: nil, view: nil) -> ::Google::Cloud::Connectors::V1::ConnectorVersionget_connector_version 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. Resource name of the form:
projects/*/locations/*/providers/*/connectors/*/versions/*Only global location is supported for ConnectorVersion resource. -
view (::Google::Cloud::Connectors::V1::ConnectorVersionView) — Specifies which fields of the ConnectorVersion are returned in the
response. Defaults to
CUSTOMERview.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Connectors::V1::ConnectorVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::GetConnectorVersionRequest.new # Call the get_connector_version method. result = client.get_connector_version request # The returned object is of type Google::Cloud::Connectors::V1::ConnectorVersion. p result
#get_global_settings
def get_global_settings(request, options = nil) -> ::Google::Cloud::Connectors::V1::Settings
def get_global_settings(name: nil) -> ::Google::Cloud::Connectors::V1::SettingsGetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.
def get_global_settings(request, options = nil) -> ::Google::Cloud::Connectors::V1::Settingsget_global_settings via a request object, either of type
GetGlobalSettingsRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::GetGlobalSettingsRequest, ::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_global_settings(name: nil) -> ::Google::Cloud::Connectors::V1::Settingsget_global_settings 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 resource name of the Settings.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Connectors::V1::Settings)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::GetGlobalSettingsRequest.new # Call the get_global_settings method. result = client.get_global_settings request # The returned object is of type Google::Cloud::Connectors::V1::Settings. p result
#get_provider
def get_provider(request, options = nil) -> ::Google::Cloud::Connectors::V1::Provider
def get_provider(name: nil) -> ::Google::Cloud::Connectors::V1::ProviderGets details of a provider.
def get_provider(request, options = nil) -> ::Google::Cloud::Connectors::V1::Providerget_provider via a request object, either of type
GetProviderRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::GetProviderRequest, ::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_provider(name: nil) -> ::Google::Cloud::Connectors::V1::Providerget_provider 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. Resource name of the form:
projects/*/locations/*/providers/*Only global location is supported for Provider resource.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Connectors::V1::Provider)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::GetProviderRequest.new # Call the get_provider method. result = client.get_provider request # The returned object is of type Google::Cloud::Connectors::V1::Provider. p result
#get_runtime_config
def get_runtime_config(request, options = nil) -> ::Google::Cloud::Connectors::V1::RuntimeConfig
def get_runtime_config(name: nil) -> ::Google::Cloud::Connectors::V1::RuntimeConfigGets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.
def get_runtime_config(request, options = nil) -> ::Google::Cloud::Connectors::V1::RuntimeConfigget_runtime_config via a request object, either of type
GetRuntimeConfigRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::GetRuntimeConfigRequest, ::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_runtime_config(name: nil) -> ::Google::Cloud::Connectors::V1::RuntimeConfigget_runtime_config 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. Resource name of the form:
projects/*/locations/*/runtimeConfig
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Connectors::V1::RuntimeConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::GetRuntimeConfigRequest.new # Call the get_runtime_config method. result = client.get_runtime_config request # The returned object is of type Google::Cloud::Connectors::V1::RuntimeConfig. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#initialize
def initialize() { |config| ... } -> ClientCreate a new Connectors REST client object.
- (config) — Configure the Connectors client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Connectors::V1::Connectors::Rest::Client.new do |config| config.timeout = 10.0 end
#list_connections
def list_connections(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connection>
def list_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, view: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connection>Lists Connections in a given project and location.
def list_connections(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connection>list_connections via a request object, either of type
ListConnectionsRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, view: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connection>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).
-
parent (::String) — Required. Parent resource of the Connection, of the form:
projects/*/locations/* - page_size (::Integer) — Page size.
- page_token (::String) — Page token.
- filter (::String) — Filter.
- order_by (::String) — Order by parameters.
-
view (::Google::Cloud::Connectors::V1::ConnectionView) — Specifies which fields of the Connection are returned in the response.
Defaults to
BASICview.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connection>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connection>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::ListConnectionsRequest.new # Call the list_connections method. result = client.list_connections 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::Connectors::V1::Connection. p item end
#list_connector_versions
def list_connector_versions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::ConnectorVersion>
def list_connector_versions(parent: nil, page_size: nil, page_token: nil, view: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::ConnectorVersion>Lists Connector Versions in a given project and location.
def list_connector_versions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::ConnectorVersion>list_connector_versions via a request object, either of type
ListConnectorVersionsRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::ListConnectorVersionsRequest, ::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_connector_versions(parent: nil, page_size: nil, page_token: nil, view: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::ConnectorVersion>list_connector_versions 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).
-
parent (::String) — Required. Parent resource of the connectors, of the form:
projects/*/locations/*/providers/*/connectors/*Only global location is supported for ConnectorVersion resource. - page_size (::Integer) — Page size.
- page_token (::String) — Page token.
-
view (::Google::Cloud::Connectors::V1::ConnectorVersionView) — Specifies which fields of the ConnectorVersion are returned in the
response. Defaults to
BASICview.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::ConnectorVersion>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::ConnectorVersion>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::ListConnectorVersionsRequest.new # Call the list_connector_versions method. result = client.list_connector_versions 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::Connectors::V1::ConnectorVersion. p item end
#list_connectors
def list_connectors(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connector>
def list_connectors(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connector>Lists Connectors in a given project and location.
def list_connectors(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connector>list_connectors via a request object, either of type
ListConnectorsRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::ListConnectorsRequest, ::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_connectors(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connector>list_connectors 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).
-
parent (::String) — Required. Parent resource of the connectors, of the form:
projects/*/locations/*/providers/*Only global location is supported for Connector resource. - page_size (::Integer) — Page size.
- page_token (::String) — Page token.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connector>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connector>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::ListConnectorsRequest.new # Call the list_connectors method. result = client.list_connectors 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::Connectors::V1::Connector. p item end
#list_providers
def list_providers(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Provider>
def list_providers(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Provider>Lists Providers in a given project and location.
def list_providers(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Provider>list_providers via a request object, either of type
ListProvidersRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::ListProvidersRequest, ::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_providers(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Provider>list_providers 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).
-
parent (::String) — Required. Parent resource of the API, of the form:
projects/*/locations/*Only global location is supported for Provider resource. - page_size (::Integer) — Page size.
- page_token (::String) — Page token.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Provider>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Provider>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::ListProvidersRequest.new # Call the list_providers method. result = client.list_providers 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::Connectors::V1::Provider. p item end
#list_runtime_action_schemas
def list_runtime_action_schemas(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeActionSchema>
def list_runtime_action_schemas(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeActionSchema>List schema of a runtime actions filtered by action name.
def list_runtime_action_schemas(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeActionSchema>list_runtime_action_schemas via a request object, either of type
ListRuntimeActionSchemasRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::ListRuntimeActionSchemasRequest, ::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_runtime_action_schemas(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeActionSchema>list_runtime_action_schemas 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).
- parent (::String) — Required. Parent resource of RuntimeActionSchema Format: projects/{project}/locations/{location}/connections/{connection}
- page_size (::Integer) — Page size.
- page_token (::String) — Page token.
- filter (::String) — Required. Filter Format: action="{actionId}" Only action field is supported with literal equality operator. Accepted filter example: action="CancelOrder" Wildcards are not supported in the filter currently.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeActionSchema>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeActionSchema>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::ListRuntimeActionSchemasRequest.new # Call the list_runtime_action_schemas method. result = client.list_runtime_action_schemas 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::Connectors::V1::RuntimeActionSchema. p item end
#list_runtime_entity_schemas
def list_runtime_entity_schemas(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeEntitySchema>
def list_runtime_entity_schemas(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeEntitySchema>List schema of a runtime entities filtered by entity name.
def list_runtime_entity_schemas(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeEntitySchema>list_runtime_entity_schemas via a request object, either of type
ListRuntimeEntitySchemasRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::ListRuntimeEntitySchemasRequest, ::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_runtime_entity_schemas(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeEntitySchema>list_runtime_entity_schemas 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).
- parent (::String) — Required. Parent resource of RuntimeEntitySchema Format: projects/{project}/locations/{location}/connections/{connection}
- page_size (::Integer) — Page size.
- page_token (::String) — Page token.
- filter (::String) — Required. Filter Format: entity="{entityId}" Only entity field is supported with literal equality operator. Accepted filter example: entity="Order" Wildcards are not supported in the filter currently.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeEntitySchema>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::RuntimeEntitySchema>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::ListRuntimeEntitySchemasRequest.new # Call the list_runtime_entity_schemas method. result = client.list_runtime_entity_schemas 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::Connectors::V1::RuntimeEntitySchema. p item 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)
#operations_client
def operations_client() -> ::Google::Cloud::Connectors::V1::Connectors::Rest::OperationsGet the associated client for long-running operations.
#refresh_connection_schema_metadata
def refresh_connection_schema_metadata(request, options = nil) -> ::Gapic::Operation
def refresh_connection_schema_metadata(name: nil) -> ::Gapic::OperationRefresh runtime schema of a connection.
def refresh_connection_schema_metadata(request, options = nil) -> ::Gapic::Operationrefresh_connection_schema_metadata via a request object, either of type
RefreshConnectionSchemaMetadataRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::RefreshConnectionSchemaMetadataRequest, ::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 refresh_connection_schema_metadata(name: nil) -> ::Gapic::Operationrefresh_connection_schema_metadata 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. Resource name. Format: projects/{project}/locations/{location}/connections/{connection}/connectionSchemaMetadata
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::RefreshConnectionSchemaMetadataRequest.new # Call the refresh_connection_schema_metadata method. result = client.refresh_connection_schema_metadata 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
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_connection
def update_connection(request, options = nil) -> ::Gapic::Operation
def update_connection(connection: nil, update_mask: nil) -> ::Gapic::OperationUpdates the parameters of a single Connection.
def update_connection(request, options = nil) -> ::Gapic::Operationupdate_connection via a request object, either of type
UpdateConnectionRequest or an equivalent Hash.
- request (::Google::Cloud::Connectors::V1::UpdateConnectionRequest, ::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_connection(connection: nil, update_mask: nil) -> ::Gapic::Operationupdate_connection 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).
- connection (::Google::Cloud::Connectors::V1::Connection, ::Hash) — Required. Connection resource.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) —
Required. You can modify only the fields listed below.
To lock/unlock a connection:
lock_config
To suspend/resume a connection:
suspended
To update the connection details:
descriptionlabelsconnector_versionconfig_variablesauth_configdestination_configsnode_config
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/connectors/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Connectors::V1::Connectors::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Connectors::V1::UpdateConnectionRequest.new # Call the update_connection method. result = client.update_connection 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