-
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
5 changed files
with
224 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
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. | ||
|
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
51 changes: 51 additions & 0 deletions
51
...ain/java/com/aliyuncs/mscopensubscription/model/v20210713/ListEncryptWebhooksRequest.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,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; | ||
} | ||
|
||
} |
120 changes: 120 additions & 0 deletions
120
...in/java/com/aliyuncs/mscopensubscription/model/v20210713/ListEncryptWebhooksResponse.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,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; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...uncs/mscopensubscription/transform/v20210713/ListEncryptWebhooksResponseUnmarshaller.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,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; | ||
} | ||
} |