APIHubClient class
API Hub client used by API Hub tooling.
- Implemented types
Constructors
- APIHubClient({String? accessToken, String? serviceAccountJson, ApiHubRequestExecutor? requestExecutor, ApiHubAccessTokenProvider? accessTokenProvider})
- Creates an API Hub client.
Properties
- accessToken → String?
-
Optional static access token for API Hub requests.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rootUrl → String
-
Base URL for API Hub REST endpoints.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceAccountJson → String?
-
Optional service-account JSON used for token resolution.
final
Methods
-
extractResourceName(
String urlOrPath) → APIHubResourceNames -
Extracts normalized API Hub resource names from
urlOrPath. -
getApi(
String apiResourceName) → Future< Map< String, Object?> > -
Fetches one API resource by
apiResourceName. -
getApiVersion(
String apiVersionName) → Future< Map< String, Object?> > -
Fetches one API version resource by
apiVersionName. -
getSpecContent(
String path) → Future< String> -
Resolves and returns specification content for
path.override -
listApis(
String project, String location) → Future< List< Map< >String, Object?> > -
Lists APIs under
project/location. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited