Skip to content

Commit 8a2b799

Browse files
Av 90644 (#50)
* Certificate added for attach controller, latest model added * version changed.
1 parent 332a5fb commit 8a2b799

File tree

782 files changed

+12805
-10580
lines changed

Some content is hidden

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

782 files changed

+12805
-10580
lines changed

o11nplugin-vro-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<artifactId>vro</artifactId>
1212
<groupId>com.vmware.avi</groupId>
13-
<version>20.1.1-beta-2</version>
13+
<version>20.1.1</version>
1414
</parent>
1515

1616
<dependencies>

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/AviVroClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public HashMap<String, String> getTenantHeader(String tenant) {
421421
HashMap<String, String> userHeader = null;
422422
if (tenant != null) {
423423
userHeader = new HashMap<String, String>();
424-
userHeader.put("X-Avi-Tenant", tenant);
424+
userHeader.put(Constants.FINDER_VRO_X_AVI_TENANT, tenant);
425425
}
426426
return userHeader;
427427
}

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/Constants.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.vmware.avi.vro;
22

33
public class Constants {
4-
4+
public static final String FINDER_VRO_X_AVI_TENANT = "X-Avi-Tenant";
55
public static final String FINDER_VRO_GSLBSITERUNTIME = "GslbSiteRuntime";
66
public static final String FINDER_VRO_AUTHMATCHGROUPMEMBERSHIP = "AuthMatchGroupMembership";
77
public static final String FINDER_VRO_GSLBHEALTHMONITORPROXY = "GslbHealthMonitorProxy";
@@ -962,4 +962,9 @@ public class Constants {
962962
public static final String FINDER_VRO_TENANTCONFIGURATION = "TenantConfiguration";
963963
public static final String FINDER_VRO_NSXTHOSTS = "NsxtHosts";
964964
public static final String FINDER_VRO_ICAPPROFILE = "IcapProfile";
965+
public static final String FINDER_VRO_IPREPUTATIONCONFIG = "IpReputationConfig";
966+
public static final String FINDER_VRO_SEBGPPEERDOWNDETAILS = "SeBgpPeerDownDetails";
967+
public static final String FINDER_VRO_NSXTIMAGEDETAILS = "NsxtImageDetails";
968+
public static final String FINDER_VRO_IPTHREATDBEVENTDATA = "IPThreatDBEventData";
969+
965970
}

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/VroPlugin.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -27,45 +27,6 @@ public static VroPlugin createScriptingSingleton(IPluginFactory factory) {
2727
return ((AbstractSpringPluginFactory) factory).createScriptingObject(VroPlugin.class);
2828
}
2929

30-
/***
31-
* Method will create AVI API session.
32-
*
33-
* @param controller controller IP.
34-
* @param username username of the controller.
35-
* @param password password of the controller.
36-
* @param tenant tenant name.
37-
* @param version version.
38-
* @return instance of AviVroClient
39-
*/
40-
@VsoMethod
41-
public AviVroClient connect(String controller, String username, String password, String tenant, String version) {
42-
AviCredentials creds = new AviCredentials(controller, username, password);
43-
creds.setTenant(tenant);
44-
creds.setVersion(version);
45-
service.setCred(creds);
46-
return service;
47-
}
48-
49-
/***
50-
* Method will create AVI API session.
51-
*
52-
* @param controller controller IP.
53-
* @token token for authentication.
54-
* @param tenant tenant name.
55-
* @param version version.
56-
* @return instance of AviVroClient
57-
*/
58-
@VsoMethod
59-
public AviVroClient connect(String controller, String token, String tenant, String version) {
60-
AviCredentials creds = new AviCredentials();
61-
creds.setController(controller);
62-
creds.setToken(token);
63-
creds.setTenant(tenant);
64-
creds.setVersion(version);
65-
service.setCred(creds);
66-
return service;
67-
}
68-
6930
/***
7031
* Method will create AVI API session.
7132
*

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/model/ALBServicesAccount.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ public boolean equals(java.lang.Object o) {
131131
return false;
132132
}
133133
ALBServicesAccount objALBServicesAccount = (ALBServicesAccount) o;
134-
return Objects.equals(this.users, objALBServicesAccount.users)&&
135-
Objects.equals(this.name, objALBServicesAccount.name)&&
136-
Objects.equals(this.id, objALBServicesAccount.id);
134+
return Objects.equals(this.name, objALBServicesAccount.name)&&
135+
Objects.equals(this.id, objALBServicesAccount.id)&&
136+
Objects.equals(this.users, objALBServicesAccount.users);
137137
}
138138

139139
@Override

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/model/ALBServicesAccountUser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ public boolean equals(java.lang.Object o) {
109109
return false;
110110
}
111111
ALBServicesAccountUser objALBServicesAccountUser = (ALBServicesAccountUser) o;
112-
return Objects.equals(this.phone, objALBServicesAccountUser.phone)&&
113-
Objects.equals(this.name, objALBServicesAccountUser.name)&&
114-
Objects.equals(this.email, objALBServicesAccountUser.email);
112+
return Objects.equals(this.name, objALBServicesAccountUser.name)&&
113+
Objects.equals(this.email, objALBServicesAccountUser.email)&&
114+
Objects.equals(this.phone, objALBServicesAccountUser.phone);
115115
}
116116

117117
@Override

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/model/ALBServicesCase.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -665,31 +665,31 @@ public boolean equals(java.lang.Object o) {
665665
return false;
666666
}
667667
ALBServicesCase objALBServicesCase = (ALBServicesCase) o;
668-
return Objects.equals(this.contactInfo, objALBServicesCase.contactInfo)&&
669-
Objects.equals(this.lastModifiedDate, objALBServicesCase.lastModifiedDate)&&
670-
Objects.equals(this.customTag, objALBServicesCase.customTag)&&
671-
Objects.equals(this.caseNumber, objALBServicesCase.caseNumber)&&
668+
return Objects.equals(this.assetId, objALBServicesCase.assetId)&&
672669
Objects.equals(this.id, objALBServicesCase.id)&&
673-
Objects.equals(this.deploymentEnvironment, objALBServicesCase.deploymentEnvironment)&&
674-
Objects.equals(this.assetId, objALBServicesCase.assetId)&&
675-
Objects.equals(this.frUseCases, objALBServicesCase.frUseCases)&&
676-
Objects.equals(this.severity, objALBServicesCase.severity)&&
670+
Objects.equals(this.caseNumber, objALBServicesCase.caseNumber)&&
677671
Objects.equals(this.caseStatus, objALBServicesCase.caseStatus)&&
678-
Objects.equals(this.environment, objALBServicesCase.environment)&&
679-
Objects.equals(this.version, objALBServicesCase.version)&&
680672
Objects.equals(this.subject, objALBServicesCase.subject)&&
681-
Objects.equals(this.type, objALBServicesCase.type)&&
682-
Objects.equals(this.email, objALBServicesCase.email)&&
683-
Objects.equals(this.caseAttachments, objALBServicesCase.caseAttachments)&&
673+
Objects.equals(this.caseCreatedBy, objALBServicesCase.caseCreatedBy)&&
674+
Objects.equals(this.createdDate, objALBServicesCase.createdDate)&&
675+
Objects.equals(this.lastModifiedDate, objALBServicesCase.lastModifiedDate)&&
684676
Objects.equals(this.status, objALBServicesCase.status)&&
685-
Objects.equals(this.frCurrentSolution, objALBServicesCase.frCurrentSolution)&&
677+
Objects.equals(this.version, objALBServicesCase.version)&&
678+
Objects.equals(this.patchVersion, objALBServicesCase.patchVersion)&&
686679
Objects.equals(this.description, objALBServicesCase.description)&&
687-
Objects.equals(this.caseCreatedBy, objALBServicesCase.caseCreatedBy)&&
680+
Objects.equals(this.type, objALBServicesCase.type)&&
681+
Objects.equals(this.environment, objALBServicesCase.environment)&&
682+
Objects.equals(this.deploymentEnvironment, objALBServicesCase.deploymentEnvironment)&&
683+
Objects.equals(this.severity, objALBServicesCase.severity)&&
688684
Objects.equals(this.time, objALBServicesCase.time)&&
685+
Objects.equals(this.customTag, objALBServicesCase.customTag)&&
686+
Objects.equals(this.caseAttachments, objALBServicesCase.caseAttachments)&&
687+
Objects.equals(this.email, objALBServicesCase.email)&&
688+
Objects.equals(this.contactInfo, objALBServicesCase.contactInfo)&&
689+
Objects.equals(this.frUseCases, objALBServicesCase.frUseCases)&&
690+
Objects.equals(this.frCurrentSolution, objALBServicesCase.frCurrentSolution)&&
689691
Objects.equals(this.frBusinessJustification, objALBServicesCase.frBusinessJustification)&&
690-
Objects.equals(this.frTiming, objALBServicesCase.frTiming)&&
691-
Objects.equals(this.patchVersion, objALBServicesCase.patchVersion)&&
692-
Objects.equals(this.createdDate, objALBServicesCase.createdDate);
692+
Objects.equals(this.frTiming, objALBServicesCase.frTiming);
693693
}
694694

695695
@Override

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/model/ALBServicesConfig.java

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.fasterxml.jackson.annotation.JsonInclude.Include;
88
import com.vmware.avi.vro.model.ALBServicesUser;
99
import com.vmware.avi.vro.model.PortalFeatureOptIn;
10+
import com.vmware.avi.vro.model.IpReputationConfig;
1011
import com.vmware.avi.vro.model.ProactiveSupportDefaults;
1112
import com.vmware.avi.vro.model.ProxyConfiguration;
1213
import com.vmware.o11n.plugin.sdk.annotation.VsoFinder;
@@ -36,9 +37,9 @@ public class ALBServicesConfig extends AviRestResource {
3637
@JsonInclude(Include.NON_NULL)
3738
private PortalFeatureOptIn featureOptInStatus = null;
3839

39-
@JsonProperty("ip_reputation_sync_interval")
40+
@JsonProperty("ip_reputation_config")
4041
@JsonInclude(Include.NON_NULL)
41-
private Integer ipReputationSyncInterval = 60;
42+
private IpReputationConfig ipReputationConfig = null;
4243

4344
@JsonProperty("polling_interval")
4445
@JsonInclude(Include.NON_NULL)
@@ -60,9 +61,9 @@ public class ALBServicesConfig extends AviRestResource {
6061
@JsonInclude(Include.NON_NULL)
6162
private String url = "url";
6263

63-
@JsonProperty("use_system_proxy")
64+
@JsonProperty("use_split_proxy")
6465
@JsonInclude(Include.NON_NULL)
65-
private Boolean useSystemProxy = true;
66+
private Boolean useSplitProxy = false;
6667

6768
@JsonProperty("uuid")
6869
@JsonInclude(Include.NON_NULL)
@@ -116,28 +117,24 @@ public void setFeatureOptInStatus(PortalFeatureOptIn featureOptInStatus) {
116117

117118
/**
118119
* This is the getter method this will return the attribute value.
119-
* Ip reputation db sync interval in minutes.
120-
* Allowed values are 2-1440.
120+
* Default values to be used for ip reputation sync.
121121
* Field introduced in 20.1.1.
122-
* Default value when not specified in API or module is interpreted by Avi Controller as 60.
123-
* @return ipReputationSyncInterval
122+
* @return ipReputationConfig
124123
*/
125124
@VsoMethod
126-
public Integer getIpReputationSyncInterval() {
127-
return ipReputationSyncInterval;
125+
public IpReputationConfig getIpReputationConfig() {
126+
return ipReputationConfig;
128127
}
129128

130129
/**
131130
* This is the setter method to the attribute.
132-
* Ip reputation db sync interval in minutes.
133-
* Allowed values are 2-1440.
131+
* Default values to be used for ip reputation sync.
134132
* Field introduced in 20.1.1.
135-
* Default value when not specified in API or module is interpreted by Avi Controller as 60.
136-
* @param ipReputationSyncInterval set the ipReputationSyncInterval.
133+
* @param ipReputationConfig set the ipReputationConfig.
137134
*/
138135
@VsoMethod
139-
public void setIpReputationSyncInterval(Integer ipReputationSyncInterval) {
140-
this.ipReputationSyncInterval = ipReputationSyncInterval;
136+
public void setIpReputationConfig(IpReputationConfig ipReputationConfig) {
137+
this.ipReputationConfig = ipReputationConfig;
141138
}
142139

143140
/**
@@ -253,26 +250,26 @@ public void setUrl(String url) {
253250

254251
/**
255252
* This is the getter method this will return the attribute value.
256-
* By default, use system proxy configurationif false, use split proxy configuration.
253+
* By default, use system proxy configuration.if true, use split proxy configuration.
257254
* Field introduced in 20.1.1.
258-
* Default value when not specified in API or module is interpreted by Avi Controller as true.
259-
* @return useSystemProxy
255+
* Default value when not specified in API or module is interpreted by Avi Controller as false.
256+
* @return useSplitProxy
260257
*/
261258
@VsoMethod
262-
public Boolean getUseSystemProxy() {
263-
return useSystemProxy;
259+
public Boolean getUseSplitProxy() {
260+
return useSplitProxy;
264261
}
265262

266263
/**
267264
* This is the setter method to the attribute.
268-
* By default, use system proxy configurationif false, use split proxy configuration.
265+
* By default, use system proxy configuration.if true, use split proxy configuration.
269266
* Field introduced in 20.1.1.
270-
* Default value when not specified in API or module is interpreted by Avi Controller as true.
271-
* @param useSystemProxy set the useSystemProxy.
267+
* Default value when not specified in API or module is interpreted by Avi Controller as false.
268+
* @param useSplitProxy set the useSplitProxy.
272269
*/
273270
@VsoMethod
274-
public void setUseSystemProxy(Boolean useSystemProxy) {
275-
this.useSystemProxy = useSystemProxy;
271+
public void setUseSplitProxy(Boolean useSplitProxy) {
272+
this.useSplitProxy = useSplitProxy;
276273
}
277274

278275
/**
@@ -310,14 +307,14 @@ public boolean equals(java.lang.Object o) {
310307
}
311308
ALBServicesConfig objALBServicesConfig = (ALBServicesConfig) o;
312309
return Objects.equals(this.uuid, objALBServicesConfig.uuid)&&
313-
Objects.equals(this.ipReputationSyncInterval, objALBServicesConfig.ipReputationSyncInterval)&&
314-
Objects.equals(this.proactiveSupportDefaults, objALBServicesConfig.proactiveSupportDefaults)&&
315310
Objects.equals(this.portalUrl, objALBServicesConfig.portalUrl)&&
311+
Objects.equals(this.pollingInterval, objALBServicesConfig.pollingInterval)&&
312+
Objects.equals(this.assetContact, objALBServicesConfig.assetContact)&&
316313
Objects.equals(this.featureOptInStatus, objALBServicesConfig.featureOptInStatus)&&
314+
Objects.equals(this.proactiveSupportDefaults, objALBServicesConfig.proactiveSupportDefaults)&&
315+
Objects.equals(this.useSplitProxy, objALBServicesConfig.useSplitProxy)&&
317316
Objects.equals(this.splitProxyConfiguration, objALBServicesConfig.splitProxyConfiguration)&&
318-
Objects.equals(this.assetContact, objALBServicesConfig.assetContact)&&
319-
Objects.equals(this.useSystemProxy, objALBServicesConfig.useSystemProxy)&&
320-
Objects.equals(this.pollingInterval, objALBServicesConfig.pollingInterval);
317+
Objects.equals(this.ipReputationConfig, objALBServicesConfig.ipReputationConfig);
321318
}
322319

323320
@Override
@@ -326,12 +323,12 @@ public String toString() {
326323
sb.append("class ALBServicesConfig {\n");
327324
sb.append(" assetContact: ").append(toIndentedString(assetContact)).append("\n");
328325
sb.append(" featureOptInStatus: ").append(toIndentedString(featureOptInStatus)).append("\n");
329-
sb.append(" ipReputationSyncInterval: ").append(toIndentedString(ipReputationSyncInterval)).append("\n");
326+
sb.append(" ipReputationConfig: ").append(toIndentedString(ipReputationConfig)).append("\n");
330327
sb.append(" pollingInterval: ").append(toIndentedString(pollingInterval)).append("\n");
331328
sb.append(" portalUrl: ").append(toIndentedString(portalUrl)).append("\n");
332329
sb.append(" proactiveSupportDefaults: ").append(toIndentedString(proactiveSupportDefaults)).append("\n");
333330
sb.append(" splitProxyConfiguration: ").append(toIndentedString(splitProxyConfiguration)).append("\n");
334-
sb.append(" useSystemProxy: ").append(toIndentedString(useSystemProxy)).append("\n");
331+
sb.append(" useSplitProxy: ").append(toIndentedString(useSplitProxy)).append("\n");
335332
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
336333
sb.append("}");
337334
return sb.toString();

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/model/ALBServicesFileUpload.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,14 @@ public boolean equals(java.lang.Object o) {
273273
return false;
274274
}
275275
ALBServicesFileUpload objALBServicesFileUpload = (ALBServicesFileUpload) o;
276-
return Objects.equals(this.status, objALBServicesFileUpload.status)&&
277-
Objects.equals(this.uuid, objALBServicesFileUpload.uuid)&&
278-
Objects.equals(this.filePath, objALBServicesFileUpload.filePath)&&
276+
return Objects.equals(this.uuid, objALBServicesFileUpload.uuid)&&
277+
Objects.equals(this.name, objALBServicesFileUpload.name)&&
278+
Objects.equals(this.tenantRef, objALBServicesFileUpload.tenantRef)&&
279279
Objects.equals(this.caseId, objALBServicesFileUpload.caseId)&&
280-
Objects.equals(this.error, objALBServicesFileUpload.error)&&
281280
Objects.equals(this.s3Directory, objALBServicesFileUpload.s3Directory)&&
282-
Objects.equals(this.tenantRef, objALBServicesFileUpload.tenantRef)&&
283-
Objects.equals(this.name, objALBServicesFileUpload.name);
281+
Objects.equals(this.status, objALBServicesFileUpload.status)&&
282+
Objects.equals(this.error, objALBServicesFileUpload.error)&&
283+
Objects.equals(this.filePath, objALBServicesFileUpload.filePath);
284284
}
285285

286286
@Override

o11nplugin-vro-core/src/main/java/com/vmware/avi/vro/model/ALBServicesStatusDetails.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ public boolean equals(java.lang.Object o) {
119119
return false;
120120
}
121121
ALBServicesStatusDetails objALBServicesStatusDetails = (ALBServicesStatusDetails) o;
122-
return Objects.equals(this.connectivity, objALBServicesStatusDetails.connectivity)&&
123-
Objects.equals(this.reason, objALBServicesStatusDetails.reason)&&
124-
Objects.equals(this.registration, objALBServicesStatusDetails.registration);
122+
return Objects.equals(this.registration, objALBServicesStatusDetails.registration)&&
123+
Objects.equals(this.connectivity, objALBServicesStatusDetails.connectivity)&&
124+
Objects.equals(this.reason, objALBServicesStatusDetails.reason);
125125
}
126126

127127
@Override

0 commit comments

Comments
 (0)