Skip to content

Commit

Permalink
Update for Enterprise Standard 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 2, 2024
1 parent 5add675 commit 9e174d9
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 4 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-mscopensubscription/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-08-02 Version: 1.0.1
- Update for Enterprise Standard 1.

2021-12-10 Version: 1.0.0
- Init.

7 changes: 3 additions & 4 deletions aliyun-java-sdk-mscopensubscription/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-mscopensubscription</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>
<version>1.0.1</version>
<name>aliyun-java-sdk-mscopensubscription</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down Expand Up @@ -37,9 +37,8 @@ http://www.aliyun.com</description>
</dependencies>
<licenses>
<license>
<name/>
<url/>
<distribution/>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* 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.mscopensubscription.model.v20210713;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class ListEncryptWebhooksRequest extends RpcAcsRequest<ListEncryptWebhooksResponse> {


private String locale;
public ListEncryptWebhooksRequest() {
super("MscOpenSubscription", "2021-07-13", "ListEncryptWebhooks");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.GET);
}

public String getLocale() {
return this.locale;
}

public void setLocale(String locale) {
this.locale = locale;
if(locale != null){
putQueryParameter("Locale", locale);
}
}

@Override
public Class<ListEncryptWebhooksResponse> getResponseClass() {
return ListEncryptWebhooksResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/*
* 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.mscopensubscription.model.v20210713;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.mscopensubscription.transform.v20210713.ListEncryptWebhooksResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class ListEncryptWebhooksResponse extends AcsResponse {

private String requestId;

private String success;

private String code;

private List<Webhook> data;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getSuccess() {
return this.success;
}

public void setSuccess(String success) {
this.success = success;
}

public String getCode() {
return this.code;
}

public void setCode(String code) {
this.code = code;
}

public List<Webhook> getData() {
return this.data;
}

public void setData(List<Webhook> data) {
this.data = data;
}

public static class Webhook {

private Long webhookId;

private String serverUrl;

private String webhookName;

private String encryptSecurityToken;

public Long getWebhookId() {
return this.webhookId;
}

public void setWebhookId(Long webhookId) {
this.webhookId = webhookId;
}

public String getServerUrl() {
return this.serverUrl;
}

public void setServerUrl(String serverUrl) {
this.serverUrl = serverUrl;
}

public String getWebhookName() {
return this.webhookName;
}

public void setWebhookName(String webhookName) {
this.webhookName = webhookName;
}

public String getEncryptSecurityToken() {
return this.encryptSecurityToken;
}

public void setEncryptSecurityToken(String encryptSecurityToken) {
this.encryptSecurityToken = encryptSecurityToken;
}
}

@Override
public ListEncryptWebhooksResponse getInstance(UnmarshallerContext context) {
return ListEncryptWebhooksResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* 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.mscopensubscription.transform.v20210713;

import java.util.ArrayList;
import java.util.List;

import com.aliyuncs.mscopensubscription.model.v20210713.ListEncryptWebhooksResponse;
import com.aliyuncs.mscopensubscription.model.v20210713.ListEncryptWebhooksResponse.Webhook;
import com.aliyuncs.transform.UnmarshallerContext;


public class ListEncryptWebhooksResponseUnmarshaller {

public static ListEncryptWebhooksResponse unmarshall(ListEncryptWebhooksResponse listEncryptWebhooksResponse, UnmarshallerContext _ctx) {

listEncryptWebhooksResponse.setRequestId(_ctx.stringValue("ListEncryptWebhooksResponse.RequestId"));
listEncryptWebhooksResponse.setSuccess(_ctx.stringValue("ListEncryptWebhooksResponse.Success"));
listEncryptWebhooksResponse.setCode(_ctx.stringValue("ListEncryptWebhooksResponse.Code"));

List<Webhook> data = new ArrayList<Webhook>();
for (int i = 0; i < _ctx.lengthValue("ListEncryptWebhooksResponse.Data.Length"); i++) {
Webhook webhook = new Webhook();
webhook.setWebhookId(_ctx.longValue("ListEncryptWebhooksResponse.Data["+ i +"].WebhookId"));
webhook.setServerUrl(_ctx.stringValue("ListEncryptWebhooksResponse.Data["+ i +"].ServerUrl"));
webhook.setWebhookName(_ctx.stringValue("ListEncryptWebhooksResponse.Data["+ i +"].WebhookName"));
webhook.setEncryptSecurityToken(_ctx.stringValue("ListEncryptWebhooksResponse.Data["+ i +"].EncryptSecurityToken"));

data.add(webhook);
}
listEncryptWebhooksResponse.setData(data);

return listEncryptWebhooksResponse;
}
}

0 comments on commit 9e174d9

Please sign in to comment.