Skip to content

Commit 43ba624

Browse files
author
avijenkins
committed
Updated assets for vro
Signed-off-by: avijenkins <[email protected]>
1 parent 0e8b7c7 commit 43ba624

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public class GslbGeoDbProfile extends AviRestResource {
2828
@JsonInclude(Include.NON_NULL)
2929
private String description;
3030

31+
@JsonProperty("distance_computation_algorithm")
32+
@JsonInclude(Include.NON_NULL)
33+
private String distanceComputationAlgorithm = "GSLB_DISTANCE_AVI_OPTIMISED";
34+
3135
@JsonProperty("entries")
3236
@JsonInclude(Include.NON_NULL)
3337
private List<GslbGeoDbEntry> entries;
@@ -82,6 +86,34 @@ public void setDescription(String description) {
8286
this.description = description;
8387
}
8488

89+
/**
90+
* This is the getter method this will return the attribute value.
91+
* Algorithm to be used for computing distance between geo locations.only applicable when load balancing algorithm is gslb_algorithm_geo.
92+
* Enum options - GSLB_DISTANCE_AVI_OPTIMISED, GSLB_DISTANCE_HAVERSINE.
93+
* Field introduced in 32.1.1.
94+
* Allowed with any value in enterprise, enterprise with cloud services edition.
95+
* Default value when not specified in API or module is interpreted by Avi Controller as "GSLB_DISTANCE_AVI_OPTIMISED".
96+
* @return distanceComputationAlgorithm
97+
*/
98+
@VsoMethod
99+
public String getDistanceComputationAlgorithm() {
100+
return distanceComputationAlgorithm;
101+
}
102+
103+
/**
104+
* This is the setter method to the attribute.
105+
* Algorithm to be used for computing distance between geo locations.only applicable when load balancing algorithm is gslb_algorithm_geo.
106+
* Enum options - GSLB_DISTANCE_AVI_OPTIMISED, GSLB_DISTANCE_HAVERSINE.
107+
* Field introduced in 32.1.1.
108+
* Allowed with any value in enterprise, enterprise with cloud services edition.
109+
* Default value when not specified in API or module is interpreted by Avi Controller as "GSLB_DISTANCE_AVI_OPTIMISED".
110+
* @param distanceComputationAlgorithm set the distanceComputationAlgorithm.
111+
*/
112+
@VsoMethod
113+
public void setDistanceComputationAlgorithm(String distanceComputationAlgorithm) {
114+
this.distanceComputationAlgorithm = distanceComputationAlgorithm;
115+
}
116+
85117
/**
86118
* This is the getter method this will return the attribute value.
87119
* List of geodb entries.
@@ -319,14 +351,16 @@ public boolean equals(java.lang.Object o) {
319351
Objects.equals(this.markers, objGslbGeoDbProfile.markers)&&
320352
Objects.equals(this.isFederated, objGslbGeoDbProfile.isFederated)&&
321353
Objects.equals(this.description, objGslbGeoDbProfile.description)&&
322-
Objects.equals(this.tenantRef, objGslbGeoDbProfile.tenantRef);
354+
Objects.equals(this.tenantRef, objGslbGeoDbProfile.tenantRef)&&
355+
Objects.equals(this.distanceComputationAlgorithm, objGslbGeoDbProfile.distanceComputationAlgorithm);
323356
}
324357

325358
@Override
326359
public String toString() {
327360
StringBuilder sb = new StringBuilder();
328361
sb.append("class GslbGeoDbProfile {\n");
329362
sb.append(" description: ").append(toIndentedString(description)).append("\n");
363+
sb.append(" distanceComputationAlgorithm: ").append(toIndentedString(distanceComputationAlgorithm)).append("\n");
330364
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
331365
sb.append(" isFederated: ").append(toIndentedString(isFederated)).append("\n");
332366
sb.append(" markers: ").append(toIndentedString(markers)).append("\n");

0 commit comments

Comments
 (0)