Java コンフィギュレーションバージョン情報取得
このメソッドは、コンフィギュレーションのバージョン情報を取得するために使用されます。
リクエストパラメータ一覧
| パラメータ名 | タイプ | 説明 |
|---|---|---|
| request | *ConfigurationVersionRequest | 特定のインターフェースリクエストパラメータを設定してください。詳細は コンフィギュレーションバージョン情報取得 を参照してください。 |
戻り値一覧
| 戻り値名 | タイプ | 説明 |
|---|---|---|
| result | *ConfigurationVersionResponse | インターフェース戻り値、具体的なインターフェース戻りパラメータは コンフィギュレーションバージョン情報取得 を参照してください。 |
ユニットテストコードの場所
サンプルコード
コンフィギュレーションのバージョン情報を取得するには、次のコードを使用できます。
java
package com.toolsetlink.upgradelink.api;
import com.toolsetlink.upgradelink.api.models.ConfigurationVersionRequest;
import com.toolsetlink.upgradelink.api.models.ConfigurationVersionResponse;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class ClientTest {
private final String accessKey = "mui2W50H1j-OC4xD6PgQag";
private final String accessSecret = "PEbdHFGC0uO_Pch7XWBQTMsFRxKPQAM2565eP8LJ3gc";
private Client client;
@BeforeEach
void setUp() throws Exception {
Config config = new Config();
config.setAccessKey(accessKey);
config.setAccessSecret(accessSecret);
client = new Client(config);
}
@Test
public void testGetConfigurationVersion() throws Exception {
// Client オブジェクトを作成
ConfigurationVersionRequest request = new ConfigurationVersionRequest();
request.setConfigurationKey("your-configuration-key");
try {
ConfigurationVersionResponse info = client.ConfigurationVersion(request);
System.out.println(info.code);
System.out.println(info.msg);
System.out.println(info.data);
} catch (Exception e) {
System.out.println("Exception e1:" + e);
}
System.out.println("testGetConfigurationVersion end");
}
}