Skip to content

Commit

Permalink
fix(Enterprise Management): re-gen service after recent create_accoun…
Browse files Browse the repository at this point in the history
…t api response changes (#243)

Signed-off-by: namratabhadauriya <namrata.nitw@gmail.com>
  • Loading branch information
namratabhadauriya authored Apr 25, 2024
1 parent 4814145 commit 925f8bc
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.87.0-91c7c775-20240320-213027
* IBM OpenAPI SDK Code Generator Version: 3.89.1-ed9d96f4-20240417-193115
*/

package com.ibm.cloud.platform_services.enterprise_management.v1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,38 @@ protected CreateAccountResponse() { }
public String getAccountId() {
return accountId;
}

/**
* Gets the iamServiceId.
*
* The iam_service_id of the account entity that was created.
*
* @return the iamServiceId
*/
public String getIamServiceId() {
return iamServiceId;
}

/**
* Gets the iamApikeyId.
*
* The iam_apikey_id of the account entity that was created.
*
* @return the iamApikeyId
*/
public String getIamApikeyId() {
return iamApikeyId;
}

/**
* Gets the iamApikey.
*
* The iam_apikey of the account entity with owner iam policies that was created.
*
* @return the iamApikey
*/
public String getIamApikey() {
return iamApikey;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public void testImportAccountToEnterpriseNoOptions() throws Throwable {
@Test
public void testCreateAccountWOptions() throws Throwable {
// Register a mock response
String mockResponseBody = "{\"account_id\": \"accountId\"}";
String mockResponseBody = "{\"account_id\": \"accountId\", \"iam_service_id\": \"iamServiceId\", \"iam_apikey_id\": \"iamApikeyId\", \"iam_apikey\": \"iamApikey\"}";
String createAccountPath = "/accounts";
server.enqueue(new MockResponse()
.setHeader("Content-type", "application/json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ public class CreateAccountResponseTest {
public void testCreateAccountResponse() throws Throwable {
CreateAccountResponse createAccountResponseModel = new CreateAccountResponse();
assertNull(createAccountResponseModel.getAccountId());
assertNull(createAccountResponseModel.getIamServiceId());
assertNull(createAccountResponseModel.getIamApikeyId());
assertNull(createAccountResponseModel.getIamApikey());
}
}

0 comments on commit 925f8bc

Please sign in to comment.