Skip to content

Commit 7c4f2cc

Browse files
author
BitsAdmin
committed
Merge branch 'volc_observe-Java-2018-01-01-online-521-2024_05_29_15_13_45' into 'integration_2024-05-30_272976241922'
feat: [development task] Volc_Observe-521-Java (691259) See merge request iaasng/volcengine-java-sdk!178
2 parents a92817a + 1ee51bf commit 7c4f2cc

File tree

58 files changed

+5375
-143
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

+5375
-143
lines changed

volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/VolcObserveApi.java

Lines changed: 1607 additions & 95 deletions
Large diffs are not rendered by default.
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
/*
2+
* volc_observe
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.volcobserve.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+
* CreateContactGroupRequest
30+
*/
31+
32+
33+
34+
public class CreateContactGroupRequest {
35+
@SerializedName("ContactsIdList")
36+
private List<String> contactsIdList = null;
37+
38+
@SerializedName("Description")
39+
private String description = null;
40+
41+
@SerializedName("Name")
42+
private String name = null;
43+
44+
public CreateContactGroupRequest contactsIdList(List<String> contactsIdList) {
45+
this.contactsIdList = contactsIdList;
46+
return this;
47+
}
48+
49+
public CreateContactGroupRequest addContactsIdListItem(String contactsIdListItem) {
50+
if (this.contactsIdList == null) {
51+
this.contactsIdList = new ArrayList<String>();
52+
}
53+
this.contactsIdList.add(contactsIdListItem);
54+
return this;
55+
}
56+
57+
/**
58+
* Get contactsIdList
59+
* @return contactsIdList
60+
**/
61+
@Schema(description = "")
62+
public List<String> getContactsIdList() {
63+
return contactsIdList;
64+
}
65+
66+
public void setContactsIdList(List<String> contactsIdList) {
67+
this.contactsIdList = contactsIdList;
68+
}
69+
70+
public CreateContactGroupRequest description(String description) {
71+
this.description = description;
72+
return this;
73+
}
74+
75+
/**
76+
* Get description
77+
* @return description
78+
**/
79+
@Schema(description = "")
80+
public String getDescription() {
81+
return description;
82+
}
83+
84+
public void setDescription(String description) {
85+
this.description = description;
86+
}
87+
88+
public CreateContactGroupRequest name(String name) {
89+
this.name = name;
90+
return this;
91+
}
92+
93+
/**
94+
* Get name
95+
* @return name
96+
**/
97+
@NotNull
98+
@Schema(required = true, description = "")
99+
public String getName() {
100+
return name;
101+
}
102+
103+
public void setName(String name) {
104+
this.name = name;
105+
}
106+
107+
108+
@Override
109+
public boolean equals(java.lang.Object o) {
110+
if (this == o) {
111+
return true;
112+
}
113+
if (o == null || getClass() != o.getClass()) {
114+
return false;
115+
}
116+
CreateContactGroupRequest createContactGroupRequest = (CreateContactGroupRequest) o;
117+
return Objects.equals(this.contactsIdList, createContactGroupRequest.contactsIdList) &&
118+
Objects.equals(this.description, createContactGroupRequest.description) &&
119+
Objects.equals(this.name, createContactGroupRequest.name);
120+
}
121+
122+
@Override
123+
public int hashCode() {
124+
return Objects.hash(contactsIdList, description, name);
125+
}
126+
127+
128+
@Override
129+
public String toString() {
130+
StringBuilder sb = new StringBuilder();
131+
sb.append("class CreateContactGroupRequest {\n");
132+
133+
sb.append(" contactsIdList: ").append(toIndentedString(contactsIdList)).append("\n");
134+
sb.append(" description: ").append(toIndentedString(description)).append("\n");
135+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
136+
sb.append("}");
137+
return sb.toString();
138+
}
139+
140+
/**
141+
* Convert the given object to string with each line indented by 4 spaces
142+
* (except the first line).
143+
*/
144+
private String toIndentedString(java.lang.Object o) {
145+
if (o == null) {
146+
return "null";
147+
}
148+
return o.toString().replace("\n", "\n ");
149+
}
150+
151+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* volc_observe
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.volcobserve.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+
* CreateContactGroupResponse
30+
*/
31+
32+
33+
34+
public class CreateContactGroupResponse extends com.volcengine.model.AbstractResponse {
35+
@SerializedName("Data")
36+
private List<String> data = null;
37+
38+
public CreateContactGroupResponse data(List<String> data) {
39+
this.data = data;
40+
return this;
41+
}
42+
43+
public CreateContactGroupResponse addDataItem(String dataItem) {
44+
if (this.data == null) {
45+
this.data = new ArrayList<String>();
46+
}
47+
this.data.add(dataItem);
48+
return this;
49+
}
50+
51+
/**
52+
* Get data
53+
* @return data
54+
**/
55+
@Schema(description = "")
56+
public List<String> getData() {
57+
return data;
58+
}
59+
60+
public void setData(List<String> data) {
61+
this.data = data;
62+
}
63+
64+
65+
@Override
66+
public boolean equals(java.lang.Object o) {
67+
if (this == o) {
68+
return true;
69+
}
70+
if (o == null || getClass() != o.getClass()) {
71+
return false;
72+
}
73+
CreateContactGroupResponse createContactGroupResponse = (CreateContactGroupResponse) o;
74+
return Objects.equals(this.data, createContactGroupResponse.data);
75+
}
76+
77+
@Override
78+
public int hashCode() {
79+
return Objects.hash(data);
80+
}
81+
82+
83+
@Override
84+
public String toString() {
85+
StringBuilder sb = new StringBuilder();
86+
sb.append("class CreateContactGroupResponse {\n");
87+
88+
sb.append(" data: ").append(toIndentedString(data)).append("\n");
89+
sb.append("}");
90+
return sb.toString();
91+
}
92+
93+
/**
94+
* Convert the given object to string with each line indented by 4 spaces
95+
* (except the first line).
96+
*/
97+
private String toIndentedString(java.lang.Object o) {
98+
if (o == null) {
99+
return "null";
100+
}
101+
return o.toString().replace("\n", "\n ");
102+
}
103+
104+
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
/*
2+
* volc_observe
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.volcobserve.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+
* CreateContactsRequest
28+
*/
29+
30+
31+
32+
public class CreateContactsRequest {
33+
@SerializedName("Email")
34+
private String email = null;
35+
36+
@SerializedName("Name")
37+
private String name = null;
38+
39+
@SerializedName("Phone")
40+
private String phone = null;
41+
42+
public CreateContactsRequest email(String email) {
43+
this.email = email;
44+
return this;
45+
}
46+
47+
/**
48+
* Get email
49+
* @return email
50+
**/
51+
@NotNull
52+
@Schema(required = true, description = "")
53+
public String getEmail() {
54+
return email;
55+
}
56+
57+
public void setEmail(String email) {
58+
this.email = email;
59+
}
60+
61+
public CreateContactsRequest name(String name) {
62+
this.name = name;
63+
return this;
64+
}
65+
66+
/**
67+
* Get name
68+
* @return name
69+
**/
70+
@NotNull
71+
@Schema(required = true, description = "")
72+
public String getName() {
73+
return name;
74+
}
75+
76+
public void setName(String name) {
77+
this.name = name;
78+
}
79+
80+
public CreateContactsRequest phone(String phone) {
81+
this.phone = phone;
82+
return this;
83+
}
84+
85+
/**
86+
* Get phone
87+
* @return phone
88+
**/
89+
@Schema(description = "")
90+
public String getPhone() {
91+
return phone;
92+
}
93+
94+
public void setPhone(String phone) {
95+
this.phone = phone;
96+
}
97+
98+
99+
@Override
100+
public boolean equals(java.lang.Object o) {
101+
if (this == o) {
102+
return true;
103+
}
104+
if (o == null || getClass() != o.getClass()) {
105+
return false;
106+
}
107+
CreateContactsRequest createContactsRequest = (CreateContactsRequest) o;
108+
return Objects.equals(this.email, createContactsRequest.email) &&
109+
Objects.equals(this.name, createContactsRequest.name) &&
110+
Objects.equals(this.phone, createContactsRequest.phone);
111+
}
112+
113+
@Override
114+
public int hashCode() {
115+
return Objects.hash(email, name, phone);
116+
}
117+
118+
119+
@Override
120+
public String toString() {
121+
StringBuilder sb = new StringBuilder();
122+
sb.append("class CreateContactsRequest {\n");
123+
124+
sb.append(" email: ").append(toIndentedString(email)).append("\n");
125+
sb.append(" name: ").append(toIndentedString(name)).append("\n");
126+
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
127+
sb.append("}");
128+
return sb.toString();
129+
}
130+
131+
/**
132+
* Convert the given object to string with each line indented by 4 spaces
133+
* (except the first line).
134+
*/
135+
private String toIndentedString(java.lang.Object o) {
136+
if (o == null) {
137+
return "null";
138+
}
139+
return o.toString().replace("\n", "\n ");
140+
}
141+
142+
}

0 commit comments

Comments
 (0)