-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
275 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...s/src/main/java/com/aliyuncs/baas/model/v20181221/CreateAntChainKmsAccountNewRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.aliyuncs.baas.model.v20181221; | ||
|
||
import com.aliyuncs.RpcAcsRequest; | ||
import com.aliyuncs.http.MethodType; | ||
import com.aliyuncs.baas.Endpoint; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class CreateAntChainKmsAccountNewRequest extends RpcAcsRequest<CreateAntChainKmsAccountNewResponse> { | ||
|
||
|
||
private String antChainId; | ||
|
||
private String account; | ||
public CreateAntChainKmsAccountNewRequest() { | ||
super("Baas", "2018-12-21", "CreateAntChainKmsAccountNew", "baas"); | ||
setMethod(MethodType.POST); | ||
try { | ||
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); | ||
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); | ||
} catch (Exception e) {} | ||
} | ||
|
||
public String getAntChainId() { | ||
return this.antChainId; | ||
} | ||
|
||
public void setAntChainId(String antChainId) { | ||
this.antChainId = antChainId; | ||
if(antChainId != null){ | ||
putBodyParameter("AntChainId", antChainId); | ||
} | ||
} | ||
|
||
public String getAccount() { | ||
return this.account; | ||
} | ||
|
||
public void setAccount(String account) { | ||
this.account = account; | ||
if(account != null){ | ||
putBodyParameter("Account", account); | ||
} | ||
} | ||
|
||
@Override | ||
public Class<CreateAntChainKmsAccountNewResponse> getResponseClass() { | ||
return CreateAntChainKmsAccountNewResponse.class; | ||
} | ||
|
||
} |
139 changes: 139 additions & 0 deletions
139
.../src/main/java/com/aliyuncs/baas/model/v20181221/CreateAntChainKmsAccountNewResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.aliyuncs.baas.model.v20181221; | ||
|
||
import com.aliyuncs.AcsResponse; | ||
import com.aliyuncs.baas.transform.v20181221.CreateAntChainKmsAccountNewResponseUnmarshaller; | ||
import com.aliyuncs.transform.UnmarshallerContext; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class CreateAntChainKmsAccountNewResponse extends AcsResponse { | ||
|
||
private String httpStatusCode; | ||
|
||
private String requestId; | ||
|
||
private Boolean success; | ||
|
||
private String resultMessage; | ||
|
||
private String code; | ||
|
||
private String message; | ||
|
||
private String resultCode; | ||
|
||
private Result result; | ||
|
||
public String getHttpStatusCode() { | ||
return this.httpStatusCode; | ||
} | ||
|
||
public void setHttpStatusCode(String httpStatusCode) { | ||
this.httpStatusCode = httpStatusCode; | ||
} | ||
|
||
public String getRequestId() { | ||
return this.requestId; | ||
} | ||
|
||
public void setRequestId(String requestId) { | ||
this.requestId = requestId; | ||
} | ||
|
||
public Boolean getSuccess() { | ||
return this.success; | ||
} | ||
|
||
public void setSuccess(Boolean success) { | ||
this.success = success; | ||
} | ||
|
||
public String getResultMessage() { | ||
return this.resultMessage; | ||
} | ||
|
||
public void setResultMessage(String resultMessage) { | ||
this.resultMessage = resultMessage; | ||
} | ||
|
||
public String getCode() { | ||
return this.code; | ||
} | ||
|
||
public void setCode(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getMessage() { | ||
return this.message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
public String getResultCode() { | ||
return this.resultCode; | ||
} | ||
|
||
public void setResultCode(String resultCode) { | ||
this.resultCode = resultCode; | ||
} | ||
|
||
public Result getResult() { | ||
return this.result; | ||
} | ||
|
||
public void setResult(Result result) { | ||
this.result = result; | ||
} | ||
|
||
public static class Result { | ||
|
||
private String pubKey; | ||
|
||
private String myKmsKeyId; | ||
|
||
public String getPubKey() { | ||
return this.pubKey; | ||
} | ||
|
||
public void setPubKey(String pubKey) { | ||
this.pubKey = pubKey; | ||
} | ||
|
||
public String getMyKmsKeyId() { | ||
return this.myKmsKeyId; | ||
} | ||
|
||
public void setMyKmsKeyId(String myKmsKeyId) { | ||
this.myKmsKeyId = myKmsKeyId; | ||
} | ||
} | ||
|
||
@Override | ||
public CreateAntChainKmsAccountNewResponse getInstance(UnmarshallerContext context) { | ||
return CreateAntChainKmsAccountNewResponseUnmarshaller.unmarshall(this, context); | ||
} | ||
|
||
@Override | ||
public boolean checkShowJsonItemName() { | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...om/aliyuncs/baas/transform/v20181221/CreateAntChainKmsAccountNewResponseUnmarshaller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.aliyuncs.baas.transform.v20181221; | ||
|
||
import com.aliyuncs.baas.model.v20181221.CreateAntChainKmsAccountNewResponse; | ||
import com.aliyuncs.baas.model.v20181221.CreateAntChainKmsAccountNewResponse.Result; | ||
import com.aliyuncs.transform.UnmarshallerContext; | ||
|
||
|
||
public class CreateAntChainKmsAccountNewResponseUnmarshaller { | ||
|
||
public static CreateAntChainKmsAccountNewResponse unmarshall(CreateAntChainKmsAccountNewResponse createAntChainKmsAccountNewResponse, UnmarshallerContext _ctx) { | ||
|
||
createAntChainKmsAccountNewResponse.setRequestId(_ctx.stringValue("CreateAntChainKmsAccountNewResponse.RequestId")); | ||
createAntChainKmsAccountNewResponse.setHttpStatusCode(_ctx.stringValue("CreateAntChainKmsAccountNewResponse.HttpStatusCode")); | ||
createAntChainKmsAccountNewResponse.setSuccess(_ctx.booleanValue("CreateAntChainKmsAccountNewResponse.Success")); | ||
createAntChainKmsAccountNewResponse.setResultMessage(_ctx.stringValue("CreateAntChainKmsAccountNewResponse.ResultMessage")); | ||
createAntChainKmsAccountNewResponse.setCode(_ctx.stringValue("CreateAntChainKmsAccountNewResponse.Code")); | ||
createAntChainKmsAccountNewResponse.setMessage(_ctx.stringValue("CreateAntChainKmsAccountNewResponse.Message")); | ||
createAntChainKmsAccountNewResponse.setResultCode(_ctx.stringValue("CreateAntChainKmsAccountNewResponse.ResultCode")); | ||
|
||
Result result = new Result(); | ||
result.setPubKey(_ctx.stringValue("CreateAntChainKmsAccountNewResponse.Result.PubKey")); | ||
result.setMyKmsKeyId(_ctx.stringValue("CreateAntChainKmsAccountNewResponse.Result.MyKmsKeyId")); | ||
createAntChainKmsAccountNewResponse.setResult(result); | ||
|
||
return createAntChainKmsAccountNewResponse; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters