-
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
48 changed files
with
4,706 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
2024-08-23 Version: 1.0.0 | ||
治理检测新增第一版OpenAPI | ||
|
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,118 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.aliyun</groupId> | ||
<artifactId>aliyun-java-sdk-governance</artifactId> | ||
<packaging>jar</packaging> | ||
<version>1.0.0</version> | ||
<name>aliyun-java-sdk-governance</name> | ||
<url>http://www.aliyun.com</url> | ||
<description>Aliyun Open API SDK for Java | ||
Copyright (C) Alibaba Cloud Computing | ||
All rights reserved. | ||
版权所有 (C)阿里云计算有限公司 | ||
http://www.aliyun.com</description> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>sonatype-nexus-snapshots</id> | ||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>sonatype-nexus-staging</id> | ||
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.aliyun</groupId> | ||
<artifactId>aliyun-java-sdk-core</artifactId> | ||
<optional>true</optional> | ||
<version>[4.3.2,5.0.0)</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
<version>2.8.9</version> | ||
</dependency> | ||
</dependencies> | ||
<licenses> | ||
<license> | ||
<name>The Apache License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<connection>scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git</connection> | ||
<developerConnection>scm:git:[email protected]:aliyun/aliyun-openapi-java-sdk.git</developerConnection> | ||
<url>https://github.com/aliyun/aliyun-openapi-java-sdk</url> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<id>aliyunproducts</id> | ||
<name>Aliyun SDK</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<source>1.6</source> | ||
<target>1.6</target> | ||
<encoding>UTF-8</encoding> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<excludes/> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>2.10</version> | ||
<configuration> | ||
<argLine>-Dfile.encoding=UTF-8</argLine> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.8</version> | ||
<configuration> | ||
<encoding>UTF-8</encoding> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>1.5</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.3</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>sonatype-nexus-staging</serverId> | ||
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
23 changes: 23 additions & 0 deletions
23
aliyun-java-sdk-governance/src/main/java/com/aliyuncs/governance/Endpoint.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,23 @@ | ||
/* | ||
* 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.governance; | ||
|
||
import java.util.HashMap; | ||
|
||
public class Endpoint { | ||
public static HashMap<String, String> endpointMap = new HashMap<String, String>() {}; | ||
|
||
public static String endpointRegionalType = "regional"; | ||
} |
150 changes: 150 additions & 0 deletions
150
...nce/src/main/java/com/aliyuncs/governance/model/v20210120/BatchEnrollAccountsRequest.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,150 @@ | ||
/* | ||
* 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.governance.model.v20210120; | ||
|
||
import com.aliyuncs.RpcAcsRequest; | ||
import java.util.List; | ||
import com.aliyuncs.http.MethodType; | ||
import com.aliyuncs.governance.Endpoint; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class BatchEnrollAccountsRequest extends RpcAcsRequest<BatchEnrollAccountsResponse> { | ||
|
||
|
||
private String baselineId; | ||
|
||
private List<BaselineItems> baselineItems; | ||
|
||
private List<Accounts> accounts; | ||
public BatchEnrollAccountsRequest() { | ||
super("governance", "2021-01-20", "BatchEnrollAccounts", "governance"); | ||
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 getBaselineId() { | ||
return this.baselineId; | ||
} | ||
|
||
public void setBaselineId(String baselineId) { | ||
this.baselineId = baselineId; | ||
if(baselineId != null){ | ||
putQueryParameter("BaselineId", baselineId); | ||
} | ||
} | ||
|
||
public List<BaselineItems> getBaselineItems() { | ||
return this.baselineItems; | ||
} | ||
|
||
public void setBaselineItems(List<BaselineItems> baselineItems) { | ||
this.baselineItems = baselineItems; | ||
if (baselineItems != null) { | ||
for (int depth1 = 0; depth1 < baselineItems.size(); depth1++) { | ||
if (baselineItems.get(depth1) != null) { | ||
|
||
putQueryParameter("BaselineItems." + (depth1 + 1) + ".Name" , baselineItems.get(depth1).getName()); | ||
putQueryParameter("BaselineItems." + (depth1 + 1) + ".Skip" , baselineItems.get(depth1).getSkip()); | ||
putQueryParameter("BaselineItems." + (depth1 + 1) + ".Config" , baselineItems.get(depth1).getConfig()); | ||
putQueryParameter("BaselineItems." + (depth1 + 1) + ".Version" , baselineItems.get(depth1).getVersion()); | ||
} | ||
} | ||
} | ||
} | ||
|
||
public List<Accounts> getAccounts() { | ||
return this.accounts; | ||
} | ||
|
||
public void setAccounts(List<Accounts> accounts) { | ||
this.accounts = accounts; | ||
if (accounts != null) { | ||
for (int depth1 = 0; depth1 < accounts.size(); depth1++) { | ||
if (accounts.get(depth1) != null) { | ||
|
||
putQueryParameter("Accounts." + (depth1 + 1) + ".AccountUid" , accounts.get(depth1).getAccountUid()); | ||
} | ||
} | ||
} | ||
} | ||
|
||
public static class BaselineItems { | ||
|
||
private String name; | ||
|
||
private Boolean skip; | ||
|
||
private String config; | ||
|
||
private String version; | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public Boolean getSkip() { | ||
return this.skip; | ||
} | ||
|
||
public void setSkip(Boolean skip) { | ||
this.skip = skip; | ||
} | ||
|
||
public String getConfig() { | ||
return this.config; | ||
} | ||
|
||
public void setConfig(String config) { | ||
this.config = config; | ||
} | ||
|
||
public String getVersion() { | ||
return this.version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
} | ||
|
||
public static class Accounts { | ||
|
||
private Long accountUid; | ||
|
||
public Long getAccountUid() { | ||
return this.accountUid; | ||
} | ||
|
||
public void setAccountUid(Long accountUid) { | ||
this.accountUid = accountUid; | ||
} | ||
} | ||
|
||
@Override | ||
public Class<BatchEnrollAccountsResponse> getResponseClass() { | ||
return BatchEnrollAccountsResponse.class; | ||
} | ||
|
||
} |
46 changes: 46 additions & 0 deletions
46
...ce/src/main/java/com/aliyuncs/governance/model/v20210120/BatchEnrollAccountsResponse.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,46 @@ | ||
/* | ||
* 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.governance.model.v20210120; | ||
|
||
import com.aliyuncs.AcsResponse; | ||
import com.aliyuncs.governance.transform.v20210120.BatchEnrollAccountsResponseUnmarshaller; | ||
import com.aliyuncs.transform.UnmarshallerContext; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class BatchEnrollAccountsResponse extends AcsResponse { | ||
|
||
private String requestId; | ||
|
||
public String getRequestId() { | ||
return this.requestId; | ||
} | ||
|
||
public void setRequestId(String requestId) { | ||
this.requestId = requestId; | ||
} | ||
|
||
@Override | ||
public BatchEnrollAccountsResponse getInstance(UnmarshallerContext context) { | ||
return BatchEnrollAccountsResponseUnmarshaller.unmarshall(this, context); | ||
} | ||
|
||
@Override | ||
public boolean checkShowJsonItemName() { | ||
return false; | ||
} | ||
} |
Oops, something went wrong.