Skip to content

Commit

Permalink
Standardizing api.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 13, 2023
1 parent c8a168f commit 263e240
Show file tree
Hide file tree
Showing 159 changed files with 10,838 additions and 1,132 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-cloud-siem/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-12-13 Version: 1.0.3
- Standardizing api.

2023-11-01 Version: 1.0.2
- Standardizing api.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-cloud-siem/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-cloud-siem</artifactId>
<packaging>jar</packaging>
<version>1.0.2</version>
<version>1.0.3</version>
<name>aliyun-java-sdk-cloud-siem</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/*
* 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.cloud_siem.model.v20220616;

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

/**
* @author auto create
* @version
*/
public class AddDataSourceLogRequest extends RpcAcsRequest<AddDataSourceLogResponse> {


private String cloudCode;

private String accountId;

private String logCode;

private String dataSourceInstanceLogs;

private String dataSourceInstanceId;
public AddDataSourceLogRequest() {
super("cloud-siem", "2022-06-16", "AddDataSourceLog", "cloud-siem");
setMethod(MethodType.POST);
}

public String getCloudCode() {
return this.cloudCode;
}

public void setCloudCode(String cloudCode) {
this.cloudCode = cloudCode;
if(cloudCode != null){
putBodyParameter("CloudCode", cloudCode);
}
}

public String getAccountId() {
return this.accountId;
}

public void setAccountId(String accountId) {
this.accountId = accountId;
if(accountId != null){
putBodyParameter("AccountId", accountId);
}
}

public String getLogCode() {
return this.logCode;
}

public void setLogCode(String logCode) {
this.logCode = logCode;
if(logCode != null){
putBodyParameter("LogCode", logCode);
}
}

public String getDataSourceInstanceLogs() {
return this.dataSourceInstanceLogs;
}

public void setDataSourceInstanceLogs(String dataSourceInstanceLogs) {
this.dataSourceInstanceLogs = dataSourceInstanceLogs;
if(dataSourceInstanceLogs != null){
putBodyParameter("DataSourceInstanceLogs", dataSourceInstanceLogs);
}
}

public String getDataSourceInstanceId() {
return this.dataSourceInstanceId;
}

public void setDataSourceInstanceId(String dataSourceInstanceId) {
this.dataSourceInstanceId = dataSourceInstanceId;
if(dataSourceInstanceId != null){
putBodyParameter("DataSourceInstanceId", dataSourceInstanceId);
}
}

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

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

import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloud_siem.transform.v20220616.AddDataSourceLogResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private Data data;

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

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

public Data getData() {
return this.data;
}

public void setData(Data data) {
this.data = data;
}

public static class Data {

private Integer count;

private String logInstanceId;

public Integer getCount() {
return this.count;
}

public void setCount(Integer count) {
this.count = count;
}

public String getLogInstanceId() {
return this.logInstanceId;
}

public void setLogInstanceId(String logInstanceId) {
this.logInstanceId = logInstanceId;
}
}

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

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

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

/**
* @author auto create
* @version
*/
public class AddDataSourceRequest extends RpcAcsRequest<AddDataSourceResponse> {


private String dataSourceType;

private String cloudCode;

private String dataSourceInstanceName;

private String accountId;

private String dataSourceInstanceRemark;

private String dataSourceInstanceParams;
public AddDataSourceRequest() {
super("cloud-siem", "2022-06-16", "AddDataSource", "cloud-siem");
setMethod(MethodType.POST);
}

public String getDataSourceType() {
return this.dataSourceType;
}

public void setDataSourceType(String dataSourceType) {
this.dataSourceType = dataSourceType;
if(dataSourceType != null){
putBodyParameter("DataSourceType", dataSourceType);
}
}

public String getCloudCode() {
return this.cloudCode;
}

public void setCloudCode(String cloudCode) {
this.cloudCode = cloudCode;
if(cloudCode != null){
putBodyParameter("CloudCode", cloudCode);
}
}

public String getDataSourceInstanceName() {
return this.dataSourceInstanceName;
}

public void setDataSourceInstanceName(String dataSourceInstanceName) {
this.dataSourceInstanceName = dataSourceInstanceName;
if(dataSourceInstanceName != null){
putBodyParameter("DataSourceInstanceName", dataSourceInstanceName);
}
}

public String getAccountId() {
return this.accountId;
}

public void setAccountId(String accountId) {
this.accountId = accountId;
if(accountId != null){
putBodyParameter("AccountId", accountId);
}
}

public String getDataSourceInstanceRemark() {
return this.dataSourceInstanceRemark;
}

public void setDataSourceInstanceRemark(String dataSourceInstanceRemark) {
this.dataSourceInstanceRemark = dataSourceInstanceRemark;
if(dataSourceInstanceRemark != null){
putBodyParameter("DataSourceInstanceRemark", dataSourceInstanceRemark);
}
}

public String getDataSourceInstanceParams() {
return this.dataSourceInstanceParams;
}

public void setDataSourceInstanceParams(String dataSourceInstanceParams) {
this.dataSourceInstanceParams = dataSourceInstanceParams;
if(dataSourceInstanceParams != null){
putBodyParameter("DataSourceInstanceParams", dataSourceInstanceParams);
}
}

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

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

import com.aliyuncs.AcsResponse;
import com.aliyuncs.cloud_siem.transform.v20220616.AddDataSourceResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private Data data;

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

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

public Data getData() {
return this.data;
}

public void setData(Data data) {
this.data = data;
}

public static class Data {

private Integer count;

private String dataSourceInstanceId;

public Integer getCount() {
return this.count;
}

public void setCount(Integer count) {
this.count = count;
}

public String getDataSourceInstanceId() {
return this.dataSourceInstanceId;
}

public void setDataSourceInstanceId(String dataSourceInstanceId) {
this.dataSourceInstanceId = dataSourceInstanceId;
}
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit 263e240

Please sign in to comment.