Skip to content

Commit 4f243eb

Browse files
author
BitsAdmin
committed
Merge 'apig-Java-2021-03-03-online-1870-2025_11_25_15_16_38' into 'integration_2025-12-04_1090536471554'
feat: [development task] apig-1870-Java (1900794) See merge request: !784
2 parents 7c42a60 + dcda130 commit 4f243eb

File tree

58 files changed

+6170
-24
lines changed

Some content is hidden

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

58 files changed

+6170
-24
lines changed

volcengine-java-sdk-apig/src/main/java/com/volcengine/apig/ApigApi.java

Lines changed: 1008 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
/*
2+
* apig
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.apig.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 com.volcengine.apig.model.HmacAuthCredentialForCheckConsumerCredentialExistInput;
23+
import com.volcengine.apig.model.KeyAuthCredentialForCheckConsumerCredentialExistInput;
24+
import com.volcengine.apig.model.Oauth2CredentialForCheckConsumerCredentialExistInput;
25+
import io.swagger.v3.oas.annotations.media.Schema;
26+
import java.io.IOException;
27+
import javax.validation.constraints.*;
28+
import javax.validation.Valid;
29+
/**
30+
* CheckConsumerCredentialExistRequest
31+
*/
32+
33+
34+
35+
public class CheckConsumerCredentialExistRequest {
36+
@SerializedName("CredentialType")
37+
private String credentialType = null;
38+
39+
@SerializedName("GatewayId")
40+
private String gatewayId = null;
41+
42+
@SerializedName("HmacAuthCredential")
43+
private HmacAuthCredentialForCheckConsumerCredentialExistInput hmacAuthCredential = null;
44+
45+
@SerializedName("KeyAuthCredential")
46+
private KeyAuthCredentialForCheckConsumerCredentialExistInput keyAuthCredential = null;
47+
48+
@SerializedName("Oauth2Credential")
49+
private Oauth2CredentialForCheckConsumerCredentialExistInput oauth2Credential = null;
50+
51+
public CheckConsumerCredentialExistRequest credentialType(String credentialType) {
52+
this.credentialType = credentialType;
53+
return this;
54+
}
55+
56+
/**
57+
* Get credentialType
58+
* @return credentialType
59+
**/
60+
@NotNull
61+
@Schema(required = true, description = "")
62+
public String getCredentialType() {
63+
return credentialType;
64+
}
65+
66+
public void setCredentialType(String credentialType) {
67+
this.credentialType = credentialType;
68+
}
69+
70+
public CheckConsumerCredentialExistRequest gatewayId(String gatewayId) {
71+
this.gatewayId = gatewayId;
72+
return this;
73+
}
74+
75+
/**
76+
* Get gatewayId
77+
* @return gatewayId
78+
**/
79+
@NotNull
80+
@Schema(required = true, description = "")
81+
public String getGatewayId() {
82+
return gatewayId;
83+
}
84+
85+
public void setGatewayId(String gatewayId) {
86+
this.gatewayId = gatewayId;
87+
}
88+
89+
public CheckConsumerCredentialExistRequest hmacAuthCredential(HmacAuthCredentialForCheckConsumerCredentialExistInput hmacAuthCredential) {
90+
this.hmacAuthCredential = hmacAuthCredential;
91+
return this;
92+
}
93+
94+
/**
95+
* Get hmacAuthCredential
96+
* @return hmacAuthCredential
97+
**/
98+
@Valid
99+
@Schema(description = "")
100+
public HmacAuthCredentialForCheckConsumerCredentialExistInput getHmacAuthCredential() {
101+
return hmacAuthCredential;
102+
}
103+
104+
public void setHmacAuthCredential(HmacAuthCredentialForCheckConsumerCredentialExistInput hmacAuthCredential) {
105+
this.hmacAuthCredential = hmacAuthCredential;
106+
}
107+
108+
public CheckConsumerCredentialExistRequest keyAuthCredential(KeyAuthCredentialForCheckConsumerCredentialExistInput keyAuthCredential) {
109+
this.keyAuthCredential = keyAuthCredential;
110+
return this;
111+
}
112+
113+
/**
114+
* Get keyAuthCredential
115+
* @return keyAuthCredential
116+
**/
117+
@Valid
118+
@Schema(description = "")
119+
public KeyAuthCredentialForCheckConsumerCredentialExistInput getKeyAuthCredential() {
120+
return keyAuthCredential;
121+
}
122+
123+
public void setKeyAuthCredential(KeyAuthCredentialForCheckConsumerCredentialExistInput keyAuthCredential) {
124+
this.keyAuthCredential = keyAuthCredential;
125+
}
126+
127+
public CheckConsumerCredentialExistRequest oauth2Credential(Oauth2CredentialForCheckConsumerCredentialExistInput oauth2Credential) {
128+
this.oauth2Credential = oauth2Credential;
129+
return this;
130+
}
131+
132+
/**
133+
* Get oauth2Credential
134+
* @return oauth2Credential
135+
**/
136+
@Valid
137+
@Schema(description = "")
138+
public Oauth2CredentialForCheckConsumerCredentialExistInput getOauth2Credential() {
139+
return oauth2Credential;
140+
}
141+
142+
public void setOauth2Credential(Oauth2CredentialForCheckConsumerCredentialExistInput oauth2Credential) {
143+
this.oauth2Credential = oauth2Credential;
144+
}
145+
146+
147+
@Override
148+
public boolean equals(java.lang.Object o) {
149+
if (this == o) {
150+
return true;
151+
}
152+
if (o == null || getClass() != o.getClass()) {
153+
return false;
154+
}
155+
CheckConsumerCredentialExistRequest checkConsumerCredentialExistRequest = (CheckConsumerCredentialExistRequest) o;
156+
return Objects.equals(this.credentialType, checkConsumerCredentialExistRequest.credentialType) &&
157+
Objects.equals(this.gatewayId, checkConsumerCredentialExistRequest.gatewayId) &&
158+
Objects.equals(this.hmacAuthCredential, checkConsumerCredentialExistRequest.hmacAuthCredential) &&
159+
Objects.equals(this.keyAuthCredential, checkConsumerCredentialExistRequest.keyAuthCredential) &&
160+
Objects.equals(this.oauth2Credential, checkConsumerCredentialExistRequest.oauth2Credential);
161+
}
162+
163+
@Override
164+
public int hashCode() {
165+
return Objects.hash(credentialType, gatewayId, hmacAuthCredential, keyAuthCredential, oauth2Credential);
166+
}
167+
168+
169+
@Override
170+
public String toString() {
171+
StringBuilder sb = new StringBuilder();
172+
sb.append("class CheckConsumerCredentialExistRequest {\n");
173+
174+
sb.append(" credentialType: ").append(toIndentedString(credentialType)).append("\n");
175+
sb.append(" gatewayId: ").append(toIndentedString(gatewayId)).append("\n");
176+
sb.append(" hmacAuthCredential: ").append(toIndentedString(hmacAuthCredential)).append("\n");
177+
sb.append(" keyAuthCredential: ").append(toIndentedString(keyAuthCredential)).append("\n");
178+
sb.append(" oauth2Credential: ").append(toIndentedString(oauth2Credential)).append("\n");
179+
sb.append("}");
180+
return sb.toString();
181+
}
182+
183+
/**
184+
* Convert the given object to string with each line indented by 4 spaces
185+
* (except the first line).
186+
*/
187+
private String toIndentedString(java.lang.Object o) {
188+
if (o == null) {
189+
return "null";
190+
}
191+
return o.toString().replace("\n", "\n ");
192+
}
193+
194+
}
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
/*
2+
* apig
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.apig.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 javax.validation.constraints.*;
25+
import javax.validation.Valid;
26+
/**
27+
* CheckConsumerCredentialExistResponse
28+
*/
29+
30+
31+
32+
public class CheckConsumerCredentialExistResponse extends com.volcengine.model.AbstractResponse {
33+
@SerializedName("ConsumerId")
34+
private String consumerId = null;
35+
36+
@SerializedName("Exist")
37+
private Boolean exist = null;
38+
39+
@SerializedName("Id")
40+
private String id = null;
41+
42+
public CheckConsumerCredentialExistResponse consumerId(String consumerId) {
43+
this.consumerId = consumerId;
44+
return this;
45+
}
46+
47+
/**
48+
* Get consumerId
49+
* @return consumerId
50+
**/
51+
@Schema(description = "")
52+
public String getConsumerId() {
53+
return consumerId;
54+
}
55+
56+
public void setConsumerId(String consumerId) {
57+
this.consumerId = consumerId;
58+
}
59+
60+
public CheckConsumerCredentialExistResponse exist(Boolean exist) {
61+
this.exist = exist;
62+
return this;
63+
}
64+
65+
/**
66+
* Get exist
67+
* @return exist
68+
**/
69+
@Schema(description = "")
70+
public Boolean isExist() {
71+
return exist;
72+
}
73+
74+
public void setExist(Boolean exist) {
75+
this.exist = exist;
76+
}
77+
78+
public CheckConsumerCredentialExistResponse id(String id) {
79+
this.id = id;
80+
return this;
81+
}
82+
83+
/**
84+
* Get id
85+
* @return id
86+
**/
87+
@Schema(description = "")
88+
public String getId() {
89+
return id;
90+
}
91+
92+
public void setId(String id) {
93+
this.id = id;
94+
}
95+
96+
97+
@Override
98+
public boolean equals(java.lang.Object o) {
99+
if (this == o) {
100+
return true;
101+
}
102+
if (o == null || getClass() != o.getClass()) {
103+
return false;
104+
}
105+
CheckConsumerCredentialExistResponse checkConsumerCredentialExistResponse = (CheckConsumerCredentialExistResponse) o;
106+
return Objects.equals(this.consumerId, checkConsumerCredentialExistResponse.consumerId) &&
107+
Objects.equals(this.exist, checkConsumerCredentialExistResponse.exist) &&
108+
Objects.equals(this.id, checkConsumerCredentialExistResponse.id);
109+
}
110+
111+
@Override
112+
public int hashCode() {
113+
return Objects.hash(consumerId, exist, id);
114+
}
115+
116+
117+
@Override
118+
public String toString() {
119+
StringBuilder sb = new StringBuilder();
120+
sb.append("class CheckConsumerCredentialExistResponse {\n");
121+
122+
sb.append(" consumerId: ").append(toIndentedString(consumerId)).append("\n");
123+
sb.append(" exist: ").append(toIndentedString(exist)).append("\n");
124+
sb.append(" id: ").append(toIndentedString(id)).append("\n");
125+
sb.append("}");
126+
return sb.toString();
127+
}
128+
129+
/**
130+
* Convert the given object to string with each line indented by 4 spaces
131+
* (except the first line).
132+
*/
133+
private String toIndentedString(java.lang.Object o) {
134+
if (o == null) {
135+
return "null";
136+
}
137+
return o.toString().replace("\n", "\n ");
138+
}
139+
140+
}

0 commit comments

Comments
 (0)