データクライアント スキーマ API

スキーマを管理 / 使用する方法を提供します。 スキーマ はアーティファクトのセットです。 スキーマ は一意の名前、バージョン、不変です。 各スキーマ は、グループ ID 、アーティファクト ID 、およびバージョンで識別されます。

SchemaApi のすべての仕様については 、 SchemaApiを参照してください。

次のページで は、リクエストごとの設定メトリックについて説明します。

Scala
Java
val client = BaseClient()
val schemasApi = client.of[SchemasApi]

val result = schemasApi.listSchemas().executeToEntity()

result
  .andThen {
    case Success(response: ListSchemasResponse) =>
      // do something with the list of schemas
      response.items.map(_.foreach(schema => println(schema.hrn)))
    case Failure(ex) =>
      ex.printStackTrace()
  }

Await.result(result, Duration.Inf)
BaseClient client = BaseClientJava.instance();
SchemasApi schemasApi = new SchemasApi(client);

ListSchemasResponse listResult =
    schemasApi.listSchemas().build().executeToEntity().toCompletableFuture().join();

// do something with the list of schemas
listResult
    .getItems()
    .ifPresent(list -> list.forEach(schema -> System.out.println(schema.getHrn())));

」に一致する結果は 件です

    」に一致する結果はありません