Skip to content

Commit 8619e07

Browse files
committed
Discover email config test corrected
1 parent 34ba7f4 commit 8619e07

File tree

9 files changed

+33
-33
lines changed

9 files changed

+33
-33
lines changed

docs/EmailAccountConfig.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**displayName** | **String** | Email account display name | [optional]
8-
**type** | **String** | Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav |
8+
**protocolType** | **String** | Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav |
99
**host** | **String** | Email account host. | [optional]
1010
**port** | **Integer** | Port. | [optional]
11-
**socketType** | **String** | Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
11+
**socketType** | **String** | Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
1212
**authenticationTypes** | **List<String>** | Supported authentication types. Items: Email account authentication types. Enum, available values: NoAuth, OAuth2, PasswordCleartext, PasswordEncrypted, SmtpAfterPop, ClientIpAddress | [optional]
1313
**extraInfo** | [**List<NameValuePair>**](NameValuePair.md) | Extra account information. | [optional]
1414
**isValidated** | **Boolean** | Determines that configuration validated. Set to false if validation skipped. |

docs/EmailAccountRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**host** | **String** | Email account host |
88
**port** | **Integer** | Email account port |
99
**login** | **String** | Email account login |
10-
**securityOptions** | **String** | Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
10+
**securityOptions** | **String** | Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto |
1111
**protocolType** | **String** | Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav |
1212
**description** | **String** | Email account description | [optional]
1313
**storageFile** | [**StorageFileLocation**](StorageFileLocation.md) | A storage file location info to store email account |

docs/NameValuePair.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**value** | **String** | | [optional]
8-
**name** | **String** | | [optional]
7+
**value** | **String** | Name of the property | [optional]
8+
**name** | **String** | Value of the property | [optional]
99

1010

1111
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to API README]](README.md)

