API hub API - Module Google::Cloud::ApiHub (v0.4.0)

Reference documentation and code samples for the API hub API module Google::Cloud::ApiHub.

Methods

.api_hub

defself.api_hub(version::v1,&block)->::Object

Create a new client object for ApiHub.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::ApiHub::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the ApiHub service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the ApiHub service.You can determine whether the method will succeed by callingApiHub.api_hub_available?.

About ApiHub

This service provides all methods related to the API hub.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.api_hub_available?

defself.api_hub_available?(version::v1)->boolean

Determines whether the ApiHub service is supported by the current client.If true, you can retrieve a client object by callingApiHub.api_hub.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the ApiHub service,or if the versioned client gem needs an update to support the ApiHub service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.api_hub_collect

defself.api_hub_collect(version::v1,&block)->::Object

Create a new client object for ApiHubCollect.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::ApiHubCollect::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the ApiHubCollect service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the ApiHubCollect service.You can determine whether the method will succeed by callingApiHub.api_hub_collect_available?.

About ApiHubCollect

This service exposes methods used for collecting various types of data fromdifferent first party and third party sources and push it to Hub's collectlayer.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.api_hub_collect_available?

defself.api_hub_collect_available?(version::v1)->boolean

Determines whether the ApiHubCollect service is supported by the current client.If true, you can retrieve a client object by callingApiHub.api_hub_collect.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the ApiHubCollect service,or if the versioned client gem needs an update to support the ApiHubCollect service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.api_hub_curate

defself.api_hub_curate(version::v1,&block)->::Object

Create a new client object for ApiHubCurate.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::ApiHubCurate::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the ApiHubCurate service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the ApiHubCurate service.You can determine whether the method will succeed by callingApiHub.api_hub_curate_available?.

About ApiHubCurate

This service is used for managing curations for processing API data consumedfrom collect layer.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.api_hub_curate_available?

defself.api_hub_curate_available?(version::v1)->boolean

Determines whether the ApiHubCurate service is supported by the current client.If true, you can retrieve a client object by callingApiHub.api_hub_curate.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the ApiHubCurate service,or if the versioned client gem needs an update to support the ApiHubCurate service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.api_hub_dependencies

defself.api_hub_dependencies(version::v1,&block)->::Object

Create a new client object for ApiHubDependencies.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::ApiHubDependencies::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the ApiHubDependencies service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the ApiHubDependencies service.You can determine whether the method will succeed by callingApiHub.api_hub_dependencies_available?.

About ApiHubDependencies

This service provides methods for various operations related to aDependency in the API hub.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.api_hub_dependencies_available?

defself.api_hub_dependencies_available?(version::v1)->boolean

Determines whether the ApiHubDependencies service is supported by the current client.If true, you can retrieve a client object by callingApiHub.api_hub_dependencies.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the ApiHubDependencies service,or if the versioned client gem needs an update to support the ApiHubDependencies service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.api_hub_discovery

defself.api_hub_discovery(version::v1,&block)->::Object

Create a new client object for ApiHubDiscovery.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::ApiHubDiscovery::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the ApiHubDiscovery service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the ApiHubDiscovery service.You can determine whether the method will succeed by callingApiHub.api_hub_discovery_available?.

About ApiHubDiscovery

This service exposes methods used to manage DiscoveredApiObservationsand DiscoveredApiOperations.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.api_hub_discovery_available?

defself.api_hub_discovery_available?(version::v1)->boolean

Determines whether the ApiHubDiscovery service is supported by the current client.If true, you can retrieve a client object by callingApiHub.api_hub_discovery.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the ApiHubDiscovery service,or if the versioned client gem needs an update to support the ApiHubDiscovery service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.api_hub_plugin

defself.api_hub_plugin(version::v1,&block)->::Object

Create a new client object for ApiHubPlugin.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::ApiHubPlugin::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the ApiHubPlugin service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the ApiHubPlugin service.You can determine whether the method will succeed by callingApiHub.api_hub_plugin_available?.

About ApiHubPlugin

This service is used for managing plugins inside the API Hub.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.api_hub_plugin_available?

defself.api_hub_plugin_available?(version::v1)->boolean

Determines whether the ApiHubPlugin service is supported by the current client.If true, you can retrieve a client object by callingApiHub.api_hub_plugin.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the ApiHubPlugin service,or if the versioned client gem needs an update to support the ApiHubPlugin service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.configure

defself.configure()->::Google::Cloud::Config

