googleapis/swift-google-cloud-apihub-v1
The following types provide methods to make RPCs. They are a good starting point
Overview
The following types provide methods to make RPCs. They are a good starting point to learn about this library.
ApiHubClient: This service provides all methods related to the API hub.ApiHubDependenciesClient: This service provides methods for various operations related to a Dependency in the API hub.ApiHubCollectClient: This service exposes methods used for collecting various types of data from different first party and third party sources and push it to Hub's collect layer.ApiHubCurateClient: This service is used for managing curations for processing API data consumed from collect layer.ApiHubDiscoveryClient: This service exposes methods used to manage DiscoveredApiObservations and DiscoveredApiOperations.HostProjectRegistrationServiceClient: This service is used for managing the host project registrations.LintingServiceClient: This service provides all methods related to the 1p Linter.ApiHubPluginClient: This service is used for managing plugins inside the API Hub.ProvisioningClient: This service is used for managing the data plane provisioning of the API hub.RuntimeProjectAttachmentServiceClient: This service is used for managing the runtime project attachments.
Quickstart
The following example demonstrates using ApiHubClient:
import Foundation
import GoogleCloudApiHubV1
import GoogleCloudLocation
import GoogleLongRunning
import GoogleWKT
func sample(projectId: String, locationId: String, ) async throws {
let client = try GoogleCloudApiHubV1.ApiHubClient()
let items = client.listApisByItems(
request: ListApisRequest()
.with {
$0.parent = "projects/\(projectId)/locations/\(locationId)"
}
)
for try await item in items {
print(" \(item)")
}
}Requirements
For the minimum supported Swift version and platform requirements, see the Requirements section in the google-cloud-swift repository.
Installation
Add swift-google-cloud-apihub-v1 as a package dependency:
swift package add-dependency https://github.com/googleapis/swift-google-cloud-apihub-v1.git --from 0.6.0Then add GoogleCloudApiHubV1 to your target's dependencies:
swift package add-target-dependency GoogleCloudApiHubV1 <target-name> --package swift-google-cloud-apihub-v1Troubleshooting
For questions, bug reports, or feature requests, please open an issue in the google-cloud-swift repository.
Contributing
Contributions to this library are always welcome and highly encouraged.
All development, issues, and pull requests are managed in the google-cloud-swift monorepo. See CONTRIBUTING.md for details on getting started.
License
Apache 2.0 - See LICENSE for more information.
Package Metadata
Repository: googleapis/swift-google-cloud-apihub-v1
Default branch: main
README: README.md