Skip to content

Commit c48ca8c

Browse files
author
BitsAdmin
committed
Merge branch 'cdn-Java-2021-03-01-online-524-2024_05_29_17_05_43' into 'integration_2024-05-30_272976241922'
feat: [development task] CDN-524-Java (691255) See merge request iaasng/volcengine-java-sdk!177
2 parents 7c4f2cc + 006b776 commit c48ca8c

File tree

626 files changed

+103041
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

626 files changed

+103041
-0
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,6 @@
240240
<module>volcengine-java-sdk-organization</module>
241241
<module>volcengine-java-sdk-ark</module>
242242
<module>volcengine-java-sdk-ark-runtime</module>
243+
<module>volcengine-java-sdk-cdn</module>
243244
</modules>
244245
</project>

volcengine-java-sdk-bom/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@
205205
<optional>false</optional>
206206
<version>${project.version}</version>
207207
</dependency>
208+
<dependency>
209+
<groupId>com.volcengine</groupId>
210+
<artifactId>volcengine-java-sdk-cdn</artifactId>
211+
<optional>false</optional>
212+
<version>${project.version}</version>
213+
</dependency>
208214
</dependencies>
209215
</dependencyManagement>
210216
</project>

volcengine-java-sdk-cdn/pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<parent>
4+
<artifactId>volcengine-java-sdk</artifactId>
5+
<groupId>com.volcengine</groupId>
6+
<version>0.1.112</version>
7+
<relativePath>../pom.xml</relativePath>
8+
</parent>
9+
<modelVersion>4.0.0</modelVersion>
10+
<artifactId>volcengine-java-sdk-cdn</artifactId>
11+
<dependencies>
12+
<dependency>
13+
<groupId>com.volcengine</groupId>
14+
<artifactId>volcengine-java-sdk-core</artifactId>
15+
<version>${project.version}</version>
16+
</dependency>
17+
</dependencies>
18+
<build>
19+
<plugins>
20+
<plugin>
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<artifactId>maven-source-plugin</artifactId>
23+
<configuration>
24+
<excludes>
25+
<exclude>com/volcengine/cdn/examples/**</exclude>
26+
</excludes>
27+
</configuration>
28+
</plugin>
29+
<plugin>
30+
<groupId>org.apache.maven.plugins</groupId>
31+
<artifactId>maven-jar-plugin</artifactId>
32+
<configuration>
33+
<excludes>
34+
<exclude>com/volcengine/cdn/examples/**</exclude>
35+
</excludes>
36+
</configuration>
37+
</plugin>
38+
</plugins>
39+
</build>
40+
</project>

volcengine-java-sdk-cdn/src/main/java/com/volcengine/cdn/CdnApi.java

Lines changed: 5978 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
/*
2+
* cdn
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: common-version
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.volcengine.cdn.model;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import com.google.gson.TypeAdapter;
18+
import com.google.gson.annotations.JsonAdapter;
19+
import com.google.gson.annotations.SerializedName;
20+
import com.google.gson.stream.JsonReader;
21+
import com.google.gson.stream.JsonWriter;
22+
import io.swagger.v3.oas.annotations.media.Schema;
23+
import java.io.IOException;
24+
import java.util.ArrayList;
25+
import java.util.List;
26+
import javax.validation.constraints.*;
27+
import javax.validation.Valid;
28+
/**
29+
* AccessActionForAddCdnDomainInput
30+
*/
31+
32+
33+
34+
public class AccessActionForAddCdnDomainInput {
35+
@SerializedName("AllowEmpty")
36+
private Boolean allowEmpty = null;
37+
38+
@SerializedName("ListRules")
39+
private List<String> listRules = null;
40+
41+
@SerializedName("RequestHeader")
42+
private String requestHeader = null;
43+
44+
@SerializedName("RuleType")
45+
private String ruleType = null;
46+
47+
public AccessActionForAddCdnDomainInput allowEmpty(Boolean allowEmpty) {
48+
this.allowEmpty = allowEmpty;
49+
return this;
50+
}
51+
52+
/**
53+
* Get allowEmpty
54+
* @return allowEmpty
55+
**/
56+
@Schema(description = "")
57+
public Boolean isAllowEmpty() {
58+
return allowEmpty;
59+
}
60+
61+
public void setAllowEmpty(Boolean allowEmpty) {
62+
this.allowEmpty = allowEmpty;
63+
}
64+
65+
public AccessActionForAddCdnDomainInput listRules(List<String> listRules) {
66+
this.listRules = listRules;
67+
return this;
68+
}
69+
70+
public AccessActionForAddCdnDomainInput addListRulesItem(String listRulesItem) {
71+
if (this.listRules == null) {
72+
this.listRules = new ArrayList<String>();
73+
}
74+
this.listRules.add(listRulesItem);
75+
return this;
76+
}
77+
78+
/**
79+
* Get listRules
80+
* @return listRules
81+
**/
82+
@Schema(description = "")
83+
public List<String> getListRules() {
84+
return listRules;
85+
}
86+
87+
public void setListRules(List<String> listRules) {
88+
this.listRules = listRules;
89+
}
90+
91+
public AccessActionForAddCdnDomainInput requestHeader(String requestHeader) {
92+
this.requestHeader = requestHeader;
93+
return this;
94+
}
95+
96+
/**
97+
* Get requestHeader
98+
* @return requestHeader
99+
**/
100+
@Schema(description = "")
101+
public String getRequestHeader() {
102+
return requestHeader;
103+
}
104+
105+
public void setRequestHeader(String requestHeader) {
106+
this.requestHeader = requestHeader;
107+
}
108+
109+
public AccessActionForAddCdnDomainInput ruleType(String ruleType) {
110+
this.ruleType = ruleType;
111+
return this;
112+
}
113+
114+
/**
115+
* Get ruleType
116+
* @return ruleType
117+
**/
118+
@Schema(description = "")
119+
public String getRuleType() {
120+
return ruleType;
121+
}
122+
123+
public void setRuleType(String ruleType) {
124+
this.ruleType = ruleType;
125+
}
126+
127+
128+
@Override
129+
public boolean equals(java.lang.Object o) {
130+
if (this == o) {
131+
return true;
132+
}
133+
if (o == null || getClass() != o.getClass()) {
134+
return false;
135+
}
136+
AccessActionForAddCdnDomainInput accessActionForAddCdnDomainInput = (AccessActionForAddCdnDomainInput) o;
137+
return Objects.equals(this.allowEmpty, accessActionForAddCdnDomainInput.allowEmpty) &&
138+
Objects.equals(this.listRules, accessActionForAddCdnDomainInput.listRules) &&
139+
Objects.equals(this.requestHeader, accessActionForAddCdnDomainInput.requestHeader) &&
140+
Objects.equals(this.ruleType, accessActionForAddCdnDomainInput.ruleType);
141+
}
142+
143+
@Override
144+
public int hashCode() {
145+
return Objects.hash(allowEmpty, listRules, requestHeader, ruleType);
146+
}
147+
148+
149+
@Override
150+
public String toString() {
151+
StringBuilder sb = new StringBuilder();
152+
sb.append("class AccessActionForAddCdnDomainInput {\n");
153+
154+
sb.append(" allowEmpty: ").append(toIndentedString(allowEmpty)).append("\n");
155+
sb.append(" listRules: ").append(toIndentedString(listRules)).append("\n");
156+
sb.append(" requestHeader: ").append(toIndentedString(requestHeader)).append("\n");
157+
sb.append(" ruleType: ").append(toIndentedString(ruleType)).append("\n");
158+
sb.append("}");
159+
return sb.toString();
160+
}
161+
162+
/**
163+
* Convert the given object to string with each line indented by 4 spaces
164+
* (except the first line).
165+
*/
166+
private String toIndentedString(java.lang.Object o) {
167+
if (o == null) {
168+
return "null";
169+
}
170+
return o.toString().replace("\n", "\n ");
171+
}
172+
173+
}

0 commit comments

Comments
 (0)