Configure the google-cloud-api_hub library.

The following configuration parameters are supported:

  • credentials (type:String, Hash, Google::Auth::Credentials) -The path to the keyfile as a String, the contents of the keyfile as aHash, or a Google::Auth::Credentials object.
  • lib_name (type:String) -The library name as recorded in instrumentation and logging.
  • lib_version (type:String) -The library version as recorded in instrumentation and logging.
  • timeout (type:Numeric) -Default timeout in seconds.
  • metadata (type:Hash{Symbol=>String}) -Additional headers to be sent with the call.
  • retry_policy (type:Hash) -The retry policy. The value is a hash with the following keys:
    • :initial_delay (type:Numeric) - The initial delay in seconds.
    • :max_delay (type:Numeric) - The max delay in seconds.
    • :multiplier (type:Numeric) - The incremental backoff multiplier.
    • :retry_codes (type:Array<String>) -The error codes that should trigger a retry.
Yields
  • (::Google::Cloud.configure.api_hub)
Returns
  • (::Google::Cloud::Config) — The default configuration used by this library

.host_project_registration_service

defself.host_project_registration_service(version::v1,&block)->::Object

Create a new client object for HostProjectRegistrationService.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::HostProjectRegistrationService::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the HostProjectRegistrationService service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the HostProjectRegistrationService service.You can determine whether the method will succeed by callingApiHub.host_project_registration_service_available?.

About HostProjectRegistrationService

This service is used for managing the host project registrations.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.host_project_registration_service_available?

defself.host_project_registration_service_available?(version::v1)->boolean

Determines whether the HostProjectRegistrationService service is supported by the current client.If true, you can retrieve a client object by callingApiHub.host_project_registration_service.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the HostProjectRegistrationService service,or if the versioned client gem needs an update to support the HostProjectRegistrationService service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.linting_service

defself.linting_service(version::v1,&block)->::Object

Create a new client object for LintingService.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::LintingService::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the LintingService service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the LintingService service.You can determine whether the method will succeed by callingApiHub.linting_service_available?.

About LintingService

This service provides all methods related to the 1p Linter.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.linting_service_available?

defself.linting_service_available?(version::v1)->boolean

Determines whether the LintingService service is supported by the current client.If true, you can retrieve a client object by callingApiHub.linting_service.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the LintingService service,or if the versioned client gem needs an update to support the LintingService service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.provisioning

defself.provisioning(version::v1,&block)->::Object

Create a new client object for Provisioning.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::Provisioning::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the Provisioning service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the Provisioning service.You can determine whether the method will succeed by callingApiHub.provisioning_available?.

About Provisioning

This service is used for managing the data plane provisioning of the API hub.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.provisioning_available?

defself.provisioning_available?(version::v1)->boolean

Determines whether the Provisioning service is supported by the current client.If true, you can retrieve a client object by callingApiHub.provisioning.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the Provisioning service,or if the versioned client gem needs an update to support the Provisioning service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

.runtime_project_attachment_service

defself.runtime_project_attachment_service(version::v1,&block)->::Object

Create a new client object for RuntimeProjectAttachmentService.

By default, this returns an instance ofGoogle::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Rest::Clientfor a REST client for version V1 of the API.However, you can specify a different API version by passing it in theversion parameter. If the RuntimeProjectAttachmentService service issupported by that API version, and the corresponding gem is available, theappropriate versioned client will be returned.

Raises an exception if the currently installed versioned client gem for thegiven API version does not support the RuntimeProjectAttachmentService service.You can determine whether the method will succeed by callingApiHub.runtime_project_attachment_service_available?.

About RuntimeProjectAttachmentService

This service is used for managing the runtime project attachments.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (::Object) — A client object for the specified version.

.runtime_project_attachment_service_available?

defself.runtime_project_attachment_service_available?(version::v1)->boolean

Determines whether the RuntimeProjectAttachmentService service is supported by the current client.If true, you can retrieve a client object by callingApiHub.runtime_project_attachment_service.If false, that method will raise an exception. This could happen if the givenAPI version does not exist or does not support the RuntimeProjectAttachmentService service,or if the versioned client gem needs an update to support the RuntimeProjectAttachmentService service.

Parameter
  • version (::String, ::Symbol)(defaults to: :v1) — The API version to connect to. Optional.Defaults to:v1.
Returns
  • (boolean) — Whether the service is available.

Constants

VERSION

value:"0.4.0"

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.