src/main/java/com/aspose/email/cloud/sdk/model/EmailAccountConfig.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public class EmailAccountConfig {
4646
@JsonProperty("displayName")
4747
private String displayName = null;
4848

49-
@JsonProperty("type")
50-
private String type = null;
49+
@JsonProperty("protocolType")
50+
private String protocolType = null;
5151

5252
@JsonProperty("host")
5353
private String host = null;
@@ -84,21 +84,21 @@ public void setDisplayName(String displayName) {
8484
this.displayName = displayName;
8585
}
8686

87-
public EmailAccountConfig type(String type) {
88-
this.type = type;
87+
public EmailAccountConfig protocolType(String protocolType) {
88+
this.protocolType = protocolType;
8989
return this;
9090
}
9191

9292
/**
9393
* Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
94-
* @return type
94+
* @return protocolType
9595
**/
96-
public String getType() {
97-
return type;
96+
public String getProtocolType() {
97+
return protocolType;
9898
}
9999

100-
public void setType(String type) {
101-
this.type = type;
100+
public void setProtocolType(String protocolType) {
101+
this.protocolType = protocolType;
102102
}
103103

104104
public EmailAccountConfig host(String host) {
@@ -141,7 +141,7 @@ public EmailAccountConfig socketType(String socketType) {
141141
}
142142

143143
/**
144-
* Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
144+
* Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
145145
* @return socketType
146146
**/
147147
public String getSocketType() {
@@ -230,7 +230,7 @@ public boolean equals(java.lang.Object o) {
230230
}
231231
EmailAccountConfig emailAccountConfig = (EmailAccountConfig) o;
232232
return ObjectUtils.equals(this.displayName, emailAccountConfig.displayName) &&
233-
ObjectUtils.equals(this.type, emailAccountConfig.type) &&
233+
ObjectUtils.equals(this.protocolType, emailAccountConfig.protocolType) &&
234234
ObjectUtils.equals(this.host, emailAccountConfig.host) &&
235235
ObjectUtils.equals(this.port, emailAccountConfig.port) &&
236236
ObjectUtils.equals(this.socketType, emailAccountConfig.socketType) &&
@@ -241,7 +241,7 @@ public boolean equals(java.lang.Object o) {
241241

242242
@Override
243243
public int hashCode() {
244-
return ObjectUtils.hashCodeMulti(displayName, type, host, port, socketType, authenticationTypes, extraInfo, isValidated);
244+
return ObjectUtils.hashCodeMulti(displayName, protocolType, host, port, socketType, authenticationTypes, extraInfo, isValidated);
245245
}
246246

247247

@@ -251,7 +251,7 @@ public String toString() {
251251
sb.append("class EmailAccountConfig {\n");
252252

253253
sb.append(" displayName: ").append(toIndentedString(getDisplayName())).append("\n");
254-
sb.append(" type: ").append(toIndentedString(getType())).append("\n");
254+
sb.append(" protocolType: ").append(toIndentedString(getProtocolType())).append("\n");
255255
sb.append(" host: ").append(toIndentedString(getHost())).append("\n");
256256
sb.append(" port: ").append(toIndentedString(getPort())).append("\n");
257257
sb.append(" socketType: ").append(toIndentedString(getSocketType())).append("\n");
@@ -280,18 +280,18 @@ public EmailAccountConfig() {
280280
/**
281281
* Initializes a new instance of the EmailAccountConfig
282282
* @param displayName Email account display name
283-
* @param type Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
283+
* @param protocolType Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
284284
* @param host Email account host.
285285
* @param port Port.
286-
* @param socketType Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
286+
* @param socketType Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
287287
* @param authenticationTypes Supported authentication types. Items: Email account authentication types. Enum, available values: NoAuth, OAuth2, PasswordCleartext, PasswordEncrypted, SmtpAfterPop, ClientIpAddress
288288
* @param extraInfo Extra account information.
289289
* @param isValidated Determines that configuration validated. Set to false if validation skipped.
290290
*/
291-
public EmailAccountConfig(String displayName, String type, String host, Integer port, String socketType, List<String> authenticationTypes, List<NameValuePair> extraInfo, Boolean isValidated) {
291+
public EmailAccountConfig(String displayName, String protocolType, String host, Integer port, String socketType, List<String> authenticationTypes, List<NameValuePair> extraInfo, Boolean isValidated) {
292292
super();
293293
setDisplayName(displayName);
294-
setType(type);
294+
setProtocolType(protocolType);
295295
setHost(host);
296296
setPort(port);
297297
setSocketType(socketType);

src/main/java/com/aspose/email/cloud/sdk/model/EmailAccountRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public EmailAccountRequest securityOptions(String securityOptions) {
121121
}
122122

123123
/**
124-
* Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
124+
* Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
125125
* @return securityOptions
126126
**/
127127
public String getSecurityOptions() {
@@ -244,7 +244,7 @@ public EmailAccountRequest() {
244244
* @param host Email account host
245245
* @param port Email account port
246246
* @param login Email account login
247-
* @param securityOptions Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
247+
* @param securityOptions Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
248248
* @param protocolType Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
249249
* @param description Email account description
250250
* @param storageFile A storage file location info to store email account

src/main/java/com/aspose/email/cloud/sdk/model/NameValuePair.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import java.io.*;
4141

4242
/**
43-
* NameValuePair
43+
* An extended property.
4444
*/
4545
public class NameValuePair {
4646
@JsonProperty("value")
@@ -55,7 +55,7 @@ public NameValuePair value(String value) {
5555
}
5656

5757
/**
58-
* Get value
58+
* Name of the property
5959
* @return value
6060
**/
6161
public String getValue() {
@@ -72,7 +72,7 @@ public NameValuePair name(String name) {
7272
}
7373

7474
/**
75-
* Get name
75+
* Value of the property
7676
* @return name
7777
**/
7878
public String getName() {
@@ -131,8 +131,8 @@ public NameValuePair() {
131131

132132
/**
133133
* Initializes a new instance of the NameValuePair
134-
* @param value
135-
* @param name
134+
* @param value Name of the property
135+
* @param name Value of the property
136136
*/
137137
public NameValuePair(String value, String name) {
138138
super();

src/main/java/com/aspose/email/cloud/sdk/model/SaveEmailAccountRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public SaveEmailAccountRequest() {
120120
* @param host Email account host
121121
* @param port Email account port
122122
* @param login Email account login
123-
* @param securityOptions Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
123+
* @param securityOptions Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
124124
* @param protocolType Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
125125
* @param description Email account description
126126
* @param storageFile A storage file location info to store email account

src/main/java/com/aspose/email/cloud/sdk/model/SaveOAuthEmailAccountRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public SaveOAuthEmailAccountRequest() {
164164
* @param host Email account host
165165
* @param port Email account port
166166
* @param login Email account login
167-
* @param securityOptions Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
167+
* @param securityOptions Security mode for a mail client Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
168168
* @param protocolType Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
169169
* @param description Email account description
170170
* @param storageFile A storage file location info to store email account

src/test/java/com/aspose/email/cloud/sdk/api/EmailApiTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ public void aiBcrParseModelTest() throws ApiException, IOException {
313313
@Test(groups = { "pipeline" })
314314
public void discoverEmailConfigTest() throws ApiException {
315315
EmailAccountConfigList configList = api.discoverEmailConfig(
316-
new DiscoverEmailConfigRequestData("example@gmail.com", false));
316+
new DiscoverEmailConfigRequestData("example@gmail.com", true));
317317
assert configList.getValue().size() >= 2;
318318
for (EmailAccountConfig config : configList.getValue()) {
319-
if (config.getType().equals("SMTP"))
319+
if (config.getProtocolType().equals("SMTP"))
320320
assert "smtp.gmail.com".equals(config.getHost());
321321
}
322322
}

0 commit comments

Comments
 (0)